1 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
3 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
4 improve wording especially for Fortran; mention -fopenmp-simd.
5 (Enabling OpenACC): Minor cleanup; remove conditional compilation
8 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
10 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
11 Actually document what the function does.
12 (GCC_ACC_NOTIFY): Remove unused env var.
14 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
16 * libgomp.texi: Replace most future tense by present tense.
18 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
20 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
21 dg-additional-options "-fdump-tree-gimple"; fix scan.
23 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
25 * libgomp.texi: Fix some typos.
26 (Memory Management Routines): Document remaining 5.x routines.
27 (Memory allocation): Make clear when the section applies.
29 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
31 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
32 supports the allocate directive for stack variables.
33 * testsuite/libgomp.fortran/allocate-5.f90: New test.
34 * testsuite/libgomp.fortran/allocate-6.f90: New test.
35 * testsuite/libgomp.fortran/allocate-7.f90: New test.
36 * testsuite/libgomp.fortran/allocate-8.f90: New test.
38 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
40 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
42 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
43 clarify MANDATORY behavior.
45 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
47 * env.c (initialize_env): Use do_adjust_default_spincount.
48 * config/linux/x86/spincount.h: New file.
50 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
52 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
54 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
56 * libgomp.texi (Device Memory Routines): New.
58 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
60 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
61 and that other target archs have no 'arch'/'isa' traits implemented.
63 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
65 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
66 implemented for C only.
67 * testsuite/libgomp.c/allocate-4.c: New test.
68 * testsuite/libgomp.c/allocate-5.c: New test.
69 * testsuite/libgomp.c/allocate-6.c: New test.
71 2023-09-20 Jakub Jelinek <jakub@redhat.com>
74 * libgomp.texi: Mark decl attribute was added to the C++ attribute
75 syntax as implemented.
77 2023-09-19 Jakub Jelinek <jakub@redhat.com>
80 * env.c (initialize_env): Don't dereference environ if it is NULL.
83 2023-09-18 Richard Biener <rguenther@suse.de>
85 PR tree-optimization/111294
86 * team.c (gomp_team_start): Assert alloca size to avoid false
87 positive alloc-size diagnostic.
89 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
90 Chung-Lin Tang <cltang@codesourcery.com>
94 * configure.ac: Revert earlier changes, instead
95 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
96 * Makefile.in: Regenerate.
97 * configure: Likewise.
98 * testsuite/Makefile.in: Likewise.
99 * testsuite/lib/libgomp.exp (libgomp_init): Remove
100 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
101 If '--with-build-sysroot=[...]' was specified, use it for
103 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
104 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
105 (SYSROOT_CFLAGS_FOR_TARGET): Set.
106 * testsuite/libgomp.c++/c++.exp (lang_source_re)
107 (lang_include_flags): Set for build-tree testing.
108 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
109 (lang_include_flags): Likewise.
111 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
113 * libgomp.texi (Memory Management Routines): New; add documentation for
114 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
115 omp_get_default_allocator.
116 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
118 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
120 * target.c (gomp_unload_device): Remove tailing whitespace.
122 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
123 Thomas Schwinge <thomas@codesourcery.com>
125 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
127 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
129 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
131 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
133 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
134 * testsuite/libgomp.fortran/imperfect1.f90: New.
135 * testsuite/libgomp.fortran/imperfect2.f90: New.
136 * testsuite/libgomp.fortran/imperfect3.f90: New.
137 * testsuite/libgomp.fortran/imperfect4.f90: New.
138 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
139 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
140 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
141 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
143 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
145 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
146 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
147 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
148 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
149 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
150 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
151 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
152 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
153 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
154 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
156 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
158 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
159 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
160 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
161 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
162 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
163 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
164 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
165 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
166 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
167 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
168 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
169 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
170 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
172 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
174 * testsuite/lib/libgomp.exp: Add effective target.
175 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
178 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
180 * libgomp.texi (OpenMP 5.2 status): Add depobj with
181 destroy-var argument as 'N'. Mark defaultmap with
182 'all' category as 'Y'.
184 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
187 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
189 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
192 * allocator.c (gomp_init_libnuma): Call numa_available; if
193 not available or not returning 0, disable libnuma usage.
195 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
197 * configure: Regenerate.
199 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
201 * configure: Regenerate.
203 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
205 * configure: Regenerate.
207 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
209 * configure: Regenerate.
211 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
213 * configure: Regenerate.
215 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
217 * configure: Regenerate.
219 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
221 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
222 GOMP_OFFLOAD_CAP_SHARED_MEM.
223 (omp_target_memcpy_rect_copy): Likewise for lock condition.
224 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
226 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
227 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
228 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
230 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
232 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
233 GOMP_OFFLOAD_memcpy3d): New prototypes.
234 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
236 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
237 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
238 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
239 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
240 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
241 GOMP_OFFLOAD_memcpy3d): New.
242 * target.c (omp_target_memcpy_rect_worker):
243 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
244 Permit all device-to-device copyies; invoke new plugins for
245 2D and 3D copying when available.
246 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
247 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
248 * testsuite/libgomp.fortran/target-12.f90: Likewise.
249 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
251 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
253 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
254 (Tasking Routines): Document omp_in_explicit_task.
255 (Implementation-defined ICV Initialization): Use @ref not @code.
257 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
259 * libgomp.texi (OpenMP Runtime Library Routines):
260 Split long list by adding sections and moving routines there.
261 (OMP_ALLOCATORS): Fix typo.
263 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
266 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
267 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
269 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
270 test file; tests are in non-rectangular-loop-1.f90.
271 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
272 testcase to use a non-constant step to retain the 'sorry' test.
273 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
275 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
276 Chung-Lin Tang <cltang@codesourcery.com>
278 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
279 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
281 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
283 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
284 the traits. Add crossref to 'Memory allocation'.
285 (Memory allocation): Refer to OMP_ALLOCATOR for the available
286 traits and allocators/mem spaces; document the default value
287 for the pool_size trait.
289 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
291 * allocator.c (omp_init_allocator): Check whether symbol from
292 dlopened libnuma is available before using libnuma for
295 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
297 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
298 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
299 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
301 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
303 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
304 'Memory allocation' section which contains the full status.
305 (TR11): Remove differently worded duplicated entry.
307 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
309 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
310 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
311 add GOMP_MEMKIND_LIBNUMA.
312 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
313 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
314 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
315 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
317 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
318 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
319 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
320 updated for libnuma usage.
321 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
322 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
324 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
326 * allocator.c (omp_init_allocator): Use malloc for
327 omp_high_bw_mem_space when the memkind lib is unavailable
328 instead of returning omp_null_allocator.
329 * libgomp.texi (OpenMP 5.0): Fix typo.
330 (Memory allocation with libmemkind): Document implementation
333 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
335 * libgomp.texi: Use @var for ICV vars.
336 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
337 document which ICV is set and which scope the ICV has; extend/cleanup
339 (Implementation-defined ICV Initialization): New.
340 (nvptx): Document the implementation-defined used per-warp stack size.
342 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
344 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
347 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
349 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
350 as expected dg-output.
352 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
355 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
356 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
357 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
358 * testsuite/libgomp.c/target-19.c: Update expected value.
359 * testsuite/libgomp.c++/target-18.C: Likewise.
360 * testsuite/libgomp.c++/target-19.C: Likewise.
361 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
362 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
363 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
365 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
367 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
368 gomp_init_targets_once was called before using default-device-var.
369 * testsuite/libgomp.c/target-55.c: New test.
370 * testsuite/libgomp.c/target-55a.c: New test.
372 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
374 * env.c (gomp_def_allocator_envvar): New var.
375 (parse_allocator): Handle OpenMP 5.1 syntax.
377 (omp_display_env): Output gomp_def_allocator_envvar
378 for an allocator with traits.
379 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
380 OMP_DISPLAY_AFFINITY): New.
381 * testsuite/libgomp.c/allocator-1.c: New test.
382 * testsuite/libgomp.c/allocator-2.c: New test.
383 * testsuite/libgomp.c/allocator-3.c: New test.
384 * testsuite/libgomp.c/allocator-4.c: New test.
385 * testsuite/libgomp.c/allocator-5.c: New test.
386 * testsuite/libgomp.c/allocator-6.c: New test.
388 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
390 * target.c (resolve_device): Align a
391 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
392 * testsuite/libgomp.c/target-51.c: Adjust.
394 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
396 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
398 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
400 * testsuite/libgomp.c/simd-math-1.c: Remove
401 '-foffload-options=-lm'.
402 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
404 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
407 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
409 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
410 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
413 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
415 * testsuite/libgomp.c/target-51.c: Fix typo.
417 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
419 * env.c (gomp_default_icv_values): Init default_device_var to
420 an nonconforming value - INT_MIN.
421 (initialize_env): After env-var parsing, set default_device_var to
422 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
423 (omp_display_env): If default_device_var is INT_MIN, call
424 gomp_init_targets_once.
425 * icv-device.c (omp_get_default_device): Likewise.
426 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
427 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
428 * target.c (resolve_device): Improve error message device-num < 0
429 with 'mandatory' and no no-host devices available.
430 (gomp_target_init): Set default-device-var if INT_MIN.
431 * testsuite/libgomp.c/target-48.c: New test.
432 * testsuite/libgomp.c/target-49.c: New test.
433 * testsuite/libgomp.c/target-50.c: New test.
434 * testsuite/libgomp.c/target-50a.c: New test.
435 * testsuite/libgomp.c/target-51.c: New test.
436 * testsuite/libgomp.c/target-52.c: New test.
437 * testsuite/libgomp.c/target-53.c: New test.
438 * testsuite/libgomp.c/target-54.c: New test.
440 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
443 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
444 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
446 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
448 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
449 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
450 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
452 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
453 changed error message.
454 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
455 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
456 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
457 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
458 extend testcase to check that data is copied when needed.
459 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
460 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
462 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
463 Tobias Burnus <tobias@codesourcery.com>
465 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
466 also for non-offload_device targets; check that it runs
467 successfully for those and for all until a checkpoint for all
468 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
469 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
470 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
471 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
472 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
473 add missing vars to map clause.
475 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
477 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
478 unified_address requirement as supported.
479 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
480 'unified_address' from the not-supported requirements.
482 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
483 Tobias Burnus <tobias@codesourcery.com>
485 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
486 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
487 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
489 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
490 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
491 Emit runtime error if memory region not present.
492 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
493 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
494 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
495 * testsuite/libgomp.fortran/target-present-1.f90: New test.
496 * testsuite/libgomp.fortran/target-present-2.f90: New test.
497 * testsuite/libgomp.fortran/target-present-3.f90: New test.
499 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
502 * testsuite/lib/libgomp.exp: 'flock' through stdout.
503 * testsuite/flock: New.
504 * configure.ac (FLOCK): Point to that if no 'flock' available, but
506 * configure: Regenerate.
508 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
510 * configure.ac (PERL): Remove.
511 * configure: Regenerate.
512 * Makefile.in: Likewise.
513 * testsuite/Makefile.in: Likewise.
515 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
517 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
519 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
521 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
523 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
526 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
527 * config/nvptx/target.c (GOMP_teams4): Likewise.
528 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
529 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
530 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
531 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
533 2023-05-19 Jakub Jelinek <jakub@redhat.com>
536 * configure.ac (link_gomp): Include also $DL_LIBS.
537 * configure: Regenerated.
539 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
541 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
543 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
544 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
545 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
546 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
548 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
551 * configure.ac: Look for 'flock'.
552 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
553 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
554 * testsuite/lib/libgomp.exp: ... but here, instead.
555 (libgomp_load): Override for parallel testing.
556 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
557 * configure: Regenerate.
558 * Makefile.in: Regenerate.
559 * testsuite/Makefile.in: Regenerate.
561 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
562 Thomas Schwinge <thomas@codesourcery.com>
565 * testsuite/Makefile.am (PWD_COMMAND): New variable.
566 (%/site.exp): New target.
567 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
568 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
569 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
571 (check_DEJAGNU_libgomp_targets): New variables.
572 ($(check_DEJAGNU_libgomp_targets)): New target.
573 ($(check_DEJAGNU_libgomp_targets)): New dependency.
574 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
575 * testsuite/Makefile.in: Regenerate.
576 * testsuite/lib/libgomp.exp: For parallel testing,
577 'load_file ../libgomp-test-support.exp'.
579 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
582 * configure.ac: 'AC_SUBST(CXX)'.
583 * configure: Regenerate.
584 * Makefile.in: Likewise.
585 * testsuite/Makefile.in: Likewise.
586 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
587 (GFORTRAN_UNDER_TEST): Set.
588 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
589 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
590 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
591 * testsuite/libgomp.fortran/fortran.exp: Use
592 'GFORTRAN_UNDER_TEST'.
593 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
595 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
598 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
600 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
601 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
602 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
603 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
605 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
606 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
607 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
610 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
613 * testsuite/libgomp.c++/target-map-class-1.C: New test.
614 * testsuite/libgomp.c++/target-map-class-2.C: New test.
616 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
618 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
619 'lang_library_path' into a list of 'lang_library_paths'.
620 * testsuite/libgomp.c++/c++.exp: Adjust.
621 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
622 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
624 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
626 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
628 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
629 at 'lang_test_file_found'.
630 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
631 'return' early if not able to test. Simplify 'ld_library_path' setup.
632 * testsuite/libgomp.fortran/fortran.exp: Likewise.
633 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
634 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
636 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
638 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
640 * testsuite/libgomp.fortran/fortran.exp: Likewise.
641 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
642 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
644 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
646 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
647 * testsuite/libgomp.c/c.exp: Likewise.
648 * testsuite/libgomp.fortran/fortran.exp: Likewise.
649 * testsuite/libgomp.graphite/graphite.exp: Likewise.
650 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
651 * testsuite/libgomp.oacc-c/c.exp: Likewise.
652 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
654 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
656 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
657 * testsuite/libgomp.fortran/fortran.exp: Likewise.
658 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
659 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
660 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
662 * testsuite/libgomp.oacc-c/c.exp: Likewise.
663 * testsuite/libgomp.graphite/graphite.exp: Likewise.
664 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
665 'lang_test_file_found' instead of 'lang_test_file'.
667 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
669 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
671 * testsuite/libgomp.c++/c++.exp: Likewise.
672 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
674 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
676 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
677 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
679 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
681 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
682 of 'libstdcxx_includes'.
683 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
685 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
687 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
688 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
689 * libgomp.h (gomp_target_rev): Adjust.
690 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
691 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
692 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
693 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
694 (rev_off_host_to_dev_cpy): Remove.
695 (GOMP_OFFLOAD_run): Adjust.
697 2023-05-04 Julian Brown <julian@codesourcery.com>
700 * testsuite/libgomp.fortran/pr109622.f90: Move test...
701 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
702 vector length warning.
703 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
704 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
705 missing copyin/copyout variable. Ignore vector length warnings.
706 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
707 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
708 vector length warnings.
709 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
711 2023-04-28 Julian Brown <julian@codesourcery.com>
714 * testsuite/libgomp.fortran/pr109622.f90: New test.
715 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
716 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
718 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
720 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
721 * testsuite/libgomp.c/scan-23.c: New test.
722 * testsuite/libgomp.fortran/scan-2.f90: New test.
724 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
726 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
727 weak_undefined options.
729 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
731 * libgomp.texi (Offload-Target Specifics): Grammar fix.
733 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
736 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
739 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
742 * target.c (gomp_map_vars_internal): Allow for
743 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
744 * oacc-parallel.c (GOACC_parallel_keyed): Pass
745 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
746 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
747 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
749 (gomp_offload_free): Remove.
750 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
751 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
752 (cuda_free_argmem): Remove.
753 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
756 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
758 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
759 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
762 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
764 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
765 'GOMP_MAP_IF_PRESENT'.
766 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
767 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
768 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
769 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
770 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
772 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
774 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
776 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
779 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
781 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
782 another aspect of OpenACC 'async' semantics.
784 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
786 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
788 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
789 Verify 'acc_ev_alloc', 'acc_ev_free'.
791 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
794 * env.c (wait_policy): Initialize to -1.
795 (initialize_icvs): Initialize icvs->wait_policy to -1.
796 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
798 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
800 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
802 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
803 Paul-Antoine Arras <pa@codesourcery.com>
805 * testsuite/libgomp.c/simd-math-1.c: New testcase.
807 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
810 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
811 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
813 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
815 * testsuite/libgomp.fortran/alloc-10.f90: Use
816 '-Wno-complain-wrong-lang'.
817 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
818 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
819 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
820 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
821 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
822 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
823 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
824 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
825 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
826 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
828 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
830 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
831 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
832 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
833 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
836 2023-02-16 Jakub Jelinek <jakub@redhat.com>
838 * libgomp.texi: Fix typos - theads -> threads.
840 2023-02-16 Jakub Jelinek <jakub@redhat.com>
842 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
843 comment typo and improve its wording.
845 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
847 * target.c (gomp_target_rev): Dereference ptr
848 to get device address.
849 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
850 for unallocated allocatable.
852 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
854 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
856 (GOMP_target_enter_exit_data): If the next map item is
857 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
858 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
860 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
863 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
864 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
865 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
866 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
867 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
868 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
870 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
872 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
873 offloading compilation.
875 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
877 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
878 freeing not allocated memory.
879 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
881 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
883 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
885 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
886 reverse-offload requirement.
888 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
890 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
891 (DEFAULT_TEAM_ARENA_SIZE): New define.
892 (struct heap): Move to this file.
893 (struct kernargs_abi): Likewise.
894 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
896 * libgomp.h: Include libgomp-gcn.h.
897 (TEAM_ARENA_SIZE): Remove.
898 (team_malloc): Update the error message.
899 * plugin/plugin-gcn.c (struct kernargs): Move common content to
901 (struct agent_info): Rename team arenas to ephemeral memories.
902 (struct team_arena_list): Rename ....
903 (struct ephemeral_memories_list): to this.
904 (struct heap): Delete.
905 (team_arena_size): New variable.
906 (stack_size): New variable.
907 (print_kernel_dispatch): Update debug messages.
908 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
910 (get_team_arena): Rename ...
911 (configure_ephemeral_memories): ... to this, and set up stacks.
912 (release_team_arena): Rename ...
913 (release_ephemeral_memories): ... to this.
914 (destroy_team_arenas): Rename ...
915 (destroy_ephemeral_memories): ... to this.
916 (create_kernel_dispatch): Add num_threads parameter.
917 Adjust for kernargs_abi refactor and ephemeral memories.
918 (release_kernel_dispatch): Adjust for ephemeral memories.
919 (run_kernel): Pass thread-count to create_kernel_dispatch.
920 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
921 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
923 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
925 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
927 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
929 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
930 usage, remove unused -fdump-tree-original.
931 * testsuite/libgomp.fortran/allocate-4.f90: New.
933 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
935 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
936 (GCN): Add item about 'omp requires'.
937 (nvptx): Likewise; add item about reverse offload.
939 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
942 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
944 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
946 * libgomp.texi (OpenMP 5.0): Set non-rectangular
947 loop nest back to 'P' as Fortran support is incomplete.
949 2023-01-19 Jakub Jelinek <jakub@redhat.com>
952 * testsuite/libgomp.c/pr108459.c: New test.
954 2023-01-17 Martin Liska <mliska@suse.cz>
956 * Makefile.in: Regenerate.
957 * configure: Regenerate.
959 2023-01-07 LIU Hao <lh_mouse@126.com>
962 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
965 2023-01-05 Jakub Jelinek <jakub@redhat.com>
968 * testsuite/libgomp.c++/pr108286.C: New test.
970 2023-01-02 Jakub Jelinek <jakub@redhat.com>
972 * libgomp.texi: Bump @copying's copyright year.
974 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
977 * config/nvptx/bar.c (generation_to_barrier): Remove.
978 (futex_wait,futex_wake,do_spin,do_wait): Remove.
979 (GOMP_WAIT_H): Remove.
980 (#include "../linux/bar.c"): Remove.
981 (gomp_barrier_wait_end): New function.
982 (gomp_barrier_wait): Likewise.
983 (gomp_barrier_wait_last): Likewise.
984 (gomp_team_barrier_wait_end): Likewise.
985 (gomp_team_barrier_wait): Likewise.
986 (gomp_team_barrier_wait_final): Likewise.
987 (gomp_team_barrier_wait_cancel_end): Likewise.
988 (gomp_team_barrier_wait_cancel): Likewise.
989 (gomp_team_barrier_cancel): Likewise.
990 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
991 (gomp_barrier_init): Remove init of waiters, lock fields.
992 (gomp_team_barrier_wake): Remove prototype, add new static inline
995 2022-12-21 Jakub Jelinek <jakub@redhat.com>
998 * testsuite/libgomp.c++/pr108180.C: New test.
1000 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1002 PR libfortran/108056
1003 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1004 accidentally added file.
1006 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1008 PR libfortran/108056
1009 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1011 2022-12-14 Julian Brown <julian@codesourcery.com>
1013 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1016 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1018 * libgomp.h (struct target_mem_desc): Predeclare; move
1019 below after 'reverse_splay_tree_node' and add rev_array
1021 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1022 (reverse_splay_tree_node, reverse_splay_tree,
1023 reverse_splay_tree_key): New typedef.
1024 (struct gomp_device_descr): Add mem_map_rev member.
1025 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1026 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1027 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1028 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1029 splay_tree_callback but returning int not void.
1030 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1031 taking splay_tree_callback_stop as argument.
1032 * splay-tree.c (splay_tree_foreach_internal_lazy,
1033 splay_tree_foreach_lazy): New; but early exit if callback returns
1035 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1036 (gomp_map_lookup_rev): New.
1037 (gomp_load_image_to_device): Handle reverse-offload function
1039 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1040 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1041 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1042 gomp_map_cdata_lookup): New auxiliary structs and functions for
1044 (gomp_target_rev): Implement reverse offloading and its mapping.
1045 (gomp_target_init): Init current_device.mem_map_rev.root.
1046 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1047 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1048 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1049 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1050 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1051 mapping of on-device allocated variables.
1053 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1055 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1056 item about 'align'; mark clause as 'Y' and directive as 'N'.
1057 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1058 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1060 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1062 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1063 allow processing of device-specific values.
1064 (omp_set_teams_thread_limit): Likewise.
1066 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1067 (omp_set_teams_thread_limit): Likewise.
1069 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1071 (omp_set_teams_thread_limit): Likewise.
1072 * icv.c (omp_set_teams_thread_limit): Removed.
1073 (omp_get_teams_thread_limit): Likewise.
1075 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1076 to the limitation of the number of teams.
1077 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1078 the number of teams by twice the number of compute units.
1079 (parse_target_attributes): Limit the number of teams on gcn offload
1081 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1083 (gomp_load_image_to_device): Added a size check for the ICVs struct
1085 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1086 copy back the ICV values from device to host.
1087 (GOMP_target_ext): Update the number of teams and threads in the kernel
1088 args also considering device-specific values.
1089 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1090 of OMP_TEAMS_THREAD_LIMIT from the environment.
1091 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1092 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1093 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1094 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1095 * testsuite/libgomp.fortran/icv-5.f90: New test.
1096 * testsuite/libgomp.fortran/icv-6.f90: New test.
1098 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1100 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1101 (TR11): Add missing '@tab N @tab'.
1103 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1105 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1107 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1109 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1110 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1111 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1112 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1113 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1114 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1115 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1117 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1119 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1121 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1123 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1124 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1125 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1126 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1128 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1130 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1131 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1132 as valid and the code having no reverse-offload code.
1133 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1135 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1137 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1138 and status for Technical Report (TR) 11.
1140 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1142 * config/gcn/libgomp-gcn.h (struct output):
1143 Remove 'msg_u64' from the union, change
1144 value_u64[2] to value_u64[6].
1145 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1146 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1149 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1151 * config/gcn/libgomp-gcn.h: New file; contains
1152 struct output, declared previously in plugin-gcn.c.
1153 * config/gcn/target.c: Include it.
1154 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1155 (GOMP_target_ext): Handle reverse offload.
1156 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1157 (struct kernargs): Replace struct def by the one
1158 from libgomp-gcn.h for output_data.
1159 (process_reverse_offload): New.
1160 (console_output): Call it.
1162 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1163 Andrew Stubbs <ams@codesourcery.com>
1165 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1166 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1168 2022-11-14 Martin Liska <mliska@suse.cz>
1171 2022-11-14 Martin Liska <mliska@suse.cz>
1173 * doc/amd-radeon-gcn.rst: New file.
1174 * doc/conf.py: New file.
1175 * doc/copyright.rst: New file.
1176 * doc/cuda-streams-usage.rst: New file.
1177 * doc/enabling-openacc.rst: New file.
1178 * doc/enabling-openmp.rst: New file.
1179 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1180 * doc/first-invocation-openacc-library-api.rst: New file.
1181 * doc/funding.rst: New file.
1182 * doc/general-public-license-3.rst: New file.
1183 * doc/gnu-free-documentation-license.rst: New file.
1184 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1185 * doc/index.rst: New file.
1186 * doc/indices-and-tables.rst: New file.
1187 * doc/introduction.rst: New file.
1188 * doc/memory-allocation-with-libmemkind.rst: New file.
1189 * doc/nvptx.rst: New file.
1190 * doc/offload-target-specifics.rst: New file.
1191 * doc/openacc-environment-variables.rst: New file.
1192 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1193 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1194 * doc/openacc-environment-variables/accproflib.rst: New file.
1195 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1196 * doc/openacc-introduction.rst: New file.
1197 * doc/openacc-library-and-environment-variables.rst: New file.
1198 * doc/openacc-library-interoperability.rst: New file.
1199 * doc/openacc-profiling-interface.rst: New file.
1200 * doc/openacc-runtime-library-routines.rst: New file.
1201 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1202 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1203 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1204 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1205 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1206 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1207 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1208 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1209 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1210 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1211 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1212 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1213 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1214 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1215 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1216 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1217 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1218 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1219 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1220 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1221 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1222 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1223 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1224 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1225 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1226 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1227 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1228 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1229 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1230 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1231 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1232 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1233 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1234 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1235 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1236 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1237 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1238 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1239 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1240 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1241 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1242 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1243 * doc/openmp-context-selectors.rst: New file.
1244 * doc/openmp-environment-variables.rst: New file.
1245 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1246 * doc/openmp-environment-variables/gompdebug.rst: New file.
1247 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1248 * doc/openmp-environment-variables/gompspincount.rst: New file.
1249 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1250 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1251 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1252 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1253 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1254 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1255 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1256 * doc/openmp-environment-variables/ompnested.rst: New file.
1257 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1258 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1259 * doc/openmp-environment-variables/ompplaces.rst: New file.
1260 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1261 * doc/openmp-environment-variables/ompschedule.rst: New file.
1262 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1263 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1264 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1265 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1266 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1267 * doc/openmp-implementation-specifics.rst: New file.
1268 * doc/openmp-implementation-status.rst: New file.
1269 * doc/openmp-implementation-status/openmp-45.rst: New file.
1270 * doc/openmp-implementation-status/openmp-50.rst: New file.
1271 * doc/openmp-implementation-status/openmp-51.rst: New file.
1272 * doc/openmp-implementation-status/openmp-52.rst: New file.
1273 * doc/openmp-runtime-library-routines.rst: New file.
1274 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1275 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1276 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1277 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1278 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1279 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1280 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1281 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1282 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1283 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1284 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1285 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1286 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1287 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1288 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1289 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1290 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1291 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1292 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1293 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1294 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1295 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1296 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1297 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1298 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1299 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1300 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1301 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1302 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1303 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1304 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1305 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1306 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1307 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1308 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1309 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1310 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1311 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1312 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1313 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1314 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1315 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1316 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1317 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1318 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1319 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1320 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1321 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1322 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1323 * doc/reporting-bugs.rst: New file.
1324 * doc/the-libgomp-abi.rst: New file.
1325 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1326 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1327 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1328 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1330 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1331 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1332 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1333 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1334 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1335 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1336 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1337 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1338 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1339 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1340 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1342 2022-11-14 Martin Liska <mliska@suse.cz>
1345 2022-11-14 Martin Liska <mliska@suse.cz>
1347 * Makefile.in: Support Sphinx based documentation.
1349 2022-11-14 Martin Liska <mliska@suse.cz>
1352 2022-11-14 Martin Liska <mliska@suse.cz>
1354 * libgomp.texi: Removed.
1356 2022-11-14 Martin Liska <mliska@suse.cz>
1359 2022-11-14 Martin Liska <mliska@suse.cz>
1361 * Makefile.in: Support --with-sphinx-build.
1362 * configure.ac: Likewise..
1363 * configure: Regenerate.
1365 2022-11-14 Martin Liska <mliska@suse.cz>
1368 2022-11-09 Martin Liska <mliska@suse.cz>
1370 * Makefile.in: Build info pages conditionally.
1372 2022-11-14 Martin Liska <mliska@suse.cz>
1375 2022-11-14 Martin Liska <mliska@suse.cz>
1377 * doc/amd-radeon-gcn.rst:
1378 Add trailing newline.
1379 * doc/copyright.rst:
1380 Add trailing newline.
1381 * doc/cuda-streams-usage.rst:
1382 Add trailing newline.
1383 * doc/enabling-openacc.rst:
1384 Add trailing newline.
1385 * doc/enabling-openmp.rst:
1386 Add trailing newline.
1387 * doc/first-invocation-nvidia-cublas-library-api.rst:
1388 Add trailing newline.
1389 * doc/first-invocation-openacc-library-api.rst:
1390 Add trailing newline.
1392 Add trailing newline.
1393 * doc/general-public-license-3.rst:
1394 Add trailing newline.
1395 * doc/gnu-free-documentation-license.rst:
1396 Add trailing newline.
1397 * doc/implementation-status-and-implementation-defined-behavior.rst:
1398 Add trailing newline.
1400 Add trailing newline.
1401 * doc/indices-and-tables.rst:
1402 Add trailing newline.
1403 * doc/introduction.rst:
1404 Add trailing newline.
1405 * doc/memory-allocation-with-libmemkind.rst:
1406 Add trailing newline.
1408 Add trailing newline.
1409 * doc/offload-target-specifics.rst:
1410 Add trailing newline.
1411 * doc/openacc-environment-variables.rst:
1412 Add trailing newline.
1413 * doc/openacc-environment-variables/accdevicenum.rst:
1414 Add trailing newline.
1415 * doc/openacc-environment-variables/accdevicetype.rst:
1416 Add trailing newline.
1417 * doc/openacc-environment-variables/accproflib.rst:
1418 Add trailing newline.
1419 * doc/openacc-environment-variables/gccaccnotify.rst:
1420 Add trailing newline.
1421 * doc/openacc-introduction.rst:
1422 Add trailing newline.
1423 * doc/openacc-library-and-environment-variables.rst:
1424 Add trailing newline.
1425 * doc/openacc-library-interoperability.rst:
1426 Add trailing newline.
1427 * doc/openacc-profiling-interface.rst:
1428 Add trailing newline.
1429 * doc/openacc-runtime-library-routines.rst:
1430 Add trailing newline.
1431 * doc/openacc-runtime-library-routines/accasynctest.rst:
1432 Add trailing newline.
1433 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1434 Add trailing newline.
1435 * doc/openacc-runtime-library-routines/accattach.rst:
1436 Add trailing newline.
1437 * doc/openacc-runtime-library-routines/acccopyin.rst:
1438 Add trailing newline.
1439 * doc/openacc-runtime-library-routines/acccopyout.rst:
1440 Add trailing newline.
1441 * doc/openacc-runtime-library-routines/acccreate.rst:
1442 Add trailing newline.
1443 * doc/openacc-runtime-library-routines/accdelete.rst:
1444 Add trailing newline.
1445 * doc/openacc-runtime-library-routines/accdetach.rst:
1446 Add trailing newline.
1447 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1448 Add trailing newline.
1449 * doc/openacc-runtime-library-routines/accfree.rst:
1450 Add trailing newline.
1451 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1452 Add trailing newline.
1453 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1454 Add trailing newline.
1455 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1456 Add trailing newline.
1457 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1458 Add trailing newline.
1459 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1460 Add trailing newline.
1461 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1462 Add trailing newline.
1463 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1464 Add trailing newline.
1465 * doc/openacc-runtime-library-routines/acchostptr.rst:
1466 Add trailing newline.
1467 * doc/openacc-runtime-library-routines/accinit.rst:
1468 Add trailing newline.
1469 * doc/openacc-runtime-library-routines/accispresent.rst:
1470 Add trailing newline.
1471 * doc/openacc-runtime-library-routines/accmalloc.rst:
1472 Add trailing newline.
1473 * doc/openacc-runtime-library-routines/accmapdata.rst:
1474 Add trailing newline.
1475 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1476 Add trailing newline.
1477 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1478 Add trailing newline.
1479 * doc/openacc-runtime-library-routines/accondevice.rst:
1480 Add trailing newline.
1481 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1482 Add trailing newline.
1483 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1484 Add trailing newline.
1485 * doc/openacc-runtime-library-routines/accproflookup.rst:
1486 Add trailing newline.
1487 * doc/openacc-runtime-library-routines/accprofregister.rst:
1488 Add trailing newline.
1489 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1490 Add trailing newline.
1491 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1492 Add trailing newline.
1493 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1494 Add trailing newline.
1495 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1496 Add trailing newline.
1497 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1498 Add trailing newline.
1499 * doc/openacc-runtime-library-routines/accshutdown.rst:
1500 Add trailing newline.
1501 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1502 Add trailing newline.
1503 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1504 Add trailing newline.
1505 * doc/openacc-runtime-library-routines/accupdateself.rst:
1506 Add trailing newline.
1507 * doc/openacc-runtime-library-routines/accwait.rst:
1508 Add trailing newline.
1509 * doc/openacc-runtime-library-routines/accwaitall.rst:
1510 Add trailing newline.
1511 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1512 Add trailing newline.
1513 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1514 Add trailing newline.
1515 * doc/openmp-context-selectors.rst:
1516 Add trailing newline.
1517 * doc/openmp-environment-variables.rst:
1518 Add trailing newline.
1519 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1520 Add trailing newline.
1521 * doc/openmp-environment-variables/gompdebug.rst:
1522 Add trailing newline.
1523 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1524 Add trailing newline.
1525 * doc/openmp-environment-variables/gompspincount.rst:
1526 Add trailing newline.
1527 * doc/openmp-environment-variables/gompstacksize.rst:
1528 Add trailing newline.
1529 * doc/openmp-environment-variables/ompcancellation.rst:
1530 Add trailing newline.
1531 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1532 Add trailing newline.
1533 * doc/openmp-environment-variables/ompdisplayenv.rst:
1534 Add trailing newline.
1535 * doc/openmp-environment-variables/ompdynamic.rst:
1536 Add trailing newline.
1537 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1538 Add trailing newline.
1539 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1540 Add trailing newline.
1541 * doc/openmp-environment-variables/ompnested.rst:
1542 Add trailing newline.
1543 * doc/openmp-environment-variables/ompnumteams.rst:
1544 Add trailing newline.
1545 * doc/openmp-environment-variables/ompnumthreads.rst:
1546 Add trailing newline.
1547 * doc/openmp-environment-variables/ompplaces.rst:
1548 Add trailing newline.
1549 * doc/openmp-environment-variables/ompprocbind.rst:
1550 Add trailing newline.
1551 * doc/openmp-environment-variables/ompschedule.rst:
1552 Add trailing newline.
1553 * doc/openmp-environment-variables/ompstacksize.rst:
1554 Add trailing newline.
1555 * doc/openmp-environment-variables/omptargetoffload.rst:
1556 Add trailing newline.
1557 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1558 Add trailing newline.
1559 * doc/openmp-environment-variables/ompthreadlimit.rst:
1560 Add trailing newline.
1561 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1562 Add trailing newline.
1563 * doc/openmp-implementation-specifics.rst:
1564 Add trailing newline.
1565 * doc/openmp-implementation-status.rst:
1566 Add trailing newline.
1567 * doc/openmp-implementation-status/openmp-45.rst:
1568 Add trailing newline.
1569 * doc/openmp-implementation-status/openmp-50.rst:
1570 Add trailing newline.
1571 * doc/openmp-implementation-status/openmp-51.rst:
1572 Add trailing newline.
1573 * doc/openmp-implementation-status/openmp-52.rst:
1574 Add trailing newline.
1575 * doc/openmp-runtime-library-routines.rst:
1576 Add trailing newline.
1577 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1578 Add trailing newline.
1579 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1580 Add trailing newline.
1581 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1582 Add trailing newline.
1583 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1584 Add trailing newline.
1585 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1586 Add trailing newline.
1587 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1588 Add trailing newline.
1589 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1590 Add trailing newline.
1591 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1592 Add trailing newline.
1593 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1594 Add trailing newline.
1595 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1596 Add trailing newline.
1597 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1598 Add trailing newline.
1599 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1600 Add trailing newline.
1601 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1602 Add trailing newline.
1603 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1604 Add trailing newline.
1605 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1606 Add trailing newline.
1607 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1608 Add trailing newline.
1609 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1610 Add trailing newline.
1611 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1612 Add trailing newline.
1613 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1614 Add trailing newline.
1615 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1616 Add trailing newline.
1617 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1618 Add trailing newline.
1619 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1620 Add trailing newline.
1621 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1622 Add trailing newline.
1623 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1624 Add trailing newline.
1625 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1626 Add trailing newline.
1627 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1628 Add trailing newline.
1629 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1630 Add trailing newline.
1631 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1632 Add trailing newline.
1633 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1634 Add trailing newline.
1635 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1636 Add trailing newline.
1637 * doc/openmp-runtime-library-routines/ompinfinal.rst:
1638 Add trailing newline.
1639 * doc/openmp-runtime-library-routines/ompinitlock.rst:
1640 Add trailing newline.
1641 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1642 Add trailing newline.
1643 * doc/openmp-runtime-library-routines/ompinparallel.rst:
1644 Add trailing newline.
1645 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1646 Add trailing newline.
1647 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1648 Add trailing newline.
1649 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1650 Add trailing newline.
1651 * doc/openmp-runtime-library-routines/ompsetlock.rst:
1652 Add trailing newline.
1653 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1654 Add trailing newline.
1655 * doc/openmp-runtime-library-routines/ompsetnested.rst:
1656 Add trailing newline.
1657 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1658 Add trailing newline.
1659 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1660 Add trailing newline.
1661 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1662 Add trailing newline.
1663 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1664 Add trailing newline.
1665 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1666 Add trailing newline.
1667 * doc/openmp-runtime-library-routines/omptestlock.rst:
1668 Add trailing newline.
1669 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1670 Add trailing newline.
1671 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1672 Add trailing newline.
1673 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1674 Add trailing newline.
1675 * doc/reporting-bugs.rst:
1676 Add trailing newline.
1677 * doc/the-libgomp-abi.rst:
1678 Add trailing newline.
1679 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1680 Add trailing newline.
1681 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1682 Add trailing newline.
1683 * doc/the-libgomp-abi/implementing-critical-construct.rst:
1684 Add trailing newline.
1685 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1686 Add trailing newline.
1687 * doc/the-libgomp-abi/implementing-flush-construct.rst:
1688 Add trailing newline.
1689 * doc/the-libgomp-abi/implementing-for-construct.rst:
1690 Add trailing newline.
1691 * doc/the-libgomp-abi/implementing-master-construct.rst:
1692 Add trailing newline.
1693 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1694 Add trailing newline.
1695 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1696 Add trailing newline.
1697 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1698 Add trailing newline.
1699 * doc/the-libgomp-abi/implementing-private-clause.rst:
1700 Add trailing newline.
1701 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1702 Add trailing newline.
1703 * doc/the-libgomp-abi/implementing-sections-construct.rst:
1704 Add trailing newline.
1705 * doc/the-libgomp-abi/implementing-single-construct.rst:
1706 Add trailing newline.
1707 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1708 Add trailing newline.
1710 2022-11-14 Martin Liska <mliska@suse.cz>
1713 2022-11-09 Martin Liska <mliska@suse.cz>
1715 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1717 2022-11-14 Martin Liska <mliska@suse.cz>
1720 2022-11-14 Martin Liska <mliska@suse.cz>
1722 * doc/conf.py: Add newline at last line.
1724 2022-11-14 Martin Liska <mliska@suse.cz>
1727 2022-11-14 Martin Liska <mliska@suse.cz>
1730 * configure: Regenerate.
1731 * configure.ac: Always set sphinx-build.
1733 2022-11-13 Martin Liska <mliska@suse.cz>
1736 * configure: Regenerate.
1737 * configure.ac: Always set sphinx-build.
1739 2022-11-12 Jakub Jelinek <jakub@redhat.com>
1742 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1743 unsigned long. Change type of upper from unsigned to unsigned long.
1745 2022-11-10 Martin Liska <mliska@suse.cz>
1747 * doc/conf.py: Add newline at last line.
1749 2022-11-09 Martin Liska <mliska@suse.cz>
1751 * Makefile.in: Add missing HAS_SPHINX_BUILD.
1753 2022-11-09 Martin Liska <mliska@suse.cz>
1755 * doc/amd-radeon-gcn.rst:
1756 Add trailing newline.
1757 * doc/copyright.rst:
1758 Add trailing newline.
1759 * doc/cuda-streams-usage.rst:
1760 Add trailing newline.
1761 * doc/enabling-openacc.rst:
1762 Add trailing newline.
1763 * doc/enabling-openmp.rst:
1764 Add trailing newline.
1765 * doc/first-invocation-nvidia-cublas-library-api.rst:
1766 Add trailing newline.
1767 * doc/first-invocation-openacc-library-api.rst:
1768 Add trailing newline.
1770 Add trailing newline.
1771 * doc/general-public-license-3.rst:
1772 Add trailing newline.
1773 * doc/gnu-free-documentation-license.rst:
1774 Add trailing newline.
1775 * doc/implementation-status-and-implementation-defined-behavior.rst:
1776 Add trailing newline.
1778 Add trailing newline.
1779 * doc/indices-and-tables.rst:
1780 Add trailing newline.
1781 * doc/introduction.rst:
1782 Add trailing newline.
1783 * doc/memory-allocation-with-libmemkind.rst:
1784 Add trailing newline.
1786 Add trailing newline.
1787 * doc/offload-target-specifics.rst:
1788 Add trailing newline.
1789 * doc/openacc-environment-variables.rst:
1790 Add trailing newline.
1791 * doc/openacc-environment-variables/accdevicenum.rst:
1792 Add trailing newline.
1793 * doc/openacc-environment-variables/accdevicetype.rst:
1794 Add trailing newline.
1795 * doc/openacc-environment-variables/accproflib.rst:
1796 Add trailing newline.
1797 * doc/openacc-environment-variables/gccaccnotify.rst:
1798 Add trailing newline.
1799 * doc/openacc-introduction.rst:
1800 Add trailing newline.
1801 * doc/openacc-library-and-environment-variables.rst:
1802 Add trailing newline.
1803 * doc/openacc-library-interoperability.rst:
1804 Add trailing newline.
1805 * doc/openacc-profiling-interface.rst:
1806 Add trailing newline.
1807 * doc/openacc-runtime-library-routines.rst:
1808 Add trailing newline.
1809 * doc/openacc-runtime-library-routines/accasynctest.rst:
1810 Add trailing newline.
1811 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1812 Add trailing newline.
1813 * doc/openacc-runtime-library-routines/accattach.rst:
1814 Add trailing newline.
1815 * doc/openacc-runtime-library-routines/acccopyin.rst:
1816 Add trailing newline.
1817 * doc/openacc-runtime-library-routines/acccopyout.rst:
1818 Add trailing newline.
1819 * doc/openacc-runtime-library-routines/acccreate.rst:
1820 Add trailing newline.
1821 * doc/openacc-runtime-library-routines/accdelete.rst:
1822 Add trailing newline.
1823 * doc/openacc-runtime-library-routines/accdetach.rst:
1824 Add trailing newline.
1825 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1826 Add trailing newline.
1827 * doc/openacc-runtime-library-routines/accfree.rst:
1828 Add trailing newline.
1829 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1830 Add trailing newline.
1831 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1832 Add trailing newline.
1833 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1834 Add trailing newline.
1835 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1836 Add trailing newline.
1837 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1838 Add trailing newline.
1839 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1840 Add trailing newline.
1841 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1842 Add trailing newline.
1843 * doc/openacc-runtime-library-routines/acchostptr.rst:
1844 Add trailing newline.
1845 * doc/openacc-runtime-library-routines/accinit.rst:
1846 Add trailing newline.
1847 * doc/openacc-runtime-library-routines/accispresent.rst:
1848 Add trailing newline.
1849 * doc/openacc-runtime-library-routines/accmalloc.rst:
1850 Add trailing newline.
1851 * doc/openacc-runtime-library-routines/accmapdata.rst:
1852 Add trailing newline.
1853 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1854 Add trailing newline.
1855 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1856 Add trailing newline.
1857 * doc/openacc-runtime-library-routines/accondevice.rst:
1858 Add trailing newline.
1859 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1860 Add trailing newline.
1861 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1862 Add trailing newline.
1863 * doc/openacc-runtime-library-routines/accproflookup.rst:
1864 Add trailing newline.
1865 * doc/openacc-runtime-library-routines/accprofregister.rst:
1866 Add trailing newline.
1867 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1868 Add trailing newline.
1869 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1870 Add trailing newline.
1871 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1872 Add trailing newline.
1873 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1874 Add trailing newline.
1875 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1876 Add trailing newline.
1877 * doc/openacc-runtime-library-routines/accshutdown.rst:
1878 Add trailing newline.
1879 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1880 Add trailing newline.
1881 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1882 Add trailing newline.
1883 * doc/openacc-runtime-library-routines/accupdateself.rst:
1884 Add trailing newline.
1885 * doc/openacc-runtime-library-routines/accwait.rst:
1886 Add trailing newline.
1887 * doc/openacc-runtime-library-routines/accwaitall.rst:
1888 Add trailing newline.
1889 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1890 Add trailing newline.
1891 * doc/openacc-runtime-library-routines/accwaitasync.rst:
1892 Add trailing newline.
1893 * doc/openmp-context-selectors.rst:
1894 Add trailing newline.
1895 * doc/openmp-environment-variables.rst:
1896 Add trailing newline.
1897 * doc/openmp-environment-variables/gompcpuaffinity.rst:
1898 Add trailing newline.
1899 * doc/openmp-environment-variables/gompdebug.rst:
1900 Add trailing newline.
1901 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1902 Add trailing newline.
1903 * doc/openmp-environment-variables/gompspincount.rst:
1904 Add trailing newline.
1905 * doc/openmp-environment-variables/gompstacksize.rst:
1906 Add trailing newline.
1907 * doc/openmp-environment-variables/ompcancellation.rst:
1908 Add trailing newline.
1909 * doc/openmp-environment-variables/ompdefaultdevice.rst:
1910 Add trailing newline.
1911 * doc/openmp-environment-variables/ompdisplayenv.rst:
1912 Add trailing newline.
1913 * doc/openmp-environment-variables/ompdynamic.rst:
1914 Add trailing newline.
1915 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1916 Add trailing newline.
1917 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1918 Add trailing newline.
1919 * doc/openmp-environment-variables/ompnested.rst:
1920 Add trailing newline.
1921 * doc/openmp-environment-variables/ompnumteams.rst:
1922 Add trailing newline.
1923 * doc/openmp-environment-variables/ompnumthreads.rst:
1924 Add trailing newline.
1925 * doc/openmp-environment-variables/ompplaces.rst:
1926 Add trailing newline.
1927 * doc/openmp-environment-variables/ompprocbind.rst:
1928 Add trailing newline.
1929 * doc/openmp-environment-variables/ompschedule.rst:
1930 Add trailing newline.
1931 * doc/openmp-environment-variables/ompstacksize.rst:
1932 Add trailing newline.
1933 * doc/openmp-environment-variables/omptargetoffload.rst:
1934 Add trailing newline.
1935 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1936 Add trailing newline.
1937 * doc/openmp-environment-variables/ompthreadlimit.rst:
1938 Add trailing newline.
1939 * doc/openmp-environment-variables/ompwaitpolicy.rst:
1940 Add trailing newline.
1941 * doc/openmp-implementation-specifics.rst:
1942 Add trailing newline.
1943 * doc/openmp-implementation-status.rst:
1944 Add trailing newline.
1945 * doc/openmp-implementation-status/openmp-45.rst:
1946 Add trailing newline.
1947 * doc/openmp-implementation-status/openmp-50.rst:
1948 Add trailing newline.
1949 * doc/openmp-implementation-status/openmp-51.rst:
1950 Add trailing newline.
1951 * doc/openmp-implementation-status/openmp-52.rst:
1952 Add trailing newline.
1953 * doc/openmp-runtime-library-routines.rst:
1954 Add trailing newline.
1955 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1956 Add trailing newline.
1957 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1958 Add trailing newline.
1959 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1960 Add trailing newline.
1961 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1962 Add trailing newline.
1963 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1964 Add trailing newline.
1965 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1966 Add trailing newline.
1967 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1968 Add trailing newline.
1969 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1970 Add trailing newline.
1971 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1972 Add trailing newline.
1973 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1974 Add trailing newline.
1975 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1976 Add trailing newline.
1977 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1978 Add trailing newline.
1979 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1980 Add trailing newline.
1981 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1982 Add trailing newline.
1983 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1984 Add trailing newline.
1985 * doc/openmp-runtime-library-routines/ompgetnested.rst:
1986 Add trailing newline.
1987 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1988 Add trailing newline.
1989 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1990 Add trailing newline.
1991 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1992 Add trailing newline.
1993 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1994 Add trailing newline.
1995 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1996 Add trailing newline.
1997 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1998 Add trailing newline.
1999 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2000 Add trailing newline.
2001 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2002 Add trailing newline.
2003 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2004 Add trailing newline.
2005 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2006 Add trailing newline.
2007 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2008 Add trailing newline.
2009 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2010 Add trailing newline.
2011 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2012 Add trailing newline.
2013 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2014 Add trailing newline.
2015 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2016 Add trailing newline.
2017 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2018 Add trailing newline.
2019 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2020 Add trailing newline.
2021 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2022 Add trailing newline.
2023 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2024 Add trailing newline.
2025 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2026 Add trailing newline.
2027 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2028 Add trailing newline.
2029 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2030 Add trailing newline.
2031 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2032 Add trailing newline.
2033 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2034 Add trailing newline.
2035 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2036 Add trailing newline.
2037 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2038 Add trailing newline.
2039 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2040 Add trailing newline.
2041 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2042 Add trailing newline.
2043 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2044 Add trailing newline.
2045 * doc/openmp-runtime-library-routines/omptestlock.rst:
2046 Add trailing newline.
2047 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2048 Add trailing newline.
2049 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2050 Add trailing newline.
2051 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2052 Add trailing newline.
2053 * doc/reporting-bugs.rst:
2054 Add trailing newline.
2055 * doc/the-libgomp-abi.rst:
2056 Add trailing newline.
2057 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2058 Add trailing newline.
2059 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2060 Add trailing newline.
2061 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2062 Add trailing newline.
2063 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2064 Add trailing newline.
2065 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2066 Add trailing newline.
2067 * doc/the-libgomp-abi/implementing-for-construct.rst:
2068 Add trailing newline.
2069 * doc/the-libgomp-abi/implementing-master-construct.rst:
2070 Add trailing newline.
2071 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2072 Add trailing newline.
2073 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2074 Add trailing newline.
2075 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2076 Add trailing newline.
2077 * doc/the-libgomp-abi/implementing-private-clause.rst:
2078 Add trailing newline.
2079 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2080 Add trailing newline.
2081 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2082 Add trailing newline.
2083 * doc/the-libgomp-abi/implementing-single-construct.rst:
2084 Add trailing newline.
2085 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2086 Add trailing newline.
2088 2022-11-09 Martin Liska <mliska@suse.cz>
2090 * Makefile.in: Build info pages conditionally.
2092 2022-11-09 Martin Liska <mliska@suse.cz>
2094 * Makefile.in: Support --with-sphinx-build.
2095 * configure.ac: Likewise..
2096 * configure: Regenerate.
2098 2022-11-09 Martin Liska <mliska@suse.cz>
2100 * libgomp.texi: Removed.
2102 2022-11-09 Martin Liska <mliska@suse.cz>
2104 * Makefile.in: Support Sphinx based documentation.
2106 2022-11-09 Martin Liska <mliska@suse.cz>
2108 * doc/amd-radeon-gcn.rst: New file.
2109 * doc/conf.py: New file.
2110 * doc/copyright.rst: New file.
2111 * doc/cuda-streams-usage.rst: New file.
2112 * doc/enabling-openacc.rst: New file.
2113 * doc/enabling-openmp.rst: New file.
2114 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2115 * doc/first-invocation-openacc-library-api.rst: New file.
2116 * doc/funding.rst: New file.
2117 * doc/general-public-license-3.rst: New file.
2118 * doc/gnu-free-documentation-license.rst: New file.
2119 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2120 * doc/index.rst: New file.
2121 * doc/indices-and-tables.rst: New file.
2122 * doc/introduction.rst: New file.
2123 * doc/memory-allocation-with-libmemkind.rst: New file.
2124 * doc/nvptx.rst: New file.
2125 * doc/offload-target-specifics.rst: New file.
2126 * doc/openacc-environment-variables.rst: New file.
2127 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2128 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2129 * doc/openacc-environment-variables/accproflib.rst: New file.
2130 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2131 * doc/openacc-introduction.rst: New file.
2132 * doc/openacc-library-and-environment-variables.rst: New file.
2133 * doc/openacc-library-interoperability.rst: New file.
2134 * doc/openacc-profiling-interface.rst: New file.
2135 * doc/openacc-runtime-library-routines.rst: New file.
2136 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2137 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2138 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2139 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2140 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2141 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2142 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2143 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2144 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2145 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2146 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2147 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2148 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2149 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2150 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2151 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2152 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2153 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2154 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2155 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2156 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2157 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2158 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2159 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2160 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2161 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2162 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2163 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2164 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2165 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2166 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2167 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2168 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2169 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2170 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2171 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2172 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2173 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2174 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2175 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2176 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2177 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2178 * doc/openmp-context-selectors.rst: New file.
2179 * doc/openmp-environment-variables.rst: New file.
2180 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2181 * doc/openmp-environment-variables/gompdebug.rst: New file.
2182 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2183 * doc/openmp-environment-variables/gompspincount.rst: New file.
2184 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2185 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2186 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2187 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2188 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2189 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2190 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2191 * doc/openmp-environment-variables/ompnested.rst: New file.
2192 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2193 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2194 * doc/openmp-environment-variables/ompplaces.rst: New file.
2195 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2196 * doc/openmp-environment-variables/ompschedule.rst: New file.
2197 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2198 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2199 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2200 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2201 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2202 * doc/openmp-implementation-specifics.rst: New file.
2203 * doc/openmp-implementation-status.rst: New file.
2204 * doc/openmp-implementation-status/openmp-45.rst: New file.
2205 * doc/openmp-implementation-status/openmp-50.rst: New file.
2206 * doc/openmp-implementation-status/openmp-51.rst: New file.
2207 * doc/openmp-implementation-status/openmp-52.rst: New file.
2208 * doc/openmp-runtime-library-routines.rst: New file.
2209 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2210 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2211 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2212 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2213 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2214 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2215 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2216 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2217 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2218 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2219 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2220 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2221 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2222 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2223 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2224 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2225 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2226 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2227 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2228 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2229 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2230 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2231 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2232 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2233 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2234 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2235 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2236 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2237 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2238 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2239 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2240 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2241 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2242 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2243 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2244 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2245 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2246 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2247 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2248 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2249 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2250 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2251 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2252 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2253 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2254 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2255 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2256 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2257 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2258 * doc/reporting-bugs.rst: New file.
2259 * doc/the-libgomp-abi.rst: New file.
2260 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2261 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2262 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2263 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2265 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2266 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2267 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2268 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2269 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2270 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2271 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2272 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2273 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2274 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2275 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2277 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2279 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2280 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2282 * plugin/configfrag.ac <enable_offload_targets>
2283 [*-intelmic-* | *-intelmicemul-*]: Remove.
2284 * configure: Regenerate.
2285 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2287 (offload_target_to_openacc_device_type)
2288 [$offload_target = *-intelmic*]: Remove.
2289 (check_effective_target_offload_device_intel_mic)
2290 (check_effective_target_offload_device_any_intel_mic): Remove.
2291 * testsuite/libgomp.c-c++-common/on_device_arch.h
2292 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2293 (any_device_arch_intel_mic): Remove.
2294 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2295 'offload_device_any_intel_mic' XFAIL.
2296 * testsuite/libgomp.fortran/target10.f90: Likewise.
2298 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2300 * testsuite/libgomp.fortran/target-11.f90: New test.
2301 * testsuite/libgomp.fortran/target-13.f90: New test.
2303 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2307 * oacc-mem.c (goacc_enter_data_internal): Support
2308 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2309 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2311 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2313 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2316 * oacc-mem.c (goacc_enter_data_internal): Support
2317 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2318 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2320 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2323 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2325 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2328 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2330 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2333 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2334 Thomas Schwinge <thomas@codesourcery.com>
2336 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2338 2022-10-28 Julian Brown <julian@codesourcery.com>
2339 Thomas Schwinge <thomas@codesourcery.com>
2342 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2343 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2344 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2345 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2346 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2348 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2350 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2351 'ptx_dev->rev_data'.
2353 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2355 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2356 'static' for this variable.
2357 * config/nvptx/libgomp-nvptx.h: New file.
2358 * config/nvptx/target.c: Include it.
2359 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2360 (GOMP_REV_OFFLOAD_VAR): Declare var.
2361 (GOMP_target_ext): Handle reverse offload.
2362 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2363 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2364 * target.c (gomp_target_rev): ... this new stub function.
2365 * libgomp.h (gomp_target_rev): Declare.
2366 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2367 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2368 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2369 (struct ptx_device): Add rev_data member.
2370 (nvptx_open_device): Remove async_engines query, last used in
2371 r10-304-g1f4c5b9b; add unified-address assert check.
2372 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2374 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2375 offload functions exist. Make offload var available
2377 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2378 (GOMP_OFFLOAD_run): Handle reverse offload.
2380 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2382 PR tree-optimization/107195
2384 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2387 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2389 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2391 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2392 on_device_arch_gcn): New.
2393 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2394 requires-4.c but using heap-allocated memory.
2396 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2399 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2401 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2403 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2404 '-foffload-options' syntax.
2406 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2408 * testsuite/libgomp.fortran/task-7.f90: New test.
2409 * testsuite/libgomp.fortran/task-8.f90: New test.
2410 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2411 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2412 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2413 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2414 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2416 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2418 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2419 in deprecation bullet.
2421 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2423 * omp.h.in (omp_in_explicit_task): Declare.
2424 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2425 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2426 * libgomp.map (OMP_5.2): New symbol version, export
2427 omp_in_explicit_task and omp_in_explicit_task_.
2428 * task.c (omp_in_explicit_task): New function.
2429 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2430 (omp_in_explicit_task_): New function.
2431 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2432 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2433 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2434 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2436 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2438 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2439 from within explicit task.
2440 * target.c (GOMP_target_ext): Likewise.
2441 * testsuite/libgomp.c/task-7.c: New test.
2442 * testsuite/libgomp.c/task-8.c: New test.
2443 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2444 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2446 2022-10-12 Martin Liska <mliska@suse.cz>
2448 * configure: Regenerate.
2450 2022-10-11 Olivier Hainque <hainque@adacore.com>
2451 Olivier Hainque <hainque@adacore.com>
2453 * configure: Regenerate.
2455 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2457 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2459 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2461 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2462 Mark as implemented.
2464 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2467 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2469 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2471 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2472 for C/C++. Remove duplicated 'begin declare target' entry.
2474 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2477 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2479 2022-09-14 Julian Brown <julian@codesourcery.com>
2481 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2482 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2483 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2484 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2485 test to here, make "run" test.
2487 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2490 * env.c (get_icv_member_addr): Cast false to void * before assigning
2491 it to icv_addr[1], and comment the whole assignment out.
2493 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2495 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2498 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2500 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2501 that reverse offload requires >= -march=sm_35.
2502 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2504 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2505 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2506 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2507 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2508 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2510 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2512 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2513 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2515 2022-09-12 Jakub Jelinek <jakub@redhat.com>
2518 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2519 (main): Avoid tests for which corresponding non-_ALL suffixed variable
2520 is in the environment, or for OMP_NUM_TEAMS on the device
2521 OMP_NUM_TEAMS_DEV_?.
2523 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
2525 * env.c (initialize_env): Include libiberty environ.h.
2527 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2529 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2530 function address table '$offload_func_table' if rev_fn_table
2533 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2535 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2536 .offload_func_table to populate rev_fn_table when requested.
2538 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
2540 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2541 'uint64_t **rev_fn_table' argument.
2542 * oacc-host.c (host_load_image): Likewise.
2543 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2545 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2546 * target.c (gomp_load_image_to_device): Update call but pass
2549 2022-09-09 Jakub Jelinek <jakub@redhat.com>
2552 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2553 char * for dest[1] initialization from params[1]. Formatting fixes.
2555 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2558 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2560 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
2562 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2563 section; move OpenMP Context Selectors from ...
2564 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2567 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
2569 * config/gcn/icv-device.c (omp_get_default_device): Return device-
2571 (omp_get_max_teams): Added for GCN devices.
2572 (omp_set_num_teams): Likewise.
2574 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2576 (omp_get_max_teams): Added for NVPTX devices.
2577 (omp_set_num_teams): Likewise.
2579 * env.c (struct gomp_icv_list): New struct to store entries of initial
2581 (struct gomp_offload_icv_list): New struct to store entries of device-
2582 specific ICV values that are copied to the device and back.
2583 (struct gomp_default_icv_values): New struct to store default values of
2584 ICVs according to the OpenMP standard.
2585 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2586 (print_env_var_error): Function that prints an error for invalid values
2588 (parse_unsigned_long_1): Removed getenv. Generalized.
2589 (parse_unsigned_long): Likewise.
2590 (parse_int_1): Likewise.
2591 (parse_int): Likewise.
2592 (parse_int_secure): Likewise.
2593 (parse_unsigned_long_list): Likewise.
2594 (parse_target_offload): Likewise.
2595 (parse_bind_var): Likewise.
2596 (parse_stacksize): Likewise.
2597 (parse_boolean): Likewise.
2598 (parse_wait_policy): Likewise.
2599 (parse_allocator): Likewise.
2600 (omp_display_env): Extended to output different variants of environment
2602 (print_schedule): New helper function for omp_display_env which prints
2603 the values of run_sched_var.
2604 (print_proc_bind): New helper function for omp_display_env which prints
2605 the values of proc_bind_var.
2606 (enum gomp_parse_type): Collection of types used for parsing environment
2608 (ENTRY): Preprocess string lengths of environment variables.
2609 (OMP_VAR_CNT): Preprocess table size.
2610 (OMP_HOST_VAR_CNT): Likewise.
2611 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2613 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2614 (gomp_set_icv_flag): Sets a flag for a particular ICV.
2615 (print_device_specific_icvs): New helper function for omp_display_env to
2616 print device specific ICV values.
2617 (get_device_num): New helper function for parse_device_specific.
2618 Extracts the device number from an environment variable name.
2619 (get_icv_member_addr): Gets the memory address for a particular member
2621 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2622 (initialize_icvs): New function to initialize a gomp_initial_icvs
2624 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2625 (startswith): Checks if a string starts with a given prefix.
2626 (initialize_env): Extended to parse the new syntax of environment
2628 * icv-device.c (omp_get_max_teams): Added.
2630 (omp_set_num_teams): Likewise.
2631 * icv.c (omp_set_num_teams): Moved to icv-device.c.
2632 (omp_get_max_teams): Likewise.
2634 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2635 (GOMP_ADDITIONAL_ICVS): New target-side struct that
2636 holds the designated ICVs of the target device.
2637 * libgomp.h (enum gomp_icvs): Collection of ICVs.
2638 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2640 (enum gomp_env_suffix): Collection of possible suffixes of environment
2642 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2644 (struct gomp_default_icv):New struct to hold ICVs for which we need
2645 to store initial values.
2646 (struct gomp_icv_list): Definition of a linked list that is used for
2647 storing ICVs for the devices and also for _DEV, _ALL, and without
2649 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2651 (struct gomp_offload_icv_list): Definition of a linked list that holds
2652 device-specific ICVs that are copied to devices.
2653 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2654 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2655 * libgomp.texi: Updated.
2656 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2657 further ICVs from the offload image.
2658 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2659 * target.c (gomp_get_offload_icv_item): Get a list item of
2660 gomp_offload_icv_list.
2661 (get_gomp_offload_icvs): New. Returns the ICV values
2662 depending on the device num and the variable hierarchy.
2663 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2664 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2665 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2666 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2667 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2668 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2669 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2671 2022-09-08 Jakub Jelinek <jakub@redhat.com>
2673 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2675 * testsuite/libgomp.c/doacross-4.c: New test.
2676 * testsuite/libgomp.c/doacross-5.c: New test.
2677 * testsuite/libgomp.c/doacross-6.c: New test.
2678 * testsuite/libgomp.c/doacross-7.c: New test.
2680 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
2682 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2684 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
2686 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2687 refer to 'requires'.
2688 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2689 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2690 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2691 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2693 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2695 PR middle-end/106548
2696 * testsuite/libgomp.c/linear-2.c: New test.
2698 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
2700 * splay-tree.h: Fix splay_* macro unsetting if
2701 splay_tree_prefix is defined.
2703 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
2705 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2707 2022-07-29 Jakub Jelinek <jakub@redhat.com>
2709 PR middle-end/106449
2710 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2712 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
2714 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2716 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
2718 PR middle-end/101551
2719 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2720 'offloading_enabled' diagnostics issue.
2722 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
2724 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2725 '_Pragma' diagnostics verification.
2727 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
2729 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2730 improved warning locations.
2731 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2733 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
2735 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2736 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2737 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2738 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2739 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2741 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2743 * target.c (GOMP_offload_register, GOMP_offload_unregister):
2744 Denote as legacy entry points.
2745 * testsuite/lib/libgomp.exp
2746 (check_effective_target_offload_target_any): New proc.
2747 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2748 'offload_target_any'.
2749 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2750 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2751 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2753 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2755 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2756 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2758 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
2760 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2762 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
2764 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2766 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
2768 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2769 Jakub Jelinek <jakub@redhat.com>
2771 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2773 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
2774 Chung-Lin Tang <cltang@codesourcery.com>
2775 Thomas Schwinge <thomas@codesourcery.com>
2777 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2778 omp_requires_mask arg.
2779 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2780 return -1 when device available but omp_requires_mask != 0.
2781 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2782 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2784 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2785 goacc_attach_host_thread_to_device, acc_get_num_devices,
2786 acc_set_device_num, get_property_any): Likewise.
2787 * target.c (omp_requires_mask): New global var.
2788 (gomp_requires_to_name): New.
2789 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2790 (gomp_target_init): Handle omp_requires_mask.
2791 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2792 (OpenMP 5.1): Add a missed item.
2793 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2794 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2795 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2796 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2797 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2798 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2799 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2800 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2801 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2802 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2803 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2804 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2805 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2806 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2807 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2808 * testsuite/libgomp.fortran/requires-1.f90: New test.
2810 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
2812 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2813 with fromto as implemented.
2815 2022-06-28 Martin Liska <mliska@suse.cz>
2817 * acinclude.m4: Fix typo in mold linker detection.
2818 * Makefile.in: Regenerate.
2819 * configure: Regenerate.
2821 2022-06-21 Jakub Jelinek <jakub@redhat.com>
2822 Paul Iannetta <piannetta@kalrayinc.com>
2825 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2827 2022-06-17 Martin Liska <mliska@suse.cz>
2829 * libgomp.texi: Add table header for new features of
2832 2022-06-15 Jakub Jelinek <jakub@redhat.com>
2834 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2835 q to ddress of an automatic variable. Use -5 instead of -1 in
2836 omp_get_mapped_ptr call. Add test with omp_initial_device.
2837 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2838 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
2839 Renumber stop arguments afterwards.
2841 2022-06-13 Jakub Jelinek <jakub@redhat.com>
2843 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2844 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2846 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2847 * target.c (resolve_device): Add remapped argument, handle
2848 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2849 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2850 if remapped, otherwise treat omp_initial_device that way. For
2851 omp_invalid_device, always emit gomp_fatal, even when
2852 OMP_TARGET_OFFLOAD isn't mandatory.
2853 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2854 GOMP_target_update, GOMP_target_update_ext,
2855 GOMP_target_enter_exit_data): Pass true as remapped argument to
2857 (omp_target_alloc, omp_target_free, omp_target_is_present,
2858 omp_target_memcpy_check, omp_target_associate_ptr,
2859 omp_target_disassociate_ptr, omp_get_mapped_ptr,
2860 omp_target_is_accessible): Pass false as remapped argument to
2861 resolve_device. Treat omp_initial_device the same as
2862 gomp_get_num_devices (). Don't bypass resolve_device calls if
2863 device_num is negative.
2864 (omp_pause_resource): Treat omp_initial_device the same as
2865 gomp_get_num_devices (). Call resolve_device.
2866 * icv-device.c (omp_set_default_device): Always set to device_num
2867 even when it is negative.
2868 * libgomp.texi: Document that Conforming device numbers,
2869 omp_initial_device and omp_invalid_device is implemented.
2870 * testsuite/libgomp.c/target-41.c (main): Add test with
2872 * testsuite/libgomp.c/target-45.c: New test.
2873 * testsuite/libgomp.c/target-46.c: New test.
2874 * testsuite/libgomp.c/target-47.c: New test.
2875 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2876 test with omp_initial_device. Use -5 instead of -1 for negative value
2878 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2879 Likewise. Reorder stop numbers.
2881 2022-06-10 Jakub Jelinek <jakub@redhat.com>
2883 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2884 rather than "libmemkind.so".
2886 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
2888 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2889 * plugin/configfrag.ac (--with-cuda-driver)
2890 (--with-cuda-driver-include, --with-cuda-driver-lib)
2891 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2892 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2894 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2895 (cuda_driver_lib): Remove.
2896 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2897 * Makefile.in: Regenerate.
2898 * configure: Likewise.
2899 * testsuite/Makefile.in: Likewise.
2901 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2903 * config/linux/allocator.c: Fix up #include directive.
2905 2022-06-09 Jakub Jelinek <jakub@redhat.com>
2907 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2908 (enum gomp_memkind_kind): New type.
2909 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2911 (struct gomp_memkind_data): New type.
2912 (memkind_data, memkind_data_once): New variables.
2913 (gomp_init_memkind, gomp_get_memkind): New functions.
2914 (omp_init_allocator): Initialize data.memkind, don't fail for
2915 omp_high_bw_mem_space if libmemkind supports it.
2916 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2917 memkind support of LIBGOMP_USE_MEMKIND is defined.
2918 * config/linux/allocator.c: New file.
2920 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
2922 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2923 * testsuite/libgomp.fortran/scope-2.f90: New test.
2925 2022-06-02 David Malcolm <dmalcolm@redhat.com>
2927 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2929 2022-05-31 Jakub Jelinek <jakub@redhat.com>
2931 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2932 scope construct with allocate clause.
2933 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2934 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2936 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
2938 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2939 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2940 explicit 'to' and 'enter' clause.
2941 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2943 2022-05-28 Jakub Jelinek <jakub@redhat.com>
2946 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2947 defined(HAVE__ALIGNED_MALLOC) case.
2948 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2949 handling as last option before fallback instead of first.
2950 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2953 2022-05-27 Jakub Jelinek <jakub@redhat.com>
2955 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2957 * testsuite/libgomp.c/target-41.c: Likewise.
2959 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
2961 * libgomp.texi (Other new OpenMP 5.1 features): Add
2962 'begin declare target'.
2963 (Other new OpenMP 5.2 features): New.
2965 2022-05-25 Jakub Jelinek <jakub@redhat.com>
2967 * task.c (gomp_task_run_post_handle_dependers): If empty_task
2968 is the last task taskwait depend depends on, wake it up.
2969 Similarly if it is the last child of a taskgroup, use atomic
2970 store instead of decrement and awak taskgroup wait if any.
2971 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2973 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
2975 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2976 EF_AMDGPU_MACH_AMDGCN_GFX90a.
2977 (gcn_gfx90a_s): New.
2978 (isa_hsa_name): Support gfx90a.
2979 (isa_code): Likewise.
2981 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
2984 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2985 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2987 2022-05-24 Jakub Jelinek <jakub@redhat.com>
2990 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2991 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2992 * task.c (empty_task): New function.
2993 (gomp_task_run_post_handle_depend_hash): Declare earlier.
2994 (gomp_task_run_post_handle_depend): Declare.
2995 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2997 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2998 (GOMP_taskwait_depend_nowait): New function.
2999 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3001 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3004 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3005 Support attach for GOMP_MAP_FIRSTPRIVATE.
3006 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3007 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3008 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3010 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3012 * libgomp.map: Added omp_target_memcpy_async and
3013 omp_target_memcpy_rect_async.
3014 * libgomp.texi: Both functions are now supported.
3015 * omp.h.in: Added omp_target_memcpy_async and
3016 omp_target_memcpy_rect_async.
3017 * omp_lib.f90.in: Added interfaces for both new functions.
3018 * omp_lib.h.in: Likewise.
3019 * target.c (ialias_redirect): Added for GOMP_task.
3020 (omp_target_memcpy): Restructured into check and copy part.
3021 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3022 omp_target_memcpy_async that checks requirements.
3023 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3024 omp_target_memcpy_async that performs the memcpy.
3025 (omp_target_memcpy_async_helper): New helper function that is used in
3026 omp_target_memcpy_async for the asynchronous task.
3027 (omp_target_memcpy_async): Added.
3028 (omp_target_memcpy_rect): Restructured into check and copy part.
3029 (omp_target_memcpy_rect_check): New helper function for
3030 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3032 (omp_target_memcpy_rect_copy): New helper function for
3033 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3035 (omp_target_memcpy_rect_async_helper): New helper function that is used
3036 in omp_target_memcpy_rect_async for the asynchronous task.
3037 (omp_target_memcpy_rect_async): Added.
3038 * task.c (ialias): Added for GOMP_task.
3039 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3040 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3041 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3042 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3043 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3044 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3045 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3046 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3048 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3050 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3051 (OpenMP Context Selectors): Add missing comma.
3052 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3053 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3054 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3055 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3057 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3059 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3060 comment for omp_display_env feature.
3062 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3064 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3065 to document OpenMP context selectors.
3067 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3069 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3070 from bool to unsigned char.
3071 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3072 Ignore dependencies where
3073 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3074 rather than just task->depend[i].is_in && ent->is_in. Remember
3075 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3077 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3078 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3079 rather than just elem.is_in && ent->is_in.
3080 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3081 inoutset depend-kind.
3082 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3083 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3084 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3086 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3088 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3090 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3092 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3093 * testsuite/libgomp.fortran/depend-5.f90: New test.
3094 * testsuite/libgomp.fortran/depend-6.f90: New test.
3095 * testsuite/libgomp.fortran/depend-7.f90: New test.
3097 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3099 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3100 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3101 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3103 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3105 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3107 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3109 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3111 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3113 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3114 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3115 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3116 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3117 * Makefile.in: Regenerate.
3119 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3121 * Makefile.am (libgomp_la_LIBADD): Initialize.
3122 * plugin/configfrag.ac (DL_LIBS): New.
3123 (PLUGIN_GCN_LIBS): Remove.
3124 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3125 * plugin/Makefrag.am (libgomp_la_LIBADD)
3126 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3127 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3128 * Makefile.in: Regenerate.
3129 * config.h.in: Likewise.
3130 * configure: Likewise.
3131 * testsuite/Makefile.in: Likewise.
3133 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3135 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3136 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3137 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3138 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3139 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3140 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3141 * Makefile.in: Regenerate.
3142 * config.h.in: Likewise.
3143 * configure: Likewise.
3145 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3147 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3148 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3149 * Makefile.in: Regenerate.
3150 * config.h.in: Likewise.
3151 * configure: Likewise.
3152 * testsuite/Makefile.in: Likewise.
3154 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3156 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3157 * task.c (gomp_init_task): Initialize depend_all_memory.
3158 (gomp_task_handle_depend): Handle omp_all_memory.
3159 (gomp_task_run_post_handle_depend_hash): Clear
3160 parent->depend_all_memory if equal to current task.
3161 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3162 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3163 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3164 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3166 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3168 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3169 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3170 * Makefile.in: Regenerate.
3171 * configure: Likewise.
3172 * testsuite/Makefile.in: Likewise.
3174 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3176 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3177 consider 'PLUGIN_GCN_CPPFLAGS'.
3178 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3179 'PLUGIN_GCN_LDFLAGS'.
3180 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3182 * Makefile.in: Regenerate.
3183 * configure: Likewise.
3184 * testsuite/Makefile.in: Likewise.
3186 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3188 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3189 (HSA_RUNTIME_LDFLAGS): Remove.
3190 * configure: Regenerate.
3192 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3194 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3195 'append always_ld_library_path ":$hsa_runtime_lib"'.
3196 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3198 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3200 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3201 multi-device testing.
3203 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3205 * libgomp.map: Added omp_target_is_accessible.
3206 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3207 * omp.h.in: Added omp_target_is_accessible.
3208 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3209 * omp_lib.h.in: Likewise.
3210 * target.c (omp_target_is_accessible): Added implementation of
3211 omp_target_is_accessible.
3212 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3213 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3215 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3217 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3219 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3221 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3223 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3225 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3227 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3229 * libgomp.map: Added omp_get_mapped_ptr.
3230 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3231 * omp.h.in: Added omp_get_mapped_ptr.
3232 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3233 * omp_lib.h.in: Likewise.
3234 * target.c (omp_get_mapped_ptr): Added implementation of
3236 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3237 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3238 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3239 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3240 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3241 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3242 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3243 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3245 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3248 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3249 privatization scanning. For GCN offloading compilation, raise
3250 '-mgang-private-size'.
3252 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3255 * work.c (gomp_init_work_share): Don't mask of adjustment for
3256 dynamic long long realignment if struct gomp_work_share has smaller
3257 alignof than long long.
3258 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3259 struct gomp_work_share has smaller alignof than long long or if
3260 sizeof (struct gomp_work_share) is smaller than
3261 INLINE_ORDERED_TEAM_IDS_OFF.
3262 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3263 * sections.c (GOMP_sections2_start): Likewise.
3265 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3266 Thomas Schwinge <thomas@codesourcery.com>
3269 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3271 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3273 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3275 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3277 * plugin/cuda/cuda.h: Remove file.
3278 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3279 "cuda/cuda.h" instead of <cuda.h>.
3280 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3281 'PLUGIN_NVPTX_CPPFLAGS'.
3282 * configure: Regenerate.
3284 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3286 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3288 2022-04-04 Tom de Vries <tdevries@suse.de>
3290 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3291 on_device_arch_nvptx instead of offload_target_nvptx.
3292 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3294 2022-04-01 Tom de Vries <tdevries@suse.de>
3296 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3298 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3300 2022-04-01 Tom de Vries <tdevries@suse.de>
3302 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3305 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3306 Lulu Cheng <chenglulu@loongson.cn>
3308 * configure.tgt: Add LoongArch triplet.
3310 2022-03-28 Tom de Vries <tdevries@suse.de>
3312 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3313 instead of /libexec/.
3314 * configure: Regenerate.
3316 2022-03-25 Tom de Vries <tdevries@suse.de>
3319 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3321 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3322 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3324 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3326 PR middle-end/104285
3327 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3328 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3329 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3330 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3331 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3332 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3334 2022-03-22 Tom de Vries <tdevries@suse.de>
3338 * testsuite/libgomp.c/pr104783-2.c: New test.
3340 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3343 * testsuite/libgomp.fortran/associate4.f90: New test.
3345 2022-03-18 Tom de Vries <tdevries@suse.de>
3348 * testsuite/libgomp.c/pr104952-1.c: New test.
3349 * testsuite/libgomp.c/pr104952-2.c: New test.
3351 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3353 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3354 variable next to pl variable.
3356 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3358 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3360 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3361 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3363 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3366 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3367 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3369 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3371 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3372 omp_set_max_active_levels.
3373 * testsuite/libgomp.fortran/icv-8.f90: New test.
3375 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3378 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3380 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3382 * libgomp.texi: Fix typo.
3384 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3386 PR middle-end/100280
3387 PR middle-end/104892
3388 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3389 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3390 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3392 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3394 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3395 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3396 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3399 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3401 PR middle-end/104892
3402 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3404 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3405 enable '--param=openacc-kernels=decompose' and adjust.
3406 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3408 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3409 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3412 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3415 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3416 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3417 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3418 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3420 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3422 PR middle-end/100280
3423 PR middle-end/104086
3424 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3426 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3428 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3430 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3433 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3435 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3436 trait. Test last index in w and v array. Remove redundant
3437 assignment to V(1). Move alignment checks at the end of
3440 2022-03-10 Tom de Vries <tdevries@suse.de>
3442 * testsuite/libgomp.c/pr104783.c: New test.
3444 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3447 PR middle-end/102330
3448 PR middle-end/104774
3449 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3451 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3453 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3455 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3457 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3459 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3461 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3463 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3465 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3467 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3469 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3471 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3473 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3475 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3477 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3478 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3479 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3481 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3484 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3485 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3486 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3487 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3489 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3492 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3493 expected diagnostics.
3495 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3497 PR middle-end/104784
3498 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3499 Test with '--param=openacc-kernels=decompose'.
3500 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3502 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3504 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3506 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3508 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3510 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3512 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3514 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3516 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3518 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3520 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3522 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3524 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3526 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3528 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3530 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3532 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3534 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3536 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3538 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3540 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3542 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3544 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3546 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3548 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3550 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3552 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3554 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3556 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3558 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3560 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3562 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3565 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3567 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3568 Test '-fopt-info-omp-all'.
3569 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3571 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3573 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3575 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3577 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3579 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3581 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3583 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3591 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3593 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3595 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3605 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3607 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3609 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3611 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3613 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3615 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3617 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3619 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3621 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3623 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3625 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3627 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3629 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3631 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3634 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3636 PR middle-end/100280
3637 PR middle-end/104132
3638 PR middle-end/104133
3639 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3642 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3644 PR middle-end/100280
3645 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3646 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3649 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3651 PR middle-end/100280
3652 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3653 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3656 2022-02-28 Tom de Vries <tdevries@suse.de>
3658 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3659 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3660 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3661 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3662 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3663 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3665 2022-02-24 Tom de Vries <tdevries@suse.de>
3667 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3668 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3669 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3670 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3671 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3672 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3673 * testsuite/libgomp.c/declare-variant-3.h: New header file.
3675 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
3677 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3678 gang-redundant execution.
3680 2022-02-22 Tom de Vries <tdevries@suse.de>
3683 * config/nvptx/bar.c (generation_to_barrier): New function, copied
3684 from config/rtems/bar.c.
3685 (futex_wait, futex_wake): New function.
3686 (do_spin, do_wait): New function, copied from config/linux/wait.h.
3687 (gomp_barrier_wait_end, gomp_barrier_wait_last)
3688 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3689 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3690 and replace with include of config/linux/bar.c.
3691 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3692 (gomp_barrier_init): Init new fields.
3693 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3695 * testsuite/libgomp.c/pr99555-1.c: Same.
3696 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3698 2022-02-22 Tom de Vries <tdevries@suse.de>
3701 * testsuite/libgomp.c++/pr96390.C: Add additional-option
3702 -foffload=-Wa,--verify for nvptx.
3703 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3705 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
3707 * testsuite/libgomp.fortran/depend-4.f90: New test.
3709 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
3712 * testsuite/libgomp.c++/target-virtual-1.C: New test.
3714 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
3716 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3717 * target.c (copy_firstprivate_data): Copy only if host address is not
3719 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3720 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3721 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3722 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3723 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3724 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3725 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3726 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3727 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3728 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3730 2022-02-08 Jakub Jelinek <jakub@redhat.com>
3733 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3735 * testsuite/libgomp.c/pr104385.c: New test.
3737 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3739 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3740 STOP of previous commit.
3742 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
3744 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3745 from is_64bit_aligned_.
3746 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3747 and use it, more implicit none, remove unused argument.
3749 2022-02-03 David Seifert <soap@gentoo.org>
3750 Jakub Jelinek <jakub@redhat.com>
3752 * configure.ac: Support --disable-werror.
3753 * configure: Regenerate.
3755 2022-02-01 Tom de Vries <tdevries@suse.de>
3757 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3759 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3760 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3762 2022-02-01 Tom de Vries <tdevries@suse.de>
3764 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3765 num_workers for nvidia accelerator to fix libgomp error 'insufficient
3767 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3769 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3771 2022-02-01 Tom de Vries <tdevries@suse.de>
3773 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3775 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3777 2022-01-31 Martin Liska <mliska@suse.cz>
3779 * acinclude.m4: Detect *_ld_is_mold and use it.
3780 * configure: Regenerate.
3782 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
3784 * libgomp.texi (OpenMP 5.0): Update implementation status.
3786 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
3788 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3789 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3790 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3791 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3792 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3793 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3794 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3795 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3796 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3797 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3798 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3799 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3800 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3801 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3802 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3804 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
3806 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3807 "static") to make the device num available in the offload image.
3809 2022-01-19 Martin Liska <mliska@suse.cz>
3810 Thomas Schwinge <thomas@codesourcery.com>
3812 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3814 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3815 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3818 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3819 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3820 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3821 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3823 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3825 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3827 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3829 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3831 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3833 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3834 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3835 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3837 2022-01-18 Martin Liska <mliska@suse.cz>
3839 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3841 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3842 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3843 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3844 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3845 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3846 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3847 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3848 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3849 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3850 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3851 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3852 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3853 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3854 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3855 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3857 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
3859 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3860 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3861 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3863 2022-01-17 Julian Brown <julian@codesourcery.com>
3864 Thomas Schwinge <thomas@codesourcery.com>
3866 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3867 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3868 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3870 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
3871 Andrew Stubbs <ams@codesourcery.com>
3873 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3874 the number of teams and threads if necessary.
3875 (gcn_exec): Automatically set the number of gangs and workers if
3878 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
3880 * testsuite/libgomp.fortran/allocate-1.c: New test.
3881 * testsuite/libgomp.fortran/allocate-1.f90: New test.
3882 * libgomp.texi: Remove string that says that allocate clause
3883 support is for C/C++ only.
3885 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3887 * testsuite/libgomp.c-c++-common/on_device_arch.h
3888 (any_device_arch, any_device_arch_intel_mic): New.
3889 * testsuite/lib/libgomp.exp
3890 (check_effective_target_offload_device_any_intel_mic): New.
3891 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3892 * testsuite/libgomp.fortran/target10.f90: Likewise.
3894 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3896 PR tree-optimization/102192
3897 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3898 '-Wuninitialized' diagnostics.
3900 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3902 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3903 current '-Wuninitialized' diagnostics.
3904 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3905 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3906 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3907 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3908 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3909 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3910 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3911 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3912 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3913 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3914 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3917 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3919 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3920 for 'offload_device_intel_mic'.
3922 2022-01-13 Julian Brown <julian@codesourcery.com>
3923 Thomas Schwinge <thomas@codesourcery.com>
3925 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3926 offloading execution XFAIL.
3928 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3930 PR middle-end/100280
3931 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3933 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3934 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3937 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
3939 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3941 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3943 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3944 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3945 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3946 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3947 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3949 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3950 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3951 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3952 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3954 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
3956 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3957 * testsuite/libgomp.fortran/target10.f90: Likewise.
3959 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
3961 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3962 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3963 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3965 2022-01-03 Jakub Jelinek <jakub@redhat.com>
3967 * libgomp.texi: Bump @copying's copyright year.
3969 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
3971 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3972 * testsuite/libgomp.fortran/atomic-19.f90: New test.
3974 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
3976 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3977 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3978 table, not individual symbols.
3980 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
3982 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3983 "target offload_device_nonshared_as"
3984 * testsuite/libgomp.c++/target-this-3.C: Likewise.
3985 * testsuite/libgomp.c++/target-this-4.C: Likewise.
3987 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
3989 * target.c (gomp_map_vars_existing): Make sure attached pointer is
3990 not overwritten during cross-host/device copying.
3991 (gomp_update): Likewise.
3992 (gomp_exit_data): Likewise.
3993 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3994 * testsuite/libgomp.c++/target-12.C: Likewise.
3995 * testsuite/libgomp.c++/target-15.C: Likewise.
3996 * testsuite/libgomp.c++/target-16.C: Likewise.
3997 * testsuite/libgomp.c++/target-17.C: Likewise.
3998 * testsuite/libgomp.c++/target-21.C: Likewise.
3999 * testsuite/libgomp.c++/target-23.C: Likewise.
4000 * testsuite/libgomp.c/target-23.c: Likewise.
4001 * testsuite/libgomp.c/target-29.c: Likewise.
4002 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4004 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4007 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4008 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4009 (goacc_enter_data_internal): Likewise.
4010 * target.c (gomp_map_vars_existing): Update assert condition to
4011 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4012 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4013 parameter, add support for mapping a pointer with NULL target.
4014 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4015 parameter, add support for attaching a pointer with NULL target.
4016 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4017 gomp_attach_pointer, add handling for
4018 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4019 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4020 * testsuite/libgomp.c++/target-23.C: New testcase.
4021 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4022 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4023 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4024 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4025 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4026 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4027 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4029 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4031 * libgomp.texi (OpenMP 5.1): Update status.
4033 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4035 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4037 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4040 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4041 * testsuite/libgomp.fortran/pr90030.f90: New test.
4043 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4044 Thomas Schwinge <thomas@codesourcery.com>
4046 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4049 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4050 Thomas Schwinge <thomas@codesourcery.com>
4052 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4055 2021-11-29 Richard Biener <rguenther@suse.de>
4057 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4060 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4062 PR middle-end/103384
4063 * testsuite/libgomp.c/declare-variant-2.c: New test.
4065 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4067 * alloc.c (gomp_aligned_alloc): Fix typo.
4069 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4072 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4073 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4074 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4075 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4076 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4077 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4078 gomp_aligned_alloc instead of team_malloc.
4080 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4083 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4084 memalign over posix_memalign over aligned_alloc over fallback
4085 with malloc instead of aligned_alloc over _aligned_alloc over
4086 posix_memalign over memalign over fallback with malloc. For
4087 aligned_alloc, round up size up to multiple of al.
4089 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4091 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4092 construct as implemented.
4094 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4096 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4098 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4100 * task.c (gomp_create_target_task): Copy args array as well.
4101 * target.c (gomp_target_fallback): Add args argument.
4102 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4103 (GOMP_target): Adjust gomp_target_fallback caller.
4104 (GOMP_target_ext): Likewise.
4105 (gomp_target_task_fn): Likewise.
4106 * config/nvptx/team.c (gomp_nvptx_main): Set
4107 gomp_global_icv.thread_limit_var.
4108 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4110 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4112 * config/nvptx/team.c (__gomp_team_num): Define as
4113 __attribute__((shared)) var.
4114 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4115 * config/nvptx/target.c (__gomp_team_num): Declare as
4116 extern __attribute__((shared)) var.
4117 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4118 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4119 is bigger than num_blocks, use num_teams_lower teams and arrange for
4120 bumping of __gomp_team_num if !first and returning false once we run
4122 * config/nvptx/teams.c (__gomp_team_num): Declare as
4123 extern __attribute__((shared)) var.
4124 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4126 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4128 * testsuite/libgomp.c/teams-5.c: New test.
4130 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4133 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4135 * config/gcn/teams.c: ... here. New file.
4137 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4139 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4140 implicit map handling to allow a "superset" existing map as valid case.
4141 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4142 (get_implicit): New function to extract implicit status.
4143 (gomp_map_fields_existing): Adjust arguments in calls to
4144 gomp_map_vars_existing, and add uses of get_implicit.
4145 (gomp_map_vars_internal): Likewise.
4146 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4148 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4150 * libgomp_g.h (GOMP_teams4): Declare.
4151 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4152 * target.c (GOMP_teams4): New function.
4153 * config/nvptx/target.c (GOMP_teams): Remove.
4154 (GOMP_teams4): New function.
4155 * config/gcn/target.c (GOMP_teams): Remove.
4156 (GOMP_teams4): New function.
4157 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4158 teams instead of <= 2.
4159 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4161 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4163 * testsuite/libgomp.fortran/teams-1.f90: New test.
4165 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4167 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4168 * team.c (struct gomp_thread_start_data): Likewise.
4169 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4170 (gomp_team_start): Initialize start_data->num_teams and
4171 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4172 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4173 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4174 instead of gomp_num_teams and gomp_team_num.
4175 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4176 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4177 * testsuite/libgomp.c/teams-4.c: New test.
4179 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4181 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4183 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4185 * env.c (parse_gomp_openacc_dim): Restore parsing.
4187 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4189 PR middle-end/102972
4190 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4192 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4193 * testsuite/libgomp.c/target-3.c: Likewise.
4194 * testsuite/libgomp.c/target-5.c: Likewise.
4195 * testsuite/libgomp.c/target-6.c: Likewise.
4196 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4197 * testsuite/libgomp.c/teams-1.c: Likewise.
4198 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4199 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4200 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4201 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4202 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4203 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4204 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4206 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4208 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4209 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4211 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4213 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4214 aren't implemented for Fortran yet.
4216 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4218 * testsuite/libgomp.c/loop-26.c: New test.
4219 * testsuite/libgomp.c/loop-27.c: New test.
4221 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4224 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4225 instead of #include <alloca.h> + alloca.
4227 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4229 * libgomp.texi (Support of strictly structured blocks in Fortran):
4231 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4233 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4235 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4236 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4238 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4241 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4242 (struct gomp_work_share): Only use aligned(64) attribute if
4243 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4244 add padding before lock to ensure lock is at offset 64 bytes
4246 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4247 New poor man's static assertions.
4248 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4249 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4251 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4252 Richard Biener <rguenther@suse.de>
4254 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4256 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4258 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4259 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4261 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4270 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4272 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4274 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4275 type from char [50] to const char *.
4276 (places_array): Add a testcase for simplified syntax place followed
4277 by length or length and stride.
4279 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4281 * env.c (parse_one_place): Handle non-negative-number the same
4282 as { non-negative-number }. Reject even !number:1 and
4283 !number:1:stride or !place:1 or !place:1:stride instead of just
4284 length other than 1.
4285 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4286 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4287 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4289 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4292 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4294 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4295 clearly reject return value 0 as invalid handle the case where end
4296 pointer is the same as first argument as invalid.
4297 (parse_unsigned_long_1): Likewise.
4298 (parse_one_place): Likewise.
4299 (parse_places_var): Likewise.
4300 (parse_stacksize): Likewise.
4301 (parse_spincount): Likewise.
4302 (parse_affinity): Likewise.
4303 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4304 Make code valid C89.
4305 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4306 For strtoul calls which don't clearly reject return value 0 as
4307 invalid handle the case where end pointer is the same as first
4308 argument as invalid.
4309 (gomp_affinity_init_level_1): Likewise.
4310 (gomp_affinity_init_numa_domains): Likewise.
4311 * config/rtems/proc.c (parse_thread_pools): Likewise.
4313 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4315 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4316 after creating count places clean up and return immediately.
4317 * testsuite/libgomp.c/places-6.c: New test.
4318 * testsuite/libgomp.c/places-7.c: New test.
4319 * testsuite/libgomp.c/places-8.c: New test.
4320 * testsuite/libgomp.c/places-9.c: New test.
4321 * testsuite/libgomp.c/places-10.c: New test.
4323 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4325 * env.c (parse_places_var): Handle numa_domains as level 5.
4326 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4328 (gomp_affinity_init_level): Use it instead of
4329 gomp_affinity_init_level_1 for level == 5.
4330 * testsuite/libgomp.c/places-5.c: New test.
4332 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4334 * env.c (parse_places_var): Handle ll_caches as level 4.
4335 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4337 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4339 (gomp_affinity_init_level): Likewise.
4340 * testsuite/libgomp.c/places-1.c: New test.
4341 * testsuite/libgomp.c/places-2.c: New test.
4342 * testsuite/libgomp.c/places-3.c: New test.
4343 * testsuite/libgomp.c/places-4.c: New test.
4345 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4347 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4350 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4352 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4354 2021-10-12 Julian Brown <julian@codesourcery.com>
4356 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4359 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4361 * testsuite/libgomp.fortran/icv-3.f90: New.
4362 * testsuite/libgomp.fortran/icv-4.f90: New.
4364 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4366 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4367 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4368 OMP_TEAMS_THREAD_LIMIT): Document.
4370 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4372 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4373 to avoid makeinfo warnings.
4375 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4377 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4378 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4380 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4384 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4385 allocation sizes from 420 to 320 and from 768 to 568.
4386 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4387 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4388 for cr from 16 to 4.
4390 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4392 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4393 * testsuite/libgomp.c/scan-12.c: Likewise.
4394 * testsuite/libgomp.c/scan-13.c: Likewise.
4395 * testsuite/libgomp.c/scan-14.c: Likewise.
4396 * testsuite/libgomp.c/scan-15.c: Likewise.
4397 * testsuite/libgomp.c/scan-16.c: Likewise.
4398 * testsuite/libgomp.c/scan-17.c: Likewise.
4399 * testsuite/libgomp.c/scan-18.c: Likewise.
4400 * testsuite/libgomp.c/scan-19.c: Likewise.
4401 * testsuite/libgomp.c/scan-20.c: Likewise.
4402 * testsuite/libgomp.c/scan-21.c: Likewise.
4403 * testsuite/libgomp.c/scan-22.c: Likewise.
4404 * testsuite/libgomp.c++/scan-9.C: Likewise.
4405 * testsuite/libgomp.c++/scan-10.C: Likewise.
4406 * testsuite/libgomp.c++/scan-11.C: Likewise.
4407 * testsuite/libgomp.c++/scan-12.C: Likewise.
4408 * testsuite/libgomp.c++/scan-13.C: Likewise.
4409 * testsuite/libgomp.c++/scan-14.C: Likewise.
4410 * testsuite/libgomp.c++/scan-15.C: Likewise.
4411 * testsuite/libgomp.c++/scan-16.C: Likewise.
4413 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4415 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4417 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4419 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4421 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4422 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4423 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4424 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4426 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4428 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4429 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4430 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4431 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4432 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4433 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4434 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4435 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4436 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4437 omp_set_teams_thread_limit{,_,_8_}.
4438 * icv.c (omp_set_num_teams, omp_get_max_teams,
4439 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4441 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4442 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4443 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4445 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4446 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4447 is not specified, use gomp_nteams_var.
4448 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4449 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4451 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4452 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4453 omp_get_teams_thread_limit_): New functions.
4455 2021-10-09 liuhongt <hongtao.liu@intel.com>
4457 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4458 * testsuite/libgomp.c++/scan-11.C: Ditto.
4459 * testsuite/libgomp.c++/scan-12.C: Ditto.
4460 * testsuite/libgomp.c++/scan-13.C: Ditto.
4461 * testsuite/libgomp.c++/scan-14.C: Ditto.
4462 * testsuite/libgomp.c++/scan-15.C: Ditto.
4463 * testsuite/libgomp.c++/scan-16.C: Ditto.
4464 * testsuite/libgomp.c++/scan-9.C: Ditto.
4465 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4466 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4467 * testsuite/libgomp.c/scan-11.c: Ditto.
4468 * testsuite/libgomp.c/scan-12.c: Ditto.
4469 * testsuite/libgomp.c/scan-13.c: Ditto.
4470 * testsuite/libgomp.c/scan-14.c: Ditto.
4471 * testsuite/libgomp.c/scan-15.c: Ditto.
4472 * testsuite/libgomp.c/scan-16.c: Ditto.
4473 * testsuite/libgomp.c/scan-17.c: Ditto.
4474 * testsuite/libgomp.c/scan-18.c: Ditto.
4475 * testsuite/libgomp.c/scan-19.c: Ditto.
4476 * testsuite/libgomp.c/scan-20.c: Ditto.
4477 * testsuite/libgomp.c/scan-21.c: Ditto.
4478 * testsuite/libgomp.c/scan-22.c: Ditto.
4480 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4482 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4483 structured block sequences in C/C++. Mention support for
4484 unconstrained/reproducible modifiers on order clause.
4485 Mention partial (C/C++ only) support of extentensions to atomics
4486 construct. Mention partial (C/C++ on clause only) support of
4487 align/allocator modifiers on allocate clause.
4489 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4491 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4492 based on libgomp.c-c++-common/order-reproducible-1.c.
4493 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4494 * testsuite/libgomp.fortran/my-usleep.c: New test.
4496 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4498 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4499 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4500 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4501 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4502 based on libgomp.c-c++-common/alloc-9.c.
4504 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4506 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4507 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4509 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4511 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4513 * env.c (handle_omp_display_env): Use ialias_call.
4514 * icv-device.c: Move ialias right below each function.
4515 (omp_get_device_num): Use ialias_call.
4516 * fortran.c (omp_fulfill_event): Add ialias_redirect.
4517 * icv.c (omp_get_active_level): Add ialias_redirect.
4519 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4521 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4522 __alloc_align__ (1) attribute.
4523 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4525 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4527 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4528 for -fintrinsic-modules-path= warning of the C compiler.
4529 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4530 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4532 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
4534 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4535 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4536 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4538 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4540 * testsuite/libgomp.fortran/alloc-10.f90: New test.
4541 * testsuite/libgomp.fortran/alloc-6.f90: New test.
4542 * testsuite/libgomp.fortran/alloc-7.c: New test.
4543 * testsuite/libgomp.fortran/alloc-7.f90: New test.
4544 * testsuite/libgomp.fortran/alloc-8.f90: New test.
4545 * testsuite/libgomp.fortran/alloc-9.f90: New test.
4547 2021-09-30 Jakub Jelinek <jakub@redhat.com>
4549 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4550 omp_realloc): New prototypes.
4551 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4553 * allocator.c: Include string.h.
4554 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
4555 variable and use it instead of alignment so that when retrying the old
4556 alignment is used again. Don't retry if new alignment is the same
4557 as old alignment, unless allocator had pool size.
4558 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4559 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4560 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4561 omp_aligned_calloc and omp_realloc.
4562 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4563 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4564 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4565 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4566 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4567 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4569 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
4572 * configure.ac: Only check for int-type = 2*size_t support when
4573 building with Fortran support.
4574 * configure: Regenerate.
4576 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
4578 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4579 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4581 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
4583 * team.c: Initialize start_data.
4584 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4585 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4587 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4589 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4590 dg-message back to dg-note.
4592 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
4595 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4596 expected dg-note output.
4598 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
4601 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4602 r12-3722 by removing -Wno-missing-include-dirs.
4603 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4605 2021-09-22 Jakub Jelinek <jakub@redhat.com>
4607 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4608 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4610 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
4613 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4615 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4617 2021-09-18 Jakub Jelinek <jakub@redhat.com>
4619 * testsuite/libgomp.c++/default-1.C: New test.
4620 * testsuite/libgomp.c-c++-common/default-1.c: New test.
4621 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4622 to default clause in C and C++" as implemented.
4624 2021-09-17 Julian Brown <julian@codesourcery.com>
4626 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4628 2021-09-17 Julian Brown <julian@codesourcery.com>
4630 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4632 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4634 * libgomp.texi (OpenMP 5.1): Spelling fix,
4635 declare variante -> declare variant.
4637 2021-09-17 Jakub Jelinek <jakub@redhat.com>
4639 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4640 Use /* */ comments instead of //.
4641 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4642 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4643 * testsuite/libgomp.c++/atomic-16.C: New test.
4644 * testsuite/libgomp.c++/atomic-17.C: New test.
4646 2021-09-10 Jakub Jelinek <jakub@redhat.com>
4648 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4649 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4650 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4652 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4654 * libgomp.texi (OpenMP Implementation Status): Extend
4656 (OpenACC Profiling Interface): Fix typo.
4658 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
4660 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4661 not to 4.5; link to new section.
4662 (OpenMP Implementation Status): New.
4664 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
4666 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4668 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
4670 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4672 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4674 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4675 Jakub Jelinek <jakub@redhat.com>
4677 * testsuite/libgomp.c/address-space-1.c: New file.
4679 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
4681 * testsuite/lib/libgomp.exp
4682 (check_effective_target_offload_target_intelmic): Remove 'proc'.
4683 (check_effective_target_offload_device_intel_mic): New 'proc'.
4684 * testsuite/libgomp.c-c++-common/on_device_arch.h
4685 (device_arch_intel_mic, on_device_arch_intel_mic): New.
4686 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4688 * testsuite/libgomp.fortran/target10.f90: Likewise.
4690 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
4692 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4693 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4694 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4695 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4697 2021-08-23 Jakub Jelinek <jakub@redhat.com>
4699 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4700 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4701 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4703 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
4705 * config/nvptx/error.c (fwrite, exit): Override, too.
4706 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4707 of offloading testing.
4708 * testsuite/libgomp.fortran/error-1.f90: Likewise.
4710 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
4712 * testsuite/libgomp.fortran/error-1.f90: New test.
4714 2021-08-20 Jakub Jelinek <jakub@redhat.com>
4716 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4717 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4718 * error.c (GOMP_warning, GOMP_error): New functions.
4719 * testsuite/libgomp.c-c++-common/error-1.c: New test.
4721 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
4723 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4724 omp_target_free. omp_target_is_present, omp_target_memcpy,
4725 omp_target_memcpy_rect, omp_target_associate_ptr,
4726 omp_target_disassociate_ptr): Add interface.
4727 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4728 omp_target_free. omp_target_is_present, omp_target_memcpy,
4729 omp_target_memcpy_rect, omp_target_associate_ptr,
4730 omp_target_disassociate_ptr): Add interface.
4731 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4732 interface block for omp_alloc + omp_free.
4733 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4734 * testsuite/libgomp.fortran/refcount-1.f90: New test.
4735 * testsuite/libgomp.fortran/target-12.f90: New test.
4737 2021-08-18 Jakub Jelinek <jakub@redhat.com>
4739 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4741 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
4743 * testsuite/libgomp.fortran/scope-1.f90: New test.
4744 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4746 2021-08-17 Jakub Jelinek <jakub@redhat.com>
4748 * Makefile.am (libgomp_la_SOURCES): Add scope.c
4749 * Makefile.in: Regenerated.
4750 * libgomp_g.h (GOMP_scope_start): Declare.
4751 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4752 * scope.c: New file.
4753 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4754 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4756 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
4758 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4761 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
4763 * testsuite/libgomp.fortran/masked-1.f90: New test.
4765 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
4767 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4769 2021-08-12 Jakub Jelinek <jakub@redhat.com>
4771 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4773 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
4775 * env.c (parse_bind_var): Accept 'primary' as alias for
4777 (omp_display_env): Add TODO comment to
4778 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4779 * libgomp.texi: Change 'master thread' to 'primary thread'
4780 in line with OpenMP 5.1.
4781 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4782 omp_proc_bind_master is an alias of it.
4783 (OMP_PROC_BIND): Mention 'PRIMARY'.
4784 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4785 (omp_proc_bind_primary): Add.
4786 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4787 * omp_lib.f90.in (omp_proc_bind_primary): Add.
4788 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4789 * omp_lib.h.in (omp_proc_bind_primary): Add.
4790 * testsuite/libgomp.c/affinity-1.c: Check that
4791 'primary' works and is identical to 'master'.
4793 2021-08-09 Julian Brown <julian@codesourcery.com>
4794 Kwok Cheung Yeung <kcy@codesourcery.com>
4795 Thomas Schwinge <thomas@codesourcery.com>
4797 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4799 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4800 [acc_device_radeon]: Update.
4801 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4802 [ACC_DEVICE_TYPE_radeon]: Likewise.
4803 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4804 [acc_device_radeon]: Likewise.
4805 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4806 [ACC_DEVICE_TYPE_radeon]: Likewise.
4807 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4808 'openacc_radeon_accel_selected' and '-O0'.
4809 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4811 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
4813 * icv-device.c (omp_get_device_num): New API function, host side.
4814 * fortran.c (omp_get_device_num_): New interface function.
4815 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4816 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4817 omp_get_device_num_.
4818 * libgomp.texi (omp_get_device_num): Add documentation for new API
4820 * omp.h.in (omp_get_device_num): Add declaration.
4821 * omp_lib.f90.in (omp_get_device_num): Likewise.
4822 * omp_lib.h.in (omp_get_device_num): Likewise.
4823 * target.c (gomp_load_image_to_device): If additional entry for device
4824 number exists at end of returned entries from 'load_image_func' hook,
4825 copy the assigned device number over to the device variable.
4826 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4827 (omp_get_device_num): New API function, device side.
4828 * plugin/plugin-gcn.c ("symcat.h"): Add include.
4829 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4830 at end of returned 'target_table' entries.
4831 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4832 (omp_get_device_num): New API function, device side.
4833 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4834 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4835 at end of returned 'target_table' entries.
4836 * testsuite/lib/libgomp.exp
4837 (check_effective_target_offload_target_intelmic): New function for
4838 testing for intelmic offloading.
4839 * testsuite/libgomp.c-c++-common/target-45.c: New test.
4840 * testsuite/libgomp.fortran/target10.f90: New test.
4842 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
4843 Ulrich Drepper <drepper@redhat.com>
4845 * fortran.c (omp_display_env_, omp_display_env_8_): Only
4846 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4848 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
4849 Julian Brown <julian@codesourcery.com>
4850 Kwok Cheung Yeung <kcy@codesourcery.com>
4852 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4853 's%oaccdevlow%oaccloops%g'.
4854 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4855 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4856 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4858 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4860 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4862 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4864 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4866 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4868 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4870 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4872 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4874 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
4876 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4878 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4880 2021-07-27 Ulrich Drepper <drepper@gmail.com>
4882 * env.c (wait_policy, stacksize): New static variables,
4883 move out of handle_omp_display_env.
4884 (omp_display_env): New function. The meat of the old
4885 handle_omp_display_env function.
4886 (handle_omp_display_env): Change to not take parameters
4887 and instead use the global variables. Only perform
4888 parsing, defer to omp_display_env for the implementation.
4889 (initialize_env): Remove local variables wait_policy and
4890 stacksize. Don't pass parameters to handle_omp_display_env.
4891 * fortran.c: Add ialias_redirect for omp_display_env.
4892 (omp_display_env_, omp_display_env_8_): New functions.
4893 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
4894 omp_display_env_, and omp_display_env_8_.
4895 * omp.h.in: Declare omp_display_env.
4896 * omp_lib.f90.in: Likewise.
4897 * omp_lib.h.in: Likewise.
4899 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4900 Julian Brown <julian@codesourcery.com>
4902 * target.c (gomp_coalesce_buf_add): Update comment.
4903 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4905 (gomp_map_vars_internal): Only 'if (!aq)', do
4906 'gomp_coalesce_buf_add'.
4907 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4910 2021-07-27 Julian Brown <julian@codesourcery.com>
4911 Thomas Schwinge <thomas@codesourcery.com>
4913 * libgomp.h (gomp_copy_host2dev): Update prototype.
4914 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4915 argument to gomp_copy_host2dev (false).
4916 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4917 (copy_data): Don't free src.
4918 (queue_push_copy): Remove free_src handling.
4919 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4920 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4922 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4924 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4925 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
4926 data when true, and set up deferred freeing of temporary buffer.
4927 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4928 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4929 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4930 calls to gomp_copy_host2dev with appropriate ephemeral argument.
4931 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4934 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4935 Tom de Vries <tom@codesourcery.com>
4937 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4938 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4940 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4942 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4943 sequencing of 'async' data copying vs. profiling events.
4944 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4947 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
4948 Julian Brown <julian@codesourcery.com>
4950 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4951 'async'/'wait' issue.
4952 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4953 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4954 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4956 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4957 Joseph Myers <joseph@codesourcery.com>
4958 Cesar Philippidis <cesar@codesourcery.com>
4960 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4962 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4964 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4966 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4968 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
4971 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4972 '-Wno-error=array-bounds'.
4973 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4974 * libgomp.h [__AMDGCN__]: Likewise.
4976 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
4979 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4980 * libgomp.h [__AMDGCN__]: Likewise.
4982 2021-07-13 Jakub Jelinek <jakub@redhat.com>
4983 Florian Weimer <fweimer@redhat.com>
4985 * config/linux/sem.h: Don't include limits.h.
4986 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4987 * config/linux/affinity.c: Include limits.h.
4989 2021-07-01 Jakub Jelinek <jakub@redhat.com>
4992 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4994 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
4997 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4998 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4999 avoid disabling other offload targets.
5000 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5001 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5002 * testsuite/libgomp.c/target-44.c: Likewise.
5004 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5006 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5007 target has shared memory and disable some scalar pointer/allocatable
5008 checks if not as firstprivate does not work.
5010 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5013 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5014 Add "target offload_device_nonshared_as" condition for enabling test.
5016 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5018 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5019 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5020 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5021 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5023 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5025 PR middle-end/101167
5026 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5028 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5030 * hashtab.h (htab_clear): New function with initialization code
5031 factored out from...
5032 (htab_create): ...here, adjust to use htab_clear function.
5033 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5034 special refcount values, add comments.
5035 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5036 (REFCOUNT_LINK): Likewise.
5037 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5039 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5041 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5042 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5043 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5044 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5045 (struct splay_tree_key_s): Add structelem_refcount and
5046 structelem_refcount_ptr fields into a union with dynamic_refcount.
5048 (gomp_map_vars): Delete declaration.
5049 (gomp_map_vars_async): Likewise.
5050 (gomp_unmap_vars): Likewise.
5051 (gomp_unmap_vars_async): Likewise.
5052 (goacc_map_vars): New declaration.
5053 (goacc_unmap_vars): Likewise.
5054 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5055 (goacc_enter_datum): Likewise.
5056 (goacc_enter_data_internal): Likewise.
5057 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5058 and goacc_unmap_vars.
5059 (GOACC_data_start): Adjust to use goacc_map_vars.
5060 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5061 * target.c (hash_entry_type): New typedef.
5062 (htab_alloc): New function hook for hashtab.h.
5063 (htab_free): Likewise.
5064 (htab_hash): Likewise.
5065 (htab_eq): Likewise.
5066 (hashtab.h): Add file include.
5067 (gomp_increment_refcount): New function.
5068 (gomp_decrement_refcount): Likewise.
5069 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5070 gomp_increment_refcount.
5071 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5072 to gomp_map_vars_existing.
5073 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5074 variable to guard OpenMP specific paths, adjust calls to
5075 gomp_map_vars_existing, add structure element sibling splay_tree_key
5076 sequence creation code, adjust Fortran map case to avoid increment
5078 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5079 local refcount_set if caller passed in NULL, adjust call to
5080 gomp_map_vars_internal.
5081 (gomp_map_vars_async): Adjust and rename into...
5082 (goacc_map_vars): ...this new function, adjust call to
5083 gomp_map_vars_internal.
5084 (gomp_remove_splay_tree_key): New function with code factored out from
5085 gomp_remove_var_internal.
5086 (gomp_remove_var_internal): Add code to handle removing multiple
5087 splay_tree_key sequence for structure elements, adjust code to use
5088 gomp_remove_splay_tree_key for splay-tree key removal.
5089 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5090 gomp_decrement_refcount.
5091 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5092 local refcount_set if caller passed in NULL, adjust call to
5093 gomp_unmap_vars_internal.
5094 (gomp_unmap_vars_async): Adjust and rename into...
5095 (goacc_unmap_vars): ...this new function, adjust call to
5096 gomp_unmap_vars_internal.
5097 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5099 (GOMP_target_ext): Likewise.
5100 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5101 (GOMP_target_data): Likewise.
5102 (GOMP_target_data_ext): Likewise.
5103 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5104 (gomp_exit_data): Add refcount_set parameter, adjust to use
5105 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5107 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5108 gomp_map_vars and gomp_exit_data.
5109 (gomp_target_task_fn): Likewise.
5110 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5111 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5112 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5113 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5114 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5115 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5117 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5120 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5122 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5123 Thomas Schwinge <thomas@codesourcery.com>
5125 * libgomp.map (GOACC_2.0.2): New symbol version.
5126 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5127 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5129 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5130 Andrew Stubbs <ams@codesourcery.com>
5132 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5134 (GOACC_enter_exit_data): ... here.
5135 (GOACC_declare): Use it.
5137 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5139 * oacc-parallel.c (GOACC_declare): Move...
5140 * oacc-mem.c: ... here.
5141 * libgomp_g.h: Adjust.
5143 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5144 Thomas Schwinge <thomas@codesourcery.com>
5146 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5149 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5151 PR tree-optimization/100981
5152 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5153 dsdotr and dsdoti to 0.
5155 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5157 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5158 if atomic compare-and-swap is supported on 'int'.
5160 2021-06-09 Richard Biener <rguenther@suse.de>
5162 PR tree-optimization/100981
5163 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5165 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5167 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5169 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5171 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5172 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5174 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5176 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5177 '-DACC_MEM_SHARED=0'.
5178 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5179 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5180 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5181 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5182 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5183 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5184 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5185 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5186 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5187 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5188 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5189 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5190 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5191 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5192 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5193 'acc_device_radeon' testing.
5194 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5195 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5196 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5197 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5198 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5199 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5200 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5201 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5202 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5203 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5204 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5205 for non-'openacc_nvidia_accel_selected'.
5206 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5207 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5208 all implement this checking".
5209 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5210 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5211 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5212 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5213 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5215 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5217 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5218 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5220 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5222 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5223 for 'acc_device_radeon'.
5225 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5227 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5228 for non-'acc_device_nvidia'.
5230 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5232 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5233 'acc_device_radeon' testing.
5234 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5235 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5236 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5238 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5240 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5241 require 'openacc_nvidia_accel_selected'. Fix up for
5242 'ACC_DEVICE_TYPE_radeon'.
5244 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5246 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5247 'openacc_nvidia_accel_selected'.
5248 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5250 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5252 * testsuite/lib/libgomp.exp
5253 (check_effective_target_openacc_radeon_accel_selected):
5256 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5258 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5261 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5263 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5264 <acc_device_nvidia>: Update comment.
5266 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5268 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5270 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5272 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5273 check_effective_target_openacc_cublas,
5274 check_effective_target_openacc_cudart): New.
5275 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5276 target openacc_cublas.
5277 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5278 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5279 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5280 target openacc_cuda.
5281 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5282 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5283 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5284 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5285 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5286 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5287 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5290 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5297 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5298 targets openacc_cublas and openacc_cudart.
5299 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5301 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5304 Require effective target openacc_cudart.
5305 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5306 for effective target openacc_cuda and add && defined USE_CUDA_H to
5307 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5310 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5313 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5314 GOMP_target_end_data, GOMP_target_update_ext,
5315 GOMP_target_enter_exit_data): New dummy entrypoints.
5316 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5317 GOMP_target_end_data, GOMP_target_update_ext,
5318 GOMP_target_enter_exit_data): Likewise.
5319 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5320 OMPFROM, OMPTO): Define.
5321 (main): Remove #pragma omp target teams around all the tests.
5322 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5323 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5325 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5328 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5330 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5333 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5334 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5335 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5337 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5340 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5341 uninteresting/varying diagnostics.
5343 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5346 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5347 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5349 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5352 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5354 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5355 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5356 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5358 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5360 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5362 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5364 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5366 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5368 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5370 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5372 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5374 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5376 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5378 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5380 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5382 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5384 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5386 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5388 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5390 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5392 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5394 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5396 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5398 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5399 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5400 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5401 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5402 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5403 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5404 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5411 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5412 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5414 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5416 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5418 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5420 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5421 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5423 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5424 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5425 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5426 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5427 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5428 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5429 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5431 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5433 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5435 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5437 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5439 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5441 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5443 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5445 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5447 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5449 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5451 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5453 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5455 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5456 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5457 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5459 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5461 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5462 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5463 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5465 2021-05-21 Julian Brown <julian@codesourcery.com>
5466 Chung-Lin Tang <cltang@codesourcery.com>
5467 Thomas Schwinge <thomas@codesourcery.com>
5470 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5472 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5474 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5477 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5479 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5480 for nvptx offloading.
5482 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5484 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5486 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5489 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5491 2021-05-19 Julian Brown <julian@codesourcery.com>
5493 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5495 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5497 * testsuite/lib/libgomp.exp
5498 (check_effective_target_offload_target_nvptx): Don't shadow global
5499 'offload_targets' variable.
5501 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5503 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5504 '-latomic' to nvptx offloading compilation.
5505 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5507 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5509 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5510 offloading compilation.
5512 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
5514 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5515 if new tasks generated.
5516 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5518 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
5520 * testsuite/libgomp.fortran/parallel-master.f90: New test.
5522 2021-05-13 Martin Liska <mliska@suse.cz>
5525 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5526 * testsuite/libgomp.c/pr46032-2.c: Likewise.
5527 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5528 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5530 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
5532 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5533 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5535 2021-05-11 Jakub Jelinek <jakub@redhat.com>
5537 PR middle-end/100471
5538 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5539 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5541 * testsuite/libgomp.c/task-reduction-4.c: New test.
5543 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
5544 Tom de Vries <tdevries@suse.de>
5546 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5547 complex/floating-point || + && reduction with 'omp target'.
5548 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5550 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5552 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5553 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5554 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5555 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5557 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
5560 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5561 declaration to scope of non-'depend'-guarded assignment to avoid races.
5563 2021-05-03 Tom de Vries <tdevries@suse.de>
5566 * testsuite/libgomp.c/target-44.c: New test.
5568 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
5570 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5572 2021-04-29 Tom de Vries <tdevries@suse.de>
5574 * testsuite/libgomp.c/pr81778.c: New test.
5576 2021-04-29 Tom de Vries <tdevries@suse.de>
5579 * testsuite/libgomp.c/target-43.c: New file.
5581 2021-04-28 Jakub Jelinek <jakub@redhat.com>
5582 Tobias Burnus <tobias@codesourcery.com>
5584 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5585 * target.c (gomp_load_plugin_for_device): If set and if a plugin
5586 can't be dlopened, silently assume it has no devices.
5587 * Makefile.in: Regenerate.
5588 * config.h.in: Regenerate.
5589 * configure: Regenerate.
5591 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5593 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5594 Use [Ww]arning in dg-bogus as FE diagnostic and default
5595 diagnostic differ and the result depends on ENABLE_OFFLOAD.
5596 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5597 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5598 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5600 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
5602 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5603 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5604 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5605 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5606 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5608 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5609 Nathan Sidwell <nathan@codesourcery.com>
5610 Tom de Vries <vries@codesourcery.com>
5611 Julian Brown <julian@codesourcery.com>
5612 Kwok Cheung Yeung <kcy@codesourcery.com>
5614 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5615 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5616 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5617 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5618 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5619 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5620 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5622 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5623 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5624 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5625 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5627 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5628 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5630 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5631 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5632 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5633 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5634 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5635 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5637 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5638 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5639 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5640 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5641 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5642 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5643 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5644 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5645 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5646 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5647 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5649 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
5651 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5653 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5654 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5656 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5657 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5658 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5659 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5660 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5661 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5662 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5664 2021-04-22 Richard Biener <rguenther@suse.de>
5666 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5669 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5671 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5672 omp_depend_kind instead of defining it as 16.
5674 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5676 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5677 New, based on check_effective_target_offload_target_nvptx.
5678 (check_effective_target_offload_target_nvptx): Call it.
5679 (check_effective_target_offload_target_amdgcn): New.
5680 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5681 Require target offload_target_nvptx || offload_target_amdgcn.
5682 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5683 * testsuite/libgomp.c/pr86416-1.c: Likewise.
5684 * testsuite/libgomp.c/pr86416-2.c: Likewise.
5686 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
5688 * testsuite/libgomp.fortran/depobj-1.f90: New test.
5690 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
5692 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5693 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5694 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5696 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5698 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5700 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
5703 * testsuite/lib/libgomp.exp
5704 (check_effective_target_offload_device_nvptx): New.
5705 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5706 resolved, make sure that we exit quickly, with error status,
5708 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5709 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5711 2021-04-14 Jakub Jelinek <jakub@redhat.com>
5714 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5715 cp = omp_alloc with cp, p arguments instead of cq, q and call
5716 c_f_pointer after last cq = omp_alloc with cq, q.
5718 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5721 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5722 for loop with GT/GE condition.
5723 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5725 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
5730 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5732 2021-04-09 Jakub Jelinek <jakub@redhat.com>
5735 * team.c (gomp_thread_start): Call pthread_setspecific for
5736 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5737 has been initialized to avoid false positive warning.
5739 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
5742 * testsuite/lib/on_device_arch.c: Move to ...
5743 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5744 * testsuite/libgomp.fortran/on_device_arch.c: New file;
5745 #include on_device_arch.h.
5746 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5747 on_device_arch.h instead of using dg-additional-source.
5748 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5749 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5750 on_device_arch.c without relative paths.
5752 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5754 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5755 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5756 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5757 * config.h.in: Regenerate.
5758 * configure: Likewise.
5760 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5763 * testsuite/lib/on_device_arch.c: New file.
5764 * testsuite/libgomp.c/pr99555-1.c: Likewise.
5765 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5766 skip for nvptx offloading, with error status.
5767 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5769 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5771 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5772 OpenACC 'serial' construct diagnostic for nvptx offloading.
5774 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
5777 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5779 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
5782 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5784 2021-03-04 Jakub Jelinek <jakub@redhat.com>
5786 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5787 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5788 checking of -m32 or -mx32 options on the command line.
5789 * config.h.in: Regenerated.
5790 * configure: Regenerated.
5792 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
5794 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5795 support from the target.
5797 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5798 Jakub Jelinek <jakub@redhat.com>
5801 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5802 (struct gomp_task): Replace detach and completion_sem fields with
5803 union containing completion_sem and detach_team. Add deferred_p
5805 (struct gomp_team): Remove task_detach_queue.
5806 * task.c: Include assert.h.
5807 (gomp_init_task): Initialize deferred_p and completion_sem fields.
5808 Rearrange initialization order of fields.
5809 (task_fulfilled_p): Delete.
5810 (GOMP_task): Use address of task as the event handle. Remove
5811 initialization of detach field. Initialize deferred_p field.
5812 Use automatic local for completion_sem. Initialize detach_team field
5814 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5815 Set kind of suspended detach task to GOMP_TASK_DETACHED and
5816 decrement task_running_count. Move finish_cancelled block out of
5817 else branch. Relocate call to gomp_team_barrier_done.
5818 (GOMP_taskwait): Handle tasks with completion events that have not
5820 (GOMP_taskgroup_end): Likewise.
5821 (omp_fulfill_event): Use address of task as event handle. Post to
5822 completion_sem for undeferred tasks. Clear detach_team if task
5823 has not finished. For finished tasks, handle post-execution tasks,
5824 call gomp_team_barrier_wake if necessary, and free task.
5825 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5826 (free_team): Remove free of task_detach_queue.
5827 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5828 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5829 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5830 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5831 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5832 Change data-sharing of detach events on enclosing parallel to private.
5833 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
5835 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5836 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5837 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5838 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5839 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5840 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5841 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5842 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5843 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5844 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5845 Change data-sharing of detach events on enclosing parallel to private.
5846 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
5848 * testsuite/libgomp.fortran/task-detach-7.f90: New.
5849 * testsuite/libgomp.fortran/task-detach-8.f90: New.
5850 * testsuite/libgomp.fortran/task-detach-9.f90: New.
5851 * testsuite/libgomp.fortran/task-detach-10.f90: New.
5852 * testsuite/libgomp.fortran/task-detach-11.f90: New.
5854 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
5857 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5859 2021-02-17 Julian Brown <julian@codesourcery.com>
5861 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5864 2021-02-17 Julian Brown <julian@codesourcery.com>
5866 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5867 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5869 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5871 * config/linux/x86/futex.h (__futex_wait):
5872 Revert output type back to long.
5873 (__futex_wake): Ditto.
5874 (futex_wait): Update for revert.
5875 (futex_wake): Ditto.
5877 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
5879 * config/linux/x86/futex.h (__futex_wait): New static inline
5880 wrapper function. Correct output type to int and
5881 timeout type to void *.
5882 (__futex_wake): New static inline wrapper function.
5883 Correct output type to int.
5884 (futex_wait): Use __futex_wait.
5885 (futex_wake): Use __futex_wake.
5887 2021-02-10 Julian Brown <julian@codesourcery.com>
5890 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5893 2021-02-04 Julian Brown <julian@codesourcery.com>
5895 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5897 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
5899 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5900 EF_AMDGPU_MACH_AMDGCN_GFX908.
5901 (gcn_gfx908_s): New constant string.
5902 (isa_hsa_name): Add gfx908.
5903 (isa_code): Add gfx908.
5905 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
5907 * libgomp.texi (omp_fulfill_event): New entry.
5909 2021-01-20 Jakub Jelinek <jakub@redhat.com>
5911 * task.c (GOMP_task): Rename priority argument to priority_arg,
5912 add priority automatic variable and modify that variable. Instead of
5913 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5914 check flags for that bit.
5916 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
5919 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5921 2021-01-18 Andreas Schwab <schwab@suse.de>
5923 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5925 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
5927 * config/rtems/sem.h (gomp_sem_getcount): New function.
5929 2021-01-18 Jakub Jelinek <jakub@redhat.com>
5931 * config/linux/sem.h (gomp_sem_getcount): New function.
5932 * config/posix/sem.h (gomp_sem_getcount): New function.
5933 * config/posix/sem.c (gomp_sem_getcount): New function.
5934 * config/accel/sem.h (gomp_sem_getcount): New function.
5935 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5936 (omp_fulfill_event): Likewise.
5938 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
5940 * fortran.c (omp_fulfill_event_): New.
5941 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5942 (struct gomp_team): Add task_detach_queue and task_detach_count
5944 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5945 * libgomp_g.h (GOMP_task): Add extra argument.
5946 * omp.h.in (enum omp_event_handle_t): New.
5947 (omp_fulfill_event): New.
5948 * omp_lib.f90.in (omp_event_handle_kind): New.
5949 (omp_fulfill_event): New.
5950 * omp_lib.h.in (omp_event_handle_kind): New.
5951 (omp_fulfill_event): Declare.
5952 * priority_queue.c (priority_tree_find): New.
5953 (priority_list_find): New.
5954 (priority_queue_find): New.
5955 * priority_queue.h (priority_queue_predicate): New.
5956 (priority_queue_find): New.
5957 * task.c (gomp_init_task): Initialize detach field.
5958 (task_fulfilled_p): New.
5959 (GOMP_task): Add detach argument. Ignore detach argument if
5960 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
5961 field. Copy address of completion_sem into detach argument and
5962 into the start of the data record. Wait for detach event if task
5964 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5965 Remove completed tasks and requeue dependent tasks.
5966 (omp_fulfill_event): New.
5967 * team.c (gomp_new_team): Initialize task_detach_queue and
5968 task_detach_count fields.
5969 (free_team): Free task_detach_queue field.
5970 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5971 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5972 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5973 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5974 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5975 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5976 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5977 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5978 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5979 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5980 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5981 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5983 2021-01-15 Jakub Jelinek <jakub@redhat.com>
5986 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5987 be added through preprocessor check on
5988 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5990 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
5993 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5995 * configure: Regenerate.
5996 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5999 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6001 * configure: Re-generate.
6003 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6005 * configure: Re-generate.
6007 2021-01-05 Julian Brown <julian@codesourcery.com>
6009 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6010 (struct ptx_device): Add omp_stacks struct.
6011 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6012 (nvptx_close_device): Free cached stacks block and mutex.
6013 (nvptx_stacks_free): New function.
6014 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6015 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6016 (nvptx_stacks_alloc): Rename to...
6017 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6018 size or smaller is required.
6019 (nvptx_stacks_free): Remove.
6020 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6021 during kernel execution.
6023 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6025 * libgomp.texi: Bump @copying's copyright year.
6027 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6029 * libgomp.texi (Top): Avoid bad "up" link.
6031 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6033 * testsuite/libgomp.c/task-6.c: New test.
6035 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6037 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6038 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6040 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6042 * testsuite/libgomp.fortran/scan-1.f90: New test.
6044 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6047 * configure: Regenerate.
6049 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6051 * configure: Regenerate.
6053 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6055 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6056 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6058 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6060 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6063 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6065 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6066 (reserved): Delete unused define.
6068 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6070 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6071 Tcl 8.5-specific behavior.
6072 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6074 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6076 * env.c (gomp_global_icv): Remove nest_var field. Add
6077 max_active_levels_var field.
6078 (gomp_max_active_levels_var): Remove.
6079 (parse_boolean): Return true on success.
6080 (handle_omp_display_env): Express OMP_NESTED in terms of
6081 max_active_levels_var. Change format specifier for
6082 max_active_levels_var.
6083 (initialize_env): Set max_active_levels_var from
6084 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6086 * icv.c (omp_set_nested): Express in terms of
6087 max_active_levels_var.
6088 (omp_get_nested): Likewise.
6089 (omp_set_max_active_levels): Use max_active_levels_var field instead
6090 of gomp_max_active_levels_var.
6091 (omp_get_max_active_levels): Likewise.
6092 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6093 max_active_levels_var field.
6094 (gomp_supported_active_levels): Set to UCHAR_MAX.
6095 (gomp_max_active_levels_var): Delete.
6096 * libgomp.texi (omp_get_nested): Update documentation.
6097 (omp_set_nested): Likewise.
6098 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6099 (OMP_NESTED): Likewise.
6100 (OMP_NUM_THREADS): Likewise.
6101 (OMP_PROC_BIND): Likewise.
6102 * parallel.c (gomp_resolve_num_threads): Replace reference
6103 to nest_var with max_active_levels_var. Use max_active_levels_var
6104 field instead of gomp_max_active_levels_var.
6106 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6108 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6109 nvptx_usleep; use also for device={arch(gcn)}.
6111 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6113 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6114 (foo): Add tests for non-VLA private and firstprivate clauses on
6116 (bar): Likewise. Remove taking of address from private/firstprivate
6118 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6119 (foo): Add p, q, px and s arguments. Add tests for array reductions
6120 and for non-VLA private and firstprivate clauses on omp task.
6122 (main): Adjust foo caller. Don't call bar.
6124 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6125 Thomas Schwinge <thomas@codesourcery.com>
6127 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6129 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6131 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6133 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6134 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6136 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6137 Thomas Schwinge <thomas@codesourcery.com>
6140 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6142 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6144 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6145 for array reductions.
6146 (main): Adjust foo callers.
6148 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6150 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6151 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6152 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6153 * allocator.c (omp_aligned_alloc): New for now static function,
6154 add alignment argument and handle it.
6155 (omp_alloc): Reimplement using omp_aligned_alloc.
6156 (GOMP_alloc, GOMP_free): New functions.
6157 (omp_free): Add ialias.
6158 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6159 * testsuite/libgomp.c++/allocate-1.C: New test.
6161 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6164 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6166 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6168 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6170 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6171 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6172 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6173 (goacc_enter_data_internal): Likewise.
6174 * target.c (gomp_map_vars_internal):
6175 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6176 of gomp_attach_pointer for OpenMP cases.
6177 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6178 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6179 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6181 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6182 Kwok Cheung Yeung <kcy@codesourcery.com>
6184 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6185 * Makefile.in: Regenerate.
6186 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6187 pragmas to ignore -Wdeprecated-declarations warnings.
6189 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6190 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6191 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6192 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6194 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6196 * testsuite/libgomp.c/affinity-1.c: Likewise.
6197 * testsuite/libgomp.c/affinity-2.c: Likewise.
6198 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6199 * testsuite/libgomp.c/lib-1.c: Likewise.
6200 * testsuite/libgomp.c/nested-1.c: Likewise.
6201 * testsuite/libgomp.c/nested-2.c: Likewise.
6202 * testsuite/libgomp.c/nested-3.c: Likewise.
6203 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6204 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6205 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6206 * testsuite/libgomp.c/pr35549.c: Likewise.
6207 * testsuite/libgomp.c/pr42942.c: Likewise.
6208 * testsuite/libgomp.c/pr61200.c: Likewise.
6209 * testsuite/libgomp.c/sort-1.c: Likewise.
6210 * testsuite/libgomp.c/target-5.c: Likewise.
6211 * testsuite/libgomp.c/target-6.c: Likewise.
6212 * testsuite/libgomp.c/teams-1.c: Likewise.
6213 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6214 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6215 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6216 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6217 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6218 * testsuite/libgomp.fortran/lib2.f: Likewise.
6219 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6220 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6222 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6225 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6226 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6227 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6229 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6233 * testsuite/lib/libgomp.exp (libgomp_init): Set
6234 'gcc_warning_prefix', 'gcc_error_prefix'.
6236 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6238 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6239 even in field_tgt_clear initializer.
6241 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6243 * testsuite/libgomp.c/target-42.c: New test.
6245 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6246 Tom de Vries <tdevries@suse.de>
6249 * testsuite/libgomp.c/usleep.h: New file.
6250 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6251 (main): Use tgt_usleep instead of usleep.
6252 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6253 (main): Use tgt_usleep instead of usleep.
6255 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6258 * testsuite/libgomp.c/declare-variant-1.c: New test.
6260 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6262 * testsuite/libgomp.c/target-41.c: New test.
6264 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6266 * icv.c (omp_get_initial_device): Remove including corresponding
6268 * icv-device.c (omp_get_initial_device): New function. Return
6269 gomp_get_num_devices (). Add ialias.
6270 * target.c (resolve_device): Don't fail with
6271 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6272 gomp_get_num_devices ().
6273 (omp_target_alloc, omp_target_free, omp_target_is_present,
6274 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6275 omp_target_disassociate_ptr, omp_pause_resource): Use
6276 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6277 first use in the functions, in uses dominated by the
6278 gomp_get_num_devices call use num_devices_openmp instead.
6279 * libgomp.texi (omp_get_initial_device): Document.
6280 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6282 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6283 * testsuite/libgomp.c/target-40.c: New test.
6285 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6287 * env.c (parse_target_offload): Change new_offload var type to int,
6288 preinitialize to -1, remove found var and test new_offload != -1
6291 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6293 * target.c (gomp_target_init): Inside of the function, use automatic
6294 variables corresponding to num_devices, num_devices_openmp and devices
6295 global variables and update the globals only at the end of the
6298 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6300 * env.c (gomp_target_offload_var): New.
6301 (parse_target_offload): New.
6302 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6303 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6304 * libgomp.h (gomp_target_offload_t): New.
6305 (gomp_target_offload_var): New.
6306 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6307 * target.c (resolve_device): Generate error if device not found and
6308 offloading is mandatory.
6309 (gomp_target_fallback): Generate error if offloading is mandatory.
6310 (GOMP_target): Add argument in call to gomp_target_fallback.
6311 (GOMP_target_ext): Likewise.
6312 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6313 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6314 (GOMP_target_data_ext): Likewise.
6315 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6316 (gomp_target_init): Return early if offloading is disabled.
6318 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6320 * libgomp.texi (omp_get_max_active_levels): Modify description.
6321 (omp_get_supported_active_levels): Make descriptions consistent.
6323 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6325 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6327 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6329 * env.c (gomp_max_active_levels_var): Initialize to
6330 gomp_supported_active_levels.
6331 (initialize_env): Limit gomp_max_active_levels_var to be at most
6332 equal to gomp_supported_active_levels.
6333 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6334 (omp_get_supported_active_levels_): New.
6335 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6336 to at most equal to gomp_supported_active_levels.
6337 (omp_get_supported_active_levels): New.
6338 * libgomp.h (gomp_supported_active_levels): New.
6339 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6340 omp_get_supported_active_levels_.
6341 * libgomp.texi (omp_get_supported_active_levels): New.
6342 (omp_set_max_active_levels): Update. Add reference to
6343 omp_get_supported_active_levels.
6344 * omp.h.in (omp_get_supported_active_levels): New.
6345 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6346 * omp_lib.h.in (omp_get_supported_active_levels): New.
6347 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6348 against omp_get_supported_active_levels.
6349 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6351 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6353 * config/t-aix: Delete and recreate libgomp before creating
6356 2020-10-08 Tom de Vries <tdevries@suse.de>
6359 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6362 2020-10-06 Tom de Vries <tdevries@suse.de>
6364 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6366 2020-10-06 Tom de Vries <tdevries@suse.de>
6369 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6371 2020-10-05 Tom de Vries <tdevries@suse.de>
6374 * testsuite/libgomp.fortran/pr95654.f90: New test.
6376 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6378 * Makefile.in: Regenerate with automake 1.15.1.
6379 * aclocal.m4: Likewise.
6380 * configure: Likewise.
6381 * testsuite/Makefile.in: Likewise.
6383 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6385 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6388 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6390 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6392 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6394 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6395 total number of threads is one.
6396 (gomp_team_barrier_wake): Likewise.
6397 (gomp_team_barrier_wait_end): Likewise.
6398 (gomp_team_barrier_wait_cancel_end): Likewise.
6399 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6400 (gomp_team_barrier_wake): Likewise.
6401 (gomp_team_barrier_wait_end): Likewise.
6402 (gomp_team_barrier_wait_cancel_end): Likewise.
6403 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6405 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6408 * testsuite/libgomp.c++/pr96390.C: New test.
6409 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6411 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6413 * config/t-aix: Use $(AR) without -X32_64.
6415 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6417 * testsuite/libgomp.c/loop-25.c: New test.
6419 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6422 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6424 2020-09-22 Tom de Vries <tdevries@suse.de>
6426 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6429 2020-09-16 Nathan Sidwell <nathan@acm.org>
6431 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6433 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6436 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6438 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6441 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6442 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6443 (gomp_map_vars_existing): Update call to it.
6444 (gomp_map_fields_existing): Likewise
6445 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6446 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6448 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6450 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6451 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6453 2020-09-14 Tom de Vries <tdevries@suse.de>
6455 * config/nvptx/atomic.c: New file. Add
6456 __sync_val_compare_and_swap_16.
6457 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6458 target offload_target_nvptx.
6460 2020-09-08 Julian Brown <julian@codesourcery.com>
6462 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6463 iteration-ordering assumptions.
6465 2020-09-08 Julian Brown <julian@codesourcery.com>
6467 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6468 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6470 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6472 * plugin/plugin-nvptx.c (nvptx_free):
6473 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6474 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6477 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6479 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6481 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6483 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6485 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6487 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6488 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6489 * testsuite/libgomp.c/loop-24.c: New test.
6491 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6492 Tobias Burnus <tobias@codesourcery.com>
6495 * testsuite/libgomp.fortran/pr93553.f90: New test.
6497 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6499 * testsuite/libgomp.c/loop-22.c: New test.
6500 * testsuite/libgomp.c/loop-23.c: New test.
6502 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6505 * testsuite/libgomp.c/teams-3.c: New test.
6506 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6508 (N(test)): Use it before all N(f*) calls.
6509 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6510 (main): Don't call all test_* functions from within
6511 #pragma omp teams reduction(|:err), call them directly.
6513 2020-08-04 Tom de Vries <tdevries@suse.de>
6516 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6517 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6519 2020-08-03 Julian Brown <julian@codesourcery.com>
6520 Thomas Schwinge <thomas@codesourcery.com>
6522 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6523 shared-memory devices. Extend with further checking.
6525 2020-08-03 Martin Jambor <mjambor@suse.cz>
6527 * plugin/Makefrag.am: Remove configuration of HSA plugin.
6528 * aclocal.m4: Regenerated.
6529 * Makefile.in: Regenerated.
6530 * config.h.in: Regenerated.
6531 * configure: Regenerated.
6532 * plugin/configfrag.ac: Likewise.
6533 * plugin/hsa_ext_finalize.h: Removed.
6534 * plugin/plugin-hsa.c: Likewise.
6535 * testsuite/Makefile.in: Regenerated.
6536 * testsuite/lib/libgomp.exp
6537 (offload_target_to_openacc_device_type): Remove hsa case.
6538 (check_effective_target_hsa_offloading_selected_nocache): Removed
6539 (check_effective_target_hsa_offloading_selected): Likewise.
6540 (libgomp_init): Do not add -Wno-hsa to additional_flags.
6541 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6542 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6543 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6544 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6545 * testsuite/libgomp.hsa.c/c.exp: Likewise.
6546 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6547 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6548 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6549 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6550 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6551 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6552 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6553 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6554 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6555 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6556 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6557 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6558 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6559 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6560 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6561 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6562 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6563 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6564 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6566 2020-07-27 Julian Brown <julian@codesourcery.com>
6567 Thomas Schwinge <thomas@codesourcery.com>
6569 * libgomp.h (struct target_var_desc): Rename do_detach field to
6571 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
6572 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6573 (goacc_enter_data_internal): Don't affect reference counts
6574 for attach mappings.
6575 (goacc_exit_data_internal): Don't affect reference counts for detach
6577 * target.c (gomp_map_vars_existing): Don't affect reference counts for
6579 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6580 mark attach mappings.
6581 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6582 reference count for attach mappings.
6583 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6584 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6585 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6586 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6588 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6589 gracefully in no-finalize mode.
6590 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6592 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
6594 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6596 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6597 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6599 2020-07-23 Julian Brown <julian@codesourcery.com>
6600 Thomas Schwinge <thomas@codesourcery.com>
6602 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6603 finalization for detach operation.
6604 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6607 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
6609 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6610 * libgomp_f.h.in (omp_check_defines): Check whether
6611 sizeof of determined Fortran kind and C typedef match.
6612 * omp_lib.f90.in: Add omp_depened_kind.
6613 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6614 * configure: Regenerate.
6615 * Makefile.in: Regenerate.
6616 * testsuite/Makefile.in: Regenerate.
6618 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6620 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6621 gcc/testsuite/c-c++-common/gomp/.
6622 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6623 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6624 from gcc/testsuite/gfortran.dg/gomp/.
6625 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6627 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
6629 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6630 * omp_lib.h.in: Likewise.
6632 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6635 * testsuite/libgomp.c/pr95620.c: New test.
6637 2020-07-16 Julian Brown <julian@codesourcery.com>
6638 Thomas Schwinge <thomas@codesourcery.com>
6640 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6641 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6643 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6645 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6646 avoid conversion on 32bit systems from 32bit to 64bit due
6647 to -fdefault-integer-8.
6649 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6651 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6652 variables; add character(kind=4) tests; update TODO comment.
6654 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
6656 * allocator.c: Add ialias for omp_init_allocator and
6657 omp_destroy_allocator.
6658 * configure.ac: Set INTPTR_T_KIND.
6659 * configure: Regenerate.
6660 * Makefile.in: Regenerate.
6661 * testsuite/Makefile.in: Regenerate.
6662 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6663 omp_set_default_allocator_, omp_get_default_allocator_): New
6664 functions and ialias_redirect.
6665 * icv.c: Add ialias for omp_set_default_allocator and
6666 omp_get_default_allocator.
6667 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6668 omp_destroy_allocator_, omp_set_default_allocator_ and
6669 omp_get_default_allocator_.
6670 * omp_lib.f90.in: Add allocator traits parameters, declare
6671 allocator routines and add related kind parameters.
6672 * omp_lib.h.in: Likewise.
6673 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6674 * testsuite/libgomp.fortran/alloc-1.F90: New test.
6675 * testsuite/libgomp.fortran/alloc-2.F90: New test.
6676 * testsuite/libgomp.fortran/alloc-3.F: New test.
6677 * testsuite/libgomp.fortran/alloc-4.f90: New test.
6678 * testsuite/libgomp.fortran/alloc-5.f90: New test.
6680 2020-07-14 Tom de Vries <tom@codesourcery.com>
6681 Cesar Philippidis <cesar@codesourcery.com>
6682 Thomas Schwinge <thomas@codesourcery.com>
6683 Kwok Cheung Yeung <kcy@codesourcery.com>
6685 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6687 (acc_init_1): Set acc_init_thread to pthread_self (). Set
6688 acc_init_state to initializing at the start, and to initialized at the
6690 (self_initializing_p): New function.
6691 (acc_get_device_type): Return acc_device_none if called by thread that
6692 is currently executing acc_init_1.
6693 * libgomp.texi (acc_get_device_type): Update documentation.
6694 (Implementation Status and Implementation-Defined Behavior): Likewise.
6695 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6697 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6699 * config/t-aix: Set BITS from compiler cpp macro.
6701 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6703 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6705 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
6708 * testsuite/libgomp.fortran/target-map-1.f90: New test.
6710 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6712 * testsuite/libgomp.c/loop-21.c: New test.
6714 2020-07-13 Julian Brown <julian@codesourcery.com>
6715 Thomas Schwinge <thomas@codesourcery.com>
6717 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6719 2020-07-10 Julian Brown <julian@codesourcery.com>
6720 Thomas Schwinge <thomas@codesourcery.com>
6722 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6724 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6725 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6727 (acc_unmap_data): Update comment.
6728 (goacc_map_var_existing, goacc_enter_datum): Adjust for
6729 dynamic_refcount semantics.
6730 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6731 Adjust for dynamic_refcount semantics.
6732 (goacc_enter_data_internal): Implement "present" case of dynamic
6733 memory-map handling here. Update "non-present" case for
6734 dynamic_refcount semantics.
6735 (goacc_exit_data_internal): Use goacc_exit_datum_1.
6736 * target.c (gomp_map_vars_internal): Remove
6737 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
6739 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6740 (gomp_load_image_to_device): Substitute dynamic_refcount for
6742 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6743 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6744 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6745 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6746 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6748 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6750 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6752 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6753 Remove stale comment.
6754 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6755 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6756 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6757 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6758 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6759 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6761 2020-07-10 Julian Brown <julian@codesourcery.com>
6762 Thomas Schwinge <thomas@codesourcery.com>
6764 * oacc-mem.c (goacc_map_var_existing): New function.
6765 (goacc_enter_datum): Use above function.
6766 (goacc_exit_datum_1): New function.
6767 (goacc_exit_datum): Use above function.
6769 2020-07-09 Julian Brown <julian@codesourcery.com>
6770 Thomas Schwinge <thomas@codesourcery.com>
6773 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6774 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6776 2020-07-09 Julian Brown <julian@codesourcery.com>
6778 * oacc-mem.c (find_group_last): Group data-movement clauses
6779 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6780 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
6782 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6784 * testsuite/libgomp.c/loop-19.c: New test.
6785 * testsuite/libgomp.c/loop-20.c: New test.
6787 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6789 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6790 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
6791 it. Remove __omp_alloctrait_value_max__.
6792 * allocator.c (omp_init_allocator): Handle omp_atv_default for
6793 omp_atk_alignment and omp_atk_pool_size.
6795 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6797 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6798 behavior for 'GOMP_MAP_FORCE_FROM'.
6799 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6801 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
6803 * oacc-mem.c (goacc_exit_data_internal): Remove
6804 'GOMP_MAP_ALWAYS_FROM' handling.
6806 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6808 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6809 'scan-assembler' with 'scan-offload-rtl'.
6810 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6812 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6815 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
6817 * target.c (gomp_map_vars_existing): Assert 'kind !=
6819 (gomp_map_vars_internal): Clean up.
6821 2020-06-27 Jakub Jelinek <jakub@redhat.com>
6823 * testsuite/libgomp.c/loop-17.c: New test.
6824 * testsuite/libgomp.c/loop-18.c: New test.
6826 2020-06-26 Marek Polacek <polacek@redhat.com>
6828 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6830 2020-06-23 Alexandre Oliva <oliva@adacore.com>
6832 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6833 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6835 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
6837 * Makefile.am: Use -include.
6838 * Makefile.in: Regenerate.
6840 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
6842 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6843 * Makefile.in: Regenerate
6844 * configure.ac (tmake_file): Substitute.
6845 * configure: Regenerate.
6846 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6847 * config/t-aix: New file.
6849 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
6852 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6855 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
6857 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6858 variant for HSA_RUNTIME_LIB name.
6859 (find_executable_symbol_1): Delete.
6860 (find_executable_symbol): Delete.
6861 (init_kernel_properties): Add ".kd" suffix to symbol names.
6862 (find_load_offset): Delete.
6863 (create_and_finalize_hsa_program): Remove relocation handling.
6865 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
6867 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6869 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
6873 * testsuite/libgomp.fortran/target-var.f90: New test.
6875 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6876 Julian Brown <julian@codesourcery.com>
6878 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6881 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
6882 Julian Brown <julian@codesourcery.com>
6884 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6887 2020-06-05 Julian Brown <julian@codesourcery.com>
6889 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6890 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6892 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6894 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6895 Evaluate 'copyfrom' individually for each entry.
6896 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6898 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6900 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6901 Evaluate 'finalize' individually for each entry.
6902 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6903 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6906 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6908 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6910 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6912 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6913 Julian Brown <julian@codesourcery.com>
6915 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6917 (acc_unmap_data, goacc_exit_data_internal): Restore
6918 'is_tgt_unmapped' checking.
6919 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6921 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6922 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6923 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6924 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6925 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6926 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6928 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6929 Julian Brown <julian@codesourcery.com>
6931 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6933 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6936 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6938 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6941 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6944 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6945 Julian Brown <julian@codesourcery.com>
6947 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6949 (acc_map_data): Clean up accordingly.
6951 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6953 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6954 of over-eager 'finalize' clause.
6955 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6957 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6958 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6959 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6960 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6961 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6962 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6963 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6964 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6966 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6968 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6970 2020-06-04 Julian Brown <julian@codesourcery.com>
6972 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6974 (goacc_detach_internal): Likewise.
6976 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
6978 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6980 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6981 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6982 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6983 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6984 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6986 2020-06-02 Jakub Jelinek <jakub@redhat.com>
6988 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6991 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6993 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6995 2020-05-30 Jakub Jelinek <jakub@redhat.com>
6997 * allocator.c (omp_alloc): For size == 0, return NULL early.
6999 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7002 * configure: Regenerated.
7004 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7007 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7009 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7011 * omp.h.in (omp_uintptr_t): New typedef.
7012 (__GOMP_UINTPTR_T_ENUM): Define.
7013 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7014 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7015 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7016 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7017 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7018 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7019 (gomp_def_allocator): Declare.
7020 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7021 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7022 omp_alloc and omp_free.
7023 * team.c (gomp_team_start): Copy over ts.def_allocator.
7024 * env.c (gomp_def_allocator): New variable.
7025 (parse_wait_policy): Adjust function comment.
7026 (parse_allocator): New function.
7027 (handle_omp_display_env): Print OMP_ALLOCATOR.
7028 (initialize_env): Call parse_allocator.
7029 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7030 * allocator.c: New file.
7031 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7033 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7034 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7035 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7036 * Makefile.in: Regenerated.
7038 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7041 * configure: Regenerated.
7043 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7046 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7048 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7050 * configure: Regenerated.
7052 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7054 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7056 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7059 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7060 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7061 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7062 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7063 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7064 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7065 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7067 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7069 * testsuite/libgomp.c/target-39.c: New test.
7071 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7073 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7074 * openacc.f90 (acc_device_current): Likewise.
7075 * openacc.h (acc_device_current): Likewise.
7076 * openacc_lib.h (acc_device_current): Likewise.
7079 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7080 'dg-allow-blank-lines-in-output'.
7082 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7083 * testsuite/lib/libgomp.exp
7084 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7085 'radeon'. Adjust all users.
7086 (check_effective_target_openacc_amdgcn_accel_present): Rename
7088 (check_effective_target_openacc_radeon_accel_present): ... this.
7090 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7091 (check_effective_target_openacc_radeon_accel_selected): ... this.
7094 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7097 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7101 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7103 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7104 hsa_agent_iterate_regions.
7106 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7109 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7112 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7115 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7118 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7121 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7123 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7126 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7128 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7130 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7132 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7134 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7136 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7138 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7140 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7142 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7144 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7146 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7148 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7150 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7152 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7154 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7156 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7158 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7160 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7162 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7164 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7166 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7168 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7170 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7172 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7174 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7176 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7178 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7180 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7182 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7184 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7186 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7188 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7191 2020-04-10 Julian Brown <julian@codesourcery.com>
7192 Thomas Schwinge <thomas@codesourcery.com>
7195 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7197 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7199 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7201 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7203 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7205 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7207 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7209 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7211 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7213 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7215 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7217 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7219 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7221 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7223 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7225 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7228 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7230 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7233 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7236 * libgomp.oacc-c++/declare-pr94120.C: New.
7238 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7240 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7242 * configure: Regenerate.
7243 * testsuite/libgomp-site-extra.exp.in: New file.
7244 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7246 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7248 * testsuite/Makefile.in: Regenerate.
7250 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7252 PR tree-optimization/89713
7254 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7256 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7258 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7260 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7261 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7263 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7266 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7268 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7271 * target.c (gomp_load_image_to_device): Fix link
7274 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7277 * testsuite/libgomp.c++/pr93931.C: New test.
7279 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7281 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7282 dg-allow-blank-lines-in-output.
7284 2020-03-18 Julian Brown <julian@codesourcery.com>
7285 Tobias Burnus <tobias@codesourcery.com>
7287 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7288 it work concurrently.
7290 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7292 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7293 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7294 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7296 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7299 * testsuite/libgomp.c/pr93566.c: New test.
7301 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7303 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7304 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7305 integer(acc_device_property) for the type of the return value of
7308 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7310 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7311 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7312 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7313 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7314 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7315 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7316 corrections; add note about the previous interface and named constant.
7317 (OpenACC library and environment variables): Fix two typos.
7318 * openacc.f90: Use for all procedures the argument names from the spec
7319 as for …_h they are user visible.
7320 (openacc_kinds): Rename acc_device_property to
7321 acc_device_property_kinds and change value to int32 ; and update users.
7322 Re-add acc_device_property for for backward compatibility.
7323 (acc_get_property_string_h): Clean up as acc_device_property_kind
7325 (acc_get_property_h): Likewise and return c_size_t instead of
7326 acc_device_property.
7327 (openacc): Also export acc_device_property_kinds.
7328 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7329 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7330 handling; check against /= 0 instead of == 1 to match C.
7331 * openacc_lib.h: Use for all procedures the argument names from the spec
7332 as for …_h they are user visible. Place !GCC$ into the first column to
7333 be active also for fixed-form souce form.
7334 (acc_device_current, acc_device_property_kind, acc_device_property,
7335 acc_property_memory, acc_property_free_memory, acc_property_name,
7336 acc_property_vendor, acc_property_driver): New named constants.
7337 (acc_get_property, acc_get_property_string): New generic interface.
7339 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7342 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7343 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7345 (gomp_target_task_fn): Assert "devicep->async_run_func".
7346 (clear_unsupported_flags): New function to remove unsupported flags
7347 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7348 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7349 * testsuite/libgomp.c/target-33.c:
7350 Remove xfail for offload_target_nvptx.
7351 * testsuite/libgomp.c/target-34.c: Likewise.
7353 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7355 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7356 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7357 * testsuite/libgomp.c/target-34.c: Likewise.
7358 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7359 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7361 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7363 * testsuite/libgomp.c/target-38.c: New test.
7365 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7368 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7370 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7372 * testsuite/lib/libgomp.exp
7373 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7374 and not as 'source' argument to libgomp_target_compile.
7376 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7378 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7379 (gcn_gfx801_s): Remove.
7380 (isa_hsa_name): Remove gfx801.
7381 (isa_gcc_name): Remove gfx801/carizzo.
7382 (isa_code): Remove gfx801.
7384 2020-02-03 Julian Brown <julian@codesourcery.com>
7385 Tobias Burnus <tobias@codesourcery.com>
7387 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7388 and *_finalize variants; document acc_attach and acc_detach; update
7389 references from OpenACC 2.0 to 2.6.
7390 * openacc.f90 (openacc_version): Update to 201711.
7391 * openacc_lib.h (openacc_version): Update to 201711.
7392 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7393 openacc_version to 201711.
7394 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7396 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7398 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7399 and vgpr_count fields.
7400 (struct kernel_info): Add a field for a hsa_kernel_description.
7401 (run_kernel): Reduce the number of threads/workers if the requested
7402 number would require too many VGPRs.
7403 (init_basic_kernel_info): Initialize description field with
7404 the hsa_kernel_description entry for the kernel.
7406 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7409 * plugin/configfrag.ac (enable_offload_targets): Skip
7410 HSA and GCN plugin besides -m32 also for -mx32.
7411 * configure: Regenerate.
7413 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7415 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7417 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7419 * plugin-gcn.c (struct agent_info): Add fields "name" and
7421 (GOMP_OFFLOAD_init_device): ... and init from here.
7422 (struct hsa_context_info): Add field "driver_version_s" ...
7423 (init_hsa_contest): ... and init from here.
7424 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7426 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7427 Enable test execution for amdgcn and host offloading targets.
7428 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7429 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7430 (expect_device_properties): Split function into ...
7431 (expect_device_string_properties): ... this new function ...
7432 (expect_device_memory): ... and this new function.
7433 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7436 2020-01-28 Julian Brown <julian@codesourcery.com>
7438 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7439 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7440 component/non-component variable refs in a single directive.
7441 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7443 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7445 * configure.ac: Handle `--with-toolexeclibdir='.
7446 * Makefile.in: Regenerate.
7447 * aclocal.m4: Regenerate.
7448 * configure: Regenerate.
7449 * testsuite/Makefile.in: Regenerate.
7451 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7453 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7454 (expect_device_properties): Remove "expected_free_mem" argument,
7455 change "expected_total_mem" argument type to size_t;
7456 change types of acc_get_property results to size_t,
7457 adapt format strings.
7458 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7459 Use %zu instead of %zd to print size_t values.
7460 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7462 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7463 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7465 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7467 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7469 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7472 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7474 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7475 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7476 Adjust test dimensions for amdgcn.
7477 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7478 gang/worker/vector expectations dynamically.
7479 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7481 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7482 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7483 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7484 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7485 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7486 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7487 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7488 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7489 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7490 (acc_gang): Recognise acc_device_radeon.
7491 (acc_worker): Likewise.
7492 (acc_vector): Likewise.
7493 (main): Set expectations for amdgcn.
7494 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7495 (main): Adjust gang/worker/vector expectations dynamically.
7496 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7497 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7498 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7499 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7502 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7504 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7506 (openacc): Likewise.
7507 * openacc.f90 (openacc_kinds): Likewise.
7508 (openacc): Likewise.
7509 * openacc.h (acc_device_t): Likewise.
7510 * openacc_lib.h: Likewise.
7511 * testsuite/lib/libgomp.exp
7512 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7513 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7514 (cb_compute_construct_end): Likewise.
7515 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7516 (cb_enqueue_launch_start): Likewise.
7517 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7518 (cb_enter_data_end): Likewise.
7519 (cb_exit_data_start): Likewise.
7520 (cb_exit_data_end): Likewise.
7521 (cb_compute_construct_end): Likewise.
7522 (cb_enqueue_launch_start): Likewise.
7523 (cb_enqueue_launch_end): Likewise.
7524 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7527 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
7529 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
7530 to use this instead of 'enum gomp_device_property'.
7531 (GOMP_OFFLOAD_get_property): Rename to...
7532 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
7533 * libgomp.h (struct gomp_device_descr): Move
7534 'GOMP_OFFLOAD_openacc_get_property'...
7535 (struct acc_dispatch_t): ... here. Adjust all users.
7536 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7538 * target.c (gomp_map_vars_internal)
7539 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7542 2020-01-10 Jakub Jelinek <jakub@redhat.com>
7545 * libgomp.h (gomp_print_string): Change return type from void to int.
7546 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
7547 not all characters have been written.
7549 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
7551 * libgomp.texi: Fix typos, use https.
7553 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
7555 * testsuite/libgomp.fortran/optional-map.f90: Add test for
7556 unallocated/disassociated actual arguments to nonallocatable/nonpointer
7557 dummy arguments; those are/shall be regarded as absent arguments.
7558 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7559 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7561 2020-01-01 Jakub Jelinek <jakub@redhat.com>
7563 Update copyright years.
7565 * libgomp.texi: Bump @copying's copyright year.
7567 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
7570 * oacc-init.c (goacc_runtime_deinitialize): New function.
7572 2019-12-28 Jakub Jelinek <jakub@redhat.com>
7575 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7576 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
7578 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
7579 Frederik Harwath <frederik@codesourcery.com>
7580 Thomas Schwinge <tschwinge@codesourcery.com>
7582 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7583 * libgomp-plugin.h (gomp_device_property_value): New union.
7584 (gomp_device_property_value): New prototype.
7585 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7587 (acc_device_property_t): New enum.
7588 (acc_get_property, acc_get_property_string): New prototypes.
7589 * oacc-init.c (acc_get_device_type): Also assert that result
7590 is not `acc_device_current'.
7591 (get_property_any, acc_get_property, acc_get_property_string):
7593 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7594 `acc_property_memory', `acc_property_free_memory',
7595 `acc_property_name', `acc_property_vendor' and
7596 `acc_property_driver' constants. Add `acc_device_property' data
7598 (openacc_internal): Add `acc_get_property' and
7599 `acc_get_property_string' interfaces. Add `acc_get_property_h',
7600 `acc_get_property_string_h', `acc_get_property_l' and
7601 `acc_get_property_string_l'.
7602 * oacc-host.c (host_get_property): New function.
7603 (host_dispatch): Wire it.
7604 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7605 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7606 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7607 * libgomp.texi (OpenACC Runtime Library Routines): Add
7609 (acc_get_property): New node.
7610 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7612 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7613 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7614 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7616 (GOMP_OFFLOAD_get_property): New function.
7617 (struct ptx_device): Add new field "name".
7618 (cuda_driver_version_s): Add new static variable ...
7619 (nvptx_init): ... and init from here.
7621 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7622 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7623 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7624 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7625 with test helper functions.
7627 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7629 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
7631 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7634 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
7636 * target.c (gomp_map_vars_internal): Restore 'omp declare target
7639 2019-12-19 Julian Brown <julian@codesourcery.com>
7641 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7642 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7643 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7645 2019-12-19 Julian Brown <julian@codesourcery.com>
7646 Cesar Philippidis <cesar@codesourcery.com>
7648 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7649 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7650 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7651 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7652 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7653 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7654 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7655 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7656 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7657 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7658 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7659 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7660 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7662 2019-12-19 Julian Brown <julian@codesourcery.com>
7664 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7665 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7666 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7667 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7668 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7669 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7670 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7671 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7672 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7673 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7674 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7675 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7677 2019-12-19 Julian Brown <julian@codesourcery.com>
7679 * libgomp.h (struct target_var_desc): Add do_detach flag.
7680 * oacc-init.c (acc_shutdown_1): Free aux block if present.
7681 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7682 struct components. Tidy up and add some new checks.
7683 (goacc_enter_data_internal): Update call to find_group_last.
7684 (goacc_exit_data_internal): Support detach operations and
7686 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7687 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
7688 attach/detach in enter/exit data detection code.
7689 * target.c (gomp_map_vars_existing): Initialise do_detach field of
7691 (gomp_map_vars_internal): Support attach.
7692 (gomp_unmap_vars_internal): Support detach.
7694 2019-12-19 Julian Brown <julian@codesourcery.com>
7695 Thomas Schwinge <thomas@codesourcery.com>
7697 * libgomp.h (struct splay_tree_aux): Add attach_count field.
7698 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7699 * libgomp.map (OACC_2.6): New section. Add acc_attach,
7700 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7701 acc_detach_finalize_async.
7702 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7703 acc_detach, acc_detach_async, acc_detach_finalize,
7704 acc_detach_finalize_async): New functions.
7705 * openacc.h (acc_attach, acc_attach_async, acc_detach,
7706 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7708 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7709 (gomp_remove_var_internal): Free attachment counts if present.
7710 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7711 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7713 2019-12-19 Julian Brown <julian@codesourcery.com>
7714 Cesar Philippidis <cesar@codesourcery.com>
7716 * libgomp.h (gomp_map_val): Add prototype.
7717 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7718 open-coding device-address calculation.
7719 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7722 2019-12-19 Julian Brown <julian@codesourcery.com>
7724 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7725 field for virtual_refcount.
7726 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7727 (gomp_free_memmap): Remove prototype.
7728 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7729 instead of calling gomp_free_memmap.
7730 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7732 (acc_unmap_data): Open code instead of forcing target_mem_desc's
7733 to_free field to NULL then calling gomp_unmap_vars. Handle
7734 REFCOUNT_INFINITY on target blocks.
7735 (goacc_enter_data): Rename to...
7736 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
7737 handling for mapping groups. Use virtual_refcount instead of
7738 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7739 map_map_vars_async call. Re-do lookup for target pointer return value.
7740 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7741 renamed goacc_enter_datum function.
7742 (goacc_exit_data): Rename to...
7743 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
7744 (acc_delete, acc_delete_async, acc_delete_finalize,
7745 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7746 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7747 goacc_exit_datum function.
7748 (gomp_acc_remove_pointer, find_pointer): Remove functions.
7749 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7751 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7752 goacc_exit_data_internal helper functions.
7753 * target.c (gomp_map_vars_internal): Handle
7754 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
7756 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7757 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7758 virtual_refcount field instead of dynamic_refcount.
7759 (gomp_free_memmap): Remove function.
7760 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7761 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7762 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7764 2019-12-19 Julian Brown <julian@codesourcery.com>
7765 Thomas Schwinge <thomas@codesourcery.com>
7767 * libgomp.h (struct splay_tree_aux): New.
7768 (struct splay_tree_key_s): Replace link_key field with aux pointer.
7769 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7771 (gomp_remove_var_internal): Free aux block if present.
7772 (gomp_load_image_to_device): Zero-initialise aux field instead of
7774 (omp_target_associate_pointer): Zero-initialise aux field.
7776 2019-12-18 Jakub Jelinek <jakub@redhat.com>
7779 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7781 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7784 2019-12-19 Julian Brown <julian@codesourcery.com>
7785 Maciej W. Rozycki <macro@codesourcery.com>
7786 Tobias Burnus <tobias@codesourcery.com>
7787 Thomas Schwinge <thomas@codesourcery.com>
7789 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7790 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7791 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7792 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7793 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7794 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7795 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7796 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7797 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7799 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
7801 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7803 (goacc_insert_pointer): ... from here, "present" case.
7804 (goacc_insert_pointer): Inline function into...
7805 (GOACC_enter_exit_data): ... here, and simplify.
7807 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7809 (goacc_insert_pointer): ... from here, "not present" case.
7811 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
7814 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7815 'goacc_enter_data', 'goacc_exit_data'.
7817 * oacc-mem.c (delete_copyout): Refactor into...
7818 (goacc_exit_data): ... this. Adjust all users.
7820 * oacc-mem.c (present_create_copy): Refactor into...
7821 (goacc_enter_data): ... this. Adjust all users.
7823 * target.c (gomp_unmap_vars_internal): Add a safeguard to
7826 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7827 like 'GOMP_MAP_FROM'.
7832 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7834 (GOACC_enter_exit_data): Simplify accordingly.
7835 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7837 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7838 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7840 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7842 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7843 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7845 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7847 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7849 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7850 'finalize' handling.
7853 * oacc-mem.c (acc_map_data, present_create_copy)
7854 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7855 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7856 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7857 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7858 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7859 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7860 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7861 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7864 * target.c (gomp_unmap_tgt): Make it 'static'.
7865 * libgomp.h (gomp_unmap_tgt): Remove.
7867 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7870 * testsuite/libgomp.c/pr86416-1.c: New.
7871 * testsuite/libgomp.c/pr86416-2.c: New.
7873 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
7875 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7876 all symbols as public except for the 'use …, only' imported symbol,
7878 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7879 all symbols from module openacc_kinds as PUBLIC
7880 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7882 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7884 2019-12-13 Julian Brown <julian@codesourcery.com>
7888 * libgomp.h (gomp_remove_var_async): Add prototype.
7889 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7891 * target.c (gomp_unref_tgt): Change return type to bool, indicating
7892 whether target_mem_desc was unmapped.
7893 (gomp_unref_tgt_void): New.
7894 (gomp_remove_var): Reimplement in terms of...
7895 (gomp_remove_var_internal): ...this new helper function.
7896 (gomp_remove_var_async): New, implemented using above helper function.
7897 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7900 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
7902 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7903 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7904 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7905 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7906 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7908 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7909 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7911 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
7913 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7914 as public except for the 'use …, only' imported symbol, which is
7916 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7917 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7918 attributes for acc_copyout_finalize and acc_delete_finalize.
7920 2019-12-11 Jakub Jelinek <jakub@redhat.com>
7923 * testsuite/libgomp.fortran/atomic1.f90: New test.
7925 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7928 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7929 reference counting for structured 'REFCOUNT_INFINITY'. Add some
7931 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7932 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7933 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7934 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7935 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7937 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7938 * oacc-mem.c: ... here.
7939 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7940 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7941 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7943 * libgomp_g.h: Update.
7945 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7946 * oacc-async.c: ... here.
7947 * oacc-int.h (goacc_wait): Declare.
7948 * libgomp_g.h: Update
7951 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7953 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7955 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7957 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7959 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7961 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7964 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
7965 Julian Brown <julian@codesourcery.com>
7967 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7968 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7970 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7972 * omp_lib.h.in: Fix spelling of function declaration
7973 omp_get_cancell(l)ation.
7974 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7976 * env.c: Fix comment typos.
7977 * oacc-host.c: Likewise.
7978 * ordered.c: Likewise.
7981 * config/gcn/task.c: Likewise.
7982 * config/gcn/team.c: Likewise.
7983 * config/nvptx/task.c: Likewise.
7984 * config/nvptx/team.c: Likewise.
7985 * plugin/plugin-gcn.c: Likewise.
7986 * testsuite/libgomp.fortran/jacobi.f: Likewise.
7987 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7990 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
7992 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7993 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7994 unnecessary 'dg-additional-options "-w"'.
7996 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
7997 Julian Brown <julian@codesourcery.com>
8002 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8003 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8005 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8007 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8009 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8011 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8014 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8015 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8017 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8019 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8021 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8023 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8025 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8027 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8028 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8029 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8030 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8031 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8032 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8033 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8034 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8035 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8036 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8039 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8040 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8041 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8043 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8045 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8047 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8048 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8051 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8053 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8055 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8057 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8059 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8060 ... with their content moved into, and extended in this new file.
8061 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8063 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8065 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8067 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8070 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8073 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8075 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8077 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8079 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8081 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8083 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8084 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8085 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8086 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8088 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8089 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8091 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8093 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8095 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8096 Kwok Cheung Yeung <kcy@codesourcery.com>
8098 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8099 if input it a NULL pointer.
8100 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8101 diagnostic of NULL pointer.
8102 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8103 * testsuite/libgomp.fortran/optional-map.f90: New.
8104 * testsuite/libgomp.fortran/use_device_addr-1.f90
8105 (test_dummy_opt_callee_1_absent): New.
8106 (test_dummy_opt_call_1): Call it.
8107 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8108 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8109 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8110 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8111 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8112 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8113 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8114 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8115 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8116 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8117 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8118 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8119 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8120 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8121 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8122 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8124 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8126 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8127 expect dg-output of 'Error termination.' for GCN.
8128 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8129 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8131 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8134 * testsuite/libgomp.fortran/teams1.f90: New test.
8135 * testsuite/libgomp.fortran/teams2.f90: New test.
8137 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8139 * oacc-init.c (acc_known_device_type): Add function.
8140 (unknown_device_type_error): Add function.
8141 (name_of_acc_device_t): Change to call unknown_device_type_error
8143 (resolve_device): Use acc_known_device_type.
8144 (acc_init): Fail if acc_device_t argument is not valid.
8145 (acc_shutdown): Likewise.
8146 (acc_get_num_devices): Likewise.
8147 (acc_set_device_type): Likewise.
8148 (acc_get_device_num): Likewise.
8149 (acc_set_device_num): Likewise.
8150 (acc_on_device): Add comment that argument validity is not checked.
8152 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8154 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8156 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8157 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8158 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8159 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8160 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8162 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8165 * configure.tgt: Avoid IE tls on *-*-musl*.
8167 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8169 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8170 adding a common-block test case.
8172 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8175 * testsuite/libgomp.c++/udr-20.C: New test.
8176 * testsuite/libgomp.c++/udr-21.C: New test.
8178 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8180 * testsuite/lib/libgomp.exp
8181 (check_effective_target_offload_target_nvptx): New proc.
8182 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8184 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8185 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8186 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8188 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8190 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8191 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8192 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8193 * testsuite/libgomp.c/private-1.c: Likewise.
8194 * testsuite/libgomp.c/task-1.c: Likewise.
8195 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8197 2019-11-20 Julian Brown <julian@codesourcery.com>
8199 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8201 (queue_push_launch): Lock aq->mutex before calling
8202 wait_for_queue_nonfull.
8203 (queue_push_callback): Likewise.
8204 (queue_push_asyncwait): Likewise.
8205 (queue_push_placeholder): Likewise.
8207 2019-11-20 Julian Brown <julian@codesourcery.com>
8209 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8210 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8211 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8214 2019-11-20 Julian Brown <julian@codesourcery.com>
8218 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8219 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8220 in non-present/create case.
8221 (delete_copyout): Change error condition to fail only on copies outside
8222 of mapped block. Adjust error message accordingly.
8223 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8224 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8225 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8227 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8229 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8231 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8233 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8234 libatomic in build-tree testing.
8236 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8238 * testsuite/Makefile.in: Regenerate.
8240 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8242 * testsuite/libgomp.c/target-print-1.c: New file.
8243 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8244 * testsuite/libgomp.oacc-c/print-1.c: New file.
8245 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8247 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8248 Kwok Cheung Yeung <kcy@codesourcery.com>
8249 Julian Brown <julian@codesourcery.com>
8250 Tom de Vries <tom@codesourcery.com>
8252 * plugin/Makefrag.am: Add amdgcn plugin support.
8253 * plugin/configfrag.ac: Likewise.
8254 * plugin/plugin-gcn.c: New file.
8255 * configure: Regenerate.
8256 * Makefile.in: Regenerate.
8257 * testsuite/Makefile.in: Regenerate.
8259 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8261 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8262 and use team_malloc variants.
8263 (gomp_gcn_exit_kernel): Use team_free.
8264 * libgomp.h (TEAM_ARENA_SIZE): Define.
8265 (TEAM_ARENA_START): Define.
8266 (TEAM_ARENA_FREE): Define.
8267 (TEAM_ARENA_END): Define.
8268 (team_malloc): New function.
8269 (team_malloc_cleared): New function.
8270 (team_free): New function.
8271 * team.c (gomp_new_team): Initialize and use team_malloc.
8272 (free_team): Use team_free.
8273 (gomp_free_thread): Use team_free.
8274 (gomp_pause_host): Use team_free.
8275 * work.c (gomp_init_work_share): Use team_malloc.
8276 (gomp_fini_work_share): Use team_free.
8278 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8279 Kwok Cheung Yeung <kcy@codesourcery.com>
8280 Julian Brown <julian@codesourcery.com>
8281 Tom de Vries <tom@codesourcery.com>
8283 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8284 * Makefile.in: Regenerate.
8285 * config.h.in (PLUGIN_GCN): Add new undef.
8286 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8287 * config/gcn/affinity-fmt.c: New file.
8288 * config/gcn/bar.c: New file.
8289 * config/gcn/bar.h: New file.
8290 * config/gcn/doacross.h: New file.
8291 * config/gcn/icv-device.c: New file.
8292 * config/gcn/oacc-target.c: New file.
8293 * config/gcn/simple-bar.h: New file.
8294 * config/gcn/target.c: New file.
8295 * config/gcn/task.c: New file.
8296 * config/gcn/team.c: New file.
8297 * config/gcn/time.c: New file.
8298 * configure.ac: Add amdgcn*-*-*.
8299 * configure: Regenerate.
8300 * configure.tgt: Add amdgcn*-*-*.
8301 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8302 * libgomp.h (gcn_thrs): Add amdgcn variant.
8303 (set_gcn_thrs): Likewise.
8304 (gomp_thread): Likewise.
8305 * oacc-int.h (goacc_thread): Likewise.
8306 * oacc-target.c: New file.
8307 * openacc.f90 (acc_device_gcn): New parameter.
8308 * openacc.h (acc_device_t): Add acc_device_gcn.
8309 * team.c (gomp_free_pool_helper): Add amdgcn support.
8311 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8312 Julian Brown <julian@codesourcery.com>
8314 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8316 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8318 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8319 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8322 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8324 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8325 * config/nvptx/libgomp-plugin.c: Move ...
8326 * config/accel/libgomp-plugin.c: ... to here.
8327 * config/nvptx/lock.c: Move ...
8328 * config/accel/lock.c: ... to here.
8329 * config/nvptx/mutex.c: Move ...
8330 * config/accel/mutex.c: ... to here.
8331 * config/nvptx/mutex.h: Move ...
8332 * config/accel/mutex.h: ... to here.
8333 * config/nvptx/oacc-async.c: Move ...
8334 * config/accel/oacc-async.c: ... to here.
8335 * config/nvptx/oacc-cuda.c: Move ...
8336 * config/accel/oacc-cuda.c: ... to here.
8337 * config/nvptx/oacc-host.c: Move ...
8338 * config/accel/oacc-host.c: ... to here.
8339 * config/nvptx/oacc-init.c: Move ...
8340 * config/accel/oacc-init.c: ... to here.
8341 * config/nvptx/oacc-mem.c: Move ...
8342 * config/accel/oacc-mem.c: ... to here.
8343 * config/nvptx/oacc-plugin.c: Move ...
8344 * config/accel/oacc-plugin.c: ... to here.
8345 * config/nvptx/omp-lock.h: Move ...
8346 * config/accel/omp-lock.h: ... to here.
8347 * config/nvptx/openacc.f90: Move ...
8348 * config/accel/openacc.f90: ... to here.
8349 * config/nvptx/pool.h: Move ...
8350 * config/accel/pool.h: ... to here.
8351 * config/nvptx/proc.c: Move ...
8352 * config/accel/proc.c: ... to here.
8353 * config/nvptx/ptrlock.c: Move ...
8354 * config/accel/ptrlock.c: ... to here.
8355 * config/nvptx/ptrlock.h: Move ...
8356 * config/accel/ptrlock.h: ... to here.
8357 * config/nvptx/sem.c: Move ...
8358 * config/accel/sem.c: ... to here.
8359 * config/nvptx/sem.h: Move ...
8360 * config/accel/sem.h: ... to here.
8361 * config/nvptx/thread-stacksize.h: Move ...
8362 * config/accel/thread-stacksize.h: ... to here.
8364 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8365 Tobias Burnus <tobias@codesourcery.com>
8366 Frederik Harwath <frederik@codesourcery.com>
8367 Thomas Schwinge <thomas@codesourcery.com>
8370 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8371 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8372 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8374 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8375 Kwok Cheung Yeung <kcy@codesourcery.com>
8377 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8378 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8380 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8382 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8384 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8386 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8387 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8389 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8391 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8392 Add expected warnings about missing reduction clauses.
8393 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8395 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8397 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8400 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8402 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8403 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8404 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8405 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8406 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8407 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8409 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8412 * testsuite/libgomp.fortran/allocatable2.f90: Use
8413 unique numbers with 'stop'.
8414 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8415 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8416 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8417 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8418 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8420 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8422 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8423 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8424 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8425 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8426 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8427 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8429 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8431 * testsuite/libgomp.fortran/target9.f90: New.
8433 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8435 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8436 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8437 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8438 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8439 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8440 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8441 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8442 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8443 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8444 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8445 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8446 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8447 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8448 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8449 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8450 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8451 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8452 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8453 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8454 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8455 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8456 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8457 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8458 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8459 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8460 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8461 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8462 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8463 * testsuite/libgomp.fortran/character1.f90: Ditto.
8464 * testsuite/libgomp.fortran/character2.f90: Ditto.
8465 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8466 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8467 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8468 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8469 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8470 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8471 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8472 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8473 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8474 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8475 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8476 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8477 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8478 * testsuite/libgomp.fortran/do1.f90: Ditto.
8479 * testsuite/libgomp.fortran/do2.f90: Ditto.
8480 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8481 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8482 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8483 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8484 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8485 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8486 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8487 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8488 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8489 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8490 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8491 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8492 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8493 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8494 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8495 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8496 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8497 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8498 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8499 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8500 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8501 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8502 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8503 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8504 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8505 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8506 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8507 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8508 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8509 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8510 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8511 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8512 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8513 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8514 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8515 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8516 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8517 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8518 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8519 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8520 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8521 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8522 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8523 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8524 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8525 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8526 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8527 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8528 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8529 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8530 * testsuite/libgomp.fortran/lib1.f90: Ditto.
8531 * testsuite/libgomp.fortran/lib4.f90: Ditto.
8532 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8533 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8534 * testsuite/libgomp.fortran/nested1.f90: Ditto.
8535 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8536 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8537 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8538 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8539 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8540 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8541 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8542 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8543 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8544 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8545 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8546 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8547 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8548 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8549 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8550 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8551 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8552 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8553 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8554 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8555 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8556 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8557 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8558 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8559 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8560 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8561 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8562 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8563 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8564 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8565 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8566 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8567 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8568 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8569 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8570 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8571 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8572 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8573 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8574 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8575 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8576 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8577 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8578 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8579 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8580 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8581 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8582 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8583 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8584 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8585 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8586 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8587 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8588 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8589 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8590 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8591 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8592 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8593 * testsuite/libgomp.fortran/reference1.f90: Ditto.
8594 * testsuite/libgomp.fortran/reference2.f90: Ditto.
8595 * testsuite/libgomp.fortran/retval1.f90: Ditto.
8596 * testsuite/libgomp.fortran/retval2.f90: Ditto.
8597 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8598 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8599 * testsuite/libgomp.fortran/simd1.f90: Ditto.
8600 * testsuite/libgomp.fortran/simd2.f90: Ditto.
8601 * testsuite/libgomp.fortran/simd3.f90: Ditto.
8602 * testsuite/libgomp.fortran/simd4.f90: Ditto.
8603 * testsuite/libgomp.fortran/simd5.f90: Ditto.
8604 * testsuite/libgomp.fortran/simd6.f90: Ditto.
8605 * testsuite/libgomp.fortran/simd7.f90: Ditto.
8606 * testsuite/libgomp.fortran/stack.f90: Ditto.
8607 * testsuite/libgomp.fortran/strassen.f90: Ditto.
8608 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8609 * testsuite/libgomp.fortran/tabs2.f: Ditto.
8610 * testsuite/libgomp.fortran/target1.f90: Ditto.
8611 * testsuite/libgomp.fortran/target2.f90: Ditto.
8612 * testsuite/libgomp.fortran/target3.f90: Ditto.
8613 * testsuite/libgomp.fortran/target4.f90: Ditto.
8614 * testsuite/libgomp.fortran/target5.f90: Ditto.
8615 * testsuite/libgomp.fortran/target6.f90: Ditto.
8616 * testsuite/libgomp.fortran/target7.f90: Ditto.
8617 * testsuite/libgomp.fortran/target8.f90: Ditto.
8618 * testsuite/libgomp.fortran/task1.f90: Ditto.
8619 * testsuite/libgomp.fortran/task2.f90: Ditto.
8620 * testsuite/libgomp.fortran/task3.f90: Ditto.
8621 * testsuite/libgomp.fortran/task4.f90: Ditto.
8622 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8623 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8624 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8625 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8626 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8627 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8628 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8629 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8630 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8631 * testsuite/libgomp.fortran/udr1.f90: Ditto.
8632 * testsuite/libgomp.fortran/udr10.f90: Ditto.
8633 * testsuite/libgomp.fortran/udr11.f90: Ditto.
8634 * testsuite/libgomp.fortran/udr12.f90: Ditto.
8635 * testsuite/libgomp.fortran/udr13.f90: Ditto.
8636 * testsuite/libgomp.fortran/udr14.f90: Ditto.
8637 * testsuite/libgomp.fortran/udr15.f90: Ditto.
8638 * testsuite/libgomp.fortran/udr2.f90: Ditto.
8639 * testsuite/libgomp.fortran/udr3.f90: Ditto.
8640 * testsuite/libgomp.fortran/udr4.f90: Ditto.
8641 * testsuite/libgomp.fortran/udr5.f90: Ditto.
8642 * testsuite/libgomp.fortran/udr6.f90: Ditto.
8643 * testsuite/libgomp.fortran/udr7.f90: Ditto.
8644 * testsuite/libgomp.fortran/udr8.f90: Ditto.
8645 * testsuite/libgomp.fortran/udr9.f90: Ditto.
8646 * testsuite/libgomp.fortran/vla1.f90: Ditto.
8647 * testsuite/libgomp.fortran/vla2.f90: Ditto.
8648 * testsuite/libgomp.fortran/vla3.f90: Ditto.
8649 * testsuite/libgomp.fortran/vla4.f90: Ditto.
8650 * testsuite/libgomp.fortran/vla5.f90: Ditto.
8651 * testsuite/libgomp.fortran/vla6.f90: Ditto.
8652 * testsuite/libgomp.fortran/vla7.f90: Ditto.
8653 * testsuite/libgomp.fortran/vla8.f90: Ditto.
8654 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8655 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8657 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8659 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8660 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8661 Ditto; add 'dg-do run' for torture testing.
8662 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
8663 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8664 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8665 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8666 * testsuite/libgomp.fortran/pr28390.f: Ditto.
8667 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8668 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8669 * testsuite/libgomp.fortran/task2.f90: Ditto.
8670 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8671 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8672 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8673 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8674 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8675 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8677 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
8679 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8680 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8681 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8682 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8683 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8684 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8685 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8686 Use 'stop' not abort().
8687 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8688 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8689 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8690 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8691 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8692 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8693 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8694 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8695 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8696 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8697 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8698 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8699 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8700 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8701 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8702 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8703 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8705 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8707 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8709 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8711 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8713 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8715 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8717 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8719 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8721 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8723 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8725 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8727 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8729 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8731 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8732 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8733 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8734 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8735 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8736 Likewise and also add 'dg-do run'.
8737 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8740 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
8741 Tobias Burnus <tobias@codesourcery.com>
8743 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8744 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8745 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8747 2019-10-14 Jakub Jelinek <jakub@redhat.com>
8750 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8753 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8755 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8756 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8758 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
8761 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8764 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
8767 * testsuite/libgomp.fortran/fortran.exp: Conditionally
8769 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8771 2019-10-09 Jakub Jelinek <jakub@redhat.com>
8774 * target.c (gomp_map_vars_internal): Readd the previous
8775 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8776 though do that just in the !not_found_cnt case.
8778 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
8780 * gfortran.dg/gomp/target-simd.f90: New.
8782 2019-10-02 Julian Brown <julian@codesourcery.com>
8783 Cesar Philippidis <cesar@codesourcery.com>
8785 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8786 * target.c (FIELD_TGT_EMPTY): Define.
8787 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
8788 as switch instead of list of ifs.
8789 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8791 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
8793 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8794 include. Replace alloca () with __builtin_alloca ().
8795 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8797 2019-10-01 Jakub Jelinek <jakub@redhat.com>
8799 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8800 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8801 * oacc-parallel.c: Don't include "libgomp_g.h".
8802 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8803 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8804 * aclocal.m4: Regenerated.
8805 * config.h.in: Regenerated.
8806 * configure: Regenerated.
8807 * Makefile.in: Regenerated.
8809 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
8811 * libgomp_g.h: Include stdint.h instead of gstdint.h.
8813 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8815 * configure: Regenerate.
8817 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
8819 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8820 string is initialized.
8822 2019-09-06 Florian Weimer <fweimer@redhat.com>
8824 * configure: Regenerate.
8826 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
8829 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8830 scanning to conform to the GNU Coding Standards.
8831 * configure: Regenerate.
8833 2019-08-28 Jakub Jelinek <jakub@redhat.com>
8836 * testsuite/libgomp.c/scan-21.c: New test.
8837 * testsuite/libgomp.c/scan-22.c: New test.
8839 2019-08-27 Jakub Jelinek <jakub@redhat.com>
8842 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8844 * testsuite/libgomp.c/scan-12.c: Likewise.
8845 * testsuite/libgomp.c/scan-13.c: Likewise.
8846 * testsuite/libgomp.c/scan-14.c: Likewise.
8847 * testsuite/libgomp.c/scan-15.c: Likewise.
8848 * testsuite/libgomp.c/scan-16.c: Likewise.
8849 * testsuite/libgomp.c/scan-17.c: Likewise.
8850 * testsuite/libgomp.c/scan-18.c: Likewise.
8851 * testsuite/libgomp.c/scan-19.c: Likewise.
8852 * testsuite/libgomp.c/scan-20.c: Likewise.
8853 * testsuite/libgomp.c++/scan-9.C: Likewise.
8854 * testsuite/libgomp.c++/scan-10.C: Likewise.
8855 * testsuite/libgomp.c++/scan-11.C: Likewise.
8856 * testsuite/libgomp.c++/scan-12.C: Likewise.
8857 * testsuite/libgomp.c++/scan-14.C: Likewise.
8858 * testsuite/libgomp.c++/scan-15.C: Likewise.
8859 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
8860 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8861 * testsuite/libgomp.c++/scan-16.C: Likewise.
8863 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
8866 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8867 -std=legacy so invalid code in the test case is accepted.
8869 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
8872 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8875 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8877 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8878 perform the lookup in the first loop only if !not_found_cnt, otherwise
8879 perform lookups for it in the second loop guarded with
8880 if (not_found_cnt || has_firstprivate).
8881 * testsuite/libgomp.c/target-37.c: New test.
8882 * testsuite/libgomp.c++/target-22.C: New test.
8884 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8886 * testsuite/libgomp.c/target-18.c (struct S): New type.
8887 (foo): Use use_device_addr clause instead of use_device_ptr clause
8888 where required by OpenMP 5.0, add further tests for both use_device_ptr
8889 and use_device_addr clauses.
8890 * testsuite/libgomp.c++/target-9.C (struct S): New type.
8891 (foo): Use use_device_addr clause instead of use_device_ptr clause
8892 where required by OpenMP 5.0, add further tests for both use_device_ptr
8893 and use_device_addr clauses. Add t and u arguments.
8894 (main): Adjust caller.
8896 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8898 * testsuite/libgomp.c++/loop-13.C: New test.
8899 * testsuite/libgomp.c++/loop-14.C: New test.
8900 * testsuite/libgomp.c++/loop-15.C: New test.
8902 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8905 * testsuite/libgomp.c++/for-27.C: New test.
8907 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
8909 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8910 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8912 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8914 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8916 2019-07-08 Jakub Jelinek <jakub@redhat.com>
8918 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8919 * testsuite/libgomp.c++/scan-16.C: Likewise.
8921 2019-07-06 Jakub Jelinek <jakub@redhat.com>
8923 * testsuite/libgomp.c/scan-19.c: New test.
8924 * testsuite/libgomp.c/scan-20.c: New test.
8926 * testsuite/libgomp.c/scan-11.c: New test.
8927 * testsuite/libgomp.c/scan-12.c: New test.
8928 * testsuite/libgomp.c/scan-13.c: New test.
8929 * testsuite/libgomp.c/scan-14.c: New test.
8930 * testsuite/libgomp.c/scan-15.c: New test.
8931 * testsuite/libgomp.c/scan-16.c: New test.
8932 * testsuite/libgomp.c/scan-17.c: New test.
8933 * testsuite/libgomp.c/scan-18.c: New test.
8934 * testsuite/libgomp.c++/scan-9.C: New test.
8935 * testsuite/libgomp.c++/scan-10.C: New test.
8936 * testsuite/libgomp.c++/scan-11.C: New test.
8937 * testsuite/libgomp.c++/scan-12.C: New test.
8938 * testsuite/libgomp.c++/scan-13.C: New test.
8939 * testsuite/libgomp.c++/scan-14.C: New test.
8940 * testsuite/libgomp.c++/scan-15.C: New test.
8941 * testsuite/libgomp.c++/scan-16.C: New test.
8943 2019-07-04 Jakub Jelinek <jakub@redhat.com>
8945 * testsuite/libgomp.c/scan-9.c: New test.
8946 * testsuite/libgomp.c/scan-10.c: New test.
8948 2019-07-03 Jakub Jelinek <jakub@redhat.com>
8950 * testsuite/libgomp.c++/scan-1.C: New test.
8951 * testsuite/libgomp.c++/scan-2.C: New test.
8952 * testsuite/libgomp.c++/scan-3.C: New test.
8953 * testsuite/libgomp.c++/scan-4.C: New test.
8954 * testsuite/libgomp.c++/scan-5.C: New test.
8955 * testsuite/libgomp.c++/scan-6.C: New test.
8956 * testsuite/libgomp.c++/scan-7.C: New test.
8957 * testsuite/libgomp.c++/scan-8.C: New test.
8958 * testsuite/libgomp.c/scan-1.c: New test.
8959 * testsuite/libgomp.c/scan-2.c: New test.
8960 * testsuite/libgomp.c/scan-3.c: New test.
8961 * testsuite/libgomp.c/scan-4.c: New test.
8962 * testsuite/libgomp.c/scan-5.c: New test.
8963 * testsuite/libgomp.c/scan-6.c: New test.
8964 * testsuite/libgomp.c/scan-7.c: New test.
8965 * testsuite/libgomp.c/scan-8.c: New test.
8967 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8969 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8970 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8973 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8976 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
8978 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8981 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8984 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8986 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8987 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8988 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8989 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8992 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8995 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8997 2019-06-16 Tom de Vries <tdevries@suse.de>
8999 PR tree-optimization/89376
9000 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9002 2019-06-15 Tom de Vries <tdevries@suse.de>
9004 PR tree-optimization/89713
9005 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9006 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9008 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9011 * testsuite/libgomp.c/pr90779.c: New test.
9012 * testsuite/libgomp.fortran/pr90779.f90: New test.
9014 2019-06-15 Tom de Vries <tdevries@suse.de>
9016 PR tree-optimization/90009
9017 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9019 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9021 PR tree-optimization/89713
9022 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9024 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9027 * testsuite/libgomp.c/pr90811.c: New test.
9029 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9031 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9032 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9034 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9036 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9037 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9038 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9039 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9041 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9043 * configure.ac: Call AX_COUNT_CPUS.
9044 Substitute CPU_COUNT.
9045 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9047 * aclocal.m4: Regenerate.
9048 * configure: Regenerate.
9049 * Makefile.in, testsuite/Makefile.in: Regenerate.
9051 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9053 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9055 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9056 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9057 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9059 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9061 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9063 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9066 * work.c (gomp_init_work_share): Instead of aligning final ordered
9067 value to multiples of long long alignment, align to that the
9068 first part (ordered team ids) and if inline_ordered_team_ids
9069 is not on a long long alignment boundary within the structure,
9070 use __alignof__ (long long) - 1 pad size always.
9071 * loop.c (GOMP_loop_start): Fix *mem computation if
9072 inline_ordered_team_ids is not aligned on long long alignment boundary
9073 within the structure.
9074 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9075 * sections.c (GOMP_sections2_start): Likewise.
9077 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9079 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9080 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9083 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9084 HAVE_INTTYPES_H is defined.
9085 (print_uint64_t): New typedef.
9086 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9087 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9088 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9089 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9090 before casting to void *.
9091 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9092 * oacc-mem.c: Don't include config.h nor stdint.h.
9093 * target.c: Don't include config.h.
9094 * oacc-cuda.c: Likewise.
9095 * oacc-host.c: Don't include stdint.h.
9097 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9100 * alloc.c (_GNU_SOURCE): Define.
9102 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9104 * acc_prof.h: New file.
9105 * oacc-profiling.c: Likewise.
9106 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9107 Add these, respectively.
9108 * Makefile.in: Regenerate.
9109 * env.c (initialize_env): Call goacc_profiling_initialize.
9110 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9111 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9112 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9113 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9114 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9115 acc_prof_register, acc_prof_unregister, and acc_register_library.
9116 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9117 GOMP_PLUGIN_goacc_thread.
9118 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9119 prof_callbacks_enabled members.
9120 (goacc_prof_enabled, goacc_profiling_initialize)
9121 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9122 (goacc_profiling_dispatch): Declare.
9123 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9124 (GOACC_PROFILING_SETUP_P): Define.
9125 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9126 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9127 OpenACC Profiling Interface.
9128 * oacc-cuda.c (acc_get_current_cuda_device)
9129 (acc_get_current_cuda_context, acc_get_cuda_stream)
9130 (acc_set_cuda_stream): Likewise.
9131 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9132 (acc_init, acc_set_device_type, acc_get_device_type)
9133 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9134 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9135 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9136 (acc_unmap_data, present_create_copy, delete_copyout)
9137 (update_dev_host): Likewise.
9138 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9139 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9141 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9142 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9144 * libgomp.texi: Update.
9145 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9147 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9148 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9150 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9152 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9154 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9157 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9159 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9160 (struct goacc_asyncqueue_list): Likewise.
9161 (goacc_aq): Likewise.
9162 (goacc_aq_list): Likewise.
9163 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9164 (GOMP_OFFLOAD_openacc_async_test): Remove.
9165 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9166 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9167 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9168 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9169 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9170 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9171 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9172 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9173 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9174 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9175 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9176 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9177 (GOMP_OFFLOAD_openacc_async_test): Declare.
9178 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9179 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9180 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9181 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9182 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9184 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9185 (gomp_acc_insert_pointer): Adjust declaration.
9186 (gomp_copy_host2dev): New declaration.
9187 (gomp_copy_dev2host): Likewise.
9188 (gomp_map_vars_async): Likewise.
9189 (gomp_unmap_tgt): Likewise.
9190 (gomp_unmap_vars_async): Likewise.
9191 (gomp_fini_device): Likewise.
9193 * oacc-async.c (get_goacc_thread): New function.
9194 (get_goacc_thread_device): New function.
9195 (lookup_goacc_asyncqueue): New function.
9196 (get_goacc_asyncqueue): New function.
9197 (acc_async_test): Adjust code to use new async design.
9198 (acc_async_test_all): Likewise.
9199 (acc_wait): Likewise.
9200 (acc_wait_async): Likewise.
9201 (acc_wait_all): Likewise.
9202 (acc_wait_all_async): Likewise.
9203 (goacc_async_free): New function.
9204 (goacc_init_asyncqueues): Likewise.
9205 (goacc_fini_asyncqueues): Likewise.
9206 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9208 (acc_set_cuda_stream): Likewise.
9209 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9210 (host_openacc_register_async_cleanup): Remove.
9211 (host_openacc_async_exec): New function.
9212 (host_openacc_async_test): Adjust parameters.
9213 (host_openacc_async_test_all): Remove.
9214 (host_openacc_async_wait): Remove.
9215 (host_openacc_async_wait_async): Remove.
9216 (host_openacc_async_wait_all): Remove.
9217 (host_openacc_async_wait_all_async): Remove.
9218 (host_openacc_async_set_async): Remove.
9219 (host_openacc_async_synchronize): New function.
9220 (host_openacc_async_serialize): New function.
9221 (host_openacc_async_host2dev): New function.
9222 (host_openacc_async_dev2host): New function.
9223 (host_openacc_async_queue_callback): New function.
9224 (host_openacc_async_construct): New function.
9225 (host_openacc_async_destruct): New function.
9226 (struct gomp_device_descr host_dispatch): Remove initialization of old
9227 interface, add initialization of new async sub-struct.
9228 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9229 (goacc_attach_host_thread_to_device): Remove old async code usage.
9230 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9231 (goacc_fini_asyncqueues): Likewise.
9232 (goacc_async_copyout_unmap_vars): Likewise.
9233 (goacc_async_free): Likewise.
9234 (get_goacc_asyncqueue): Likewise.
9235 (lookup_goacc_asyncqueue): Likewise.
9236 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9238 (present_create_copy): Adjust code to use new async design.
9239 (delete_copyout): Likewise.
9240 (update_dev_host): Likewise.
9241 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9243 (gomp_acc_remove_pointer): Adjust code to use new async design.
9244 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9246 (GOACC_enter_exit_data): Likewise.
9247 (goacc_wait): Likewise.
9248 (GOACC_update): Likewise.
9249 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9250 when called, warn as obsolete in comment.
9251 * target.c (goacc_device_copy_async): New function.
9252 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9253 add goacc_device_copy_async case.
9254 (gomp_copy_dev2host): Likewise.
9255 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9256 (gomp_map_pointer): Likewise.
9257 (gomp_map_fields_existing): Likewise.
9258 (gomp_map_vars_internal): New always_inline function, renamed from
9260 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9261 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9262 passing goacc_asyncqueue argument.
9263 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9264 (gomp_unref_tgt): New function.
9265 (gomp_unmap_vars_internal): New always_inline function, renamed from
9267 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9268 (gomp_unmap_vars_async): Implement by calling
9269 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9270 (gomp_fini_device): New function.
9271 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9272 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9273 new async interface.
9274 (gomp_target_fini): Adjust code to call gomp_fini_device.
9276 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9277 (struct ptx_stream): Remove.
9278 (struct nvptx_thread): Remove current_stream field.
9279 (cuda_map_create): Remove.
9280 (cuda_map_destroy): Remove.
9285 (struct goacc_asyncqueue): Define.
9286 (struct nvptx_callback): Define.
9287 (struct ptx_free_block): Define.
9288 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9289 stream_lock, and next fields.
9290 (enum ptx_event_type): Remove.
9291 (struct ptx_event): Remove.
9292 (ptx_event_lock): Remove.
9293 (ptx_events): Remove.
9294 (init_streams_for_device): Remove.
9295 (fini_streams_for_device): Remove.
9296 (select_stream_for_async): Remove.
9297 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9298 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9300 (nvptx_open_device): Add free_blocks initialization, remove
9301 init_streams_for_device call.
9302 (nvptx_close_device): Remove fini_streams_for_device call, add
9303 free_blocks destruct code.
9305 (event_add): Remove.
9306 (nvptx_exec): Adjust parameters and code.
9307 (nvptx_free): Likewise.
9308 (nvptx_host2dev): Remove.
9309 (nvptx_dev2host): Remove.
9310 (nvptx_set_async): Remove.
9311 (nvptx_async_test): Remove.
9312 (nvptx_async_test_all): Remove.
9313 (nvptx_wait): Remove.
9314 (nvptx_wait_async): Remove.
9315 (nvptx_wait_all): Remove.
9316 (nvptx_wait_all_async): Remove.
9317 (nvptx_get_cuda_stream): Remove.
9318 (nvptx_set_cuda_stream): Remove.
9319 (GOMP_OFFLOAD_alloc): Adjust code.
9320 (GOMP_OFFLOAD_free): Likewise.
9321 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9322 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9323 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9324 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9325 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9326 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9327 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9328 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9329 (cuda_free_argmem): New function.
9330 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9331 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9332 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9333 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9334 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9335 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9336 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9337 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9338 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9339 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9340 (cuda_callback_wrapper): New function.
9341 (cuda_memcpy_sanity_check): New function.
9342 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9343 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9344 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9345 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9347 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9350 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9352 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9354 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9356 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9358 * team.c (gomp_team_start): Initialize pool->threads[0].
9360 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9362 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9363 "-foffload=$offload_target".
9364 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9365 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9366 * testsuite/lib/libgomp.exp
9367 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9368 as (conceptually) merged into
9369 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9372 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9373 * testsuite/libgomp-test-support.exp.in: Adjust.
9374 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9375 openacc_device_types_s.
9376 (offload_target_to_openacc_device_type): New proc.
9377 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9378 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9379 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9380 * Makefile.in: Regenerate.
9381 * configure: Likewise.
9382 * testsuite/Makefile.in: Likewise.
9384 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9385 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9386 instead of OFFLOAD_TARGETS.
9387 * target.c (gomp_target_init): Adjust.
9388 * testsuite/libgomp-test-support.exp.in: Likewise.
9389 * testsuite/lib/libgomp.exp: Likewise. Populate
9390 openacc_device_types_s instead of offload_targets_s_openacc.
9391 (check_effective_target_openacc_nvidia_accel_selected)
9392 (check_effective_target_openacc_host_selected): Adjust.
9393 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9394 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9395 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9396 * Makefile.in: Regenerate.
9397 * config.h.in: Likewise.
9398 * configure: Likewise.
9399 * testsuite/Makefile.in: Likewise.
9401 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9402 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9403 "offloading: supported, but hardware not accessible".
9404 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9405 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9407 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9410 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9412 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9413 and related adjustment.
9415 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9418 * testsuite/libgomp.c++/pr88988.C: New test.
9420 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9423 * testsuite/libgomp.c/pr89002.c: New test.
9425 2019-01-28 Richard Biener <rguenther@suse.de>
9428 PR tree-optimization/86865
9429 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9431 2019-01-24 Tom de Vries <tdevries@suse.de>
9433 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9434 once instantiated_devices drops to 0.
9436 2019-01-23 Tom de Vries <tdevries@suse.de>
9439 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9441 (nvptx_exec): Don't call map_push if mapnum == 0.
9442 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9444 2019-01-23 Tom de Vries <tdevries@suse.de>
9448 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9449 (map_fini): Remove "assert (!s->map->active)".
9450 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9452 2019-01-23 Tom de Vries <tdevries@suse.de>
9455 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9456 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9458 2019-01-15 Tom de Vries <tdevries@suse.de>
9461 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9464 2019-01-12 Tom de Vries <tdevries@suse.de>
9466 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9467 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9468 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9469 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9471 2019-01-12 Tom de Vries <tdevries@suse.de>
9473 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9475 2019-01-12 Tom de Vries <tdevries@suse.de>
9477 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9478 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9479 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9481 2019-01-12 Tom de Vries <tdevries@suse.de>
9484 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9485 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9487 2019-01-12 Tom de Vries <tdevries@suse.de>
9490 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9491 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9493 2019-01-12 Tom de Vries <tdevries@suse.de>
9495 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9496 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9497 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9499 2019-01-12 Tom de Vries <tdevries@suse.de>
9501 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9502 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9503 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9505 2019-01-12 Tom de Vries <tdevries@suse.de>
9507 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9508 resources diagnostic.
9510 2019-01-12 Tom de Vries <tdevries@suse.de>
9512 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9513 vector length to be 128.
9514 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9515 length 2097152 to be reduced to 1024 instead of 32.
9517 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
9518 James Norris <jnorris@codesourcery.com>
9520 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9521 Library Routines", and "Environment Variables".
9523 2019-01-11 Tom de Vries <tdevries@suse.de>
9525 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9528 2019-01-11 Tom de Vries <tdevries@suse.de>
9530 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9532 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9533 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9534 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9535 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9537 2019-01-11 Tom de Vries <tdevries@suse.de>
9539 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9542 2019-01-10 Nathan Sidwell <nathan@acm.org>
9543 Julian Brown <julian@codesourcery.com>
9546 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9547 * testsuite/libgomp.oacc-c++/pr71959.C: New.
9549 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9551 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9554 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
9556 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
9557 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9560 2019-01-09 Tom de Vries <tdevries@suse.de>
9563 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9564 #define instead of "const int".
9565 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9566 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9567 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9568 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9570 2019-01-09 Tom de Vries <tdevries@suse.de>
9572 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9575 2019-01-07 Tom de Vries <tdevries@suse.de>
9577 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9578 GOMP_OPENACC_DIM argument.
9580 2019-01-03 Tom de Vries <tdevries@suse.de>
9582 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9583 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9585 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9587 Update copyright years.
9589 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9591 * libgomp.texi: Bump @copying's copyright year.
9593 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9595 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9596 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9597 (GOACC_declare): Redefine the "device" argument to "flags".
9599 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
9600 Cesar Philippidis <cesar@codesourcery.com>
9602 * target.c (struct gomp_coalesce_chunk): New structure.
9603 (struct gomp_coalesce_buf): Update the chunks member to use that
9604 type. Adjust all users.
9606 2018-12-19 Tom de Vries <tdevries@suse.de>
9608 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9609 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9610 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9612 2018-12-19 Tom de Vries <tdevries@suse.de>
9614 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9615 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9616 gcc/testsuite/gcc.dg/goacc.
9617 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9619 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9620 Chung-Lin Tang <cltang@codesourcery.com>
9622 * oacc-mem.c (acc_present_or_create): Remove definition and change
9623 to alias of acc_create.
9624 (acc_present_or_copyin): Remove definition and change to alias of
9626 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9627 of acc_present_or_create.
9628 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9629 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9630 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9631 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9632 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9633 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9634 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9635 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9636 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9637 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9638 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9639 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9640 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9641 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9642 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9643 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9645 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9648 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9649 "identical parameters".
9650 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9651 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9654 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9655 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9658 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9659 (nvptx_wait_async): Unseen async-argument is a no-op.
9660 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9661 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9662 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9663 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9664 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9665 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9666 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
9667 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9668 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
9670 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9671 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9673 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
9675 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9676 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9677 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9679 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
9682 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9683 (acc_set_cuda_stream): Clarify.
9684 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9686 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9688 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9689 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9690 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9691 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9693 2018-12-14 Tom de Vries <tdevries@suse.de>
9695 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9696 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9697 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9698 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9699 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9701 2018-12-13 Tom de Vries <tdevries@suse.de>
9703 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9704 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9705 * fortran.c (omp_display_affinity_): ... here.
9706 * libgomp.h (gomp_print_string): Declare.
9707 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
9708 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9711 2018-12-13 Jakub Jelinek <jakub@redhat.com>
9714 * testsuite/libgomp.c++/for-24.C (results): Include it in
9715 omp declare target region.
9716 (main): Use map (always, tofrom: results) instead of
9717 map (tofrom: results).
9719 2018-12-12 Jakub Jelinek <jakub@redhat.com>
9722 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9723 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9725 * testsuite/libgomp.c-c++-common/for-16.c: New test.
9727 2018-12-12 Andreas Schwab <schwab@suse.de>
9729 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9732 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
9735 * testsuite/libgomp.fortran/async_io_8.f90: New test.
9737 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
9738 Jakub Jelinek <jakub@redhat.com>
9740 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9741 devicep->host2dev_func.
9743 2018-12-08 Jakub Jelinek <jakub@redhat.com>
9746 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9747 tls_runtime effective target.
9748 (t): New threadprivate variable.
9749 (main): Set t in threads which execute iterations of the worksharing
9750 loop. Propagate that to the task after the loop and don't abort
9751 if the current taskgroup hasn't been cancelled.
9753 2018-12-02 Jakub Jelinek <jakub@redhat.com>
9755 * testsuite/libgomp.c/task-reduction-3.c: New test.
9757 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9759 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
9762 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9763 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9765 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
9767 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9769 2018-10-19 Richard Biener <rguenther@suse.de>
9771 PR tree-optimization/88182
9772 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9774 2018-11-26 Jakub Jelinek <jakub@redhat.com>
9776 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9777 (RUNTEST): Don't define.
9778 (RUNTESTDEFAULTFLAGS): Add.
9779 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9780 (distclean-am): Depend on distclean-DEJAGNU.
9781 (check-am): If -j% option is present in MFLAGS and if
9782 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9783 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9784 * testsuite/Makefile.in: Regenerated.
9786 2018-11-26 Richard Biener <rguenther@suse.de>
9788 PR tree-optimization/88182
9789 * testsuite/libgomp.c++/pr88182.C: New testcase.
9791 2018-11-20 Jakub Jelinek <jakub@redhat.com>
9794 * config/mingw32/affinity-fmt.c: New file.
9796 2018-11-09 Jakub Jelinek <jakub@redhat.com>
9798 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9799 (gomp_display_affinity): Use __builtin_choose_expr to handle
9800 properly handle argument having integral, or pointer or some other
9801 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
9802 with uint64_t type instead of %llx and unsigned long long.
9804 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9805 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9807 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9809 * affinity.c: Include <string.h>, <stdio.h>.
9810 (gomp_display_affinity_place): Remove cpusetp.
9811 * teams.c: Include <limits.h>.
9813 2018-11-08 Jakub Jelinek <jakub@redhat.com>
9815 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9816 in_reduction clause for s[0].
9818 * affinity.c (gomp_display_affinity_place): New function.
9819 * affinity-fmt.c: New file.
9820 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9821 * config/linux/affinity.c (gomp_display_affinity_place): New function.
9822 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9823 Move these functions to ...
9824 * config/nvptx/teams.c: ... here. New file.
9825 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9827 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9829 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9830 and _aligned_malloc.
9831 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9832 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9833 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9834 gomp_affinity_format_len): New variables.
9835 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9836 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
9837 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9838 modifiers. Display (non-default) chunk sizes. Print
9839 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9840 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
9841 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9842 * fortran.c: Include stdio.h and string.h.
9843 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9844 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9845 (omp_set_affinity_format_, omp_get_affinity_format_,
9846 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9847 omp_pause_resource_all_): New functions.
9848 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9850 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9852 * teams.c: ... here. New file.
9853 * libgomp_g.h: Include gstdint.h.
9854 (GOMP_loop_nonmonotonic_runtime_start,
9855 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9856 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9857 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9858 GOMP_parallel_loop_nonmonotonic_runtime,
9859 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9860 GOMP_loop_ull_nonmonotonic_runtime_start,
9861 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9862 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9863 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9864 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9865 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9866 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9867 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9868 GOMP_teams_reg): Declare.
9869 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9870 gomp_aligned_alloc uses fallback implementation.
9871 (gomp_aligned_alloc, gomp_aligned_free): Declare.
9872 (enum gomp_schedule_type): Add GFS_MONOTONIC.
9873 (struct gomp_doacross_work_share): Add extra field.
9874 (struct gomp_work_share): Add task_reductions field.
9875 (struct gomp_taskgroup): Add workshare and reductions fields.
9876 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9877 (gomp_thread_handle): New typedef.
9878 (gomp_display_affinity_place, gomp_set_affinity_format,
9879 gomp_display_string, gomp_display_affinity,
9880 gomp_display_affinity_thread): Declare.
9881 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9882 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9883 gomp_workshare_task_reduction_register): Declare.
9884 (gomp_team_start): Add taskgroup argument.
9885 (gomp_pause_host): Declare.
9886 (gomp_init_work_share, gomp_work_share_start): Change bool argument
9888 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9889 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9890 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9891 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9892 GOMP_loop_ull_doacross_start,
9893 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9894 GOMP_loop_maybe_nonmonotonic_runtime_next,
9895 GOMP_loop_maybe_nonmonotonic_runtime_start,
9896 GOMP_loop_nonmonotonic_runtime_next,
9897 GOMP_loop_nonmonotonic_runtime_start,
9898 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9899 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9900 GOMP_loop_ull_nonmonotonic_runtime_next,
9901 GOMP_loop_ull_nonmonotonic_runtime_start,
9902 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9903 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9904 GOMP_taskgroup_reduction_register,
9905 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9906 GOMP_teams_reg and GOMP_taskwait_depend.
9907 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9908 omp_{capture,display}_affinity{,_}, and
9909 omp_[gs]et_affinity_format{,_}.
9910 * loop.c: Include string.h.
9911 (GOMP_loop_runtime_next): Add ialias.
9912 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9913 (gomp_loop_static_start, gomp_loop_dynamic_start,
9914 gomp_loop_guided_start, gomp_loop_ordered_static_start,
9915 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9916 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9917 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9918 or gomp_doacross_init callers.
9919 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9920 GOMP_loop_doacross_start): New functions.
9921 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9922 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9923 Mask off GFS_MONOTONIC bit.
9924 (GOMP_loop_maybe_nonmonotonic_runtime_next,
9925 GOMP_loop_maybe_nonmonotonic_runtime_start,
9926 GOMP_loop_nonmonotonic_runtime_next,
9927 GOMP_loop_nonmonotonic_runtime_start,
9928 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9929 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9931 (gomp_parallel_loop_start): Pass NULL as taskgroup to
9933 * loop_ull.c: Include string.h.
9934 (GOMP_loop_ull_runtime_next): Add ialias.
9935 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9936 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9937 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9938 gomp_loop_ull_ordered_dynamic_start,
9939 gomp_loop_ull_ordered_guided_start,
9940 gomp_loop_ull_doacross_static_start,
9941 gomp_loop_ull_doacross_dynamic_start,
9942 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9943 and gomp_doacross_ull_init callers.
9944 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9945 GOMP_loop_ull_doacross_start): New functions.
9946 (GOMP_loop_ull_runtime_start,
9947 GOMP_loop_ull_ordered_runtime_start,
9948 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9949 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9950 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9951 GOMP_loop_ull_nonmonotonic_runtime_next,
9952 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9953 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9954 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9955 (omp_pause_resource_t, omp_depend_t): New typedefs.
9956 (enum omp_lock_hint_t): Renamed to ...
9957 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
9958 enumerators using numbers and omp_lock_hint_* as their aliases.
9959 (omp_lock_hint_t): New typedef. Rename to ...
9960 (omp_sync_hint_t): ... this.
9961 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9962 omp_sync_hint_t instead of omp_lock_hint_t.
9963 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9964 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9966 (omp_target_is_present, omp_target_disassociate_ptr):
9967 Change first argument from void * to const void *.
9968 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9969 from void * to const void *.
9970 (omp_target_associate_ptr): Change first and second arguments from
9971 void * to const void *.
9972 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9973 omp_pause_hard): New parameters.
9974 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9975 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9977 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9978 omp_pause_hard): New parameters.
9979 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9980 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9982 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9983 EXTRA argument. If not needed to prepare array, if extra is 0,
9984 clear ws->doacross, otherwise allocate just doacross structure and
9985 extra payload. If array is needed, allocate also extra payload.
9986 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9987 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9989 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9991 (GOMP_parallel): Likewise. Formatting fix.
9992 (GOMP_parallel_reductions): New function.
9993 (GOMP_cancellation_point): If taskgroup has workshare
9994 flag set, check cancelled of prev taskgroup if any.
9995 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9996 on prev taskgroup if any.
9997 * sections.c: Include string.h.
9998 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9999 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10000 (GOMP_sections2_start): New function.
10001 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10002 Pass NULL as taskgroup to gomp_team_start.
10003 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10004 gomp_work_share_start callers.
10005 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10006 If taskgroup has workshare flag set, check cancelled on prev
10007 taskgroup if any. Guard all cancellation tests with
10008 gomp_cancel_var test.
10009 (omp_target_is_present, omp_target_disassociate_ptr):
10010 Change ptr argument from void * to const void *.
10011 (omp_target_memcpy): Change src argument from void * to const void *.
10012 (omp_target_memcpy_rect): Likewise.
10013 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10014 instead of char * where needed.
10015 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10016 from void * to const void *.
10017 (omp_pause_resource, omp_pause_resource_all): New functions.
10018 * task.c (gomp_task_handle_depend): Handle new depend array format
10019 in addition to the old. Handle mutexinoutset kinds the same as
10020 inout for now, handle unspecified kinds.
10021 (gomp_create_target_task): If taskgroup has workshare flag set, check
10022 cancelled on prev taskgroup if any. Guard all cancellation tests with
10023 gomp_cancel_var test. Handle new depend array format count in
10024 addition to the old.
10025 (GOMP_task): Likewise. Adjust function comment.
10026 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10027 cancelled on prev taskgroup if any. Guard all cancellation tests with
10028 gomp_cancel_var test.
10029 (GOMP_taskwait_depend): New function.
10030 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10031 format in addition to the old. Handle mutexinoutset kinds the same as
10032 inout for now, handle unspecified kinds. Fix a function comment typo.
10033 (gomp_taskgroup_init): New function.
10034 (GOMP_taskgroup_start): Use it.
10035 (gomp_reduction_register, gomp_create_artificial_team,
10036 GOMP_taskgroup_reduction_register,
10037 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10038 gomp_parallel_reduction_register,
10039 gomp_workshare_task_reduction_register,
10040 gomp_workshare_taskgroup_start,
10041 GOMP_workshare_task_reduction_unregister): New functions.
10042 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10043 check cancelled on prev taskgroup if any. Guard all cancellation
10044 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10045 by calling GOMP_taskgroup_reduction_register.
10046 * team.c (gomp_thread_attr): Remove comment.
10047 (struct gomp_thread_start_data): Add handle field.
10048 (gomp_thread_start): Call pthread_detach.
10049 (gomp_new_team): Adjust gomp_init_work_share caller.
10050 (gomp_free_pool_helper): Call pthread_detach.
10051 (gomp_team_start): Add taskgroup argument, initialize implicit
10052 tasks' taskgroup field to that. Don't call
10053 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10054 (gomp_team_end): Determine nesting by thr->ts.level != 0
10055 rather than thr->ts.team != NULL.
10056 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10057 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10058 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10059 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10060 if more than 1 allocate also extra payload at the end of array. Never
10061 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10062 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10063 return true instead of ws.
10064 * Makefile.in: Regenerated.
10065 * configure: Regenerated.
10066 * config.h.in: Regenerated.
10067 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10069 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10070 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10071 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10072 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10073 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10074 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10075 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10076 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10077 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10078 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10079 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10080 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10081 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10082 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10083 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10084 define a different N(test), don't define N(f0) to N(f14), but instead
10085 define N(f20) to N(f34) using != comparisons.
10086 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10087 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10088 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10089 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10090 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10091 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10092 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10093 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10094 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10095 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10096 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10097 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10098 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10099 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10100 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10101 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10102 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10103 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10104 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10105 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10106 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10107 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10108 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10109 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10110 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10111 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10112 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10113 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10114 * testsuite/libgomp.c++/depend-1.C: New test.
10115 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10116 * testsuite/libgomp.c++/depobj-1.C: New test.
10117 * testsuite/libgomp.c++/for-16.C: New test.
10118 * testsuite/libgomp.c++/for-21.C: New test.
10119 * testsuite/libgomp.c++/for-22.C: New test.
10120 * testsuite/libgomp.c++/for-23.C: New test.
10121 * testsuite/libgomp.c++/for-24.C: New test.
10122 * testsuite/libgomp.c++/for-25.C: New test.
10123 * testsuite/libgomp.c++/for-26.C: New test.
10124 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10125 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10126 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10127 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10128 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10129 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10130 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10131 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10132 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10133 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10134 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10135 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10136 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10137 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10138 * testsuite/libgomp.c/task-reduction-1.c: New test.
10139 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10140 * testsuite/libgomp.c/task-reduction-2.c: New test.
10141 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10142 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10143 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10144 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10145 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10146 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10147 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10148 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10149 * testsuite/libgomp.c/teams-1.c: New test.
10150 * testsuite/libgomp.c/teams-2.c: New test.
10151 * testsuite/libgomp.c/thread-limit-4.c: New test.
10152 * testsuite/libgomp.c/thread-limit-5.c: New test.
10153 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10155 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10157 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10158 acc_memcpy_to/from_device functions, now with async parameter.
10159 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10160 (acc_memcpy_from_device): Likewise.
10161 (acc_memcpy_to_device_async): New API function.
10162 (acc_memcpy_from_device_async): Likewise.
10163 (present_create_copy): Add async parameter and async setting/unsetting.
10164 (acc_create): Adjust present_create_copy call.
10165 (acc_copyin): Likewise.
10166 (acc_present_or_create): Likewise.
10167 (acc_present_or_copyin): Likewise.
10168 (acc_create_async): New API function.
10169 (acc_copyin_async): New API function.
10170 (delete_copyout): Add async parameter and async setting/unsetting.
10171 (acc_delete): Adjust delete_copyout call.
10172 (acc_copyout): Likewise.
10173 (acc_delete_async): New API function.
10174 (acc_copyout_async): Likewise.
10175 (update_dev_host): Add async parameter and async setting/unsetting.
10176 (acc_update_device): Adjust update_dev_host call.
10177 (acc_update_self): Likewise.
10178 (acc_update_device_async): New API function.
10179 (acc_update_self_async): Likewise.
10180 * openacc.h (acc_copyin_async): Declare new API function.
10181 (acc_create_async): Likewise.
10182 (acc_copyout_async): Likewise.
10183 (acc_delete_async): Likewise.
10184 (acc_update_device_async): Likewise.
10185 (acc_update_self_async): Likewise.
10186 (acc_memcpy_to_device_async): Likewise.
10187 (acc_memcpy_from_device_async): Likewise.
10188 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10189 (acc_copyin_async_64_h): New subroutine.
10190 (acc_copyin_async_array_h): New subroutine.
10191 (acc_create_async_32_h): New subroutine.
10192 (acc_create_async_64_h): New subroutine.
10193 (acc_create_async_array_h): New subroutine.
10194 (acc_copyout_async_32_h): New subroutine.
10195 (acc_copyout_async_64_h): New subroutine.
10196 (acc_copyout_async_array_h): New subroutine.
10197 (acc_delete_async_32_h): New subroutine.
10198 (acc_delete_async_64_h): New subroutine.
10199 (acc_delete_async_array_h): New subroutine.
10200 (acc_update_device_async_32_h): New subroutine.
10201 (acc_update_device_async_64_h): New subroutine.
10202 (acc_update_device_async_array_h): New subroutine.
10203 (acc_update_self_async_32_h): New subroutine.
10204 (acc_update_self_async_64_h): New subroutine.
10205 (acc_update_self_async_array_h): New subroutine.
10206 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10207 (acc_copyin_async_64_h): New subroutine.
10208 (acc_copyin_async_array_h): New subroutine.
10209 (acc_create_async_32_h): New subroutine.
10210 (acc_create_async_64_h): New subroutine.
10211 (acc_create_async_array_h): New subroutine.
10212 (acc_copyout_async_32_h): New subroutine.
10213 (acc_copyout_async_64_h): New subroutine.
10214 (acc_copyout_async_array_h): New subroutine.
10215 (acc_delete_async_32_h): New subroutine.
10216 (acc_delete_async_64_h): New subroutine.
10217 (acc_delete_async_array_h): New subroutine.
10218 (acc_update_device_async_32_h): New subroutine.
10219 (acc_update_device_async_64_h): New subroutine.
10220 (acc_update_device_async_array_h): New subroutine.
10221 (acc_update_self_async_32_h): New subroutine.
10222 (acc_update_self_async_64_h): New subroutine.
10223 (acc_update_self_async_array_h): New subroutine.
10224 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10225 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10226 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10227 acc_memcpy_to_device_async*, acc_update_device_async*, and
10228 acc_update_self_async* entries.
10229 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10230 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10231 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10233 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10236 * Makefile.am: Include multilib.am
10237 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10238 (CLEANFILES): Remove libgomp.info.
10239 * configure.ac: Remove AC_PREREQ.
10240 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10241 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10244 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10245 Julian Brown <julian@codesourcery.com>
10247 * testsuite/libgomp.oacc-c++/this.C: New.
10249 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10251 * plugin/plugin-nvptx.c (struct cuda_map): New.
10252 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10253 h_tail with (cuda_map *) map.
10254 (cuda_map_create): New function.
10255 (cuda_map_destroy): New function.
10256 (map_init): Update to use a linked list of cuda_map objects.
10257 (map_fini): Likewise.
10258 (map_pop): Likewise.
10259 (map_push): Likewise. Return CUdeviceptr instead of void.
10260 (init_streams_for_device): Remove stales references to ptx_stream
10262 (select_stream_for_async): Likewise.
10263 (nvptx_exec): Update call to map_init.
10265 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10266 Julian Brown <julian@codesourcery.com>
10268 PR middle-end/86336
10269 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10271 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10272 Thomas Koenig <tkoenig@gcc.gnu.org>
10275 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10276 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10277 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10278 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10279 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10280 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10281 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10283 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10284 Tom de Vries <tdevries@suse.de>
10287 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10288 (cuOccupancyMaxPotentialBlockSize): Declare.
10289 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10290 CUDA_ONE_CALL_MAYBE_NULL.
10291 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10292 CUoccupancyB2DSize and declare
10293 cuOccupancyMaxPotentialBlockSize.
10294 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10295 default num_gangs and num_workers when the driver supports it.
10297 2018-08-08 Tom de Vries <tdevries@suse.de>
10299 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10300 CUDA_ONE_CALL_MAYBE_NULL.
10301 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10302 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10303 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10306 2018-08-08 Tom de Vries <tdevries@suse.de>
10308 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10309 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10312 2018-08-08 Tom de Vries <tdevries@suse.de>
10314 * plugin/plugin-nvptx.c
10315 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10316 (nvptx_open_device): Use
10317 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10319 2018-08-08 Tom de Vries <tdevries@suse.de>
10321 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10322 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10324 2018-08-07 Tom de Vries <tdevries@suse.de>
10326 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10327 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10328 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10329 corresponding call in CUDA_ONE_CALL. Add def/undef of
10330 CUDA_ONE_CALL_MAYBE_NULL.
10331 (CUDA_CALL_EXISTS): Define.
10333 2018-08-07 Tom de Vries <tdevries@suse.de>
10335 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10336 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10337 corresponding undefs right after.
10339 2018-08-04 Tom de Vries <tdevries@suse.de>
10341 * plugin/configfrag.ac: For --without-cuda-driver, set
10342 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10343 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10344 * configure: Regenerate.
10346 2018-08-02 Tom de Vries <tdevries@suse.de>
10349 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10350 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10351 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10353 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10354 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10355 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10357 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10358 Thomas Schwinge <thomas@codesourcery.com>
10360 * config/nvptx/oacc-parallel.c: Truncate.
10362 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10363 James Norris <jnorris@codesourcery.com>
10365 * plugin/plugin-nvptx.c (struct map): Removed.
10366 (map_init, map_pop): Remove use of struct map.
10367 (map_push): Likewise and change argument list.
10368 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10370 2018-08-01 Tom de Vries <tdevries@suse.de>
10372 * plugin/cuda-lib.def: New file. Factor out of ...
10373 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10374 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10377 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10379 Revert 'AsyncI/O patch committed'.
10380 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10381 Thomas Koenig <tkoenig@gcc.gnu.org>
10384 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10385 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10386 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10387 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10388 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10389 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10390 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10392 2018-07-30 Tom de Vries <tdevries@suse.de>
10394 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10395 (nvptx_exec): Ensure worker and vector default dims don't exceed
10396 targ_fn->max_threads_per_block.
10398 2018-07-30 Tom de Vries <tdevries@suse.de>
10400 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10401 (nvptx_open_device): Init default_dims for device.
10402 (nvptx_exec): Use default_dims from device.
10404 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10407 * testsuite/libgomp.c++/for-15.C (results): Include it in
10408 omp declare target region.
10409 (main): Use map (always, tofrom: results) instead of
10410 map (tofrom: results).
10412 PR middle-end/86660
10413 * testsuite/libgomp.c/pr86660.c: New test.
10415 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10416 Tom de Vries <tdevries@suse.de>
10418 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10419 sufficient resources to launch a kernel, and give a hint on how to fix
10422 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10423 Tom de Vries <tdevries@suse.de>
10425 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10426 max_threads_per_block and max_threads_per_multiprocessor fields.
10427 (nvptx_open_device): Initialize new fields.
10428 (nvptx_exec): Use num_sms, and new fields.
10430 2018-07-26 Tom de Vries <tdevries@suse.de>
10432 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10433 to correct locations. Remove xfail.
10435 2018-07-26 Tom de Vries <tdevries@suse.de>
10437 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10438 acc_wait. Move acc_async_test calls to correct locations. Remove
10441 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10442 Thomas Koenig <tkoenig@gcc.gnu.org>
10445 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10446 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10447 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10448 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10449 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10450 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10451 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10453 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10455 PR middle-end/86542
10456 * testsuite/libgomp.c++/pr86542.C: New test.
10458 PR middle-end/86539
10459 * testsuite/libgomp.c++/pr86539.C: New test.
10461 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10464 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10465 (results): Make sure the variable is not inside declare target region.
10466 (qux): Remove unused function.
10468 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10471 * testsuite/libgomp.c++/for-15.C: New test.
10473 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10476 * testsuite/libgomp.c++/pr86291.C: New test.
10478 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10480 * libgomp.texi (Top): Move www.openmp.org to https.
10481 (Enabling OpenMP): Ditto.
10482 (omp_get_active_level): Ditto.
10483 (omp_get_ancestor_thread_num): Ditto.
10484 (omp_get_cancellation): Ditto.
10485 (omp_get_default_device): Ditto.
10486 (omp_get_dynamic): Ditto.
10487 (omp_get_level): Ditto.
10488 (omp_get_max_active_levels): Ditto.
10489 (omp_get_max_task_priority): Ditto.
10490 (omp_get_max_threads): Ditto.
10491 (omp_get_nested): Ditto.
10492 (omp_get_num_devices): Ditto.
10493 (omp_get_num_procs): Ditto.
10494 (omp_get_num_teams): Ditto.
10495 (omp_get_num_threads): Ditto.
10496 (omp_get_proc_bind): Ditto.
10497 (omp_get_schedule): Ditto.
10498 (omp_get_team_num): Ditto.
10499 (omp_get_team_size): Ditto.
10500 (omp_get_thread_limit): Ditto.
10501 (omp_get_thread_num): Ditto.
10502 (omp_in_parallel): Ditto.
10503 (omp_in_final): Ditto.
10504 (omp_is_initial_device): Ditto.
10505 (omp_set_default_device): Ditto.
10506 (omp_set_dynamic): Ditto.
10507 (omp_set_max_active_levels): Ditto.
10508 (omp_set_nested): Ditto.
10509 (omp_set_num_threads): Ditto.
10510 (omp_set_schedule): Ditto.
10511 (omp_init_lock): Ditto.
10512 (omp_set_lock): Ditto.
10513 (omp_test_lock): Ditto.
10514 (omp_unset_lock): Ditto.
10515 (omp_destroy_lock): Ditto.
10516 (omp_init_nest_lock): Ditto.
10517 (omp_set_nest_lock): Ditto.
10518 (omp_test_nest_lock): Ditto.
10519 (omp_unset_nest_lock): Ditto.
10520 (omp_destroy_nest_lock): Ditto.
10521 (omp_get_wtick): Ditto.
10522 (omp_get_wtime): Ditto.
10523 (OMP_CANCELLATION): Ditto.
10524 (OMP_DISPLAY_ENV): Ditto.
10525 (OMP_DEFAULT_DEVICE): Ditto.
10526 (OMP_DYNAMIC): Ditto.
10527 (OMP_MAX_ACTIVE_LEVELS): Ditto.
10528 (OMP_MAX_TASK_PRIORITY): Ditto.
10529 (OMP_NESTED): Ditto.
10530 (OMP_NUM_THREADS): Ditto.
10531 (OMP_PROC_BIND): Ditto.
10532 (OMP_PLACES): Ditto.
10533 (OMP_STACKSIZE): Ditto.
10534 (OMP_SCHEDULE): Ditto.
10535 (OMP_THREAD_LIMIT): Ditto.
10536 (OMP_WAIT_POLICY): Ditto.
10538 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
10539 James Norris <jnorris@codesourcery.com>
10540 Julian Brown <julian@codesourcery.com>
10541 Thomas Schwinge <thomas@codesourcery.com>
10542 Tom de Vries <tom@codesourcery.com>
10544 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10545 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10546 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10547 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10548 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10549 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10550 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10551 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10552 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10553 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10555 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10557 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10559 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10561 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10563 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10565 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10567 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10569 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10571 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10573 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10575 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10577 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10579 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10581 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10583 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10585 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10587 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10589 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10591 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10593 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10595 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10597 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10599 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10601 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10603 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10605 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10607 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10608 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10609 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10610 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10611 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10612 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10613 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10614 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10615 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10617 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10619 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10620 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10621 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10623 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10624 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10625 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10627 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10629 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10631 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10633 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10635 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10637 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10639 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10641 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10643 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10645 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10647 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10649 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10651 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10653 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10655 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10656 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10657 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10658 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10659 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10660 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10661 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10663 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
10664 Thomas Schwinge <thomas@codesourcery.com>
10665 Cesar Philippidis <cesar@codesourcery.com>
10667 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10668 (gomp_acc_remove_pointer): Update declaration.
10669 (gomp_acc_declare_allocate): Declare.
10670 (gomp_remove_var): Declare.
10671 * libgomp.map (OACC_2.5): Define.
10672 * oacc-mem.c (acc_map_data): Update refcount.
10673 (acc_unmap_data): Likewise.
10674 (present_create_copy): Likewise.
10675 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10676 (acc_copyin): Likewise.
10677 (FLAG_FINALIZE): Define.
10678 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10679 (acc_delete_finalize): New function.
10680 (acc_delete_finalize_async): New function.
10681 (acc_copyout_finalize): New function.
10682 (acc_copyout_finalize_async): New function.
10683 (gomp_acc_insert_pointer): Update refcounts.
10684 (gomp_acc_remove_pointer): Return if data is not present on the
10686 * oacc-parallel.c (find_pset): Rename to find_pointer.
10687 (find_pointer): Add support for GOMP_MAP_POINTER.
10688 (handle_ftn_pointers): New function.
10689 (GOACC_parallel_keyed): Update refcounts of variables.
10690 (GOACC_enter_exit_data): Add support for finalized data mappings.
10691 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10693 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10694 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10695 for GOMP_MAP_FORCE_FROM.
10696 * openacc.f90 (module openacc_internal): Add
10697 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10698 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10699 acc_copyout_finalize and acc_delete_finalize.
10700 (acc_copyout_finalize_32_h): New subroutine.
10701 (acc_copyout_finalize_64_h): New subroutine.
10702 (acc_copyout_finalize_array_h): New subroutine.
10703 (acc_delete_finalize_32_h): New subroutine.
10704 (acc_delete_finalize_64_h): New subroutine.
10705 (acc_delete_finalize_array_h): New subroutine.
10706 * openacc.h (acc_copyout_finalize): Declare.
10707 (acc_copyout_finalize_async): Declare.
10708 (acc_delete_finalize): Declare.
10709 (acc_delete_finalize_async): Declare.
10710 * openacc_lib.h (acc_copyout_finalize): New interface.
10711 (acc_delete_finalize): New interface.
10712 * target.c (gomp_map_vars): Update dynamic_refcount.
10713 (gomp_remove_var): New function.
10714 (gomp_unmap_vars): Use it.
10715 (gomp_unload_image_from_device): Likewise.
10716 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10717 case to utilize OpenACC 2.5 data clause semantics.
10718 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10719 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10720 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10721 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10722 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10723 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10724 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10725 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10726 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10727 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10728 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10729 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10730 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10731 utilize OpenACC 2.5 data clause semantics.
10732 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10733 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10734 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10735 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10736 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10737 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10738 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10739 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10740 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10742 2018-05-21 Janus Weil <janus@gcc.gnu.org>
10746 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10747 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10748 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10749 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10750 * testsuite/libgomp.fortran/task2.f90: Ditto.
10751 * testsuite/libgomp.fortran/vla1.f90: Ditto.
10752 * testsuite/libgomp.fortran/vla2.f90: Ditto.
10753 * testsuite/libgomp.fortran/vla3.f90: Ditto.
10754 * testsuite/libgomp.fortran/vla4.f90: Ditto.
10755 * testsuite/libgomp.fortran/vla5.f90: Ditto.
10756 * testsuite/libgomp.fortran/vla6.f90: Ditto.
10757 * testsuite/libgomp.fortran/vla8.f90: Ditto.
10758 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10759 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10761 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
10764 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10766 2018-05-09 Tom de Vries <tom@codesourcery.com>
10769 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10770 to GOACC_enter_exit_data.
10772 2018-05-09 Tom de Vries <tom@codesourcery.com>
10775 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10776 (async_synchronous_p): New function.
10777 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10779 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10780 async_valid_stream_id_p.
10781 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10782 * oacc-parallel.c (GOACC_parallel_keyed): Same.
10784 2018-05-07 Tom de Vries <tom@codesourcery.com>
10787 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10788 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10790 2018-05-03 Tom de Vries <tom@codesourcery.com>
10793 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10794 extra_tool_flags if it contains an -foffload=-fdump-* flag.
10795 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10796 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10798 2018-05-02 Tom de Vries <tom@codesourcery.com>
10801 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10802 GOMP_OPENACC_DIM ...
10803 * env.c (parse_gomp_openacc_dim): ... here. New function.
10804 (initialize_env): Call parse_gomp_openacc_dim.
10805 (goacc_default_dims): Define.
10806 * libgomp.h (goacc_default_dims): Declare.
10807 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10808 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10809 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10810 GOMP_PLUGIN_acc_default_dim.
10811 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10812 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10814 2018-05-02 Tom de Vries <tom@codesourcery.com>
10817 * testsuite/libgomp.c++/udr-9.C: Update.
10818 * testsuite/libgomp.c++/atomic-16.C: Remove.
10819 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10820 * testsuite/libgomp.c++/loop-13.C: Remove.
10821 * testsuite/libgomp.c++/loop-14.C: Remove.
10822 * testsuite/libgomp.c++/loop-15.C: Remove.
10823 * testsuite/libgomp.c++/monotonic-1.C: Remove.
10824 * testsuite/libgomp.c++/monotonic-2.C: Remove.
10825 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10826 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10827 * testsuite/libgomp.c++/ordered-1.C: Remove.
10828 * testsuite/libgomp.c++/pr45784.C: Remove.
10829 * testsuite/libgomp.c++/pr64824.C: Remove.
10830 * testsuite/libgomp.c++/pr64868.C: Remove.
10831 * testsuite/libgomp.c++/pr66199-1.C: Remove.
10832 * testsuite/libgomp.c++/pr66199-2.C: Remove.
10833 * testsuite/libgomp.c++/pr66199-3.C: Remove.
10834 * testsuite/libgomp.c++/pr66199-4.C: Remove.
10835 * testsuite/libgomp.c++/pr66199-5.C: Remove.
10836 * testsuite/libgomp.c++/pr66199-6.C: Remove.
10837 * testsuite/libgomp.c++/pr66199-7.C: Remove.
10838 * testsuite/libgomp.c++/pr66199-8.C: Remove.
10839 * testsuite/libgomp.c++/pr66199-9.C: Remove.
10840 * testsuite/libgomp.c++/pr69389.C: Remove.
10841 * testsuite/libgomp.c++/simd10.C: Remove.
10842 * testsuite/libgomp.c++/simd11.C: Remove.
10843 * testsuite/libgomp.c++/simd12.C: Remove.
10844 * testsuite/libgomp.c++/simd13.C: Remove.
10845 * testsuite/libgomp.c++/target-1.C: Remove.
10846 * testsuite/libgomp.c++/target-3.C: Remove.
10847 * testsuite/libgomp.c++/target-4.C: Remove.
10848 * testsuite/libgomp.c++/target-5.C: Remove.
10849 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10850 * testsuite/libgomp.c++/taskloop-1.C: Remove.
10851 * testsuite/libgomp.c++/taskloop-2.C: Remove.
10852 * testsuite/libgomp.c++/taskloop-3.C: Remove.
10853 * testsuite/libgomp.c++/taskloop-4.C: Remove.
10854 * testsuite/libgomp.c++/udr-9.C: Remove.
10855 * testsuite/libgomp.c++/for-10.C: Remove.
10856 * testsuite/libgomp.c++/for-11.C: Remove.
10857 * testsuite/libgomp.c++/for-12.C: Remove.
10858 * testsuite/libgomp.c++/for-13.C: Remove.
10859 * testsuite/libgomp.c++/for-14.C: Remove.
10860 * testsuite/libgomp.c++/for-9.C: Remove.
10861 * testsuite/libgomp.c/atomic-18.c: Move ...
10862 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10863 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10864 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10865 * testsuite/libgomp.c/loop-13.c: Move ...
10866 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10867 * testsuite/libgomp.c/loop-14.c: Move ...
10868 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10869 * testsuite/libgomp.c/loop-15.c: Remove.
10870 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10871 * testsuite/libgomp.c/monotonic-1.c: Move ...
10872 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10873 * testsuite/libgomp.c/monotonic-2.c: Move ...
10874 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10875 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10876 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10877 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10878 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10879 * testsuite/libgomp.c/ordered-4.c: Move ...
10880 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10881 * testsuite/libgomp.c/pr45784.c: Move ...
10882 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10883 * testsuite/libgomp.c/pr64824.c: Move ...
10884 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10885 * testsuite/libgomp.c/pr64868.c: Move ...
10886 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10887 * testsuite/libgomp.c/pr66199-1.c: Move ...
10888 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10889 * testsuite/libgomp.c/pr66199-2.c: Move ...
10890 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10891 * testsuite/libgomp.c/pr66199-3.c: Move ...
10892 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10893 * testsuite/libgomp.c/pr66199-4.c: Move ...
10894 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10895 * testsuite/libgomp.c/pr66199-5.c: Move ...
10896 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10897 * testsuite/libgomp.c/pr66199-6.c: Move ...
10898 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10899 * testsuite/libgomp.c/pr66199-7.c: Move ...
10900 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10901 * testsuite/libgomp.c/pr66199-8.c: Move ...
10902 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10903 * testsuite/libgomp.c/pr66199-9.c: Move ...
10904 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10905 * testsuite/libgomp.c/pr69389.c: Move ...
10906 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10907 * testsuite/libgomp.c/simd-14.c: Move ...
10908 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10909 * testsuite/libgomp.c/simd-15.c: Move ...
10910 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10911 * testsuite/libgomp.c/simd-16.c: Move ...
10912 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10913 * testsuite/libgomp.c/simd-17.c: Move ...
10914 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10915 * testsuite/libgomp.c/target-1.c: Move ...
10916 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10917 * testsuite/libgomp.c/target-10.c: Move ...
10918 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10919 * testsuite/libgomp.c/target-13.c: Move ...
10920 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10921 * testsuite/libgomp.c/target-2.c: Move ...
10922 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10923 * testsuite/libgomp.c/taskgroup-1.c: Move ...
10924 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10925 * testsuite/libgomp.c/taskloop-1.c: Move ...
10926 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10927 * testsuite/libgomp.c/taskloop-2.c: Move ...
10928 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10929 * testsuite/libgomp.c/taskloop-3.c: Move ...
10930 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10931 * testsuite/libgomp.c/taskloop-4.c: Move ...
10932 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10933 * testsuite/libgomp.c/udr-1.c: Move ...
10934 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10935 * testsuite/libgomp.c/for-1.c: Move ...
10936 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10937 * testsuite/libgomp.c/for-1.h: Move ...
10938 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10939 * testsuite/libgomp.c/for-2.c: Move ...
10940 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10941 * testsuite/libgomp.c/for-2.h: Move ...
10942 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10943 * testsuite/libgomp.c/for-3.c: Move ...
10944 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10945 * testsuite/libgomp.c/for-4.c: Move ...
10946 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10947 * testsuite/libgomp.c/for-5.c: Move ...
10948 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10949 * testsuite/libgomp.c/for-6.c: Move ...
10950 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10952 2018-05-02 Tom de Vries <tom@codesourcery.com>
10955 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10956 __builtin_goacc_parlevel_{id,size}.
10957 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10958 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10959 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10960 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10961 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10962 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10963 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10964 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10965 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10966 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10967 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10968 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10969 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10970 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10971 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10972 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10973 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10974 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10975 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10976 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10977 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10978 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10979 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10981 2018-05-02 Tom de Vries <tom@codesourcery.com>
10984 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10986 2018-05-02 Tom de Vries <tom@codesourcery.com>
10989 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10991 2018-04-29 Julian Brown <julian@codesourcery.com>
10992 Tom de Vries <tom@codesourcery.com>
10995 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10996 arbitrary order for iterations of atomic subtract check.
10998 2018-04-28 Tom de Vries <tom@codesourcery.com>
11001 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11002 atomic capture results obtained in parallel loop to an array, instead of
11005 2018-04-26 Tom de Vries <tom@codesourcery.com>
11008 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11009 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11010 (process_GOMP_NVPTX_JIT): New function.
11011 (link_ptx): Use process_GOMP_NVPTX_JIT.
11013 2018-04-26 Richard Biener <rguenther@suse.de>
11014 Tom de Vries <tom@codesourcery.com>
11017 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11019 2018-04-26 Tom de Vries <tom@codesourcery.com>
11022 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11023 recursion depth from 25 to 23.
11024 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11026 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11028 * configure: Regenerated.
11030 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11031 Tom de Vries <tom@codesourcery.com>
11034 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11036 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11039 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11040 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11041 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11042 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11043 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11044 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11046 PR libfortran/85166
11047 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11049 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11051 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11053 * configure: Regenerated.
11055 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11058 * configure: Regenerate.
11060 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11061 Tom de Vries <tom@codesourcery.com>
11063 PR middle-end/84955
11064 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11065 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11067 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11071 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11072 test from gfortran.dg to here.
11074 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11076 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11077 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11079 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11081 PR middle-end/84955
11082 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11083 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11085 2018-04-05 Tom de Vries <tom@codesourcery.com>
11088 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11090 2018-03-26 Tom de Vries <tom@codesourcery.com>
11092 PR tree-optimization/85063
11093 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11094 * testsuite/libgomp.c/switch-conversion.c: New test.
11095 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11096 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11098 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11101 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11102 call abort by STOP n.
11103 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11104 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11105 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11106 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11107 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11108 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11109 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11110 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11111 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11112 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11113 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11114 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11115 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11116 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11117 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11118 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11119 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11120 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11121 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11122 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11123 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11124 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11125 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11126 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11127 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11128 * testsuite/libgomp.fortran/character1.f90: Likewise.
11129 * testsuite/libgomp.fortran/character2.f90: Likewise.
11130 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11131 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11132 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11133 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11134 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11135 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11136 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11137 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11138 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11139 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11140 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11141 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11142 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11143 * testsuite/libgomp.fortran/do1.f90: Likewise.
11144 * testsuite/libgomp.fortran/do2.f90: Likewise.
11145 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11146 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11147 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11148 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11149 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11150 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11151 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11152 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11153 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11154 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11155 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11156 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11157 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11158 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11159 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11160 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11161 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11162 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11163 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11164 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11165 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11166 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11167 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11168 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11169 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11170 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11171 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11172 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11173 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11174 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11175 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11176 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11177 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11178 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11179 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11180 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11181 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11182 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11183 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11184 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11185 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11186 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11187 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11188 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11189 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11190 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11191 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11192 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11193 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11194 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11195 * testsuite/libgomp.fortran/lib2.f: Likewise.
11196 * testsuite/libgomp.fortran/lib3.f: Likewise.
11197 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11198 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11199 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11200 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11201 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11202 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11203 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11204 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11205 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11206 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11207 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11208 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11209 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11210 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11211 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11212 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11213 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11214 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11215 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11216 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11217 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11218 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11219 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11220 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11221 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11222 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11223 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11224 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11225 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11226 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11227 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11228 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11229 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11230 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11231 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11232 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11233 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11234 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11235 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11236 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11237 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11238 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11239 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11240 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11241 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11242 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11243 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11244 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11245 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11246 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11247 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11248 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11249 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11250 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11251 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11252 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11253 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11254 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11255 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11256 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11257 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11258 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11259 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11260 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11261 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11262 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11263 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11264 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11265 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11266 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11267 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11268 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11269 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11270 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11271 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11272 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11273 * testsuite/libgomp.fortran/stack.f90: Likewise.
11274 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11275 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11276 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11277 * testsuite/libgomp.fortran/target1.f90: Likewise.
11278 * testsuite/libgomp.fortran/target2.f90: Likewise.
11279 * testsuite/libgomp.fortran/target3.f90: Likewise.
11280 * testsuite/libgomp.fortran/target4.f90: Likewise.
11281 * testsuite/libgomp.fortran/target5.f90: Likewise.
11282 * testsuite/libgomp.fortran/target6.f90: Likewise.
11283 * testsuite/libgomp.fortran/target7.f90: Likewise.
11284 * testsuite/libgomp.fortran/target8.f90: Likewise.
11285 * testsuite/libgomp.fortran/task1.f90: Likewise.
11286 * testsuite/libgomp.fortran/task2.f90: Likewise.
11287 * testsuite/libgomp.fortran/task3.f90: Likewise.
11288 * testsuite/libgomp.fortran/task4.f90: Likewise.
11289 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11290 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11291 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11292 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11293 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11294 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11295 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11296 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11297 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11298 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11299 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11300 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11301 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11302 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11303 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11304 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11305 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11306 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11307 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11308 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11309 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11310 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11311 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11312 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11313 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11314 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11315 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11316 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11317 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11318 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11319 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11320 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11321 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11322 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11323 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11324 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11325 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11326 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11327 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11328 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11329 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11330 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11331 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11332 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11333 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11334 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11335 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11336 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11337 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11338 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11339 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11340 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11341 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11342 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11343 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11344 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11345 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11346 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11347 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11348 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11349 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11350 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11351 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11352 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11353 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11354 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11355 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11356 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11357 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11358 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11359 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11360 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11361 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11362 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11363 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11364 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11365 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11366 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11367 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11368 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11369 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11370 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11371 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11372 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11373 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11374 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11375 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11376 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11377 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11378 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11379 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11380 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11381 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11382 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11383 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11384 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11385 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11386 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11387 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11388 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11389 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11390 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11391 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11392 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11393 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11394 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11395 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11396 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11397 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11398 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11399 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11400 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11401 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11402 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11403 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11404 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11405 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11406 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11407 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11408 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11409 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11410 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11411 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11412 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11413 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11414 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11416 2018-03-20 Richard Biener <rguenther@suse.de>
11418 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11419 parallelizable loop.
11421 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11424 * configure: Regenerate.
11426 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11429 * libgomp.fortran/pr84418-1.f90: New test.
11430 * libgomp.fortran/pr84418-2.f90: New test.
11432 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11435 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11436 -std=f2003 -fall-intrinsics into dg-additional-options.
11438 2018-02-08 Martin Jambor <mjambor@suse.cz>
11440 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11443 2018-02-08 Martin Jambor <mjambor@suse.cz>
11445 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11447 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11449 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11450 [__cplusplus]: Declare extern "C".
11452 2018-02-07 Tom de Vries <tom@codesourcery.com>
11455 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11457 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11458 Jakub Jelinek <jakub@redhat.com>
11461 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11462 instead of omp_lock_t.
11464 2018-01-25 Tom de Vries <tom@codesourcery.com>
11467 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11469 2018-01-24 Tom de Vries <tom@codesourcery.com>
11472 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11474 2018-01-24 Tom de Vries <tom@codesourcery.com>
11477 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11479 2018-01-19 Tom de Vries <tom@codesourcery.com>
11480 Cesar Philippidis <cesar@codesourcery.com>
11483 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11484 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11486 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11488 Update copyright years.
11490 * libgomp.texi: Bump @copying's copyright year.
11492 2017-12-30 Tom de Vries <tom@codesourcery.com>
11495 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11496 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11498 2017-12-27 Tom de Vries <tom@codesourcery.com>
11501 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11502 (test_nonstatic): Fix return type to workaround PR83046.
11504 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11507 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11508 j suffix instead of i.
11509 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11512 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
11514 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11515 call to acc_wait (1).
11517 2017-11-24 Jakub Jelinek <jakub@redhat.com>
11520 * testsuite/libgomp.fortran/pr81304.f90: New test.
11522 2017-11-23 Jakub Jelinek <jakub@redhat.com>
11525 * libgomp.fortran/pr81841.f90: New test.
11527 2017-11-22 Jakub Jelinek <jakub@redhat.com>
11530 * target.c (gomp_target_init): Compute lengths just once and
11531 use them in both malloc size and subsequent copying.
11533 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11535 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11536 * acinclude.m4: Add cet.m4.
11537 * configure: Regenerate.
11538 * Makefile.in: Likewise.
11539 * testsuite/Makefile.in: Likewise.
11541 2017-11-15 Tom de Vries <tom@codesourcery.com>
11543 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11544 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
11545 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11546 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
11547 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11548 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
11550 2017-11-14 Tom de Vries <tom@codesourcery.com>
11552 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11553 non-nvidia devices.
11555 2017-11-07 Jakub Jelinek <jakub@redhat.com>
11558 * testsuite/libgomp.c++/pr82835.C: New test.
11560 2017-11-06 Martin Liska <mliska@suse.cz>
11562 * testsuite/libgomp.c++/loop-2.C: Return a value
11563 for functions with non-void return type, or change type to void,
11564 or add -Wno-return-type for test.
11565 * testsuite/libgomp.c++/loop-4.C: Likewise.
11566 * testsuite/libgomp.c++/parallel-1.C: Likewise.
11567 * testsuite/libgomp.c++/shared-1.C: Likewise.
11568 * testsuite/libgomp.c++/single-1.C: Likewise.
11569 * testsuite/libgomp.c++/single-2.C: Likewise.
11571 2017-10-31 Tom de Vries <tom@codesourcery.com>
11573 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11574 "do {} while (false)".
11575 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11576 after HSA_DEBUG call.
11578 2017-10-28 Jakub Jelinek <jakub@redhat.com>
11580 * target.c (struct gomp_coalesce_buf): New type.
11581 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11582 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11583 (gomp_copy_host2dev): Add CBUF argument, if copying into
11584 the cached ranges, memcpy into buffer instead of copying
11586 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11587 Add CBUF argument, pass it through to other calls.
11588 (gomp_map_vars): Aggregate copies from host to device if small enough
11589 and with small enough gaps in between into memcpy into a buffer and
11590 fewer host to device copies from the buffer.
11591 (gomp_update): Adjust gomp_copy_host2dev caller.
11593 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
11595 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11597 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11598 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11599 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11600 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11602 2017-10-16 Tom de Vries <tom@codesourcery.com>
11604 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11605 openacc_nvidia_accel_selected.
11606 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11607 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11608 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11609 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11610 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11611 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11612 openacc_nvidia_accel_selected. Skip for shared memory device.
11613 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11614 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11616 2017-10-09 Martin Jambor <mjambor@suse.cz>
11619 * testsuite/libgomp.hsa.c/pr82416.c: New test.
11621 2017-10-07 Tom de Vries <tom@codesourcery.com>
11623 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11624 Remove acc_device_nvidia references.
11625 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11628 2017-10-05 Tom de Vries <tom@codesourcery.com>
11630 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11631 vector_length(32) clause from acc parallel directive.
11632 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11634 2017-10-04 Tom de Vries <tom@codesourcery.com>
11636 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11637 (main): Reduce sum of arr elements. Assert that hres is exactly
11638 representable in 32-bit floating point.
11639 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11640 (main): Reduce sum of arr elements. Assert that hres and hmres are
11641 exactly representable in 32-bit floating point.
11642 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11644 2017-09-28 Tom de Vries <tom@codesourcery.com>
11646 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11648 * testsuite/libgomp.c++/pr69393.C: Same.
11649 * testsuite/libgomp.c++/taskloop-1.C: Same.
11650 * testsuite/libgomp.c++/taskloop-3.C: Same.
11651 * testsuite/libgomp.c++/taskloop-4.C: Same.
11652 * testsuite/libgomp.c/for-4.c: Same.
11653 * testsuite/libgomp.c/pr66199-3.c: Same.
11654 * testsuite/libgomp.c/pr66199-4.c: Same.
11655 * testsuite/libgomp.c/pr66199-6.c: Same.
11656 * testsuite/libgomp.c/taskloop-1.c: Same.
11657 * testsuite/libgomp.c/taskloop-3.c: Same.
11658 * testsuite/libgomp.c/taskloop-4.c: Same.
11659 * testsuite/libgomp.fortran/aligned1.f03: Same.
11660 * testsuite/libgomp.fortran/condinc1.f: Same.
11661 * testsuite/libgomp.fortran/condinc3.f90: Same.
11662 * testsuite/libgomp.fortran/crayptr1.f90: Same.
11663 * testsuite/libgomp.fortran/crayptr2.f90: Same.
11664 * testsuite/libgomp.fortran/crayptr3.f90: Same.
11665 * testsuite/libgomp.fortran/omp_cond1.f: Same.
11666 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11667 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11668 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11669 * testsuite/libgomp.fortran/recursion1.f90: Same.
11670 * testsuite/libgomp.fortran/target2.f90: Same.
11671 * testsuite/libgomp.fortran/target5.f90: Same.
11672 * testsuite/libgomp.fortran/task3.f90: Same.
11674 2017-09-28 Tom de Vries <tom@codesourcery.com>
11676 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11677 vector_length(32) clause from acc parallel directive.
11678 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11680 2017-09-27 Tom de Vries <tom@codesourcery.com>
11682 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11683 Remove acc_device_nvidia references.
11685 2017-09-16 Tom de Vries <tom@codesourcery.com>
11688 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11690 2017-09-14 Tom de Vries <tom@codesourcery.com>
11692 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11693 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11694 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11695 * testsuite/libgomp.c/c.exp: Include test-cases from
11696 libgomp.c-c++-common.
11697 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
11700 2017-09-14 Jakub Jelinek <jakub@redhat.com>
11703 * testsuite/libgomp.c++/pr81314.C: New test.
11705 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
11707 * libgomp.texi (Top): www.openacc.org now uses https.
11708 (Enabling OpenACC): Ditto.
11709 (acc_get_num_devices): Ditto.
11710 (acc_set_device_type): Ditto.
11711 (acc_get_device_type): Ditto.
11712 (acc_set_device_num): Ditto.
11713 (acc_get_device_num): Ditto.
11714 (acc_async_test): Ditto.
11715 (acc_async_test_all): Ditto.
11717 (acc_wait_all): Ditto.
11718 (acc_wait_all_async): Ditto.
11719 (acc_wait_async): Ditto.
11721 (acc_shutdown): Ditto.
11722 (acc_on_device): Ditto.
11723 (acc_malloc): Ditto.
11725 (acc_copyin): Ditto.
11726 (acc_present_or_copyin): Ditto.
11727 (acc_create): Ditto.
11728 (acc_present_or_create): Ditto.
11729 (acc_copyout): Ditto.
11730 (acc_delete): Ditto.
11731 (acc_update_device): Ditto.
11732 (acc_update_self): Ditto.
11733 (acc_map_data): Ditto.
11734 (acc_unmap_data): Ditto.
11735 (acc_deviceptr): Ditto.
11736 (acc_hostptr): Ditto.
11737 (acc_is_present): Ditto.
11738 (acc_memcpy_to_device): Ditto.
11739 (acc_memcpy_from_device): Ditto.
11740 (acc_get_current_cuda_device): Ditto.
11741 (acc_get_current_cuda_context): Ditto.
11742 (acc_get_cuda_stream): Ditto.
11743 (acc_set_cuda_stream): Ditto.
11744 (ACC_DEVICE_TYPE): Ditto.
11745 (ACC_DEVICE_NUM): Ditto.
11746 (OpenACC Library Interoperability): Ditto.
11748 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11751 * testsuite/libgomp.c/pr81687-1.c: New test.
11752 * testsuite/libgomp.c/pr81687-2.c: New test.
11754 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11757 * testsuite/libgomp.c/pr69389.c: New test.
11758 * testsuite/libgomp.c++/pr69389.C: New test.
11760 2017-08-07 Tom de Vries <tom@codesourcery.com>
11762 PR middle-end/78266
11763 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11764 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11766 2017-07-27 Jakub Jelinek <jakub@redhat.com>
11769 * testsuite/libgomp.c/pr45784.c: New test.
11770 * testsuite/libgomp.c++/pr45784.C: New test.
11772 2017-07-19 Tom de Vries <tom@codesourcery.com>
11774 * testsuite/libgomp.oacc-c/vec.c: New test.
11776 2017-07-03 Tom de Vries <tom@codesourcery.com>
11778 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11780 2017-06-27 Tom de Vries <tom@codesourcery.com>
11782 * plugin/plugin-nvptx.c (notify_var): New function.
11783 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11785 2017-06-27 Tom de Vries <tom@codesourcery.com>
11787 * env.c (parse_unsigned_long_1): Factor out of ...
11788 (parse_unsigned_long): ... here.
11789 (parse_int_1): Factor out of ...
11790 (parse_int): ... here.
11791 (parse_int_secure): New function.
11792 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11793 * secure_getenv.h: Factor out of ...
11794 * plugin/plugin-hsa.c: ... here.
11795 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11797 2017-06-21 Jakub Jelinek <jakub@redhat.com>
11800 * testsuite/libgomp.c++/pr81130.C: New test.
11802 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11804 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11806 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11807 dg-xfail-run-if default args.
11809 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11811 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11812 * testsuite/libgomp.c/pr39591-3.c: Likewise.
11814 2017-05-30 Jakub Jelinek <jakub@redhat.com>
11817 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11818 (gomp_affinity_init_level): Use it. Always analyze the core and thread
11819 sibling lists, depending on level just pick up what CPUs to put
11820 together into a place vs. whether add multiple ordered places.
11822 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
11824 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11825 * libgomp.map (OACC_2.0.1): Add these.
11826 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11827 for "acc_wait", and "acc_wait_all", respectively.
11828 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11829 for "acc_wait", and "acc_wait_all", respectively.
11830 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11831 * libgomp.texi (acc_wait, acc_wait_all): Update.
11832 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11833 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11834 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11836 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11837 acc_present_or_copyin and acc_present_or_create procedures,
11839 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11840 generally different variants of OpenACC Runtime Library functions.
11841 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11843 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11844 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11846 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11847 of preprocessor definitions.
11848 * libgomp.h (strong_alias): Guard by "#ifdef
11849 HAVE_ATTRIBUTE_ALIAS".
11850 * oacc-mem.c: Provide "acc_pcreate" as alias for
11851 "acc_present_or_create", and "acc_pcopyin" as alias for
11852 "acc_present_or_copyin".
11853 * libgomp.map: New version "OACC_2.0.1".
11854 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11855 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11856 its content into...
11857 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11860 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11861 when disabling nvptx offloading.
11863 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
11865 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11866 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11867 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11869 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11870 * testsuite/lib/libgomp.exp
11871 (check_effective_target_openacc_nvidia_accel_configured): New
11873 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11874 (check_effective_target_c++): New procs.
11875 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11876 (check_effective_target_c++): Likewise.
11878 2017-05-22 Jakub Jelinek <jakub@redhat.com>
11880 PR middle-end/80809
11881 * testsuite/libgomp.c/pr80809-2.c: New test.
11882 * testsuite/libgomp.c/pr80809-3.c: New test.
11884 PR middle-end/80809
11885 * testsuite/libgomp.c/pr80809-1.c: New test.
11887 PR middle-end/80853
11888 * testsuite/libgomp.c/pr80853.c: New test.
11890 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
11892 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11893 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11894 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11895 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11896 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11898 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11899 Debug output for failure.
11901 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11903 * testsuite/lib/libgomp.exp: Load scanlang.exp.
11905 2017-04-27 Jakub Jelinek <jakub@redhat.com>
11908 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11909 bootstrap compare failures.
11911 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
11913 * testsuite/libgomp.c/target-36.c: New testcase.
11915 2017-04-13 Jakub Jelinek <jakub@redhat.com>
11917 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11920 2017-04-11 Jakub Jelinek <jakub@redhat.com>
11923 * testsuite/libgomp.c/pr80394.c: New test.
11925 2017-04-04 Jakub Jelinek <jakub@redhat.com>
11928 * config/posix/thread-stacksize.h: New file.
11929 * config/darwin/thread-stacksize.h: New file.
11930 * config/nvptx/thread-stacksize.h: New file.
11931 * env.c: Include thread-stacksize.h.
11932 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11933 instead of 0. Call pthread_attr_setstacksize even if
11934 GOMP_DEFAULT_STACKSIZE is non-zero.
11936 2017-03-30 Jakub Jelinek <jakub@redhat.com>
11938 * env.c (initialize_env): Initialize stacksize to 0.
11940 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
11943 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11945 2017-03-08 Jakub Jelinek <jakub@redhat.com>
11948 * testsuite/libgomp.c/pr79940.c: New test.
11950 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11952 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11954 Add __float128 options.
11956 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
11958 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11959 hppa*-*-* dg-skip-if directive.
11961 2017-02-09 Jakub Jelinek <jakub@redhat.com>
11963 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11964 dg-skip-if directive into a comment.
11966 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
11967 Chung-Lin Tang <cltang@codesourcery.com>
11969 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11970 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11971 add additional case.
11972 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11973 "openacc_nvidia_accel_selected".
11974 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11975 Add num_workers(8) clause.
11977 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
11979 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11981 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11982 include complex.h on hppa*-*-hpux*.
11983 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11985 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
11987 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11989 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11990 GOMP_OFFLOAD_openacc_exec. Adjust all users.
11991 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11992 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
11993 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11994 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
11995 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11996 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
11997 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11998 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12000 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12002 * libgomp-plugin.h: #include <stdbool.h>.
12003 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12004 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12005 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12006 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12007 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12008 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12009 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12010 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12011 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12012 (GOMP_OFFLOAD_openacc_async_test)
12013 (GOMP_OFFLOAD_openacc_async_test_all)
12014 (GOMP_OFFLOAD_openacc_async_wait)
12015 (GOMP_OFFLOAD_openacc_async_wait_async)
12016 (GOMP_OFFLOAD_openacc_async_wait_all)
12017 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12018 (GOMP_OFFLOAD_openacc_async_set_async)
12019 (GOMP_OFFLOAD_openacc_create_thread_data)
12020 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12021 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12022 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12023 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12024 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12025 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12027 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12028 (GOMP_OFFLOAD_unload_image): Fix argument types.
12030 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12032 * testsuite/lib/libgomp.exp
12033 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12034 check_compile invocation. Fix up removal of executable. Drop
12035 bogus "2>&1" argument.
12037 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12040 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12041 Martin Jambor <mjambor@suse.cz>
12043 * plugin/hsa.h: Moved to top level include.
12044 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12046 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12049 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12050 of cat to get version from BASE-VER file.
12051 * testsuite/Makefile.in: Regenerated.
12053 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12055 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12058 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12060 * plugin/hsa.h: Add GCC runtime library exception.
12061 * plugin/hsa_ext_finalize.h: Likewise.
12063 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12064 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12065 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12066 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12067 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12068 library to link ptx plugin against.
12069 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12070 (CUDA_CALLS): Define.
12071 (cuda_lib, cuda_lib_inited): New variables.
12072 (init_cuda_lib): New function.
12073 (CUDA_CALL_PREFIX): Define.
12074 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12075 (CUDA_CALL): Use FN instead of (FN).
12076 (CUDA_CALL_NOCHECK): Define.
12077 (cuda_error, fini_streams_for_device, select_stream_for_async,
12078 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12079 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12080 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12081 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12083 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12085 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12086 Use CUDA_CALL_NOCHECK.
12087 * plugin/cuda/cuda.h: New file.
12088 * config.h.in: Regenerated.
12089 * configure: Regenerated.
12092 * configure.ac: Add GCC_BASE_VER.
12093 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12094 get version from BASE-VER file.
12095 * testsuite/Makefile.in: Regenerated.
12096 * configure: Regenerated.
12097 * Makefile.in: Regenerated.
12099 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12102 * Makefile.am: Make fincludedir multilib-aware.
12103 * Makefile.in: Regenerate.
12105 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12107 Update copyright years.
12109 * libgomp.texi: Bump @copying's copyright year.
12111 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12113 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12114 pthread_spinlock_t instead of gomp_mutex_t lock.
12115 (gomp_get_thread_pool): Likewise.
12116 (gomp_release_thread_pool): Likewise.
12117 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12120 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12122 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12123 thread pool in case nthreads == 1.
12125 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12127 * config/nvptx/env.c: Delete.
12128 * icv.c: Move definitions of ICV variables back ...
12129 * env.c: ...here. Do not compile environment-related functionality if
12130 LIBGOMP_OFFLOADED_ONLY is set.
12132 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12134 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12135 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12136 * configure: Regenerate.
12137 * config.h.in: Likewise.
12139 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12141 * Makefile.in: Regenerate with automake-1.11.6.
12142 * aclocal.m4: Likewise.
12143 * configure: Likewise.
12144 * testsuite/Makefile.in: Likewise.
12146 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12148 * config/nvptx/critical.c: Delete to use generic implementation.
12150 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12152 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12153 ../../affinity.c as fallback.
12154 * config/nvptx/affinity.c: Delete to use fallback implementation.
12156 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12157 Jakub Jelinek <jakub@redhat.com>
12158 Dmitry Melnik <dm@ispras.ru>
12160 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12161 * Makefile.in. Regenerate.
12162 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12163 (LIBGOMP_USE_PTHREADS): ...here; new define.
12164 * configure: Regenerate.
12165 * config.h.in: Likewise.
12166 * config/posix/affinity.c: Move to...
12167 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12168 interface by LIBGOMP_USE_PTHREADS.
12169 * critical.c: Split out GOMP_atomic_{start,end} into...
12170 * atomic.c: ...here (new file).
12171 * env.c: Split out ICV definitions into...
12172 * icv.c: ...here (new file) and...
12173 * icv-device.c: ...here. New file.
12174 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12175 (gomp_destroy_lock_30): Ditto.
12176 (gomp_set_lock_30): Ditto.
12177 (gomp_unset_lock_30): Ditto.
12178 (gomp_test_lock_30): Ditto.
12179 (gomp_init_nest_lock_30): Ditto.
12180 (gomp_destroy_nest_lock_30): Ditto.
12181 (gomp_set_nest_lock_30): Ditto.
12182 (gomp_unset_nest_lock_30): Ditto.
12183 (gomp_test_nest_lock_30): Ditto.
12185 * config/nvptx/lock.c: New.
12186 * config/nvptx/bar.c: New.
12187 * config/nvptx/bar.h: New.
12188 * config/nvptx/doacross.h: New.
12189 * config/nvptx/error.c: New.
12190 * config/nvptx/icv-device.c: New.
12191 * config/nvptx/mutex.h: New.
12192 * config/nvptx/pool.h: New.
12193 * config/nvptx/proc.c: New.
12194 * config/nvptx/ptrlock.h: New.
12195 * config/nvptx/sem.h: New.
12196 * config/nvptx/simple-bar.h: New.
12197 * config/nvptx/target.c: New.
12198 * config/nvptx/task.c: New.
12199 * config/nvptx/team.c: New.
12200 * config/nvptx/time.c: New.
12201 * config/posix/simple-bar.h: New.
12202 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12203 (gomp_num_teams_var): Declare.
12204 (struct gomp_thread_pool): Change threads_dock member to
12205 gomp_simple_barrier_t.
12206 [__nvptx__] (gomp_thread): New implementation.
12207 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12208 (gomp_thread_destructor): Ditto.
12209 (gomp_init_thread_affinity): Ditto.
12210 * team.c: Guard uses of Pthreads-specific interfaces by
12211 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12212 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12213 * config/nvptx/alloc.c: Delete.
12214 * config/nvptx/barrier.c: Ditto.
12215 * config/nvptx/fortran.c: Ditto.
12216 * config/nvptx/iter.c: Ditto.
12217 * config/nvptx/iter_ull.c: Ditto.
12218 * config/nvptx/loop.c: Ditto.
12219 * config/nvptx/loop_ull.c: Ditto.
12220 * config/nvptx/ordered.c: Ditto.
12221 * config/nvptx/parallel.c: Ditto.
12222 * config/nvptx/priority_queue.c: Ditto.
12223 * config/nvptx/sections.c: Ditto.
12224 * config/nvptx/single.c: Ditto.
12225 * config/nvptx/splay-tree.c: Ditto.
12226 * config/nvptx/work.c: Ditto.
12227 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12228 -foffload=-lgfortran in addition to -lgfortran.
12229 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12230 * plugin/plugin-nvptx.c: Include <limits.h>.
12231 (struct targ_fn_descriptor): Add new fields.
12232 (struct ptx_device): Ditto. Set them...
12233 (nvptx_open_device): ...here.
12234 (nvptx_adjust_launch_bounds): New.
12235 (nvptx_host2dev): Allow NULL 'nvthd'.
12236 (nvptx_dev2host): Ditto.
12237 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12238 (link_ptx): Adjust log sizes.
12239 (nvptx_host2dev): Allow NULL 'nvthd'.
12240 (nvptx_dev2host): Ditto.
12241 (nvptx_set_clocktick): New. Use it...
12242 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12244 (GOMP_OFFLOAD_dev2dev): New.
12245 (nvptx_adjust_launch_bounds): New.
12246 (nvptx_stacks_size): New.
12247 (nvptx_stacks_alloc): New.
12248 (nvptx_stacks_free): New.
12249 (GOMP_OFFLOAD_run): New.
12250 (GOMP_OFFLOAD_async_run): New (stub).
12252 2016-11-23 Martin Jambor <mjambor@suse.cz>
12254 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12255 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12256 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12258 2016-11-23 Martin Liska <mliska@suse.cz>
12259 Martin Jambor <mjambor@suse.cz>
12261 * plugin/hsa.h: New file.
12262 * plugin/hsa_ext_finalize.h: New file.
12263 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12264 header file unistd.h, and functions secure_getenv, __secure_getenv,
12265 getuid, geteuid, getgid and getegid.
12266 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12268 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12269 Handle various cases of secure_getenv presence, add an implementation
12270 when we can test effective UID and GID.
12271 (struct hsa_runtime_fn_info): New structure.
12272 (hsa_runtime_fn_info hsa_fns): New variable.
12273 (hsa_runtime_lib): Likewise.
12274 (support_cpu_devices): Likewise.
12275 (init_enviroment_variables): Load newly introduced ENV
12277 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12278 (hsa_fatal): Likewise.
12279 (DLSYM_FN): New macro.
12280 (init_hsa_runtime_functions): New function.
12281 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12282 structure. Depending on environment, also allow CPU devices.
12283 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12284 (get_kernarg_memory_region): Likewise.
12285 (GOMP_OFFLOAD_init_device): Likewise.
12286 (destroy_hsa_program): Likewise.
12287 (init_basic_kernel_info): New function.
12288 (GOMP_OFFLOAD_load_image): Use it.
12289 (create_and_finalize_hsa_program): Call hsa run-time functions via
12291 (create_single_kernel_dispatch): Likewise.
12292 (release_kernel_dispatch): Likewise.
12293 (init_single_kernel): Likewise.
12294 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12295 (get_group_size): New function.
12296 (run_kernel): Likewise.
12297 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12298 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12300 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12301 * testsuite/libgomp-test-support.exp.in: Likewise.
12302 * Makefile.in: Regenerated.
12303 * aclocal.m4: Likewise.
12304 * config.h.in: Likewise.
12305 * configure: Likewise.
12306 * testsuite/Makefile.in: Likewise.
12308 2016-11-15 Martin Jambor <mjambor@suse.cz>
12309 Alexander Monakov <amonakov@ispras.ru>
12311 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12312 mapping clauses to target constructs.
12313 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12315 2016-11-15 Matthias Klose <doko@ubuntu.com>
12317 * configure: Regenerate.
12319 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12321 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12322 * omp_lib.h.in (openmp_version): Likewise.
12323 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12325 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12327 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12328 (fib_wrapper): Add map(from: x) clause.
12329 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12330 (e_53_2): Likewise.
12331 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12332 (accum): Add map(tmp) clause.
12333 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12334 (accum): Add map(tofrom: tmp) clause.
12335 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12336 (gramSchmidt): Likewise.
12337 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12338 map(tofrom: sum) clause.
12339 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12340 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12341 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12342 only allowed on the loop iterator.
12343 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12344 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12345 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12346 * testsuite/libgomp.fortran/doacross1.f90: New test.
12347 * testsuite/libgomp.fortran/doacross3.f90: New test.
12348 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12349 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12350 * testsuite/libgomp.fortran/doacross2.f90: New test.
12351 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12352 #pragma omp atomic read.
12353 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12354 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12356 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12357 Nathan Sidwell <nathan@acm.org>
12359 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12360 to determine default geometry.
12361 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12364 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12366 * hashtab.h: Use standard GPLv3 with runtime exception
12369 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12371 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12372 size when allocating new thread.
12374 2016-09-14 Marek Polacek <polacek@redhat.com>
12376 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12378 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12381 * testsuite/libgomp.fortran/pr71014.f90: New test.
12383 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12385 PR middle-end/70895
12386 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12387 firstprivate clauses.
12388 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12390 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12391 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12392 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12393 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12394 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12395 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12396 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12397 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12398 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12399 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12400 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12401 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12403 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12406 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12408 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12411 * testsuite/libgomp.c++/pr58706.C: New test.
12413 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12415 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12416 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12417 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12419 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12420 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12422 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12424 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12425 test, and don't hardcode -O0.
12427 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12429 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12431 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12433 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12436 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12438 PR middle-end/71734
12439 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12440 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12442 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12445 * testsuite/libgomp.fortran/associate3.f90: New test.
12447 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12449 * testsuite/libgomp.c++/target-21.C: New test.
12451 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12453 * testsuite/libgomp.c++/target-20.C: New test.
12455 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12456 Cesar Philippidis <cesar@codesourcery.com>
12458 PR middle-end/71373
12459 * libgomp.oacc-c/nested-function-1.c: New file.
12460 * libgomp.oacc-c/nested-function-2.c: Likewise.
12461 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12462 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12463 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12465 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12468 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12469 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12470 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12472 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12474 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12475 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12477 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12480 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12482 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12484 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12485 instead of invalid schedule(static, 0).
12486 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12488 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12490 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12491 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12492 parameter, use to set async stream around call to gomp_unmap_vars,
12493 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12494 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12495 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12496 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12497 (event_add): Add int parameter, initialize 'val' field when
12498 adding new ptx_event struct.
12499 (nvptx_evec): Adjust event_add() call arguments.
12500 (nvptx_host2dev): Likewise.
12501 (nvptx_dev2host): Likewise.
12502 (nvptx_wait_async): Likewise.
12503 (nvptx_wait_all_async): Likewise.
12504 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12505 pass to event_add() call.
12506 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12508 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12509 call openacc.register_async_cleanup_func() hook.
12510 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12511 * target.c (gomp_copy_from_async): Delete function.
12512 (gomp_map_vars): Remove async_refcount.
12513 (gomp_unmap_vars): Likewise.
12514 (gomp_load_image_to_device): Likewise.
12515 (omp_target_associate_ptr): Likewise.
12516 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12517 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12518 (gomp_copy_from_async): Remove.
12520 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12522 * target.c (gomp_device_copy): New function.
12523 (gomp_copy_host2dev): Likewise.
12524 (gomp_copy_dev2host): Likewise.
12525 (gomp_free_device_memory): Likewise.
12526 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12527 (gomp_map_pointer): Likewise.
12528 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12529 NULL value from alloc_func plugin hook.
12530 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12531 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12532 (gomp_unmap_vars): Likewise.
12533 (gomp_update): Adjust to call gomp_copy_dev2host and
12534 gomp_copy_host2dev functions.
12535 (gomp_unload_image_from_device): Handle false value from
12536 unload_image_func plugin hook.
12537 (gomp_init_device): Handle false value from init_device_func
12539 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12540 (omp_target_free): Adjust to call gomp_free_device_memory.
12541 (omp_target_memcpy): Handle return values from host2dev_func,
12542 dev2host_func, and dev2dev_func plugin hooks.
12543 (omp_target_memcpy_rect_worker): Likewise.
12544 (gomp_target_fini): Handle false value from fini_device_func
12546 * libgomp.h (struct gomp_device_descr): Adjust return type of
12547 init_device_func, fini_device_func, unload_image_func, free_func,
12548 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12549 * oacc-init.c (acc_shutdown_1): Handle false value from
12550 fini_device_func plugin hook.
12551 * oacc-host.c (host_init_device): Change return type to bool.
12552 (host_fini_device): Likewise.
12553 (host_unload_image): Likewise.
12554 (host_free): Likewise.
12555 (host_dev2host): Likewise.
12556 (host_host2dev): Likewise.
12557 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12558 (acc_memcpy_to_device): Likewise.
12559 (acc_memcpy_from_device): Likewise.
12560 (delete_copyout): Add libfnname parameter, handle free_func
12561 hook fatal error case.
12562 (acc_delete): Adjust delete_copyout call.
12563 (acc_copyout): Likewise.
12564 (update_dev_host): Move gomp_mutex_unlock to after
12565 host2dev/dev2host hook calls.
12567 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12568 to 'hsa_error_msg', for clarity.
12569 (hsa_fatal): Likewise.
12570 (hsa_error): New function.
12571 (init_hsa_context): Change return type to bool, adjust to return
12573 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12575 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12576 return false on error.
12577 (get_agent_info): Adjust to return NULL on error.
12578 (destroy_hsa_program): Change return type to bool, adjust to
12579 return false on error.
12580 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12581 (destroy_module): Change return type to bool, adjust to
12582 return false on error.
12583 (GOMP_OFFLOAD_unload_image): Likewise.
12584 (GOMP_OFFLOAD_fini_device): Likewise.
12585 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12586 (GOMP_OFFLOAD_free): Change to return false when called.
12587 (GOMP_OFFLOAD_dev2host): Likewise.
12588 (GOMP_OFFLOAD_host2dev): Likewise.
12589 (GOMP_OFFLOAD_dev2dev): Likewise.
12591 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12592 (CUDA_CALL): Likewise.
12593 (CUDA_CALL_ASSERT): Likewise.
12594 (map_init): Change return type to bool, use CUDA_CALL* macros.
12595 (map_fini): Likewise.
12596 (init_streams_for_device): Change return type to bool, adjust
12598 (fini_streams_for_device): Change return type to bool, adjust
12600 (select_stream_for_async): Release stream_lock before calls to
12601 GOMP_PLUGIN_fatal, adjust call to map_init.
12602 (nvptx_init): Use CUDA_CALL* macros.
12603 (nvptx_attach_host_thread_to_device): Change return type to bool,
12604 use CUDA_CALL* macros.
12605 (nvptx_open_device): Use CUDA_CALL* macros.
12606 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12608 (nvptx_get_num_devices): Use CUDA_CALL* macros.
12609 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12610 (nvptx_exec): Use CUDA_CALL* macros.
12611 (nvptx_alloc): Use CUDA_CALL* macros.
12612 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12613 (nvptx_host2dev): Likewise.
12614 (nvptx_dev2host): Likewise.
12615 (nvptx_wait): Use CUDA_CALL* macros.
12616 (nvptx_wait_async): Likewise.
12617 (nvptx_wait_all): Likewise.
12618 (nvptx_wait_all_async): Likewise.
12619 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12620 use CUDA_CALL* macros, adjust call to map_fini.
12621 (GOMP_OFFLOAD_init_device): Change return type to bool,
12622 adjust code accordingly.
12623 (GOMP_OFFLOAD_fini_device): Likewise.
12624 (GOMP_OFFLOAD_load_image): Adjust calls to
12625 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12626 use CUDA_CALL* macros.
12627 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12629 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12630 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12631 handle error return.
12632 (GOMP_OFFLOAD_dev2host): Likewise.
12633 (GOMP_OFFLOAD_host2dev): Likewise.
12634 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12635 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12637 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
12639 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12640 (acc_free): Likewise.
12641 (acc_memcpy_to_device): Likewise.
12642 (acc_memcpy_from_device): Likewise.
12643 (acc_deviceptr): Likewise.
12644 (acc_hostptr): Likewise.
12645 (acc_is_present): Likewise.
12646 (acc_map_data): Likewise.
12647 (acc_unmap_data): Likewise.
12648 (present_create_copy): Likewise.
12649 (delete_copyout): Likewise.
12650 (update_dev_host): Likewise.
12651 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12652 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12653 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12654 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12655 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12656 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12657 it only runs on nvptx targets.
12658 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12659 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12660 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12661 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12662 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12663 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12664 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12665 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12666 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12667 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12668 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12669 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12670 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12671 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12672 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12673 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12674 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12675 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12676 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12677 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12678 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12679 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12680 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12682 2016-05-23 Martin Jambor <mjambor@suse.cz>
12684 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12686 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
12688 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12689 to gomp_init_targets_once.
12690 (acc_set_device_type): Remove !cached_base_dev condition on call to
12691 gomp_init_targets_once, move call to before acc_device_lock acquire,
12693 (acc_get_device_num): Remove !cached_base_dev condition on call to
12694 gomp_init_targets_once.
12695 (acc_set_device_num): Likewise.
12697 2016-05-16 Martin Jambor <mjambor@suse.cz>
12699 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12701 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
12703 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12704 expected partitioning.
12706 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
12708 PR middle-end/70626
12709 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12710 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12711 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12713 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
12715 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12718 2016-04-19 Jakub Jelinek <jakub@redhat.com>
12720 PR middle-end/70680
12721 * testsuite/libgomp.c/pr70680-1.c: New test.
12722 * testsuite/libgomp.c/pr70680-2.c: New test.
12724 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12726 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12727 pass parameter variables to subroutines.
12729 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
12731 PR middle-end/70643
12732 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12734 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
12737 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12738 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12740 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
12742 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12743 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12744 GOACC_declare prototype.
12746 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12747 Merge this file, and...
12748 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12749 ... this file, and...
12750 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12751 ... this file, and...
12752 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12753 ... this file, and...
12754 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12755 ... this file, and...
12756 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12757 ... this file, and...
12758 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12759 ... this file, and...
12760 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12761 ... this file, and...
12762 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12763 ... this file, and...
12764 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12765 ... this file, and...
12766 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12767 ... this file, and...
12768 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12769 ... this file, and...
12770 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12771 ... this file into...
12772 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12775 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12776 Make failure observable.
12778 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12780 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12782 * target.c (gomp_target_fallback_firstprivate,
12783 gomp_target_unshare_firstprivate): Removed.
12784 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12785 before waiting for dependencies.
12786 (gomp_target_task_fn): Don't copy firstprivate vars here.
12787 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12788 firstprivate_copies here.
12789 (gomp_create_target_task): Don't initialize firstprivate_copies field.
12790 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12791 explicit/implicit firstprivate.
12793 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12797 PR tree-optimization/70373
12798 PR middle-end/70533
12799 PR middle-end/70534
12800 PR middle-end/70535
12801 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12803 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12805 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12807 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12809 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12811 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12813 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12815 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12817 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12819 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12820 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12821 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12822 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12824 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12826 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12828 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12830 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12832 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12833 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12834 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12835 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12836 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12837 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12839 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12840 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12841 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12842 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12843 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12844 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12845 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12846 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12847 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12848 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12849 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12850 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12851 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12852 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12853 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12855 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
12856 James Norris <jnorris@codesourcery.com>
12857 Nathan Sidwell <nathan@codesourcery.com>
12858 Julian Brown <julian@codesourcery.com>
12859 Cesar Philippidis <cesar@codesourcery.com>
12860 Chung-Lin Tang <cltang@codesourcery.com>
12861 Tom de Vries <tom@codesourcery.com>
12863 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12864 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12865 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12866 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12867 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12868 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12869 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12870 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12871 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12873 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12875 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12877 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12878 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12879 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12880 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12882 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12884 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12885 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12886 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12887 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12888 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12889 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12890 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12891 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12892 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12893 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12895 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12896 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12897 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12899 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12901 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12903 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12905 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12907 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12908 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12909 ... this new file. Update.
12910 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12911 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12912 ... this new file. Update.
12913 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12914 file. Incorporate...
12915 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12917 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12919 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12921 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12923 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12925 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12926 set-torture-options.
12928 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
12930 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12932 * testsuite/libgomp.oacc-c/c.exp: Likewise.
12933 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12934 -fno-builtin-acc_on_device instead of -O0.
12935 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12937 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12938 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12940 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12941 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12942 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12943 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12944 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12945 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12946 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12947 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12948 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12949 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12950 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12951 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12952 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12953 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12954 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12955 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12956 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12957 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12959 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12961 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12964 2016-03-24 Martin Liska <mliska@suse.cz>
12966 * plugin/plugin-hsa.c (packet_store_release): New function
12967 that is taken from the HSA runtime manual.
12968 (GOMP_OFFLOAD_run): Use the function.
12970 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12973 * testsuite/libgomp.c++/pr70376.C: New test.
12975 2016-03-23 Tom de Vries <tom@codesourcery.com>
12977 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12978 initialization of lresult and lvresult.
12979 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12981 2016-03-23 James Norris <jnorris@codesourcery.com>
12982 Daichi Fukuoka <dc-fukuoka@sgi.com>
12985 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12986 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12987 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12988 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12990 2016-03-23 Martin Liska <mliska@suse.cz>
12993 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12994 argument just in case a dispatched kernel uses that argument.
12996 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
12998 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12999 -ftree-parallelize-loops/-fopenacc changes.
13000 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13002 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13004 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13006 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13008 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13009 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13011 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13013 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13014 always_ld_library_path the path to libgcc_s.
13016 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13019 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13021 2016-03-09 Tom de Vries <tom@codesourcery.com>
13023 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13024 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13025 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13027 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13028 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13029 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13030 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13032 2016-03-07 Martin Jambor <mjambor@suse.cz>
13034 * testsuite/lib/libgomp.exp
13035 (check_effective_target_hsa_offloading_selected_nocache): New.
13036 (check_effective_target_hsa_offloading_selected): Likewise.
13037 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13038 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13039 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13040 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13041 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13042 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13043 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13044 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13045 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13046 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13047 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13048 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13049 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13050 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13051 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13052 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13053 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13055 2016-03-07 Martin Jambor <mjambor@suse.cz>
13057 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13058 non-shared memory accelerators.
13059 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13060 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13061 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13062 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13063 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13064 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13065 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13066 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13067 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13069 2016-03-07 Martin Jambor <mjambor@suse.cz>
13071 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13074 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13077 * testsuite/libgomp.c++/pr69555-1.C: New test.
13078 * testsuite/libgomp.c++/pr69555-2.C: New test.
13080 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13081 Martin Jambor <mjambor@suse.cz>
13083 * testsuite/lib/libgomp.exp
13084 (check_effective_target_offload_device_shared_as): New proc.
13085 * testsuite/libgomp.c++/declare_target-1.C: New test.
13087 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13090 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13092 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13094 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13095 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13097 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13098 -ftree-parallelize-loops/-fopenacc changes.
13099 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13100 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13102 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13104 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13106 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13108 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13110 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13112 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13114 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13115 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13117 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13118 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13120 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13121 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13124 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13126 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13128 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13131 * testsuite/libgomp.c/pr69805.c: New test.
13133 2016-02-16 Tom de Vries <tom@codesourcery.com>
13136 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13138 2016-02-09 Tom de Vries <tom@codesourcery.com>
13140 PR tree-optimization/69599
13141 * testsuite/libgomp.c/omp-nested-3.c: New test.
13142 * testsuite/libgomp.c/pr46032-2.c: New test.
13143 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13144 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13146 2016-02-09 Tom de Vries <tom@codesourcery.com>
13149 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13151 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13153 * testsuite/libgomp.c/target-31.c: Fix testcase.
13155 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13157 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13159 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13160 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13161 reduction and map clauses.
13162 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13164 2016-02-02 James Norris <jnorris@codesourcery.com>
13166 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13168 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13170 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13171 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13173 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13176 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13178 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13179 (hsa_kmt_lib): Set variables.
13180 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13181 always_ld_library_path.
13182 * Makefile.in: Regenerate.
13183 * configure: Likewise.
13184 * testsuite/Makefile.in: Likewise.
13186 * plugin/configfrag.ac (offload_additional_options)
13187 (offload_additional_lib_paths): Don't amend for hsa offloading.
13188 * configure: Regenerate.
13190 * plugin/configfrag.ac: Don't configure for offloading target if
13191 we don't build the corresponding plugin.
13192 * configure: Regenerate.
13194 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13196 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13197 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13199 2016-01-26 Tom de Vries <tom@codesourcery.com>
13201 PR tree-optimization/69110
13202 * testsuite/libgomp.c/pr69110.c: New test.
13204 2016-01-25 Richard Biener <rguenther@suse.de>
13207 * testsuite/libgomp.c++/pr69393.C: New testcase.
13209 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13211 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13212 function wasn't mapped to the device with non-shared memory.
13214 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13216 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13218 2016-01-19 Martin Jambor <mjambor@suse.cz>
13219 Martin Liska <mliska@suse.cz>
13221 * plugin/Makefrag.am: Add HSA plugin requirements.
13222 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13223 (HSA_RUNTIME_LIB): Likewise.
13224 (HSA_RUNTIME_CPPFLAGS): Likewise.
13225 (HSA_RUNTIME_INCLUDE): New substitution.
13226 (HSA_RUNTIME_LIB): Likewise.
13227 (HSA_RUNTIME_LDFLAGS): Likewise.
13228 (hsa-runtime): New configure option.
13229 (hsa-runtime-include): Likewise.
13230 (hsa-runtime-lib): Likewise.
13231 (PLUGIN_HSA): New substitution variable.
13232 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13234 (PLUGIN_HSA_CPPFLAGS): Likewise.
13235 (PLUGIN_HSA_LDFLAGS): Likewise.
13236 (PLUGIN_HSA_LIBS): Likewise.
13237 Check that we have access to HSA run-time.
13238 * libgomp-plugin.h (offload_target_type): New element
13239 OFFLOAD_TARGET_TYPE_HSA.
13240 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13242 (bool gomp_create_target_task): Updated.
13243 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13244 new field can_run_func.
13245 * libgomp_g.h (GOMP_target_ext): Update prototype.
13246 * oacc-host.c (host_run): Added a new parameter args.
13247 * target.c (calculate_firstprivate_requirements): New function.
13248 (copy_firstprivate_data): Likewise.
13249 (gomp_target_fallback_firstprivate): Use them.
13250 (gomp_target_unshare_firstprivate): New function.
13251 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13253 (GOMP_target): Do host fallback for all shared memory devices. Do not
13254 pass any args to plugins.
13255 (GOMP_target_ext): Introduce device-specific argument parameter args.
13256 Allow host fallback if device shares memory. Do not remap data if
13257 device has shared memory.
13258 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13259 like host fallback for mappings.
13260 (GOMP_target_data): Treat shared memory devices like host fallback.
13261 (GOMP_target_data_ext): Likewise.
13262 (GOMP_target_update): Likewise.
13263 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13264 gomp_create_target_task.
13265 (GOMP_target_enter_exit_data): Likewise.
13266 (omp_target_alloc): Treat shared memory devices like host fallback.
13267 (omp_target_free): Likewise.
13268 (omp_target_is_present): Likewise.
13269 (omp_target_memcpy): Likewise.
13270 (omp_target_memcpy_rect): Likewise.
13271 (omp_target_associate_ptr): Likewise.
13272 (gomp_load_plugin_for_device): Also load can_run.
13273 * task.c (GOMP_PLUGIN_target_task_completion): Free
13274 firstprivate_copies.
13275 (gomp_create_target_task): Accept new argument args and store it to
13277 * plugin/plugin-hsa.c: New file.
13279 2016-01-18 Tom de Vries <tom@codesourcery.com>
13281 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13282 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13284 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13286 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13287 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13289 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13290 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13291 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13293 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13295 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13297 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13299 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13300 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13301 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13302 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13304 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13306 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13308 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13310 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13312 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13314 2016-01-12 James Norris <jnorris@codesourcery.com>
13316 * libgomp.texi: Updates for OpenACC.
13318 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13320 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13322 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13325 * testsuite/libgomp.fortran/pr66680.f90: New test.
13327 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13329 PR middle-end/68960
13330 * testsuite/libgomp.c/pr68960.c: New test.
13332 2016-01-06 Nathan Sidwell <nathan@acm.org>
13334 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13335 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13337 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13339 Update copyright years.
13341 * libgomp.texi: Bump @copying's copyright year.
13343 2015-12-31 Nathan Sidwell <nathan@acm.org>
13345 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13346 dg-additional-options syntax.
13347 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13348 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13349 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13350 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13351 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13352 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13355 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13356 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13357 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13358 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13360 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13362 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13363 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13364 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13366 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13368 * libgomp.h (REFCOUNT_LINK): Define.
13369 (struct splay_tree_key_s): Add link_key.
13370 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13371 Replace target address of the pointer with target address of newly
13372 mapped object in the splay tree. Set link pointer on target to the
13373 device address of the mapped object.
13374 (gomp_unmap_vars): Restore target address of the pointer in the splay
13375 tree for REFCOUNT_LINK objects after unmapping.
13376 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13377 declare target link" objects.
13378 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13379 "omp declare target link" objects, which were mapped for the image.
13380 (gomp_exit_data): Restore target address of the pointer in the splay
13381 tree for REFCOUNT_LINK objects after unmapping.
13382 * testsuite/libgomp.c/target-link-1.c: New file.
13384 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13386 * libgomp.h (gomp_device_state): New enum.
13387 (struct gomp_device_descr): Replace is_initialized with state.
13388 (gomp_fini_device): Remove declaration.
13389 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13390 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13391 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13392 (acc_set_device_type): Use state instead of is_initialized.
13393 (acc_set_device_num): Likewise.
13394 * target.c (resolve_device): Use state instead of is_initialized.
13395 Do not initialize finalized device.
13396 (gomp_map_vars): Do nothing if device is finalized.
13397 (gomp_unmap_vars): Likewise.
13398 (gomp_update): Likewise.
13399 (GOMP_offload_register_ver): Use state instead of is_initialized.
13400 (GOMP_offload_unregister_ver): Likewise.
13401 (gomp_init_device): Likewise.
13402 (gomp_unload_device): Likewise.
13403 (gomp_fini_device): Remove.
13404 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13405 (GOMP_target): Go to host fallback if device is finalized.
13406 (GOMP_target_ext): Likewise.
13407 (gomp_exit_data): Do nothing if device is finalized.
13408 (gomp_target_task_fn): Go to host fallback if device is finalized.
13409 (gomp_target_fini): New static function.
13410 (gomp_target_init): Use state instead of is_initialized.
13411 Call gomp_target_fini at exit.
13413 2015-12-09 Tom de Vries <tom@codesourcery.com>
13415 PR tree-optimization/68716
13416 * testsuite/libgomp.c/omp-nested-2.c: New test.
13418 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13420 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13421 target openacc_nvidia_accel_selected.
13422 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13423 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13424 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13425 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13427 2015-12-01 Julian Brown <julian@codesourcery.com>
13428 James Norris <James_Norris@mentor.com>
13430 * oacc-parallel.c (GOACC_host_data): New function.
13431 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13432 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13433 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13434 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13435 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13436 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13437 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13439 2015-11-30 James Norris <jnorris@codesourcery.com>
13440 Cesar Philippidis <cesar@codesourcery.com>
13443 * libgomp.oacc-fortran/routine-5.f90: New test.
13444 * libgomp.oacc-fortran/routine-7.f90: New test.
13445 * libgomp.oacc-fortran/routine-9.f90: New test.
13447 2015-11-30 Tom de Vries <tom@codesourcery.com>
13449 PR tree-optimization/46032
13450 * testsuite/libgomp.c/pr46032.c: New test.
13452 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13455 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13456 (gomp_create_target_task): Call it before freeing
13457 GOMP_TARGET_TASK_DATA tasks.
13460 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13461 in between case label and OpenMP standalone directives.
13462 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13464 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13466 * configure: Regenerate.
13468 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13470 * testsuite/libgomp.c/target-35.c: New test.
13472 2015-11-22 James Norris <jnorris@codesourcery.com>
13473 Cesar Philippidis <cesar@codesourcery.com>
13475 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13476 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13477 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13478 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13479 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13481 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13483 PR middle-end/68221
13484 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13485 * testsuite/libgomp.c/reduction-12.c: Likewise.
13486 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13487 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13489 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13491 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13492 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13493 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13494 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13495 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13497 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13498 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13500 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13502 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13503 worker & gang cases.
13504 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13506 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13508 * config/nvptx/priority_queue.c: New file.
13510 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13512 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13515 2015-11-14 Jakub Jelinek <jakub@redhat.com>
13516 Aldy Hernandez <aldyh@redhat.com>
13517 Ilya Verbin <ilya.verbin@intel.com>
13519 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13520 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13521 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13522 iterators or IV by chunk size.
13523 * parallel.c (gomp_resolve_num_threads): Don't assume that
13524 if thr->ts.team is non-NULL, then pool must be non-NULL.
13525 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13526 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13527 GOMP_PLUGIN_target_task_completion.
13528 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13529 * Makefile.in: Regenerate.
13530 * libgomp.h: Shuffle prototypes and forward definitions around so
13531 priority queues can be defined.
13532 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13533 (enum gomp_target_task_state): New enum.
13534 (struct gomp_target_task): Add state, tgt, task and team fields.
13535 (gomp_create_target_task): Change return type to bool, add
13537 (gomp_target_task_fn): Change return type to bool.
13538 (struct gomp_device_descr): Add async_run_func.
13539 (struct gomp_task): Remove children, next_child, prev_child,
13540 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13542 (struct gomp_taskgroup): Remove children.
13543 Add taskgroup_queue.
13544 (struct gomp_team): Change task_queue type to a priority queue.
13545 (splay_compare): Define inline.
13546 (priority_queue_offset): New.
13547 (priority_node_to_task): New.
13548 (task_to_priority_node): New.
13549 * oacc-mem.c: Do not include splay-tree.h.
13550 * priority_queue.c: New file.
13551 * priority_queue.h: New file.
13552 * splay-tree.c: Do not include splay-tree.h.
13553 (splay_tree_foreach_internal): New.
13554 (splay_tree_foreach): New.
13555 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13556 (splay_tree_callback): Define typedef.
13557 * target.c (splay_compare): Move to libgomp.h.
13558 (GOMP_target): Don't adjust *thr in any way around running offloaded
13560 (GOMP_target_ext): Likewise. Handle target nowait.
13561 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13562 return value from gomp_create_target_task, if false, fallthrough
13563 as if no dependencies exist.
13564 (gomp_target_task_fn): Change return type to bool, return true
13565 if the task should have another part scheduled later. Handle
13567 (gomp_load_plugin_for_device): Initialize async_run.
13568 * task.c (gomp_init_task): Initialize children_queue.
13569 (gomp_clear_parent_in_list): New.
13570 (gomp_clear_parent_in_tree): New.
13571 (gomp_clear_parent): Handle priorities.
13572 (GOMP_task): Likewise.
13573 (priority_queue_move_task_first,
13574 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13576 (gomp_create_target_task): Use priority queues. Change return type
13577 to bool, add state argument, return false if for async
13578 {{enter,exit} data,update} constructs no dependencies need to be
13579 waited for, handle target nowait. Set task->fn to NULL instead of
13580 gomp_target_task_fn.
13581 (verify_children_queue): Remove.
13582 (priority_list_upgrade_task): New.
13583 (priority_queue_upgrade_task): New.
13584 (verify_task_queue): Remove.
13585 (priority_list_downgrade_task): New.
13586 (priority_queue_downgrade_task): New.
13587 (gomp_task_run_pre): Use priority queues.
13588 Abstract code out to priority_queue_downgrade_task.
13589 (gomp_task_run_post_handle_dependers): Use priority queues.
13590 (gomp_task_run_post_remove_parent): Likewise.
13591 (gomp_task_run_post_remove_taskgroup): Likewise.
13592 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
13594 (GOMP_taskwait): Likewise.
13595 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
13596 priority-queue_upgrade_task.
13597 (GOMP_taskgroup_start): Use priority queues.
13598 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
13599 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
13601 * taskloop.c (GOMP_taskloop): Handle priorities.
13602 * team.c (gomp_new_team): Call priority_queue_init.
13603 (free_team): Call priority_queue_free.
13604 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13605 team created for target nowait in implicit parallel region.
13606 (gomp_team_start): For nested check, test thr->ts.level instead of
13607 thr->ts.team != NULL.
13608 * testsuite/libgomp.c/doacross-3.c: New test.
13609 * testsuite/libgomp.c/ordered-5.c: New test.
13610 * testsuite/libgomp.c/priority.c: New test.
13611 * testsuite/libgomp.c/target-31.c: New test.
13612 * testsuite/libgomp.c/target-32.c: New test.
13613 * testsuite/libgomp.c/target-33.c: New test.
13614 * testsuite/libgomp.c/target-34.c: New test.
13616 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13618 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13620 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13621 loop is sequential.
13623 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
13625 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13626 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13628 2015-11-12 James Norris <jnorris@codesourcery.com>
13629 Joseph Myers <joseph@codesourcery.com>
13631 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13632 * oacc-parallel.c (GOACC_declare): New function.
13633 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13634 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13635 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13636 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13637 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13639 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
13641 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13643 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
13645 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13646 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13648 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13650 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13651 inadvertent commit.
13653 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
13655 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13656 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13657 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13658 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13659 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13661 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
13663 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13664 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13666 2015-11-05 Jakub Jelinek <jakub@redhat.com>
13667 Ilya Verbin <ilya.verbin@intel.com>
13669 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13670 GOMP_loop_nonmonotonic_dynamic_start,
13671 GOMP_loop_nonmonotonic_guided_next,
13672 GOMP_loop_nonmonotonic_guided_start,
13673 GOMP_loop_ull_nonmonotonic_dynamic_next,
13674 GOMP_loop_ull_nonmonotonic_dynamic_start,
13675 GOMP_loop_ull_nonmonotonic_guided_next,
13676 GOMP_loop_ull_nonmonotonic_guided_start,
13677 GOMP_parallel_loop_nonmonotonic_dynamic,
13678 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13679 (GOMP_target_41): Renamed to ...
13680 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13682 (GOMP_target_data_41): Renamed to ...
13683 (GOMP_target_data_ext): ... this.
13684 (GOMP_target_update_41): Renamed to ...
13685 (GOMP_target_update_ext): ... this.
13686 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13687 GOMP_target_data_ext and GOMP_target_update_ext instead of
13688 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13689 Export GOMP_loop_nonmonotonic_dynamic_next,
13690 GOMP_loop_nonmonotonic_dynamic_start,
13691 GOMP_loop_nonmonotonic_guided_next,
13692 GOMP_loop_nonmonotonic_guided_start,
13693 GOMP_loop_ull_nonmonotonic_dynamic_next,
13694 GOMP_loop_ull_nonmonotonic_dynamic_start,
13695 GOMP_loop_ull_nonmonotonic_guided_next,
13696 GOMP_loop_ull_nonmonotonic_guided_start,
13697 GOMP_parallel_loop_nonmonotonic_dynamic and
13698 GOMP_parallel_loop_nonmonotonic_guided.
13699 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13700 GOMP_parallel_loop_nonmonotonic_guided,
13701 GOMP_loop_nonmonotonic_dynamic_start,
13702 GOMP_loop_nonmonotonic_guided_start,
13703 GOMP_loop_nonmonotonic_dynamic_next,
13704 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13705 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13706 GOMP_loop_ull_nonmonotonic_guided_start,
13707 GOMP_loop_ull_nonmonotonic_dynamic_next,
13708 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13709 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13711 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
13712 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13713 Use gomp_map_val function.
13714 (gomp_target_fallback_firstprivate): New static function.
13715 (GOMP_target_41): Renamed to ...
13716 (GOMP_target_ext): ... this. Add num_teams and thread_limit
13717 arguments. Move firstprivate fallback handling into a new
13719 (GOMP_target_data_41): Renamed to ...
13720 (GOMP_target_data_ext): ... this.
13721 (GOMP_target_update_41): Renamed to ...
13722 (GOMP_target_update_ext): ... this.
13723 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13724 gomp_map_0len_lookup instead of gomp_map_lookup.
13725 (omp_target_is_present): Use gomp_map_0len_lookup instead of
13727 * testsuite/libgomp.c/target-28.c: Likewise.
13728 * testsuite/libgomp.c/monotonic-1.c: New test.
13729 * testsuite/libgomp.c/monotonic-2.c: New test.
13730 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13731 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13732 * testsuite/libgomp.c/pr66199-5.c: New test.
13733 * testsuite/libgomp.c/pr66199-6.c: New test.
13734 * testsuite/libgomp.c/pr66199-7.c: New test.
13735 * testsuite/libgomp.c/pr66199-8.c: New test.
13736 * testsuite/libgomp.c/pr66199-9.c: New test.
13737 * testsuite/libgomp.c/reduction-11.c: New test.
13738 * testsuite/libgomp.c/reduction-12.c: New test.
13739 * testsuite/libgomp.c/reduction-13.c: New test.
13740 * testsuite/libgomp.c/reduction-14.c: New test.
13741 * testsuite/libgomp.c/reduction-15.c: New test.
13742 * testsuite/libgomp.c/target-12.c (main): Adjust for
13743 omp_target_is_present change for one-past-last element.
13744 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13745 the same var is both mapped and privatized.
13746 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13747 handling of zero-length array sections.
13748 * testsuite/libgomp.c/target-28.c: New test.
13749 * testsuite/libgomp.c/target-29.c: New test.
13750 * testsuite/libgomp.c/target-30.c: New test.
13751 * testsuite/libgomp.c/target-teams-1.c: New test.
13752 * testsuite/libgomp.c++/member-6.C: New test.
13753 * testsuite/libgomp.c++/member-7.C: New test.
13754 * testsuite/libgomp.c++/monotonic-1.C: New test.
13755 * testsuite/libgomp.c++/monotonic-2.C: New test.
13756 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13757 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13758 * testsuite/libgomp.c++/pr66199-3.C: New test.
13759 * testsuite/libgomp.c++/pr66199-4.C: New test.
13760 * testsuite/libgomp.c++/pr66199-5.C: New test.
13761 * testsuite/libgomp.c++/pr66199-6.C: New test.
13762 * testsuite/libgomp.c++/pr66199-7.C: New test.
13763 * testsuite/libgomp.c++/pr66199-8.C: New test.
13764 * testsuite/libgomp.c++/pr66199-9.C: New test.
13765 * testsuite/libgomp.c++/reduction-11.C: New test.
13766 * testsuite/libgomp.c++/reduction-12.C: New test.
13767 * testsuite/libgomp.c++/target-13.C: New test.
13768 * testsuite/libgomp.c++/target-14.C: New test.
13769 * testsuite/libgomp.c++/target-15.C: New test.
13770 * testsuite/libgomp.c++/target-16.C: New test.
13771 * testsuite/libgomp.c++/target-17.C: New test.
13772 * testsuite/libgomp.c++/target-18.C: New test.
13773 * testsuite/libgomp.c++/target-19.C: New test.
13775 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13777 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13778 and reduction copy.
13779 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13780 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13781 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13782 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13783 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13784 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13785 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13786 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13787 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13788 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13789 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13790 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13791 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13792 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13794 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
13796 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13797 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13798 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13799 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13800 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13801 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13802 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13803 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13805 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
13807 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13808 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13809 (GOMP_OFFLOAD_openacc_parallel): Likewise.
13810 * oacc-host.c (host_openacc_exec): Likewise.
13811 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13813 2015-11-03 Julian Brown <julian@codesourcery.com>
13814 Thomas Schwinge <thomas@codesourcery.com>
13816 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13817 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13818 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13820 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13821 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13823 2015-11-03 James Norris <jnorris@codesourcery.com>
13825 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13827 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13829 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13830 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13831 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13832 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13833 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13835 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
13837 * openacc.h (enum acc_device_t): Reformat. Ensure layout
13839 (enum acc_async_t): Reformat.
13840 (acc_on_device): Declare compatible with builtin and provide C++
13842 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13844 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
13845 Cesar Philippidis <cesar@codesourcery.com>
13847 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13848 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13849 ... this. Add a description of the test at the top of the file.
13850 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13851 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13852 ... this. Add a description of the test at the top of the file.
13854 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
13856 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13857 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13858 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13859 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13860 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13861 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13863 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
13865 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13868 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
13871 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13873 2015-10-27 James Norris <jnorris@codesourcery.com>
13875 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13876 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13878 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
13880 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13881 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13883 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13884 acc_device_nvidia usage.
13885 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13886 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13887 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13889 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13890 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13893 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13897 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13898 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13900 2015-10-23 Tom de Vries <tom@codesourcery.com>
13903 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13905 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
13907 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13909 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13911 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
13912 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
13914 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13915 to 0 when mapnum is 0.
13917 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
13919 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13920 Cast to int from int32_t.
13922 2015-10-13 Jakub Jelinek <jakub@redhat.com>
13923 Aldy Hernandez <aldyh@redhat.com>
13924 Ilya Verbin <ilya.verbin@intel.com>
13926 * config/linux/affinity.c (omp_get_place_num_procs,
13927 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13928 * config/linux/doacross.h: New file.
13929 * config/posix/affinity.c (omp_get_place_num_procs,
13930 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13931 * config/posix/doacross.h: New file.
13932 * env.c: Include gomp-constants.h.
13933 (struct gomp_task_icv): Rename run_sched_modifier to
13934 run_sched_chunk_size.
13935 (gomp_max_task_priority_var): New variable.
13936 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13937 (handle_omp_display_env): Change _OPENMP value from 201307 to
13938 201511. Print OMP_MAX_TASK_PRIORITY.
13939 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13940 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13941 chunk_size and run_sched_modifier to run_sched_chunk_size.
13942 (omp_get_max_task_priority, omp_get_initial_device,
13943 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13944 omp_get_partition_place_nums): New functions.
13945 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13946 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13948 (omp_get_num_places_, omp_get_place_num_procs_,
13949 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13950 omp_get_place_proc_ids_8_, omp_get_place_num_,
13951 omp_get_partition_num_places_, omp_get_partition_place_nums_,
13952 omp_get_partition_place_nums_8_, omp_get_initial_device_,
13953 omp_get_max_task_priority_): New functions.
13954 * libgomp_g.h (GOMP_loop_doacross_static_start,
13955 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13956 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13957 GOMP_loop_ull_doacross_dynamic_start,
13958 GOMP_loop_ull_doacross_guided_start,
13959 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13960 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13961 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13962 GOMP_target_data_41, GOMP_target_update_41,
13963 GOMP_target_enter_exit_data): New prototypes.
13964 (GOMP_task): Add prototype argument.
13965 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13966 (struct gomp_doacross_work_share): New type.
13967 (struct gomp_work_share): Add doacross field.
13968 (struct gomp_task_icv): Rename run_sched_modifier to
13969 run_sched_chunk_size.
13970 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13971 GOMP_TASK_UNDEFERRED. Add comments.
13972 (struct gomp_task_depend_entry): Add comments.
13973 (struct gomp_task): Likewise.
13974 (struct gomp_taskgroup): Likewise.
13975 (struct gomp_target_task): New type.
13976 (struct gomp_team): Add comment.
13977 (gomp_get_place_proc_ids_8, gomp_doacross_init,
13978 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13979 gomp_create_target_task, gomp_target_task_fn): New prototypes.
13980 (struct target_var_desc): New type.
13981 (struct target_mem_desc): Adjust comment. Use struct
13982 target_var_desc instead of splay_tree_key for list.
13983 (REFCOUNT_INFINITY): Define.
13984 (struct splay_tree_key_s): Remove copy_from field.
13985 (struct gomp_device_descr): Add dev2dev_func field.
13986 (enum gomp_map_vars_kind): New enum.
13987 (gomp_map_vars): Add one argument.
13988 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13989 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13990 omp_get_place_num_procs, omp_get_place_num_procs_,
13991 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13992 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13993 omp_get_place_num_, omp_get_partition_num_places,
13994 omp_get_partition_num_places_, omp_get_partition_place_nums,
13995 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13996 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13997 omp_target_free, omp_target_is_present, omp_target_memcpy,
13998 omp_target_memcpy_rect, omp_target_associate_ptr and
13999 omp_target_disassociate_ptr.
14000 (GOMP_4.0.2): Renamed to ...
14001 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14002 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14003 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14004 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14005 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14006 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14007 GOMP_loop_ull_doacross_guided_start,
14008 GOMP_loop_ull_doacross_runtime_start,
14009 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14010 GOMP_doacross_ull_wait.
14011 * libgomp.texi: Document omp_get_max_task_priority.
14012 Rename modifier argument to chunk_size for omp_set_schedule and
14013 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14014 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14015 to run_sched_chunk_size renaming.
14016 (GOMP_loop_ordered_runtime_start): Likewise.
14017 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14018 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14019 GOMP_parallel_loop_runtime_start): New functions.
14020 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14021 to run_sched_chunk_size renaming.
14022 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14023 GOMP_loop_doacross_guided_start): New functions or aliases.
14024 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14025 run_sched_modifier to run_sched_chunk_size renaming.
14026 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14027 (gomp_loop_ull_doacross_static_start,
14028 gomp_loop_ull_doacross_dynamic_start,
14029 gomp_loop_ull_doacross_guided_start,
14030 GOMP_loop_ull_doacross_runtime_start): New functions.
14031 (GOMP_loop_ull_doacross_static_start,
14032 GOMP_loop_ull_doacross_dynamic_start,
14033 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14034 * oacc-mem.c (acc_map_data, present_create_copy,
14035 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14037 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14038 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14039 instead of false to gomp_map_vars.
14040 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14041 * omp.h.in (omp_lock_hint_t): New type.
14042 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14043 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14044 omp_get_place_num, omp_get_partition_num_places,
14045 omp_get_partition_place_nums, omp_get_initial_device,
14046 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14047 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14048 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14050 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14051 (omp_lock_hint_none, omp_lock_hint_uncontended,
14052 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14053 omp_lock_hint_speculative): New parameters.
14054 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14055 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14056 omp_get_place_num, omp_get_partition_num_places,
14057 omp_get_partition_place_nums, omp_get_initial_device,
14058 omp_get_max_task_priority): New interfaces.
14059 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14061 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14062 (omp_lock_hint_none, omp_lock_hint_uncontended,
14063 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14064 omp_lock_hint_speculative): New parameters.
14065 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14066 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14067 omp_get_place_num, omp_get_partition_num_places,
14068 omp_get_partition_place_nums, omp_get_initial_device,
14069 omp_get_max_task_priority): New functions and subroutines.
14070 * ordered.c: Include stdarg.h and string.h.
14071 (MAX_COLLAPSED_BITS): Define.
14072 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14073 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14074 GOMP_doacross_ull_wait): New functions.
14075 * target.c: Include errno.h.
14076 (resolve_device): If device is not initialized, call
14077 gomp_init_device on it.
14078 (gomp_map_lookup): New function.
14079 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14080 Don't bump refcount if REFCOUNT_INFINITY. Handle
14081 GOMP_MAP_ALWAYS_TO_P.
14082 (get_kind): Rename is_openacc argument to short_mapkind.
14083 (gomp_map_pointer): Use gomp_map_lookup.
14084 (gomp_map_fields_existing): New function.
14085 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14086 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14087 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14088 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14089 Adjust for tgt->list changed type and copy_from living in there.
14090 (gomp_copy_from_async): Adjust for tgt->list changed type and
14091 copy_from living in there.
14092 (gomp_unmap_vars): Likewise.
14093 (gomp_update): Likewise. Rename is_openacc argument to
14094 short_mapkind. Don't fail if object is not mapped.
14095 (gomp_load_image_to_device): Initialize refcount to
14097 (gomp_target_fallback): New function.
14098 (gomp_get_target_fn_addr): Likewise.
14099 (GOMP_target): Adjust gomp_map_vars caller, use
14100 gomp_get_target_fn_addr and gomp_target_fallback.
14101 (GOMP_target_41): New function.
14102 (gomp_target_data_fallback): New function.
14103 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14104 (GOMP_target_data_41): New function.
14105 (GOMP_target_update): Adjust gomp_update caller.
14106 (GOMP_target_update_41): New function.
14107 (gomp_exit_data, GOMP_target_enter_exit_data,
14108 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14109 omp_target_is_present, omp_target_memcpy,
14110 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14111 omp_target_associate_ptr, omp_target_disassociate_ptr,
14112 gomp_load_plugin_for_device): New functions.
14113 * task.c: Include gomp-constants.h. Include taskloop.c
14114 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14115 (gomp_task_handle_depend): New function.
14116 (GOMP_task): Use it. Add priority argument. Use
14117 gomp-constant.h constants instead of hardcoded numbers.
14118 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14119 (gomp_create_target_task): New function.
14120 (verify_children_queue, verify_taskgroup_queue,
14121 verify_task_queue): New functions.
14122 (gomp_task_run_pre): Call verify_*_queue functions.
14123 If an upcoming tied task is about to leave the sibling or
14124 taskgroup queues in an invalid state, adjust appropriately.
14125 Remove taskgroup argument. Add comments.
14126 (gomp_task_run_post_handle_dependers): Add comments.
14127 (gomp_task_run_post_remove_parent): Likewise.
14128 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14129 (GOMP_taskwait): Likewise. Add comments.
14130 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14131 problem such that the first non parent_depends_on task does not
14132 end up at the end of the children queue.
14133 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14134 GOMP_TASK_UNDEFERRED.
14135 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14136 * taskloop.c: New file.
14137 * testsuite/lib/libgomp.exp
14138 (check_effective_target_offload_device_nonshared_as): New proc.
14139 * testsuite/libgomp.c/affinity-2.c: New test.
14140 * testsuite/libgomp.c/doacross-1.c: New test.
14141 * testsuite/libgomp.c/doacross-2.c: New test.
14142 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14143 Add map clause to target.
14144 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14145 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14146 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14147 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14148 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14150 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14151 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14152 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14153 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14154 not defined. Use those where needed.
14155 * testsuite/libgomp.c/for-4.c: New test.
14156 * testsuite/libgomp.c/for-5.c: New test.
14157 * testsuite/libgomp.c/for-6.c: New test.
14158 * testsuite/libgomp.c/linear-1.c: New test.
14159 * testsuite/libgomp.c/ordered-4.c: New test.
14160 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14161 only allowed on the loop iterator.
14162 * testsuite/libgomp.c/pr66199-3.c: New test.
14163 * testsuite/libgomp.c/pr66199-4.c: New test.
14164 * testsuite/libgomp.c/reduction-7.c: New test.
14165 * testsuite/libgomp.c/reduction-8.c: New test.
14166 * testsuite/libgomp.c/reduction-9.c: New test.
14167 * testsuite/libgomp.c/reduction-10.c: New test.
14168 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14170 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14171 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14172 * testsuite/libgomp.c/target-11.c: New test.
14173 * testsuite/libgomp.c/target-12.c: New test.
14174 * testsuite/libgomp.c/target-13.c: New test.
14175 * testsuite/libgomp.c/target-14.c: New test.
14176 * testsuite/libgomp.c/target-15.c: New test.
14177 * testsuite/libgomp.c/target-16.c: New test.
14178 * testsuite/libgomp.c/target-17.c: New test.
14179 * testsuite/libgomp.c/target-18.c: New test.
14180 * testsuite/libgomp.c/target-19.c: New test.
14181 * testsuite/libgomp.c/target-20.c: New test.
14182 * testsuite/libgomp.c/target-21.c: New test.
14183 * testsuite/libgomp.c/target-22.c: New test.
14184 * testsuite/libgomp.c/target-23.c: New test.
14185 * testsuite/libgomp.c/target-24.c: New test.
14186 * testsuite/libgomp.c/target-25.c: New test.
14187 * testsuite/libgomp.c/target-26.c: New test.
14188 * testsuite/libgomp.c/target-27.c: New test.
14189 * testsuite/libgomp.c/taskloop-1.c: New test.
14190 * testsuite/libgomp.c/taskloop-2.c: New test.
14191 * testsuite/libgomp.c/taskloop-3.c: New test.
14192 * testsuite/libgomp.c/taskloop-4.c: New test.
14193 * testsuite/libgomp.c++/ctor-13.C: New test.
14194 * testsuite/libgomp.c++/doacross-1.C: New test.
14195 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14196 Replace offload_device with offload_device_nonshared_as.
14197 * testsuite/libgomp.c++/for-12.C: New test.
14198 * testsuite/libgomp.c++/for-13.C: New test.
14199 * testsuite/libgomp.c++/for-14.C: New test.
14200 * testsuite/libgomp.c++/linear-1.C: New test.
14201 * testsuite/libgomp.c++/member-1.C: New test.
14202 * testsuite/libgomp.c++/member-2.C: New test.
14203 * testsuite/libgomp.c++/member-3.C: New test.
14204 * testsuite/libgomp.c++/member-4.C: New test.
14205 * testsuite/libgomp.c++/member-5.C: New test.
14206 * testsuite/libgomp.c++/ordered-1.C: New test.
14207 * testsuite/libgomp.c++/reduction-5.C: New test.
14208 * testsuite/libgomp.c++/reduction-6.C: New test.
14209 * testsuite/libgomp.c++/reduction-7.C: New test.
14210 * testsuite/libgomp.c++/reduction-8.C: New test.
14211 * testsuite/libgomp.c++/reduction-9.C: New test.
14212 * testsuite/libgomp.c++/reduction-10.C: New test.
14213 * testsuite/libgomp.c++/reference-1.C: New test.
14214 * testsuite/libgomp.c++/simd14.C: New test.
14215 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14216 * testsuite/libgomp.c++/target-5.C: New test.
14217 * testsuite/libgomp.c++/target-6.C: New test.
14218 * testsuite/libgomp.c++/target-7.C: New test.
14219 * testsuite/libgomp.c++/target-8.C: New test.
14220 * testsuite/libgomp.c++/target-9.C: New test.
14221 * testsuite/libgomp.c++/target-10.C: New test.
14222 * testsuite/libgomp.c++/target-11.C: New test.
14223 * testsuite/libgomp.c++/target-12.C: New test.
14224 * testsuite/libgomp.c++/taskloop-1.C: New test.
14225 * testsuite/libgomp.c++/taskloop-2.C: New test.
14226 * testsuite/libgomp.c++/taskloop-3.C: New test.
14227 * testsuite/libgomp.c++/taskloop-4.C: New test.
14228 * testsuite/libgomp.c++/taskloop-5.C: New test.
14229 * testsuite/libgomp.c++/taskloop-6.C: New test.
14230 * testsuite/libgomp.c++/taskloop-7.C: New test.
14231 * testsuite/libgomp.c++/taskloop-8.C: New test.
14232 * testsuite/libgomp.c++/taskloop-9.C: New test.
14233 * testsuite/libgomp.fortran/affinity1.f90: New test.
14234 * testsuite/libgomp.fortran/affinity2.f90: New test.
14236 2015-10-13 Tom de Vries <tom@codesourcery.com>
14238 PR tree-optimization/67476
14239 * testsuite/libgomp.c/autopar-3.c: New test.
14240 * testsuite/libgomp.c/autopar-4.c: New test.
14241 * testsuite/libgomp.c/autopar-5.c: New test.
14242 * testsuite/libgomp.c/autopar-6.c: New test.
14243 * testsuite/libgomp.c/autopar-7.c: New test.
14244 * testsuite/libgomp.c/autopar-8.c: New test.
14246 2015-10-12 James Norris <jnorris@codesourcery.com>
14248 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14251 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14253 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14254 using load_gcc_lib.
14256 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14258 * oacc-ptx.h: Remove file, moving its content into...
14259 * config/nvptx/fortran.c: ... here...
14260 * config/nvptx/oacc-init.c: ..., here...
14261 * config/nvptx/oacc-parallel.c: ..., and here.
14262 * config/nvptx/openacc.f90: New file.
14263 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14264 (link_ptx): Don't link in predefined bits of PTX code.
14266 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14267 Bernd Schmidt <bernds@codesourcery.com>
14269 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14270 (struct targ_ptx_obj): New.
14271 (nvptx_tdata): Move earlier, change data format.
14272 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14274 (GOMP_OFFLOAD_load_image): Adjust.
14276 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14278 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14279 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14280 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14281 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14282 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14283 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14284 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14285 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14286 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14287 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14288 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14289 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14290 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14291 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14292 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14293 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14294 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14295 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14296 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14297 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14298 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14299 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14300 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14301 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14302 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14303 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14304 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14305 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14306 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14307 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14308 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14309 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14310 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14311 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14312 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14313 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14314 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14315 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14316 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14317 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14318 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14319 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14320 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14321 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14322 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14323 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14324 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14325 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14326 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14327 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14328 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14329 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14330 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14331 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14332 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14333 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14334 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14335 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14336 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14337 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14338 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14339 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14340 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14342 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14344 * oacc-init.c (acc_on_device): Force optimization level.
14346 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14348 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14349 (cuda_errlist): Delete.
14350 (cuda_error): Reimplement.
14352 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14354 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14356 * libgomp.map (GOACC_parallel_keyed): New.
14357 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14359 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14360 and take keyed varargs list. Adjust call to exec_func.
14361 (GOACC_parallel): Force host fallback.
14362 * libgomp_g.h (GOACC_parallel): Remove.
14363 (GOACC_parallel_keyed): Declare.
14364 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14365 (struct targ_gn_descriptor): Replace name field with launch field.
14366 (nvptx_exec): Lose separate geometry args, take array. Process
14367 dynamic dimensions and adjust.
14368 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14369 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14371 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14373 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14376 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14379 * oacc-int.h (goacc_host_init): Add declaration.
14380 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14381 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14383 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14384 Sebastian Pop <s.pop@samsung.com>
14386 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14388 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14389 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14390 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14391 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14392 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14394 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14396 * configure.tgt: Add missing ;; in between nvptx and rtems
14399 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14401 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14402 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14403 (gomp_thread_pool_reservoir): Add priority member.
14404 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14406 (parse_thread_pools): Likewise.
14407 * team.c (gomp_team_start): Call configuration provided
14408 gomp_adjust_thread_attr(). Destroy thread attributes if
14410 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14412 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14414 * config/posix/pool.h: New.
14415 * config/rtems/pool.h: Likewise.
14416 * config/rtems/proc.c: Likewise.
14417 * libgomp.h (gomp_thread_destructor): Declare.
14418 * team.c: Include configuration provided "pool.h".
14419 (gomp_get_thread_pool): Define in configuration.
14420 (gomp_team_end): Call configuration defined
14421 gomp_release_thread_pool().
14423 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14425 * config/rtems/bar.c: New.
14426 * config/rtems/bar.h: Likewise.
14427 * config/rtems/mutex.c: Likewise.
14428 * config/rtems/mutex.h: Likewise.
14429 * config/rtems/sem.c: Likewise.
14430 * config/rtems/sem.h: Likewise.
14431 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14432 <sys/lock.h> header file.
14433 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14434 supported by Newlib.
14435 * configure: Regenerate.
14437 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14439 * team.c (gomp_new_thread_pool): Delete and move content to ...
14440 (gomp_get_thread_pool): ... new function. Allocate and
14441 initialize thread pool on demand.
14442 (get_last_team): Use gomp_get_thread_pool().
14443 (gomp_team_start): Delete thread pool initialization.
14445 2015-09-03 Tom de Vries <tom@codesourcery.com>
14447 PR tree-optimization/65637
14448 * testsuite/libgomp.c/autopar-2.c: New test.
14450 2015-08-29 Tom de Vries <tom@codesourcery.com>
14452 PR tree-optimization/46193
14453 * testsuite/libgomp.c/pr46193.c: New test.
14455 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14458 * libgomp.map: Add 4.0.2 version.
14459 * target.c (offload_image_descr): Add version field.
14460 (gomp_load_image_to_device): Add version argument. Adjust plugin
14461 call. Improve load mismatch diagnostic.
14462 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14464 (GOMP_offload_regster): Make stub function, move bulk to ...
14465 (GOMP_offload_register_ver): ... here. Process version argument.
14466 (GOMP_offload_unregister): Make stub function, move bulk to ...
14467 (GOMP_offload_unregister_ver): ... here. Process version argument.
14468 (gomp_init_device): Process version field.
14469 (gomp_unload_device): Process version field.
14470 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14471 macros. Check plugin version.
14472 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14473 loader and unloader types.
14474 * oacc-host.c: Include gomp-constants.h.
14475 (host_version): New.
14476 (host_load_image, host_unload_image): Adjust.
14477 (host_dispatch): Add host_version.
14478 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14479 (GOMP_OFFLOAD_version): New.
14480 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14481 (GOMP_OFFLOAD_unload_image): Likewise.
14482 * plugin/plugin-host.c: Include gomp-constants.h.
14483 (GOMP_OFFLOAD_version): New.
14484 (GOMP_OFFLOAD_load_image): Add version arg.
14485 (GOMP_OFFLOAD_unload_image): Likewise.
14487 2015-08-24 Tom de Vries <tom@codesourcery.com>
14489 PR tree-optimization/65468
14490 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14492 2015-08-24 Tom de Vries <tom@codesourcery.com>
14494 PR tree-optimization/65468
14495 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14497 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14501 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14502 (gomp_iter_guided_next): Idem.
14503 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14504 (gomp_iter_ull_guided_next): Idem.
14505 * config/linux/wait.h (do_spin): Idem.
14507 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14509 * libgomp-plugin.h (enum offload_target_type): Remove
14510 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14511 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14512 * openacc.h (enum acc_device_t): Likewise.
14513 * openacc_lib.h: Likewise.
14514 * oacc-init.c (name_of_acc_device_t): Don't handle it.
14515 (acc_on_device): Just use __builtin_acc_on_device.
14516 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14517 of acc_on_device builtin.
14518 * plugin/plugin-host.h: Remove file.
14519 * plugin/plugin-host.c: Likewise, but salvage some content into...
14520 * oacc-host.c: ... this file.
14521 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14522 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14523 * Makefile.in: Regenerate.
14524 * configure: Likewise.
14525 * testsuite/lib/libgomp.exp
14526 (check_effective_target_openacc_host_nonshm_selected): Remove.
14527 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14528 ACC_DEVICE_TYPE=host_nonshm.
14529 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14530 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14531 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14532 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14533 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14534 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14536 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14537 Jakub Jelinek <jakub@redhat.com>
14539 * config/nvptx/affinity.c: New file.
14540 * config/nvptx/alloc.c: Likewise.
14541 * config/nvptx/bar.c: Likewise.
14542 * config/nvptx/barrier.c: Likewise.
14543 * config/nvptx/critical.c: Likewise.
14544 * config/nvptx/env.c: Likewise.
14545 * config/nvptx/error.c: Likewise.
14546 * config/nvptx/fortran.c: Likewise.
14547 * config/nvptx/iter.c: Likewise.
14548 * config/nvptx/iter_ull.c: Likewise.
14549 * config/nvptx/libgomp-plugin.c: Likewise.
14550 * config/nvptx/lock.c: Likewise.
14551 * config/nvptx/loop.c: Likewise.
14552 * config/nvptx/loop_ull.c: Likewise.
14553 * config/nvptx/mutex.c: Likewise.
14554 * config/nvptx/oacc-async.c: Likewise.
14555 * config/nvptx/oacc-cuda.c: Likewise.
14556 * config/nvptx/oacc-host.c: Likewise.
14557 * config/nvptx/oacc-init.c: Likewise.
14558 * config/nvptx/oacc-mem.c: Likewise.
14559 * config/nvptx/oacc-parallel.c: Likewise.
14560 * config/nvptx/oacc-plugin.c: Likewise.
14561 * config/nvptx/omp-lock.h: Likewise.
14562 * config/nvptx/ordered.c: Likewise.
14563 * config/nvptx/parallel.c: Likewise.
14564 * config/nvptx/proc.c: Likewise.
14565 * config/nvptx/ptrlock.c: Likewise.
14566 * config/nvptx/sections.c: Likewise.
14567 * config/nvptx/sem.c: Likewise.
14568 * config/nvptx/single.c: Likewise.
14569 * config/nvptx/splay-tree.c: Likewise.
14570 * config/nvptx/target.c: Likewise.
14571 * config/nvptx/task.c: Likewise.
14572 * config/nvptx/team.c: Likewise.
14573 * config/nvptx/time.c: Likewise.
14574 * config/nvptx/work.c: Likewise.
14575 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14576 * configure: Regenerate.
14577 * configure.tgt (config_path): Set to "nvptx" for target
14580 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14582 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14584 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
14586 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14587 (cuda_errlist): Constify.
14588 (errmsg): Move into ...
14589 (cuda_error): ... here. Make smaller.
14590 (_XSTR, _STR): Delete.
14591 (cuda_synames): Delete.
14592 (verify_device_library): Delete.
14593 (nvptx_init): Don't call it.
14595 2015-07-28 Tom de Vries <tom@codesourcery.com>
14597 * testsuite/libgomp.c/uns-outer-4.c: New test.
14599 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14601 * testsuite/libgomp.c/pr66714.c: New test.
14603 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
14606 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14607 (fib_ref): New function.
14608 (fib): Correct corner cases in the recursion.
14609 (main): Replace the non-simd loop with fib_ref call.
14610 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14612 (fibonacci): Lower the parameter N to 30. Correct accordingly check
14613 for the last array element value. Replace the non-simd loop with
14614 fib_ref call. Remove redundant b_ref array. Remove the comparison
14615 of the last array element with according Fibonacci sequence element.
14616 (fib): Correct corner cases in the recursion.
14618 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
14620 * target.c (gomp_offload_image_to_device): Rename to ...
14621 (gomp_load_image_to_device): ... here.
14622 (GOMP_offload_register): Adjust call.
14623 (gomp_init_device): Likewise.
14624 (gomp_unload_image_from_device): New. Broken out of ...
14625 (GOMP_offload_unregister): ... here. Call it.
14626 (gomp_unload_device): New.
14627 * libgomp.h (gomp_unload_device): Declare.
14628 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14631 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
14633 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14635 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14637 (goacc_waits): Move !num_waits handling to ...
14638 (GOACC_wait): ... here, the only caller that might have zero waits.
14640 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14641 (struct ptx_image_data): Move earlier, add fns field.
14642 (struct ptx_device): Add images and image_lock fields.
14643 (ptx_images, ptx_image_lock): Delete.
14644 (nvptx_open_device): Initialize images and image_lock fields.
14645 (nvptx_close_device): Destroy image_lock.
14646 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14647 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14650 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
14652 * target.c (GOMP_offload_register): Use int for device type arg.
14653 (GOMP_offload_unregister): Likewise.
14655 * target.c (struct_offload_image_descr): Constify host_table.
14656 (gomp_offload_image_to_device): Likewise.
14657 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14659 * libgomp.h (gomp_device_descr): Constify target data arguments.
14660 * target.c (struct offload_image_descr): Constify target_data.
14661 (gomp_offload_image_to_device): Likewise.
14662 (GOMP_offload_register): Likewise.
14663 (GOMP_offload_unregister): Likewise.
14664 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14665 GOMP_OFFLOAD_unload_image): Constify target data.
14666 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14667 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14669 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14671 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14672 Workaround driver library const error.
14673 (struct nvptx_tdata, nvptx_tdata_t): New.
14674 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14677 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
14679 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14680 of EPS parameter from integer to real.
14681 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14682 type of EPS parameter from integer to real.
14684 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14686 * team.c (get_last_team): New.
14687 (gomp_new_team): Recycle last non-nested team if possible.
14688 (gomp_team_end): Move team work share list free lock destruction
14690 (free_team): ... here.
14692 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
14694 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14695 and ref from int to double. Replaced their comparison with
14696 an inequality of their difference and EPS.
14697 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14698 comparison of pri and a reference number with an inequality of their
14699 difference and EPS.
14700 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14701 the comparison of sum and sum_ref with an inequality of their
14702 difference and EPS.
14703 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14704 the comparison of pri and a reference number with an inequality of
14705 their difference and EPS.
14707 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
14709 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14710 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14711 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14712 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14713 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14714 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14715 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14716 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14717 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14718 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14719 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14720 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14721 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14723 (vec_mult): Likewise. Add #pragma omp taskwait.
14724 (main): Adjust caller.
14725 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14726 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14727 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14728 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14729 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14730 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14731 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14732 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14733 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14734 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14735 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14736 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14737 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14738 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14739 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14740 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14741 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14742 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14743 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14744 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14745 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14746 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14747 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14748 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14749 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14750 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14751 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14752 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14753 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14754 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14755 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14756 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14757 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14758 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14759 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14760 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14761 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14762 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14763 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14764 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14765 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14766 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14767 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14768 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14769 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14770 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14771 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14772 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14773 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14774 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14775 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14776 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14777 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14778 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14779 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14780 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14781 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14782 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14783 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14784 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14785 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14786 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14787 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14788 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14789 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14790 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14791 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14792 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14793 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14794 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14795 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14796 (vec_mult): Add !$omp taskwait.
14797 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14798 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14799 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14800 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14801 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14802 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14803 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14804 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14805 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14806 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14807 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14808 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14809 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14810 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14811 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14812 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14813 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14814 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14815 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14816 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14817 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14818 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14819 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14820 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14821 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14822 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14823 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14824 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14825 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14826 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14827 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14828 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14829 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14830 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14831 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14832 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14833 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14834 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14835 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14836 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14837 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14838 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14839 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14840 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14841 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14842 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14843 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14844 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14845 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14846 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14847 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14848 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14849 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14850 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14851 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14852 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14853 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14854 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14855 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14856 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14857 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14858 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14859 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14860 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14861 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14862 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14863 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14865 2015-07-10 Tom de Vries <tom@codesourcery.com>
14867 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14868 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14870 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
14873 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14874 in a 64-bit configuration.
14875 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14876 offloading testing if no such device is available.
14877 * testsuite/libgomp.oacc-c/c.exp: Likewise.
14878 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14880 2015-07-08 Tom de Vries <tom@codesourcery.com>
14882 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14884 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14886 2015-07-07 Tom de Vries <tom@codesourcery.com>
14888 PR tree-optimization/66642
14889 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14890 iteration count case.
14891 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14892 function, factor out of ...
14893 (main): ... here. Test low iteration count case.
14895 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
14897 * libgomp.h (gomp_thread_pool): Comment last_team field.
14899 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
14901 * testsuite/libgomp.c++/pr66702-1.C: Require
14902 vect_simd_clones effective target.
14903 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14905 2015-06-30 Tom de Vries <tom@codesourcery.com>
14907 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14908 already set. Use DEFAULT_CFLAGS in dg-runtest.
14909 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14912 2015-06-30 Tom de Vries <tom@codesourcery.com>
14914 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14915 already set. Use DEFAULT_CFLAGS in dg-runtest.
14916 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14917 * testsuite/libgomp.c++/pr64824.C: Same.
14918 * testsuite/libgomp.c++/pr64868.C: Same.
14919 * testsuite/libgomp.c++/pr66199-1.C: Same.
14920 * testsuite/libgomp.c++/pr66199-2.C: Same.
14921 * testsuite/libgomp.c++/target-2.C: Same.
14922 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14923 -std=<standard> option.
14924 * testsuite/libgomp.c++/udr-11.C: Same.
14925 * testsuite/libgomp.c++/udr-12.C: Same.
14926 * testsuite/libgomp.c++/udr-13.C: Same.
14927 * testsuite/libgomp.c++/udr-14.C: Same.
14928 * testsuite/libgomp.c++/udr-15.C: Same.
14929 * testsuite/libgomp.c++/udr-16.C: Same.
14930 * testsuite/libgomp.c++/udr-17.C: Same.
14931 * testsuite/libgomp.c++/udr-18.C: Same.
14932 * testsuite/libgomp.c++/udr-19.C: Same.
14933 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14934 * testsuite/libgomp.c++/simd-1.C: Same.
14935 * testsuite/libgomp.c++/simd-2.C: Same.
14936 * testsuite/libgomp.c++/simd-3.C: Same.
14937 * testsuite/libgomp.c++/simd-4.C: Same.
14938 * testsuite/libgomp.c++/simd-5.C: Same.
14939 * testsuite/libgomp.c++/simd-6.C: Same.
14940 * testsuite/libgomp.c++/simd-7.C: Same.
14941 * testsuite/libgomp.c++/simd-8.C: Same.
14942 * testsuite/libgomp.c++/simd-9.C: Same.
14943 * testsuite/libgomp.c++/simd10.C: Same.
14944 * testsuite/libgomp.c++/simd11.C: Same.
14945 * testsuite/libgomp.c++/simd12.C: Same.
14946 * testsuite/libgomp.c++/simd13.C: Same.
14948 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14950 PR middle-end/66702
14951 * testsuite/libgomp.c++/pr66702-1.C: New test.
14952 * testsuite/libgomp.c++/pr66702-2.C: New test.
14954 2015-06-30 Tom de Vries <tom@codesourcery.com>
14956 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14957 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14958 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14959 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14961 2015-06-30 Tom de Vries <tom@codesourcery.com>
14963 PR tree-optimization/66652
14964 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14965 using restrict pointers.
14966 (main): Add arguments to calls to f.
14967 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14969 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
14971 * configure.ac: Fix check for header <sys/sysctl.h>.
14972 * configure: Regenerate.
14973 * config.h.in: Likewise.
14975 2015-06-23 Tom de Vries <tom@codesourcery.com>
14977 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14979 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14981 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
14983 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14987 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14988 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14990 2015-06-15 Tom de Vries <tom@codesourcery.com>
14992 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
14993 dg-additional-options for any remaining options.
14994 * testsuite/libgomp.c/atomic-2.c: Same.
14995 * testsuite/libgomp.c/atomic-4.c: Same.
14996 * testsuite/libgomp.c/atomic-5.c: Same.
14997 * testsuite/libgomp.c/atomic-6.c: Same.
14998 * testsuite/libgomp.c/autopar-1.c: Same.
14999 * testsuite/libgomp.c/copyin-1.c: Same.
15000 * testsuite/libgomp.c/copyin-2.c: Same.
15001 * testsuite/libgomp.c/copyin-3.c: Same.
15002 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15003 * testsuite/libgomp.c/nestedfn-5.c: Same.
15004 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15005 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15006 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15007 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15008 * testsuite/libgomp.c/pr32362-1.c: Same.
15009 * testsuite/libgomp.c/pr32362-2.c: Same.
15010 * testsuite/libgomp.c/pr32362-3.c: Same.
15011 * testsuite/libgomp.c/pr39591-1.c: Same.
15012 * testsuite/libgomp.c/pr39591-2.c: Same.
15013 * testsuite/libgomp.c/pr39591-3.c: Same.
15014 * testsuite/libgomp.c/pr58392.c: Same.
15015 * testsuite/libgomp.c/pr58756.c: Same.
15016 * testsuite/libgomp.c/simd-1.c: Same.
15017 * testsuite/libgomp.c/simd-10.c: Same.
15018 * testsuite/libgomp.c/simd-11.c: Same.
15019 * testsuite/libgomp.c/simd-12.c: Same.
15020 * testsuite/libgomp.c/simd-13.c: Same.
15021 * testsuite/libgomp.c/simd-14.c: Same.
15022 * testsuite/libgomp.c/simd-15.c: Same.
15023 * testsuite/libgomp.c/simd-2.c: Same.
15024 * testsuite/libgomp.c/simd-3.c: Same.
15025 * testsuite/libgomp.c/simd-4.c: Same.
15026 * testsuite/libgomp.c/simd-5.c: Same.
15027 * testsuite/libgomp.c/simd-6.c: Same.
15028 * testsuite/libgomp.c/simd-7.c: Same.
15029 * testsuite/libgomp.c/simd-8.c: Same.
15030 * testsuite/libgomp.c/simd-9.c: Same.
15032 2015-06-15 Tom de Vries <tom@codesourcery.com>
15034 * testsuite/libgomp.c/pr35625.c: Fix typo.
15036 2015-06-15 Tom de Vries <tom@codesourcery.com>
15038 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15040 * testsuite/libgomp.c/atomic-3.c: Same.
15041 * testsuite/libgomp.c/debug-1.c: Same.
15042 * testsuite/libgomp.c/nqueens-1.c: Same.
15043 * testsuite/libgomp.c/pr26171.c: Same.
15044 * testsuite/libgomp.c/pr48591.c: Same.
15045 * testsuite/libgomp.c/pr64824.c: Same.
15046 * testsuite/libgomp.c/pr64868.c: Same.
15047 * testsuite/libgomp.c/pr66133.c: Same.
15048 * testsuite/libgomp.c/pr66199-1.c: Same.
15049 * testsuite/libgomp.c/pr66199-2.c: Same.
15050 * testsuite/libgomp.c/target-8.c: Same.
15052 2015-06-15 Tom de Vries <tom@codesourcery.com>
15054 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15056 * testsuite/libgomp.c/for-1.c: Same.
15057 * testsuite/libgomp.c/for-2.c: Same.
15058 * testsuite/libgomp.c/for-3.c: Same.
15059 * testsuite/libgomp.c/pr35625.c: Same.
15060 * testsuite/libgomp.c/pr39154.c: Same.
15061 * testsuite/libgomp.c/simd-16.c: Same.
15062 * testsuite/libgomp.c/simd-17.c: Same.
15064 2015-06-13 Tom de Vries <tom@codesourcery.com>
15066 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15068 2015-06-13 Tom de Vries <tom@codesourcery.com>
15070 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15071 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15072 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15074 (main): Use N instead of hardcoded constants.
15076 2015-06-05 Tom de Vries <tom@codesourcery.com>
15078 merge from gomp4 branch:
15079 2015-05-28 Tom de Vries <tom@codesourcery.com>
15081 PR tree-optimization/65443
15082 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15083 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15084 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15086 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15088 * testsuite/libgomp.graphite/bounds.c: Adjust for
15089 cleanup-tree-dump removal.
15090 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15091 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15092 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15093 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15094 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15095 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15096 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15097 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15098 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15099 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15101 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15103 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15104 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15105 (futex_wake) [!__x86_64__]: Ditto.
15107 2015-05-28 Julian Brown <julian@codesourcery.com>
15109 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15110 function comment. Only call gomp_fatal if new argument is true.
15111 (acc_dev_num_out_of_range): New function.
15112 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15113 acc_dev_num_out_of_range as appropriate.
15114 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15115 (acc_get_device_num, acc_set_device_num): Update calls to
15117 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15120 2015-05-28 Julian Brown <julian@codesourcery.com>
15123 * oacc-init.c (plugin/plugin-host.h): Include.
15124 (acc_on_device): Check whether we're in an offloaded region for
15126 plugin. Don't use __builtin_acc_on_device.
15127 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15128 nonshm_exec flag in thread-local data.
15129 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15130 data for host_nonshm plugin.
15131 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15132 for host_nonshm plugin.
15133 * plugin/plugin-host.h: New.
15135 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15137 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15139 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15141 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15143 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15144 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15147 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15149 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15151 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15153 * target.c (gomp_map_pointer): New function abstracting out
15154 GOMP_MAP_POINTER handling.
15155 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15156 gomp_map_pointer().
15158 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15160 PR middle-end/66199
15161 * testsuite/libgomp.c/pr66199-1.c: New test.
15162 * testsuite/libgomp.c/pr66199-2.c: New test.
15163 * testsuite/libgomp.c++/pr66199-1.C: New test.
15164 * testsuite/libgomp.c++/pr66199-2.C: New test.
15165 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15166 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15168 2015-05-19 Julian Brown <julian@codesourcery.com>
15170 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15173 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15175 PR middle-end/66133
15176 * testsuite/libgomp.c/pr66133.c: New test.
15178 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15180 * Makefile.in: Regenerated with automake-1.11.6.
15181 * aclocal.m4: Likewise.
15182 * config.h.in: Likewise.
15183 * configure: Likewise.
15184 * testsuite/Makefile.in: Likewise.
15186 2015-05-08 Jason Merrill <jason@redhat.com>
15188 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15191 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15193 2015-05-06 Julian Brown <julian@codesourcery.com>
15195 * oacc-init.c (acc_device_lock): Add explanatory comment.
15196 (resolve_device): Add comment about locking requirement.
15197 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15198 gomp_init_device and gomp_fini_device calls.
15199 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15200 (acc_get_device_num, acc_set_device_num): Add locking around
15201 resolve_device and gomp_init_device calls.
15203 2015-05-06 Julian Brown <julian@codesourcery.com>
15205 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15206 goacc_thread_lock on error paths.
15207 * oacc-mem.c (lookup_host): Remove locking from function. Note
15208 locking requirement for caller in function comment.
15209 (lookup_dev): Likewise.
15210 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15211 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15212 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15215 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15219 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15220 don't expect "0x" prefix for "%p" format specifier, don't expect
15221 "(nil)" for NULL pointer.
15222 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15223 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15224 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15225 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15226 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15227 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15228 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15229 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15230 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15231 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15232 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15233 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15234 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15235 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15236 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15237 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15238 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15239 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15240 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15241 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15242 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15243 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15244 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15245 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15246 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15247 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15248 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15249 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15250 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15251 accurately specify what we're looking for.
15252 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15253 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15254 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15255 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15256 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15258 2015-04-30 James Norris <jnorris@codesourcery.com>
15261 * testsuite/lib/libgomp.exp
15262 (check_effective_target_openacc_host_selected)
15263 (check_effective_target_openacc_host_nonshm_selected): New
15265 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15267 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15268 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15269 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15270 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15271 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15272 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15273 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15274 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15275 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15276 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15277 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15278 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15279 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15280 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15281 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15282 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15283 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15284 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15285 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15286 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15287 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15288 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15289 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15290 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15291 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15292 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15293 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15294 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15295 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15296 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15297 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15298 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15299 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15300 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15301 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15302 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15303 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15304 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15305 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15306 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15307 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15308 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15309 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15311 2015-04-08 Julian Brown <julian@codesourcery.com>
15313 * libgomp.h (target_mem_desc: Remove mem_map field.
15314 (acc_dispatch_t): Remove open_device_func, close_device_func,
15315 get_device_num_func, set_device_num_func, target_data members.
15316 Change create_thread_data_func argument to device number instead of
15318 * oacc-async.c (assert.h): Include.
15319 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15320 (acc_wait_all, acc_wait_all_async): Use current host thread's
15321 active device, not base_dev.
15322 * oacc-cuda.c (acc_get_current_cuda_device)
15323 (acc_get_current_cuda_context, acc_get_cuda_stream)
15324 (acc_set_cuda_stream): Likewise.
15325 * oacc-host.c (host_dispatch): Don't set open_device_func,
15326 close_device_func, get_device_num_func or set_device_num_func.
15327 * oacc-init.c (base_dev, init_key): Remove.
15328 (cached_base_dev): New.
15329 (name_of_acc_device_t): New.
15330 (acc_init_1): Initialise default-numbered device, not zeroth.
15331 (acc_shutdown_1): Close all devices of a given type.
15332 (goacc_destroy_thread): Don't use base_dev.
15333 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15334 (goacc_attach_host_thread_to_device): New.
15335 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15336 (acc_get_num_devices): Don't use base_dev.
15337 (acc_set_device_type): Reimplement.
15338 (acc_get_device_type): Don't use base_dev.
15339 (acc_get_device_num): Tweak logic.
15340 (acc_set_device_num): Likewise.
15341 (acc_on_device): Use acc_get_device_type.
15342 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15343 (goacc_lazy_initialize): Reimplement with acc_init and
15344 goacc_attach_host_thread_to_device.
15345 * oacc-int.h (goacc_thread): Add base_dev field.
15346 (base_dev): Remove extern declaration.
15347 (goacc_attach_host_thread_to_device): Add prototype.
15348 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15350 (acc_free): Likewise.
15351 (acc_memcpy_to_device): Likewise.
15352 (acc_memcpy_from_device): Likewise.
15353 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15354 goacc_lazy_initialize (throughout).
15355 (GOACC_parallel): Use tgt_offset to locate target functions.
15356 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15357 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15358 (gomp_load_plugin_for_device): Remove open_device, close_device,
15359 get_device_num, set_device_num openacc hook initialisation. Don't set
15360 openacc.target_data.
15361 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15362 (GOMP_OFFLOAD_openacc_close_device)
15363 (GOMP_OFFLOAD_openacc_get_device_num)
15364 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15365 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15367 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15368 (instantiated_devices, ptx_dev_lock): New.
15369 (struct ptx_image_data): New.
15370 (ptx_devices, ptx_images, ptx_image_lock): New.
15371 (fini_streams_for_device): Reorder cuStreamDestroy call.
15372 (nvptx_get_num_devices): Remove forward declaration.
15373 (nvptx_init): Change return type to bool.
15374 (nvptx_fini): Remove.
15375 (nvptx_attach_host_thread_to_device): New.
15376 (nvptx_open_device): Return struct ptx_device* instead of void*.
15377 (nvptx_close_device): Change argument type to struct ptx_device*,
15378 return type to void.
15379 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15380 (kernel_target_data, kernel_host_table): Remove static globals.
15381 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15382 (GOMP_OFFLOAD_init_device): Reimplement.
15383 (GOMP_OFFLOAD_fini_device): Likewise.
15384 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15385 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15386 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15387 (GOMP_OFFLOAD_openacc_open_device)
15388 (GOMP_OFFLOAD_openacc_close_device)
15389 (GOMP_OFFLOAD_openacc_set_device_num)
15390 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15391 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15395 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15397 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15399 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15400 * libgomp.h (struct gomp_memory_mapping): Remove.
15401 (struct target_mem_desc): Change type of mem_map from
15402 gomp_memory_mapping * to splay_tree_s *.
15403 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15404 Add load_image_func, unload_image_func.
15405 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15406 Remove offload_regions_registered.
15407 (gomp_init_tables): Remove.
15408 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15410 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15411 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15412 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15413 offload_regions_registered.
15414 Initialize load_image_func, unload_image_func, mem_map.root.
15415 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15416 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15417 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15418 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15419 gomp_memory_mapping *. Use dev's lock and splay_tree.
15420 (lookup_dev): Use dev's lock.
15421 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15422 (acc_is_present): Likewise.
15423 (acc_map_data): Likewise.
15424 (acc_unmap_data): Likewise. Use dev's lock.
15425 (present_create_copy): Likewise.
15426 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15427 (update_dev_host): Likewise.
15428 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15429 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15430 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15431 (GOMP_OFFLOAD_get_table): Remove
15432 (GOMP_OFFLOAD_load_image): New function.
15433 (GOMP_OFFLOAD_unload_image): New function.
15434 * target.c (register_lock): New mutex for offload image registration.
15435 (num_devices): Do not guard with PLUGIN_SUPPORT.
15436 (gomp_realloc_unlock): New static function.
15437 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15439 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15440 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15441 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15443 (gomp_unmap_vars): Likewise.
15444 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15445 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15446 (gomp_offload_image_to_device): New static function.
15447 (GOMP_offload_register): Add mutex lock.
15448 Call gomp_offload_image_to_device for all initialized devices.
15449 Replace gomp_realloc with gomp_realloc_unlock.
15450 (GOMP_offload_unregister): New function.
15451 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15452 get_table_func from the plugin with calls to init_device_func and
15453 gomp_offload_image_to_device.
15454 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15456 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15457 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15458 (GOMP_target_data): Do not call gomp_init_tables.
15459 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15460 (gomp_load_plugin_for_device): Replace register_image and get_table
15461 with load_image and unload_image in DLSYM ().
15462 (gomp_register_images_for_device): Remove function.
15463 (gomp_target_init): Do not initialize current_device.mem_map.*,
15464 current_device.offload_regions_registered.
15465 Remove call to gomp_register_images_for_device.
15466 Do not free offload_images and num_offload_images.
15468 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15471 * testsuite/libgomp.fortran/pr65597.f90: New test.
15473 2015-03-27 Tom de Vries <tom@codesourcery.com>
15476 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15477 (init, check): New function.
15478 (foo): Change return type to void.
15479 (main): Call init and check.
15481 2015-03-27 Tom de Vries <tom@codesourcery.com>
15484 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15485 (foo): Use M for non-inner loops to scale down test-case.
15487 2015-03-25 Kai Tietz <ktietz@redhat.com>
15490 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15491 (GOACC_data_start): Likewise.
15492 * target.c (gomp_map_vars): Likewise.
15494 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15496 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15499 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15501 * testsuite/libgomp.c/target-10.c: New test.
15502 * testsuite/libgomp.c++/target-4.C: New test.
15504 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15506 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15507 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15509 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15511 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15512 * configure.ac (*-*-rtems*): Assume Pthread is supported.
15513 (pthread.h): Check for this header file.
15514 * configure: Regenerate.
15516 2015-02-25 Tom de Vries <tom@codesourcery.com>
15518 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15519 (check_reduction_op, check_reduction_macro, max, min):
15521 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15523 (main): Use new functions.
15525 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
15527 * target.c (gomp_load_plugin_for_device): Use const char * instead of
15528 char * for variables holding dlerror return values.
15529 (DLSYM_OPT): Ditto.
15531 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15533 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15535 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
15536 Cesar Philippidis <cesar@codesourcery.com>
15538 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15539 GOACC_ctaid, and GOACC_nctaid routines.
15541 2015-02-11 Jakub Jelinek <jakub@redhat.com>
15544 * testsuite/libgomp.c/atomic-18.c: New test.
15545 * testsuite/libgomp.c++/atomic-16.C: New test.
15547 2015-02-04 Jakub Jelinek <jakub@redhat.com>
15551 * testsuite/libgomp.c/pr64824.c: New test.
15552 * testsuite/libgomp.c/pr64868.c: New test.
15553 * testsuite/libgomp.c++/pr64824.C: New test.
15554 * testsuite/libgomp.c++/pr64868.C: New test.
15556 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
15559 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15560 Link with -lpthread.
15561 * config/aix/plugin-suffix.h: Delete.
15563 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
15566 * configure.tgt (*-*-aix*): Use config_path "aix posix".
15567 (*-*-darwin*): Use config_path "bsd darwin posix".
15568 (*-*-hpux*): Use config_path "hpux posix".
15569 * target.c: Add include of plugin-suffix.h and use
15570 SONAME_SUFFIX macro.
15571 * config/aix/plugin-suffix.h: New file.
15572 * config/darwin/plugin-suffix.h: New file.
15573 * config/hpux/plugin-suffix.h: New file.
15574 * config/posix/plugin-suffix.h: New file.
15576 2015-01-23 Jakub Jelinek <jakub@redhat.com>
15578 PR middle-end/64734
15579 * libgomp.c/pr64734.c: New test.
15581 2015-01-23 Tom de Vries <tom@codesourcery.com>
15584 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15586 2015-01-23 Tom de Vries <tom@codesourcery.com>
15589 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15592 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
15595 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15596 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15597 formal parameter. Update all users.
15598 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15599 Document unused formal parameter.
15601 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
15603 * oacc-parallel.c: Don't include <alloca.h>.
15604 (GOACC_parallel): Use gomp_alloca instead of alloca.
15606 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
15608 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15610 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
15611 James Norris <jnorris@codesourcery.com>
15612 Tom de Vries <tom@codesourcery.com>
15613 Julian Brown <julian@codesourcery.com>
15614 Cesar Philippidis <cesar@codesourcery.com>
15615 Nathan Sidwell <nathan@codesourcery.com>
15616 Tobias Burnus <burnus@net-b.de>
15618 * Makefile.am (search_path): Add $(top_srcdir)/../include.
15619 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15620 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15621 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15622 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15623 Include $(top_srcdir)/plugin/Makefrag.am.
15624 (nodist_libsubinclude_HEADERS): Add openacc.h.
15625 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15626 openacc.f90, openacc.mod, openacc_kinds.mod.
15627 (omp_lib.mod): Generalize into...
15628 (%.mod): ... this new rule.
15629 (openacc_kinds.mod, openacc.mod): New rules.
15630 * plugin/configfrag.ac: New file.
15631 * configure.ac: Move plugin/offloading support into it. Include
15632 it. Instantiate testsuite/libgomp-test-support.pt.exp.
15633 * plugin/Makefrag.am: New file.
15634 * testsuite/Makefile.am (OFFLOAD_TARGETS)
15635 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15637 (libgomp-test-support.exp): New rule.
15638 (all-local): Depend on it.
15639 * Makefile.in: Regenerate.
15640 * testsuite/Makefile.in: Regenerate.
15641 * config.h.in: Likewise.
15642 * configure: Likewise.
15643 * configure.tgt: Harden shell syntax.
15644 * env.c: Include "oacc-int.h".
15645 (parse_acc_device_type): New function.
15646 (gomp_debug_var, goacc_device_type, goacc_device_num): New
15648 (initialize_env): Initialize those. Call
15649 goacc_runtime_initialize.
15650 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15651 (gomp_fatal): Call gomp_vfatal.
15652 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15653 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15654 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15655 (splay_tree_node, splay_tree, splay_tree_key)
15656 (struct target_mem_desc, struct splay_tree_key_s)
15657 (struct gomp_memory_mapping, struct acc_dispatch_t)
15658 (struct gomp_device_descr, gomp_acc_insert_pointer)
15659 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15660 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15661 (gomp_free_memmap, gomp_fini_device): New declarations.
15662 (gomp_vdebug, gomp_debug): New macros.
15663 Include "splay-tree.h".
15664 * libgomp.map (OACC_2.0): New symbol version. Use for
15665 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15666 acc_set_device_type_h_, acc_get_device_type,
15667 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15668 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15669 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15670 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15671 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15672 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15673 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15674 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15675 acc_copyin_array_h_, acc_present_or_copyin,
15676 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15677 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15678 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15679 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15680 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15681 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15682 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15683 acc_update_device, acc_update_device_32_h_,
15684 acc_update_device_64_h_, acc_update_device_array_h_,
15685 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15686 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15687 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15688 acc_is_present_64_h_, acc_is_present_array_h_,
15689 acc_memcpy_to_device, acc_memcpy_from_device,
15690 acc_get_current_cuda_device, acc_get_current_cuda_context,
15691 acc_get_cuda_stream, acc_set_cuda_stream.
15692 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
15693 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15694 GOACC_update, GOACC_wait, GOACC_get_thread_num,
15695 GOACC_get_num_threads.
15696 (GOMP_PLUGIN_1.0): New symbol version. Use for
15697 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15698 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15699 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15700 GOMP_PLUGIN_acc_thread.
15701 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15702 environment variable.
15703 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15704 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15705 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15706 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15707 (splay_tree_remove): New declarations.
15708 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15709 (splay_tree_remove, splay_tree_lookup): Move into...
15710 * splay-tree.c: ... this new file.
15711 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15712 (splay_tree_node, splay_tree, splay_tree_key)
15713 (struct target_mem_desc, struct splay_tree_key_s)
15714 (struct gomp_device_descr): Don't declare.
15715 (num_devices_openmp): New variable.
15716 (gomp_get_num_devices ): Use it.
15717 (gomp_init_targets_once): New function.
15718 (gomp_get_num_devices ): Use it.
15719 (get_kind, gomp_copy_from_async, gomp_free_memmap)
15720 (gomp_fini_device, gomp_register_image_for_device): New functions.
15721 (gomp_map_vars): Add devaddrs parameter.
15722 (gomp_update): Add mm parameter.
15723 (gomp_init_device): Move most of it into...
15724 (gomp_init_tables): ... this new function.
15725 (gomp_register_images_for_device): Remove function.
15726 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15727 Make them hidden instead of static.
15728 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15729 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15730 (GOMP_target_end_data, GOMP_target_update)
15731 (gomp_load_plugin_for_device, gomp_target_init): Update for
15733 * oacc-async.c: New file.
15734 * oacc-cuda.c: Likewise.
15735 * oacc-host.c: Likewise.
15736 * oacc-init.c: Likewise.
15737 * oacc-int.h: Likewise.
15738 * oacc-mem.c: Likewise.
15739 * oacc-parallel.c: Likewise.
15740 * oacc-plugin.c: Likewise.
15741 * oacc-plugin.h: Likewise.
15742 * oacc-ptx.h: Likewise.
15743 * openacc.f90: Likewise.
15744 * openacc.h: Likewise.
15745 * openacc_lib.h: Likewise.
15746 * plugin/plugin-host.c: Likewise.
15747 * plugin/plugin-nvptx.c: Likewise.
15748 * libgomp-plugin.c: Likewise.
15749 * libgomp-plugin.h: Likewise.
15750 * libgomp_target.h: Remove file after merging content into the
15751 former file. Update all users.
15752 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15753 (offload_targets_s, offload_targets_s_openacc): New variables.
15754 (check_effective_target_openacc_nvidia_accel_present)
15755 (check_effective_target_openacc_nvidia_accel_selected): New
15757 (libgomp_init): Update for OpenACC changes.
15758 * testsuite/libgomp-test-support.exp.in: New file.
15759 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15760 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15761 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15762 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15763 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15764 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15765 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15766 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15767 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15768 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15769 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15770 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15771 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15772 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15773 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15774 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15775 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15776 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15777 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15778 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15779 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15780 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15781 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15782 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15783 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15784 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15785 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15786 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15787 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15788 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15789 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15790 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15791 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15792 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15793 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15794 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15795 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15796 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15797 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15798 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15799 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15800 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15801 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15802 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15803 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15804 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15805 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15806 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15807 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15808 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15809 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15810 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15811 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15812 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15813 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15814 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15815 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15816 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15817 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15818 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15819 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15820 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15821 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15822 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15823 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15824 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15825 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15826 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15827 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15828 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15829 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15830 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15831 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15832 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15833 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15834 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15835 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15836 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15837 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15838 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15839 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15840 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15841 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15842 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15843 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15844 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15845 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15846 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15847 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15848 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15849 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15850 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15851 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15852 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15853 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15854 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15855 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15856 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15857 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15858 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15859 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15860 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15861 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15862 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15863 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15864 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15865 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15866 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15867 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15868 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15869 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15870 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15871 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15872 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15873 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15874 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15875 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15876 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15877 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15878 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15879 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15880 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15881 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15882 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15883 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15884 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15885 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15886 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15887 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15888 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15889 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15890 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15891 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15892 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15893 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15894 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15895 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15896 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15897 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15898 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15900 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15901 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15902 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15903 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15904 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15905 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15906 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15907 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15908 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15909 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15910 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15911 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15912 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15913 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15914 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15915 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15916 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15917 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15918 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15919 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15920 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15921 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15922 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15923 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15924 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15925 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15926 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15927 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15928 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15929 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15930 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15931 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15932 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15933 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15934 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15935 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15936 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15937 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15938 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15939 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15940 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15941 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15942 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15943 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15944 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15945 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15946 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15947 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15948 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15949 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15950 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15951 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15952 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15953 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15954 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15955 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15956 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15957 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15958 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15959 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15961 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
15962 Julian Brown <julian@codesourcery.com>
15963 David Malcolm <dmalcolm@redhat.com>
15965 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15966 to "GNU Offloading and Multi Processing Runtime Library". Change
15968 * configure: Regenerate.
15969 * libgomp.texi: Update.
15971 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
15973 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15975 * configure: Regenerate.
15977 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15978 "intelmic" in $offload_targets.
15980 2015-01-05 Jakub Jelinek <jakub@redhat.com>
15982 Update copyright years.
15984 * libgomp.texi: Bump @copying's copyright year.
15986 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15988 * testsuite/lib/libgomp.exp: Load target-utils.exp.
15989 Move load of target-supports.exp earlier.
15991 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
15993 * testsuite/libgomp.c/target-9.c: New test.
15995 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
15997 * config.h.in: Regenerate.
15998 * configure: Regenerate.
15999 * configure.ac: Add GCC_CHECK_EMUTLS.
16000 * libgomp.h: Add check for USE_EMUTLS: this case
16001 is equal to HAVE_TLS.
16002 * team.c: Likewise.
16004 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16006 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16008 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16009 Ilya Verbin <ilya.verbin@intel.com>
16011 * testsuite/libgomp.c/target-critical-1.c: New test.
16013 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16015 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16016 to dg-options unless expensive testing is on.
16017 (TESTITERS): Define to N if not defined.
16018 (main): Use TESTITERS instead of N.
16019 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16020 dg-additional-options depending on whether expensive testing is on.
16021 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16022 Decrease N to 100000 and CHUNKSZ to 10000.
16024 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16027 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16028 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16030 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16032 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16034 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16037 * configure: Regenerated.
16039 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16041 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16042 vect_simd_clones effective target.
16043 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16045 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16047 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16048 of 32 as block_size.
16049 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16050 instead of 32 as block_size.
16052 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16053 Ilya Verbin <ilya.verbin@intel.com>
16055 * Makefile.in: Regenerate.
16056 * configure: Regenerate.
16057 * configure.ac: Set up offload_additional_options,
16058 offload_additional_lib_paths and offload_targets.
16059 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16060 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16061 * testsuite/Makefile.in: Regenerate.
16062 * testsuite/lib/libgomp.exp (libgomp_init): Append
16063 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16064 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16065 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16067 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16068 Ilya Verbin <ilya.verbin@intel.com>
16069 Kirill Yukhin <kirill.yukhin@intel.com>
16070 Ilya Tocar <ilya.tocar@intel.com>
16072 * testsuite/lib/libgomp.exp
16073 (check_effective_target_offload_device): New.
16074 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16075 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16076 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16077 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16078 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16079 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16080 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16081 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16082 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16083 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16084 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16085 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16086 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16087 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16088 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16089 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16090 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16091 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16092 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16093 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16094 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16095 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16096 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16097 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16098 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16099 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16100 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16101 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16102 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16103 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16104 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16105 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16106 * testsuite/libgomp.c/target-7.c: Fix test.
16107 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16108 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16109 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16110 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16111 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16112 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16113 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16114 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16115 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16116 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16117 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16118 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16119 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16120 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16121 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16122 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16123 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16124 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16125 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16126 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16127 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16128 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16129 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16130 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16131 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16132 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16133 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16134 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16135 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16136 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16137 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16139 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16140 Ilya Verbin <ilya.verbin@intel.com>
16141 Thomas Schwinge <thomas@codesourcery.com>
16142 Andrey Turetskiy <andrey.turetskiy@intel.com>
16144 * libgomp.map (GOMP_4.0.1): New symbol version.
16145 Add GOMP_offload_register.
16146 * libgomp_target.h: New file.
16147 * splay-tree.h: New file.
16148 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16149 (gomp_target_init): New forward declaration.
16150 (gomp_is_initialized): New static variable.
16151 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16152 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16154 (offload_images, num_offload_images, devices, num_devices): New static
16156 (splay_compare): New static function.
16157 (struct gomp_device_descr): New structure.
16158 (gomp_get_num_devices): Call gomp_target_init.
16159 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16160 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16161 (GOMP_offload_register): New function.
16162 (GOMP_target): Arrange for host callback to be performed in a separate
16163 initial thread and contention group, inheriting ICVs from
16164 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16165 Add device initialization and lookup for target function in splay tree.
16166 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16167 (GOMP_target_end_data): Call gomp_unmap_vars.
16168 (GOMP_target_update): Add device initialization and call gomp_update.
16169 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16170 (gomp_target_init): New static functions.
16172 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16173 Thomas Schwinge <thomas@codesourcery.com>
16174 Ilya Verbin <ilya.verbin@intel.com>
16175 Andrey Turetskiy <andrey.turetskiy@intel.com>
16177 * config.h.in: Regenerate.
16178 * configure: Regenerate.
16179 * configure.ac: Check for libdl, required for plugin support.
16180 (PLUGIN_SUPPORT): Define if plugins are supported.
16181 (enable_offload_targets): Support Intel MIC targets.
16182 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16184 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16187 * configure: Regenerate.
16189 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16191 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16193 2014-10-06 Marek Polacek <polacek@redhat.com>
16195 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16196 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16197 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16198 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16200 2014-10-06 Marek Polacek <polacek@redhat.com>
16202 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16203 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16204 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16205 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16206 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16207 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16208 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16209 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16210 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16211 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16212 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16213 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16214 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16215 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16216 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16217 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16218 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16219 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16222 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16225 * testsuite/libgomp.c/pr61200.c: New test.
16227 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16230 * testsuite/libgomp.c++/pr63248.C: New test.
16232 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16234 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16235 is not zero, but taskgroup->children is NULL and there are
16236 any task->children, schedule those instead of waiting.
16237 * testsuite/libgomp.c/depend-6.c: New test.
16238 * testsuite/libgomp.c/depend-7.c: New test.
16239 * testsuite/libgomp.c/depend-8.c: New test.
16240 * testsuite/libgomp.c/depend-9.c: New test.
16241 * testsuite/libgomp.c/depend-10.c: New test.
16243 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16245 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16246 (struct gomp_taskwait): New type.
16247 (struct gomp_task): Add taskwait and parent_depends_on, remove
16248 in_taskwait and taskwait_sem fields.
16249 (gomp_finish_task): Don't destroy taskwait_sem.
16250 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16251 taskwait and parent_depends_on.
16252 (GOMP_task): For if (0) tasks with depend clause that depend on
16253 earlier tasks don't defer them, instead call
16254 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16255 Initialize redundant_out field, for redundant out entries just
16256 move them at the end of linked list instead of removing them
16257 completely, and set redundant_out flag instead of redundant.
16258 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16260 (gomp_task_run_post_handle_dependers): If parent is in
16261 gomp_task_maybe_wait_for_dependencies and newly runnable task
16262 is not parent_depends_on, queue it in parent->children linked
16263 list after all runnable tasks with parent_depends_on set.
16264 Adjust for addition of taskwait indirection.
16265 (gomp_task_run_post_remove_parent): If parent is in
16266 gomp_task_maybe_wait_for_dependencies and task to be removed
16267 is parent_depends_on, decrement n_depend and if needed awake
16268 parent. Adjust for addition of taskwait indirection.
16269 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16270 (gomp_task_maybe_wait_for_dependencies): New function.
16271 * testsuite/libgomp.c/depend-5.c: New test.
16273 2014-07-13 Tobias Burnus <burnus@net-b.de>
16275 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16276 with TS 18508/Fortran 2015.
16278 2014-07-06 Marek Polacek <polacek@redhat.com>
16281 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16283 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16285 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16286 matches regex $lang_source_re, add $lang_include_flags to options.
16287 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16288 * testsuite/libgomp.c++/c++.exp: Likewise.
16289 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16290 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16292 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16294 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16296 * testsuite/libgomp.fortran/fortran.exp: Explain
16297 gfortran-dg-runtest usage.
16299 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16301 * testsuite/libgomp.fortran/simd5.f90: New test.
16302 * testsuite/libgomp.fortran/simd6.f90: New test.
16303 * testsuite/libgomp.fortran/simd7.f90: New test.
16305 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16307 * testsuite/libgomp.c/for-2.c: Define SC to static for
16308 #pragma omp for simd testing.
16309 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16310 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16312 * testsuite/libgomp.c/simd-14.c: New test.
16313 * testsuite/libgomp.c/simd-15.c: New test.
16314 * testsuite/libgomp.c/simd-16.c: New test.
16315 * testsuite/libgomp.c/simd-17.c: New test.
16316 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16317 #pragma omp for simd testing.
16318 * testsuite/libgomp.c++/simd10.C: New test.
16319 * testsuite/libgomp.c++/simd11.C: New test.
16320 * testsuite/libgomp.c++/simd12.C: New test.
16321 * testsuite/libgomp.c++/simd13.C: New test.
16323 * testsuite/libgomp.fortran/aligned1.f03: New test.
16324 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16325 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16326 tasks with !$omp parallel !$omp single.
16327 * testsuite/libgomp.fortran/target8.f90: New test.
16328 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16329 not to use trim in the combiner, instead call elemental function.
16330 (fn): New elemental function.
16331 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16333 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16335 * testsuite/libgomp.fortran/udr12.f90: New test.
16336 * testsuite/libgomp.fortran/udr13.f90: New test.
16337 * testsuite/libgomp.fortran/udr14.f90: New test.
16338 * testsuite/libgomp.fortran/udr15.f90: New test.
16340 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16342 * omp_lib.f90.in (openmp_version): Set to 201307.
16343 * omp_lib.h.in (openmp_version): Likewise.
16344 * testsuite/libgomp.c/target-8.c: New test.
16345 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16346 and inbranch clauses.
16347 * testsuite/libgomp.fortran/depend-3.f90: New test.
16348 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16350 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16351 * testsuite/libgomp.fortran/target1.f90: New test.
16352 * testsuite/libgomp.fortran/target2.f90: New test.
16353 * testsuite/libgomp.fortran/target3.f90: New test.
16354 * testsuite/libgomp.fortran/target4.f90: New test.
16355 * testsuite/libgomp.fortran/target5.f90: New test.
16356 * testsuite/libgomp.fortran/target6.f90: New test.
16357 * testsuite/libgomp.fortran/target7.f90: New test.
16359 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16362 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16363 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16364 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16365 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16366 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16367 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16368 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16369 * testsuite/libgomp.fortran/associate1.f90: New test.
16370 * testsuite/libgomp.fortran/associate2.f90: New test.
16371 * testsuite/libgomp.fortran/procptr1.f90: New test.
16373 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16375 * testsuite/libgomp.fortran/simd1.f90: New test.
16376 * testsuite/libgomp.fortran/udr1.f90: New test.
16377 * testsuite/libgomp.fortran/udr2.f90: New test.
16378 * testsuite/libgomp.fortran/udr3.f90: New test.
16379 * testsuite/libgomp.fortran/udr4.f90: New test.
16380 * testsuite/libgomp.fortran/udr5.f90: New test.
16381 * testsuite/libgomp.fortran/udr6.f90: New test.
16382 * testsuite/libgomp.fortran/udr7.f90: New test.
16383 * testsuite/libgomp.fortran/udr8.f90: New test.
16384 * testsuite/libgomp.fortran/udr9.f90: New test.
16385 * testsuite/libgomp.fortran/udr10.f90: New test.
16386 * testsuite/libgomp.fortran/udr11.f90: New test.
16388 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16390 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16391 vect_simd_clones effective target.
16392 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16394 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16396 PR middle-end/61252
16397 * testsuite/libgomp.c++/simd-9.C: New test.
16399 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16401 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16402 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16403 texts according to their @menu entry positions.
16405 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16407 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16408 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16409 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16410 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16411 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16412 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16413 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16414 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16415 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16416 * testsuite/libgomp.fortran/depend-1.f90: New test.
16417 * testsuite/libgomp.fortran/depend-2.f90: New test.
16418 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16419 * testsuite/libgomp.fortran/simd1.f90: New test.
16420 * testsuite/libgomp.fortran/simd2.f90: New test.
16421 * testsuite/libgomp.fortran/simd3.f90: New test.
16422 * testsuite/libgomp.fortran/simd4.f90: New test.
16423 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16425 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16427 * testsuite/libgomp.c/simd-10.c: New test.
16428 * testsuite/libgomp.c/simd-11.c: New test.
16429 * testsuite/libgomp.c/simd-12.c: New test.
16430 * testsuite/libgomp.c/simd-13.c: New test.
16432 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16434 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16435 atomic type clauses in any order and optional comma in between.
16436 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16437 * testsuite/libgomp.c/atomic-17.c: Likewise.
16439 * testsuite/libgomp.c/simd-7.c: New test.
16440 * testsuite/libgomp.c/simd-8.c: New test.
16441 * testsuite/libgomp.c/simd-9.c: New test.
16442 * testsuite/libgomp.c/loop-16.c: New test.
16444 2014-04-02 Richard Henderson <rth@redhat.com>
16446 * config/linux/futex.h (futex_wait): Get error value from errno.
16447 (futex_wake): Likewise.
16449 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16452 * testsuite/libgomp.c++/udr-11.C: New test.
16453 * testsuite/libgomp.c++/udr-12.C: New test.
16454 * testsuite/libgomp.c++/udr-13.C: New test.
16455 * testsuite/libgomp.c++/udr-14.C: New test.
16456 * testsuite/libgomp.c++/udr-15.C: New test.
16457 * testsuite/libgomp.c++/udr-16.C: New test.
16458 * testsuite/libgomp.c++/udr-17.C: New test.
16459 * testsuite/libgomp.c++/udr-18.C: New test.
16460 * testsuite/libgomp.c++/udr-19.C: New test.
16462 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16464 Update copyright years
16466 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16468 * hashtab.h: Use the standard form for the copyright notice.
16470 2014-01-02 Tobias Burnus <burnus@net-b.de>
16472 * libgomp.texi: Bump @copying's copyright year.
16474 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16476 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16477 alloca () with __builtin_alloca ().
16478 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16479 * testsuite/libgomp.c/lock-3.c: Likewise.
16480 * testsuite/libgomp.c/pr48591.c: Likewise.
16482 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16485 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16488 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16491 * testsuite/libgomp.c/pr58756.c: New test.
16493 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16496 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16499 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16501 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16503 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16504 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16505 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16506 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16509 * libgomp_g.h: Include <stddef.h> for size_t.
16511 * libgomp.spec.in: Update comment about libgomp's dependencies.
16512 * configure.ac: Likewise.
16513 * configure: Regenerate.
16515 2013-10-16 Tobias Burnus <burnus@net-b.de>
16517 * libgomp.texi: (Runtime Library Routines): Update references for
16518 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16519 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16520 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16521 (Environment Variables): Update references for OpenMP 4.0. Add
16522 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16523 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16526 2013-10-14 Jakub Jelinek <jakub@redhat.com>
16528 * env.c (parse_bind_var): Initialize value to avoid
16529 (false positive) warning.
16531 2013-10-12 Jakub Jelinek <jakub@redhat.com>
16534 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16536 (gomp_init_num_threads): Move i variable declaration into
16537 #ifdef CPU_ALLOC_SIZE block.
16538 * config/linux/affinity.c (gomp_affinity_init_level): Test
16539 gomp_places_list_len == 0 rather than gomp_places_list == 0
16540 when checking for topology reading error.
16541 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16542 * env.c (parse_affinity): Add ignore argument, if true, don't populate
16543 gomp_places_list, only parse env var and always return false.
16544 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
16545 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16546 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16547 and either of these variables were parsed correctly into a places
16550 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16551 Jakub Jelinek <jakub@redhat.com>
16553 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16554 of 5 loopfn matches.
16555 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16556 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16557 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16558 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16559 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16560 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16561 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16562 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16564 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
16566 * Makefile.am (omp_lib.mod): Streamline rule.
16567 * Makefile.in: Regenerate.
16569 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16572 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16573 * testsuite/libgomp.fortran/lib1.f90: Likewise.
16574 * testsuite/libgomp.fortran/lib2.f: Likewise.
16575 * testsuite/libgomp.fortran/lib3.f: Likewise.
16577 * configure.ac: Typo fix.
16578 * configure: Regenerate.
16580 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16581 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16583 * omp.h.in: Don't touch the user's namespace.
16585 2013-10-11 Jakub Jelinek <jakub@redhat.com>
16586 Tobias Burnus <burnus@net-b.de>
16587 Richard Henderson <rth@redhat.com>
16589 * target.c: New file.
16590 * Makefile.am (libgomp_la_SOURCES): Add target.c.
16591 * Makefile.in: Regenerated.
16592 * libgomp_g.h (GOMP_task): Add depend argument.
16593 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16594 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16595 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16596 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16597 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16598 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16599 GOMP_taskgroup_start, GOMP_taskgroup_end,
16600 GOMP_parallel_sections): New prototypes.
16601 * fortran.c (omp_is_initial_device): Add ialias_redirect.
16602 (omp_is_initial_device_): New function.
16603 (ULP, STR1, STR2, ialias_redirect): Removed.
16604 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16605 omp_set_default_device_8_, omp_get_default_device_,
16606 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16608 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16609 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16610 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16612 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16613 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16614 omp_set_default_device, omp_set_default_device_,
16615 omp_set_default_device_8_, omp_get_default_device,
16616 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16617 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16618 omp_get_team_num_): Export @@OMP_4.0.
16619 * team.c (struct gomp_thread_start_data): Add place field.
16620 (gomp_thread_start): Clear thr->thread_pool and
16621 thr->task before returning. Use gomp_team_barrier_wait_final
16622 instead of gomp_team_barrier_wait. Initialize thr->place.
16623 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16624 team_cancelled and task_queued_count fields.
16625 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16626 before calling pthread_exit.
16627 (gomp_free_thread): No longer static. Use
16628 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16629 (gomp_team_start): Add flags argument. Set
16630 thr->thread_pool->threads_busy to nthreads immediately after creating
16631 new pool. Use gomp_managed_threads_lock instead of
16632 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
16633 (gomp_team_end): Use gomp_managed_threads_lock instead of
16634 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
16635 of gomp_team_barrier_wait. If team->team_cancelled, call
16636 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16637 rather than thr->ts.work_share.
16638 (initialize_team): Don't call gomp_sem_init here.
16639 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16641 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16642 * env.c (gomp_global_icv): Add default_device_var, target_data and
16643 bind_var initializers.
16644 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16645 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16646 gomp_places_list_len): New variables.
16647 (parse_bind_var, parse_one_place, parse_places_var): New functions.
16648 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16650 (gomp_cancel_var): New global variable.
16651 (parse_int): New function.
16652 (handle_omp_display_env): New function.
16653 (initialize_env): Use it. Initialize default_device_var.
16654 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
16655 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
16656 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
16657 been successfully parsed (and call gomp_init_affinity in that case).
16658 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16659 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16660 omp_get_team_num, omp_is_initial_device): New functions.
16661 * libgomp.h: Include stdlib.h.
16662 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16664 (struct target_mem_desc): Forward declare.
16665 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16666 and thread_limit_var fields.
16667 (gomp_get_num_devices): New prototype.
16668 (gomp_cancel_var): New extern decl.
16669 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16670 team_cancelled and task_queued_count fields. Add comments about
16671 task_{,queued_,running_}count.
16672 (gomp_cancel_kind): New enum.
16673 (gomp_work_share_end_cancel): New prototype.
16674 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16675 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16677 (struct gomp_taskgroup): New type.
16678 (struct gomp_task_depend_entry,
16679 struct gomp_dependers_vec): New types.
16680 (gomp_finish_task): Free depend_hash if non-NULL.
16681 (struct gomp_team_state): Add place_partition_off
16682 and place_partition_len fields.
16683 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16684 gomp_places_list_len): New extern decls.
16685 (struct gomp_thread): Add place field.
16686 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16687 (gomp_init_thread_affinity): Add place argument.
16688 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16689 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16690 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16691 gomp_affinity_init_level, gomp_affinity_print_place): New
16693 (gomp_team_start): Add flags argument.
16694 (gomp_thread_limit_var, gomp_remaining_threads_count,
16695 gomp_remaining_threads_lock): Remove.
16696 (gomp_managed_threads_lock): New variable.
16697 (struct gomp_thread_pool): Add threads_busy field.
16698 (gomp_free_thread): New prototype.
16699 * task.c: Include hashtab.h.
16700 (hash_entry_type): New typedef.
16701 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16702 (gomp_init_task): Clear dependers, depend_hash, depend_count,
16703 copy_ctors_done and taskgroup fields.
16704 (GOMP_task): Add depend argument, handle depend clauses. If
16705 gomp_team_barrier_cancelled or if it's taskgroup has been
16706 cancelled, don't queue or start new tasks. Set copy_ctors_done
16707 field if needed. Initialize taskgroup field. If copy_ctors_done
16708 and already cancelled, don't discard the task. If taskgroup is
16709 non-NULL, enqueue the task into taskgroup queue. Increment
16710 num_children field in taskgroup. Increment task_queued_count.
16711 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16712 gomp_task_run_post_remove_taskgroup): New inline functions.
16713 (gomp_task_run_post_handle_depend_hash,
16714 gomp_task_run_post_handle_dependers,
16715 gomp_task_run_post_handle_depend): New functions.
16716 (GOMP_taskwait): Use them. If more than one new tasks
16717 have been queued, wake other threads if needed.
16718 (gomp_barrier_handle_tasks): Likewise. If
16719 gomp_team_barrier_cancelled, don't start any new tasks, just free
16721 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16723 (omp_proc_bind_kind, omp_proc_bind_false,
16724 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16725 omp_proc_bind_spread): New params.
16726 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16727 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16728 omp_get_team_num, omp_is_initial_device): New interfaces.
16729 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16730 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16731 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16732 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16733 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16734 useless use omp_lib_kinds.
16735 * omp.h.in (omp_proc_bind_t): New typedef.
16736 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16737 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16738 omp_get_team_num, omp_is_initial_device): New prototypes.
16739 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16740 through to gomp_team_start.
16741 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16742 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16743 Adjust gomp_parallel_loop_start callers.
16744 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16745 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16746 GOMP_loop_end_cancel): New functions.
16747 (GOMP_parallel_end): Add ialias_redirect.
16748 * hashtab.h: New file.
16749 * libgomp.texi (Environment Variables): Minor cleanup,
16750 update section refs to OpenMP 4.0rc2.
16751 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16752 environment variables.
16753 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16754 team->work_shares_to_free to thr->ts.work_share before calling
16756 (gomp_work_share_end_cancel): New function.
16757 * config/linux/proc.c: Include errno.h.
16758 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16759 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16760 sizeof (cpu_set_t) to determine number of iterations. Fix up check
16761 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
16762 gomp_cpuset_size is sizeof (cpu_set_t).
16763 (gomp_init_num_threads): Initialize gomp_cpuset_size,
16764 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16765 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16766 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
16767 contain any logical CPUs.
16768 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16769 is NULL. Use gomp_cpusetp instead of &cpuset and pass
16770 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16771 pthread_getaffinity_np. Check gomp_places_list instead of
16772 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
16773 * config/linux/bar.c (gomp_barrier_wait_end,
16774 gomp_barrier_wait_last): Use BAR_* defines.
16775 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
16776 from state where needed. Set work_share_cancelled to 0 on last
16778 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16779 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16781 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16782 Add cpusetsize argument.
16783 (gomp_cpuset_size, gomp_cpusetp): Declare.
16784 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16785 (affinity_counter): Remove.
16786 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16787 if CPU_ALLOC_SIZE isn't defined.
16788 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16789 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16790 bind current thread to the first place.
16791 (gomp_init_thread_affinity): Rewritten. Add place argument, just
16792 pthread_setaffinity_np to gomp_places_list[place].
16793 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16794 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16795 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16796 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16797 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16798 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16799 (gomp_barrier_t): Add awaited_final field.
16800 (gomp_barrier_init): Initialize awaited_final field.
16801 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16802 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16804 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
16806 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16807 gomp_team_barrier_cancelled): New inline functions.
16808 (gomp_barrier_last_thread,
16809 gomp_team_barrier_set_task_pending,
16810 gomp_team_barrier_clear_task_pending,
16811 gomp_team_barrier_set_waiting_for_tasks,
16812 gomp_team_barrier_waiting_for_tasks,
16813 gomp_team_barrier_done): Use BAR_* defines.
16814 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16815 (gomp_barrier_wait_end): Use BAR_* defines.
16816 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16817 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16819 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16820 gomp_team_barrier_cancel): New functions.
16821 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16823 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16824 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16825 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16826 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16827 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16828 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16829 (gomp_barrier_t): Add cancellable field.
16830 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16831 gomp_team_barrier_cancel): New prototypes.
16832 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16833 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16834 gomp_team_barrier_cancelled): New inline functions.
16835 (gomp_barrier_wait_start, gomp_barrier_last_thread,
16836 gomp_team_barrier_set_task_pending,
16837 gomp_team_barrier_clear_task_pending,
16838 gomp_team_barrier_set_waiting_for_tasks,
16839 gomp_team_barrier_waiting_for_tasks,
16840 gomp_team_barrier_done): Use BAR_* defines.
16841 * barrier.c (GOMP_barrier_cancel): New function.
16842 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16843 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16844 omp_proc_bind_spread): New params.
16845 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16846 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16847 omp_get_team_num, omp_is_initial_device): New externals.
16848 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16850 (gomp_resolve_num_threads): Adjust for thread_limit now being in
16851 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16852 infinity. If not nested, just return minimum of max_num_threads
16853 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16854 to the returned value. Otherwise, don't update atomically
16855 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16856 (GOMP_parallel_end): Adjust for thread_limit now being in
16857 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
16858 infinity. Adjust threads_busy in the pool rather than
16859 gomp_remaining_threads_count. Remember team->nthreads and call
16860 gomp_team_end before adjusting threads_busy, if not nested
16861 afterwards, just set it to 1 non-atomically. Add ialias.
16862 (GOMP_parallel_start): Adjust gomp_team_start caller.
16863 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16864 * testsuite/libgomp.c/affinity-1.c: New test.
16865 * testsuite/libgomp.c/atomic-15.c: New test.
16866 * testsuite/libgomp.c/atomic-16.c: New test.
16867 * testsuite/libgomp.c/atomic-17.c: New test.
16868 * testsuite/libgomp.c/cancel-for-1.c: New test.
16869 * testsuite/libgomp.c/cancel-for-2.c: New test.
16870 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16871 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16872 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16873 * testsuite/libgomp.c/cancel-sections-1.c: New test.
16874 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16875 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16876 * testsuite/libgomp.c/depend-1.c: New test.
16877 * testsuite/libgomp.c/depend-2.c: New test.
16878 * testsuite/libgomp.c/depend-3.c: New test.
16879 * testsuite/libgomp.c/depend-4.c: New test.
16880 * testsuite/libgomp.c/for-1.c: New test.
16881 * testsuite/libgomp.c/for-1.h: New file.
16882 * testsuite/libgomp.c/for-2.c: New test.
16883 * testsuite/libgomp.c/for-2.h: New file.
16884 * testsuite/libgomp.c/for-3.c: New test.
16885 * testsuite/libgomp.c/pr58392.c: New test.
16886 * testsuite/libgomp.c/simd-1.c: New test.
16887 * testsuite/libgomp.c/simd-2.c: New test.
16888 * testsuite/libgomp.c/simd-3.c: New test.
16889 * testsuite/libgomp.c/simd-4.c: New test.
16890 * testsuite/libgomp.c/simd-5.c: New test.
16891 * testsuite/libgomp.c/simd-6.c: New test.
16892 * testsuite/libgomp.c/target-1.c: New test.
16893 * testsuite/libgomp.c/target-2.c: New test.
16894 * testsuite/libgomp.c/target-3.c: New test.
16895 * testsuite/libgomp.c/target-4.c: New test.
16896 * testsuite/libgomp.c/target-5.c: New test.
16897 * testsuite/libgomp.c/target-6.c: New test.
16898 * testsuite/libgomp.c/target-7.c: New test.
16899 * testsuite/libgomp.c/taskgroup-1.c: New test.
16900 * testsuite/libgomp.c/thread-limit-1.c: New test.
16901 * testsuite/libgomp.c/thread-limit-2.c: New test.
16902 * testsuite/libgomp.c/thread-limit-3.c: New test.
16903 * testsuite/libgomp.c/udr-1.c: New test.
16904 * testsuite/libgomp.c/udr-2.c: New test.
16905 * testsuite/libgomp.c/udr-3.c: New test.
16906 * testsuite/libgomp.c++/affinity-1.C: New test.
16907 * testsuite/libgomp.c++/atomic-10.C: New test.
16908 * testsuite/libgomp.c++/atomic-11.C: New test.
16909 * testsuite/libgomp.c++/atomic-12.C: New test.
16910 * testsuite/libgomp.c++/atomic-13.C: New test.
16911 * testsuite/libgomp.c++/atomic-14.C: New test.
16912 * testsuite/libgomp.c++/atomic-15.C: New test.
16913 * testsuite/libgomp.c++/cancel-for-1.C: New test.
16914 * testsuite/libgomp.c++/cancel-for-2.C: New test.
16915 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16916 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16917 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16918 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16919 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16920 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16921 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16922 * testsuite/libgomp.c++/cancel-test.h: New file.
16923 * testsuite/libgomp.c++/for-9.C: New test.
16924 * testsuite/libgomp.c++/for-10.C: New test.
16925 * testsuite/libgomp.c++/for-11.C: New test.
16926 * testsuite/libgomp.c++/simd-1.C: New test.
16927 * testsuite/libgomp.c++/simd-2.C: New test.
16928 * testsuite/libgomp.c++/simd-3.C: New test.
16929 * testsuite/libgomp.c++/simd-4.C: New test.
16930 * testsuite/libgomp.c++/simd-5.C: New test.
16931 * testsuite/libgomp.c++/simd-6.C: New test.
16932 * testsuite/libgomp.c++/simd-7.C: New test.
16933 * testsuite/libgomp.c++/simd-8.C: New test.
16934 * testsuite/libgomp.c++/target-1.C: New test.
16935 * testsuite/libgomp.c++/target-2.C: New test.
16936 * testsuite/libgomp.c++/target-2-aux.cc: New file.
16937 * testsuite/libgomp.c++/target-3.C: New test.
16938 * testsuite/libgomp.c++/taskgroup-1.C: New test.
16939 * testsuite/libgomp.c++/udr-1.C: New test.
16940 * testsuite/libgomp.c++/udr-2.C: New test.
16941 * testsuite/libgomp.c++/udr-3.C: New test.
16942 * testsuite/libgomp.c++/udr-4.C: New test.
16943 * testsuite/libgomp.c++/udr-5.C: New test.
16944 * testsuite/libgomp.c++/udr-6.C: New test.
16945 * testsuite/libgomp.c++/udr-7.C: New test.
16946 * testsuite/libgomp.c++/udr-8.C: New test.
16947 * testsuite/libgomp.c++/udr-9.C: New test.
16949 2013-09-20 Jakub Jelinek <jakub@redhat.com>
16952 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16955 2013-09-20 Alan Modra <amodra@gmail.com>
16957 * configure: Regenerate.
16959 2013-09-19 Jakub Jelinek <jakub@redhat.com>
16961 * testsuite/libgomp.c/sections-2.c: New test.
16963 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
16965 * testsuite/libgomp.fortran/strassen.f90:
16966 Add dg-skip-if aarch64_tiny.
16968 2013-06-20 Iain Sandoe <iain@codesourcery.com>
16969 Cesar Philippidis <cesar@codesourcery.com>
16971 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16972 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16973 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16974 * testsuite/libgomp.fortran/fortran.exp: Likewise.
16975 * testsuite/libgomp.graphite/graphite.exp: Likewise.
16976 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16977 Use dg-runtest rather than gfortran-dg-runtest.
16979 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
16981 * testsuite/libgomp.c/icv-2.c: Extend current handling of
16982 Linux-based x86 systems to cover all GNU systems.
16983 * testsuite/libgomp.c/lock-3.c: Likewise.
16984 * testsuite/libgomp.c/pr48591.c: Likewise.
16986 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
16988 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16989 GNU/Hurd, as done for Linux-based systems.
16991 * config/posix/ptrlock.h: Fix comment.
16993 2013-05-27 Tobias Burnus <burnus@net-b.de>
16996 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16997 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16998 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16999 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17000 omp_destroy_nest_lock): Correct arguments to match the one in
17002 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17003 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17004 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17005 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17007 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17009 * testsuite/libgomp.c/loop-13.c: New test.
17010 * testsuite/libgomp.c/loop-14.c: New test.
17011 * testsuite/libgomp.c/loop-15.c: New test.
17012 * testsuite/libgomp.c++/loop-13.C: New test.
17013 * testsuite/libgomp.c++/loop-14.C: New test.
17014 * testsuite/libgomp.c++/loop-15.C: New test.
17016 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17018 PR middle-end/56217
17019 * testsuite/libgomp.c++/pr56217.C: New test.
17021 2013-02-01 Alan Modra <amodra@gmail.com>
17023 * task.c (GOMP_task, GOMP_taskwait): Comment.
17025 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17026 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17029 * config/linux/wait.h (do_spin): Use atomic load for addr.
17030 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17031 for intptr and ptrlock.
17032 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17035 2013-01-22 Alan Modra <amodra@gmail.com>
17039 * task.c (GOMP_task): Revert 2011-12-09 change.
17040 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17041 barrier to read task->children..
17042 (gomp_barrier_handle_tasks): ..and matching atomic store with
17043 release barrier here when setting parent->children to NULL.
17045 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17046 Tobias Burnus <burnus@net-b.de>
17049 * testsuite/libgomp.fortran/fortran.exp: Use
17050 -fintrinsic-modules-path= instead of
17051 -fintrinsic-modules-path.
17053 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17055 Update copyright years.
17057 2012-12-19 Tobias Burnus <burnus@net-b.de>
17059 * testsuite/libgomp.fortran/fortran.exp: Set
17060 -fintrinsic-modules-path.
17062 2012-12-19 Tobias Burnus <burnus@net-b.de>
17064 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17065 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17067 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17070 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17071 if pool had any threads_used.
17073 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17075 * testsuite/libgomp.c++/pr24455.C: Use
17076 -Wl,-undefined,dynamic_lookup on darwin.
17078 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17080 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17082 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17084 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17086 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17087 Jim MacArthur <jim.macarthur@arm.com>
17088 Marcus Shawcroft <marcus.shawcroft@arm.com>
17089 Nigel Stephens <nigel.stephens@arm.com>
17090 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17091 Richard Earnshaw <rearnsha@arm.com>
17092 Sofiane Naci <sofiane.naci@arm.com>
17093 Stephen Thomas <stephen.thomas@arm.com>
17094 Tejas Belagod <tejas.belagod@arm.com>
17095 Yufeng Zhang <yufeng.zhang@arm.com>
17097 * configure.tgt: Add AArch64.
17099 2012-10-04 Jason Merrill <jason@redhat.com>
17101 * testsuite/libgomp.c++/tls-init1.C: New.
17103 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17105 * configure: Regenerated.
17107 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17109 * config/linux/mips/futex.h (sys_futex0): Change to static
17110 function with noinline, nomips16 attributes under MIPS16. Adjust
17111 asm statement to place 'li v0,SYS_futex' immediately before
17114 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17116 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17117 conflict with index.html on case-insensitive file systems.
17119 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17121 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17122 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17124 2012-07-02 Richard Guenther <rguenther@suse.de>
17125 Michael Matz <matz@suse.de>
17126 Tobias Grosser <tobias@grosser.es>
17127 Sebastian Pop <sebpop@gmail.com>
17129 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17130 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17131 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17132 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17134 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17136 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17138 2012-06-22 Richard Guenther <rguenther@suse.de>
17140 Merge from graphite branch
17141 2012-01-13 Tobias Grosser <tobias@grosser.es>
17143 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17144 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17146 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17148 PR middle-end/53580
17149 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17150 use GOMP_barrier () call instead.
17151 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17152 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17153 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17154 call GOMP_barrier instead.
17155 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17157 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17160 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17161 argument to memset call.
17163 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17165 * configure: Regenerated.
17167 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17169 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17171 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17174 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17176 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17178 PR middle-end/52547
17179 * testsuite/libgomp.c/pr52547.c: New test.
17181 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17183 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17185 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17187 * configure.tgt (mips-sgi-irix6*): Remove.
17189 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17191 * configure.tgt (alpha*-dec-osf*): Remove.
17193 * config/osf/sem.h: Remove.
17194 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17196 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17198 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17200 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17203 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17204 Remove ENABLE_SYMVERS_SOL2.
17205 * configure: Regenerate.
17206 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17207 (PREPROCESS): New variable.
17208 (libgomp.ver): New target.
17209 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17210 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17211 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17213 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17214 * Makefile.in: Regenerate.
17216 2012-02-14 Walter Lee <walt@tilera.com>
17218 * configure.tgt: Handle tilegx and tilepro.
17219 * config/linux/tile/futex.h: New file.
17221 2012-02-08 Richard Guenther <rguenther@suse.de>
17223 PR tree-optimization/46886
17224 * testsuite/libgomp.c/pr46886.c: New testcase.
17226 2012-01-25 Matthias Klose <doko@ubuntu.com>
17228 * config/linux/arm: Remove empty directory.
17229 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17231 2011-12-09 Alan Modra <amodra@gmail.com>
17234 * task.c (GOMP_taskwait): Don't access task->children outside of
17235 task_lock mutex region.
17236 (GOMP_task): Likewise.
17238 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17241 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17243 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17244 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17245 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17246 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17247 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17249 2011-12-02 Alan Modra <amodra@gmail.com>
17251 * config/linux/affinity.c: Use atomic rather than sync builtin.
17252 * config/linux/lock.c: Likewise.
17253 * config/linux/ptrlock.h: Likewise.
17254 * config/linux/ptrlock.c: Likewise.
17255 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17256 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17257 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17258 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17259 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17260 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17261 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17262 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17263 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17264 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17266 2011-11-30 Alan Modra <amodra@gmail.com>
17269 * config/linux/bar.h: Use atomic rather than sync builtins.
17270 * config/linux/bar.c: Likewise. Add missing acquire
17271 synchronisation on generation field.
17272 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17275 2011-11-30 Alan Modra <amodra@gmail.com>
17277 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17278 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17279 * config/linux/mutex.h: Use atomic rather than sync builtins.
17280 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17281 * config/linux/omp-lock.h: Comment fix.
17282 * config/linux/arm/mutex.h: Delete.
17283 * config/linux/powerpc/mutex.h: Delete.
17284 * config/linux/ia64/mutex.h: Delete.
17285 * config/linux/mips/mutex.h: Delete.
17287 2011-11-30 Alan Modra <amodra@gmail.com>
17290 * config/linux/sem.h: Rewrite.
17291 * config/linux/sem.c: Rewrite.
17293 2011-11-28 Richard Henderson <rth@redhat.com>
17295 * libgomp.h (enum memmodel): New.
17297 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17299 * configure: Regenerate.
17301 2011-10-10 Matthias Klose <doko@ubuntu.com>
17303 * config/posix95: Remove empty directory.
17305 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17307 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17309 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17312 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17313 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17315 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17317 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17319 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17322 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17324 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17326 * config/linux/proc.h: New.
17327 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17328 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17329 (gomp_init_num_threads): Update call to cpuset_popcount.
17330 (get_num_procs): Ditto.
17331 * config/linux/affinity.c (gomp_init_affinity): Call
17332 gomp_cpuset_popcount.
17334 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17338 * omp.h.in (omp_in_final): New prototype.
17339 * omp_lib.f90.in (omp_in_final): New interface.
17340 (omp_integer_kind, omp_logical_kind): Remove
17341 and replace all its uses in the module with 4.
17342 (openmp_version): Change to 201107.
17343 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17344 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17345 kind for the parameters.
17346 (omp_in_final): New external.
17347 (openmp_version): Change to 201107.
17348 * task.c (omp_in_final): New function.
17349 (gomp_init_task): Initialize final_task.
17350 (GOMP_task): Remove unused attribute from flags. Handle final
17352 (GOMP_taskyield): New function.
17353 (omp_in_final): Return true if if (false) or final (true) task
17354 or descendant of final (true).
17355 * fortran.c (omp_in_final_): New function.
17356 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17357 (GOMP_3.0): Export GOMP_taskyield.
17358 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17360 (parse_unsigned_long_list): New function.
17361 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17362 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17363 even if parse_affinity returned false.
17364 * config/linux/affinity.c (gomp_init_affinity): Handle
17365 gomp_cpu_affinity_len == 0.
17366 * libgomp_g.h (GOMP_taskyield): New prototype.
17367 * libgomp.h (struct gomp_task): Add final_task field.
17368 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17369 * team.c (gomp_team_start): Override new task's nthreads_var icv
17370 if list form OMP_NUM_THREADS has been used and it has value for
17371 the new nesting level.
17373 * testsuite/libgomp.c/atomic-11.c: New test.
17374 * testsuite/libgomp.c/atomic-12.c: New test.
17375 * testsuite/libgomp.c/atomic-13.c: New test.
17376 * testsuite/libgomp.c/atomic-14.c: New test.
17377 * testsuite/libgomp.c/reduction-6.c: New test.
17378 * testsuite/libgomp.c/task-5.c: New test.
17379 * testsuite/libgomp.c++/atomic-2.C: New test.
17380 * testsuite/libgomp.c++/atomic-3.C: New test.
17381 * testsuite/libgomp.c++/atomic-4.C: New test.
17382 * testsuite/libgomp.c++/atomic-5.C: New test.
17383 * testsuite/libgomp.c++/atomic-6.C: New test.
17384 * testsuite/libgomp.c++/atomic-7.C: New test.
17385 * testsuite/libgomp.c++/atomic-8.C: New test.
17386 * testsuite/libgomp.c++/atomic-9.C: New test.
17387 * testsuite/libgomp.c++/task-8.C: New test.
17388 * testsuite/libgomp.c++/reduction-4.C: New test.
17389 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17390 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17391 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17392 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17393 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17394 * testsuite/libgomp.fortran/pointer1.f90: New test.
17395 * testsuite/libgomp.fortran/pointer2.f90: New test.
17396 * testsuite/libgomp.fortran/task4.f90: New test.
17398 2011-08-02 Tobias Burnus <burnus@net-b.de>
17400 * libgomp.texi: Update OpenMP spec references to 3.1.
17401 (omp_in_final,OMP_PROC_BIND): New sections.
17402 (OMP_NUM_THREADS): Document that the value can be now a list.
17403 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17405 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17407 * config/linux/x86/futex.h: Check __x86_64__ instead of
17410 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17412 PR middle-end/49897
17413 PR middle-end/49898
17414 * testsuite/libgomp.c/pr49897-1.c: New test.
17415 * testsuite/libgomp.c/pr49897-2.c: New test.
17416 * testsuite/libgomp.c/pr49898-1.c: New test.
17417 * testsuite/libgomp.c/pr49898-2.c: New test.
17419 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17421 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17422 for ia32 instead of ilp32.
17424 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17425 * testsuite/libgomp.c/atomic-6.c: Likewise.
17427 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17429 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17430 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17432 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17435 * config/osf/sem.h: New file.
17436 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17438 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17441 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17444 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17446 * config/linux/wait.h (do_spin): New inline, largely copied
17447 from do_wait, just don't do futex_wait here, instead return true if
17449 (do_wait): Implement using do_spin.
17450 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17452 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17453 __sync_bool_compare_and_swap, pass the oldval to
17454 gomp_mutex_lock_slow.
17455 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17456 If all mutex contenders are just spinning and not sleeping, don't
17457 change state to 2 unnecessarily. Optimize the loop when state has
17458 already become 2 to use just one atomic operation per loop instead
17460 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17462 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17463 __sync_bool_compare_and_swap, pass the oldval to
17464 gomp_mutex_lock_slow.
17466 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17469 * iter.c (gomp_iter_static_next): For chunk size 0
17470 only use n ceil/ nthreads size for the first
17471 n % nthreads threads in the team instead of
17472 all threads except for the last few ones which
17473 get less work or none at all.
17474 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17475 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17476 chunk argument, set run_sched_modifier to 0 for static
17477 resp. 1 for other kinds. If chunk argument is 0
17478 and not static, set value to 1.
17480 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17483 * testsuite/libgomp.c++/pr49043.C: New test.
17486 * testsuite/libgomp.c++/pr48869.C: New test.
17488 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17491 * fortran.c: Include limits.h.
17493 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17495 (omp_set_num_threads_8_, omp_set_schedule_8_,
17496 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17497 omp_get_team_size_8_): Use TO_INT macro.
17498 * testsuite/libgomp.fortran/pr48894.f90: New test.
17500 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17502 PR middle-end/48591
17503 * testsuite/libgomp.c/pr48591.c: New test.
17505 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17508 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17509 * configure: Regenerate.
17511 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17514 * testsuite/libgomp.fortran/task3.f90: New test.
17516 2011-02-24 Tobias Burnus <burnus@net-b.de>
17518 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17520 2011-02-23 Jakub Jelinek <jakub@redhat.com>
17523 * libgomp.texi (omp_get_wtime): Don't say time in the past
17524 must be Unix Epoch.
17526 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17529 * testsuite/libgomp.fortran/fortran.exp: Check for both
17530 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
17531 but $blddir != "", still append ${blddir}/${lang_library_path}
17532 to ld_library_path.
17534 2011-02-16 Tobias Burnus <burnus@net-b.de>
17537 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17538 of libquadmath.a before adding its libpath to ldflags.
17540 2011-02-14 Jakub Jelinek <jakub@redhat.com>
17543 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17544 to FUTEX_WAIT futex syscall.
17545 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17547 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17549 * configure: Regenerate.
17551 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
17554 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17556 2011-01-16 Gerald Pfeifer
17558 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17560 2010-12-14 Jakub Jelinek <jakub@redhat.com>
17563 * libgomp.fortran/allocatable6.f90: New test.
17565 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17567 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17568 * configure: Regenerate.
17570 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
17574 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17575 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17576 * aclocal.m4: Regenerate.
17577 * configure: Regenerate.
17578 * Makefile.in: Regenerate.
17579 * testsuite/Makefile.in: Regenerate.
17581 2010-12-02 Jakub Jelinek <jakub@redhat.com>
17584 * libgomp.fortran/pr46753.f90: New test.
17587 * env.c (initialize_env): Default to spin count 300000
17588 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17592 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17593 at the end if sync builtins aren't supported.
17595 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17597 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17599 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17601 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17603 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
17605 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17607 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17608 Tobias Burnus <burnus@net-b.de>
17612 * configure: Regenerate.
17614 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
17616 * config/linux/futex.h: New.
17617 * config/linux/arm/mutex.h: New.
17618 * configure.tgt (arm*-*-linux*): Add config path.
17620 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
17622 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17624 2010-09-23 Tobias Burnus <burnus@net-b.de>
17626 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17627 Change Fortran datatype to LOGICAL.
17628 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17629 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17631 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17633 * configure: Regenerate.
17635 2010-07-26 Jakub Jelinek <jakub@redhat.com>
17637 * libgomp.texi: Add function keyword to a couple of Fortran
17638 interfaces, use integer instead of int for Fortran.
17640 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
17642 * libgomp.texi: Fix spelling and pasto problems throughout.
17643 Adjust prototypes to match code.
17645 2010-07-24 Tobias Burnus <burnus@net-b.de>
17647 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17648 silence -fwhole-file warning.
17650 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17652 * configure.tgt (*-*-solaris2.[56]*): Removed.
17654 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17656 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17657 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17659 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17660 targetting solaris2*.
17661 * configure: Regenerate.
17662 * config.h.in: Regenerate.
17664 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17665 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17666 Add libgomp_version_dep.
17667 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17669 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17670 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17671 * Makefile.in: Regenerate.
17673 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17674 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17675 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17676 to common block, protected by
17677 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17679 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
17681 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
17683 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
17686 * configure: Regenerate.
17688 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17691 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17692 * configure: Regenerate.
17693 * Makefile.in: Regenerate.
17694 * testsuite/Makefile.in: Regenerate.
17696 2010-04-26 Jakub Jelinek <jakub@redhat.com>
17699 * testsuite/libgomp.c/pr43893.c: New test.
17700 * testsuite/libgomp.c++/pr43893.C: New test.
17702 2010-04-21 Jakub Jelinek <jakub@redhat.com>
17704 PR middle-end/43570
17705 * testsuite/libgomp.fortran/vla8.f90: New test.
17707 2010-04-20 Jakub Jelinek <jakub@redhat.com>
17710 * config/linux/affinity.c (gomp_init_affinity): Decrease
17711 gomp_available_cpus if affinity mask confines the process to fewer
17713 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17714 non-NULL, just return gomp_available_cpus.
17717 * sections.c (gomp_sections_init): Initialize ws->mode.
17719 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
17721 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17722 not unused bar variable.
17723 * configure: Regenerate.
17725 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17727 * Makefile.in: Regenerate.
17728 * aclocal.m4: Regenerate.
17729 * testsuite/Makefile.in: Regenerate.
17731 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17734 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17735 (initialize_env): Adjust callers.
17736 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17737 when the argument is 0.
17739 * testsuite/libgomp.c/pr42942.c: New test.
17741 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17743 PR middle-end/42644
17744 PR middle-end/42130
17745 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17746 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17748 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17750 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17751 * testsuite/libgomp.c++/task-6.C: Likewise.
17753 2010-01-28 Steve Ellcey <sje@cup.hp.com>
17755 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17757 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
17759 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17760 * configure: Regenerate.
17762 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17765 * testsuite/libgomp.fortran/allocatable5.f90: New test.
17767 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
17769 * configure.ac: Test for executability of GFORTRAN.
17770 * configure: Regenerate.
17772 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17774 * configure: Regenerate.
17776 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17779 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17781 2010-01-03 Richard Guenther <rguenther@suse.de>
17783 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17785 2009-12-23 Sebastian Pop <sebpop@gmail.com>
17787 * testsuite/libgomp.graphite/pr4118.c: New.
17789 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17791 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17792 for darwin, protect the test with require-effective-target tls_runtime.
17793 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17795 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17798 * testsuite/lib/libgomp.exp: Provide -B options to allow for
17799 link spec %s substitutions for static libraries.
17801 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
17804 * libgomp.graphite/force-parallel-2.c: Reduce array size.
17806 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17808 * Makefile.in: Regenerate.
17809 * configure: Regenerate.
17810 * testsuite/Makefile.in: Regenerate.
17812 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
17814 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17815 settings for LC_ALL and LANG.
17817 2009-11-25 Jakub Jelinek <jakub@redhat.com>
17820 * testsuite/libgomp.fortran/pr42162.f90: New test.
17822 2009-11-13 Jakub Jelinek <jakub@redhat.com>
17824 PR middle-end/42029
17825 * testsuite/libgomp.c/pr42029.c: New test.
17827 2009-10-26 Jakub Jelinek <jakub@redhat.com>
17829 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17830 *s. Accept ld version without text in ()s.
17831 * configure: Regenerated.
17833 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
17835 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17837 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17840 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17841 or a hyphen (happens with fortran language disabled).
17842 * configure: Regenerate.
17844 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17846 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17847 use sed script portable to Solaris /bin/sed for extracting ld
17849 * configure: Regenerate.
17851 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
17853 * testsuite/libgomp.graphite/bounds.c: New test.
17855 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17857 * Makefile.am (libgomp_la_LINK): New.
17858 * Makefile.in: Regenerate.
17860 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17862 * configure.ac (AC_PREREQ): Bump to 2.64.
17864 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17866 * Makefile.am (install-html, install-pdf): Remove.
17867 * Makefile.in: Regenerate.
17869 * Makefile.in: Regenerate.
17870 * aclocal.m4: Regenerate.
17871 * config.h.in: Regenerate.
17872 * configure: Regenerate.
17873 * testsuite/Makefile.in: Regenerate.
17875 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17877 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17878 * Makefile.in: Regenerate.
17880 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
17882 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17883 * Makefile.in: Regenerate.
17885 2009-08-19 Tobias Burnus <burnus@net-b.de>
17888 omp_lib.h.in: Fix -std=f95 errors.
17890 2009-08-14 David Edelsohn <edelsohn@gnu.org>
17892 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17893 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17894 * testsuite/libgomp.graphite/graphite.exp: New.
17896 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
17898 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17901 2009-08-04 David Daney <ddaney@caviumnetworks.com>
17903 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17904 needed memory barrier semantics.
17905 * config/linux/mips/mutex.h: New file.
17907 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17909 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17911 2009-07-16 Joseph Myers <joseph@codesourcery.com>
17913 * configure: Regenerate.
17915 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
17920 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17921 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17922 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17924 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
17926 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17927 options when choosing a multilib.
17929 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
17931 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17932 ld_library_path. Use add_path. Add just find_libgcc_s to
17933 ld_library_path, not every libgcc multilib directory.
17934 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17935 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17936 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17938 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17940 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
17942 * Makefile.am (LTLDFLAGS): Define.
17944 * Makefile.in: Regenerate.
17946 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
17949 * testsuite/libgomp.fortran/fortran.exp: Don't link with
17950 libgfortranbegin, check existence of libgfortran.a instead of
17951 libgfortranbegin.a.
17953 2009-05-20 Jakub Jelinek <jakub@redhat.com>
17956 * team.c (gomp_thread_start): Destroy thr->release semaphore.
17957 (gomp_free_pool_helper): Likewise.
17959 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
17960 Jakub Jelinek <jakub@redhat.com>
17963 * testsuite/libgomp.fortran/workshare2.f90: New test.
17965 2009-04-09 Nick Clifton <nickc@redhat.com>
17967 * iter.c: Change copyright header to refer to version 3 of the
17968 GNU General Public License with version 3.1 of the GCC Runtime
17969 Library Exception and to point readers at the COPYING3 and
17970 COPYING3.RUNTIME files and the FSF's license web page.
17971 * alloc.c: Likewise.
17972 * barrier.c: Likewise.
17973 * config/bsd/proc.c: Likewise.
17974 * config/linux/affinity.c: Likewise.
17975 * config/linux/alpha/futex.h: Likewise.
17976 * config/linux/bar.c: Likewise.
17977 * config/linux/bar.h: Likewise.
17978 * config/linux/ia64/futex.h: Likewise.
17979 * config/linux/ia64/mutex.h: Likewise.
17980 * config/linux/lock.c: Likewise.
17981 * config/linux/mips/futex.h: Likewise.
17982 * config/linux/mutex.c: Likewise.
17983 * config/linux/mutex.h: Likewise.
17984 * config/linux/powerpc/futex.h: Likewise.
17985 * config/linux/proc.c: Likewise.
17986 * config/linux/ptrlock.c: Likewise.
17987 * config/linux/ptrlock.h: Likewise.
17988 * config/linux/s390/futex.h: Likewise.
17989 * config/linux/sem.c: Likewise.
17990 * config/linux/sem.h: Likewise.
17991 * config/linux/sparc/futex.h: Likewise.
17992 * config/linux/wait.h: Likewise.
17993 * config/linux/x86/futex.h: Likewise.
17994 * config/mingw32/proc.c: Likewise.
17995 * config/mingw32/time.c: Likewise.
17996 * config/posix/affinity.c: Likewise.
17997 * config/posix/bar.c: Likewise.
17998 * config/posix/bar.h: Likewise.
17999 * config/posix/lock.c: Likewise.
18000 * config/posix/mutex.h: Likewise.
18001 * config/posix/proc.c: Likewise.
18002 * config/posix/ptrlock.h: Likewise.
18003 * config/posix/sem.c: Likewise.
18004 * config/posix/sem.h: Likewise.
18005 * config/posix/time.c: Likewise.
18006 * config/posix95/lock.c: Likewise.
18007 * critical.c: Likewise.
18009 * error.c: Likewise.
18010 * fortran.c: Likewise.
18011 * iter_ull.c: Likewise.
18012 * libgomp.h: Likewise.
18013 * libgomp_f.h.in: Likewise.
18014 * libgomp_g.h: Likewise.
18015 * loop.c: Likewise.
18016 * loop_ull.c: Likewise.
18017 * omp.h.in: Likewise.
18018 * omp_lib.f90.in: Likewise.
18019 * omp_lib.h.in: Likewise.
18020 * ordered.c: Likewise.
18021 * parallel.c: Likewise.
18022 * sections.c: Likewise.
18023 * single.c: Likewise.
18024 * task.c: Likewise.
18025 * team.c: Likewise.
18026 * work.c: Likewise.
18028 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18030 * testsuite/config/default.exp: Change copyright header to refer to
18031 version 3 of the GNU General Public License and to point readers
18032 at the COPYING3 file and the FSF's license web page.
18034 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18036 PR middle-end/39573
18037 * libgomp.c++/pr39573.C: New test.
18039 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18042 * testsuite/libgomp.c/pr39591-1.c: New test.
18043 * testsuite/libgomp.c/pr39591-2.c: New test.
18044 * testsuite/libgomp.c/pr39591-3.c: New test.
18046 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18048 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18049 * testsuite/libgomp.c/atomic-6.c: Ditto.
18051 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18054 * testsuite/libgomp.c/loop-12.c: New test.
18055 * testsuite/libgomp.c/loop-11.c: New test.
18056 * testsuite/libgomp.c++/loop-11.C: New test.
18057 * testsuite/libgomp.c++/loop-12.C: New test.
18058 * testsuite/libgomp.c++/for-8.C: New test.
18060 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18062 * configure: Regenerate.
18064 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18066 PR middle-end/39154
18067 * testsuite/libgomp.c/pr39154.c: New test.
18069 2009-01-30 Ian Lance Taylor <iant@google.com>
18071 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18072 libgomp_ld_is_gold. Get gold version number.
18073 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18074 * configure: Rebuild.
18076 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18078 * testsuite/lib/libgomp.exp: Add -B option for targets that
18079 use libgfortran.a%s in their specs.
18081 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18084 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18085 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18086 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18087 * configure: Regenerated.
18088 * config.h.in: Likewise.
18090 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18093 * testsuite/libgomp.c/pr38650.c: New test.
18094 * testsuite/libgomp.c++/pr38650.C: New test.
18096 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18098 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18100 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18102 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18104 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18106 * configure: Regenerate.
18108 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18110 PR middle-end/36802
18111 * testsuite/libgomp.c/pr36802-1.c: New test.
18112 * testsuite/libgomp.c/pr36802-2.c: New test.
18113 * testsuite/libgomp.c/pr36802-3.c: New test.
18115 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18118 * config/linux/powerpc/mutex.h: New.
18120 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18123 * testsuite/libgomp.c++/for-7.C: New test.
18126 * testsuite/libgomp.c++/for-6.C: New test.
18128 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18131 * testsuite/lib/libgomp.exp: Include new timeout library files.
18132 (libgomp_target_compile): Set timeout value from new proc.
18134 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18137 * config/linux/ia64/mutex.h: New.
18139 2008-11-04 Tobias Burnus <burnus@net-b.de>
18142 * libgomp.texi (Runtime library routines, environment variables):
18143 Update for OpenMP version 3.0.
18145 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18146 Steve Ellcey <sje@cup.hp.com>
18148 * configure: Regenerate for new libtool.
18149 * Makefile.in: Ditto.
18150 * testsuite/Makefile.in: Ditto.
18152 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18153 Andreas Tobler <a.tobler@schweiz.org>
18155 * config/bsd/proc.c: New file.
18156 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18157 * configure.ac: Check for header <sys/sysctl.h>
18158 * configure: Regenerate.
18159 * config.h.in: Likewise.
18161 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18163 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18165 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18167 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18168 * Makefile.in: Regenerated.
18169 * testsuite/Makefile.in: Regenerated.
18171 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18173 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18174 depend on blddir if blddir exists.
18175 (libgomp_target_compile): Likewise.
18176 * testsuite/libgomp.c++/c++.exp: Likewise.
18177 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18179 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18181 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18182 Do not list GPL as Invariant Section.
18184 2008-07-28 Ilie Garbacea <ilie@mips.com>
18185 Chao-ying Fu <fu@mips.com>
18187 * configure.tgt: Enable futex for MIPS.
18188 * config/linux/mips/futex.h: New file.
18190 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18192 * team.c (gomp_team_end): Free team immediately if it has
18195 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18197 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18198 * testsuite/libgomp.fortran/fortran.exp: Same.
18199 * testsuite/libgomp.c/c.exp: Same.
18200 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18201 directory to library path first.
18203 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18205 * env.c (parse_stacksize): Add cast to avoid warning.
18206 (parse_spincount): Likewise.
18208 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18210 * testsuite/libgomp.c/loop-10.c: New test.
18211 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18212 * libgomp.c++/loop-6.C (main): Likewise.
18215 * testsuite/libgomp.c/debug-1.c: New test.
18217 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18219 * testsuite/libgomp.c/nqueens-1.c: New test.
18222 * testsuite/libgomp.c++/task-7.C: New function.
18224 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18226 * configure: Regenerate.
18228 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18230 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18231 mutex when HAVE_SYNC_BUILTINS isn't defined.
18233 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18235 * libgomp.texi (omp_test_lock): Fix typo.
18237 2008-06-12 Tobias Burnus <burnus@net-b.de>
18239 * omp_lib.f90.in: Add "implicit none".
18241 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18243 PR middle-end/36506
18244 * testsuite/libgomp.c/reduction-5.c: New test.
18246 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18248 * libgomp.h (struct gomp_task): Add in_tied_task field.
18249 * task.c (gomp_init_task): Initialize it.
18250 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18251 unconditionally. Don't call gomp_team_barrier_wake if
18252 current task is implicit or if(0) from implicit and number of
18253 running tasks is equal to nthreads - 1.
18256 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18257 omp_get_team_size_8): Fix pastos.
18260 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18261 * configure: Regenerated.
18262 * config.h.in: Regenerated.
18263 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18266 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18269 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18270 (GOMP_loop_ull_dynamic_start): Likewise.
18271 (GOMP_loop_ull_guided_start): Likewise.
18272 (GOMP_loop_ull_ordered_static_start): Likewise.
18273 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18274 (GOMP_loop_ull_ordered_guided_start): Likewise.
18276 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18277 Richard Henderson <rth@redhat.com>
18278 Ulrich Drepper <drepper@redhat.com>
18279 Jakob Blomer <jakob.blomer@ira.uka.de>
18281 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18282 Substitute also OMP_*LOCK_25*.
18283 * configure: Regenerated.
18284 * config.h.in: Regenerated.
18285 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18286 ptrlock.c and task.c.
18287 * Makefile.in: Regenerated.
18288 * testsuite/Makefile.in: Regenerated.
18289 * task.c: New file.
18290 * loop_ull.c: New file.
18291 * iter_ull.c: New file.
18292 * libgomp.h: Include ptrlock.h.
18293 (enum gomp_task_kind): New type.
18294 (struct gomp_team): Add task_lock, task_queue, task_count,
18295 task_running_count, single_count fields. Add
18296 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18297 Remove work_share_lock, generation_mask,
18298 oldest_live_gen, num_live_gen and init_work_shares fields, add
18299 work work_share_list_alloc, work_share_list_free and work_share_chunk
18300 fields. Change work_shares from pointer to pointers into an array.
18301 Change ordered_release field into gomp_sem_t ** from flexible array
18302 member. Add implicit_task and initial_work_shares fields.
18303 Move close to the end of the struct.
18304 (struct gomp_team_state): Add single_count, last_work_share,
18305 active_level and level fields, remove work_share_generation.
18306 (gomp_barrier_handle_tasks): New prototype.
18307 (gomp_finish_task): New inline function.
18308 (struct gomp_work_share): Move chunk_size, end, incr into
18309 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18310 next_ll fields. Reshuffle fields. Add next_alloc,
18311 next_ws, next_free and inline_ordered_team_ids fields, change
18312 ordered_team_ids into pointer from flexible array member.
18313 Add mode field. Put lock and next into a different cache line
18314 from most of the write-once fields.
18315 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18316 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18317 gomp_iter_ull_guided_next): New prototypes.
18318 (gomp_new_icv): New prototype.
18319 (struct gomp_thread): Add thread_pool and task fields.
18320 (struct gomp_thread_pool): New type.
18321 (gomp_new_team): New prototype.
18322 (gomp_team_start): Change type of last argument.
18323 (gomp_new_work_share): Removed.
18324 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18325 (gomp_work_share_init_done): New static inline.
18326 (gomp_throttled_spin_count_var, gomp_available_cpus,
18327 gomp_managed_threads): New extern decls.
18328 (gomp_init_task): New prototype.
18329 (gomp_spin_count_var): New extern var decl.
18330 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18331 or no alias support, or if not PIC.
18332 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18333 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18334 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18335 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18336 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18337 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18338 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18339 gomp_test_nest_lock_25): New prototypes.
18340 (omp_lock_symver, strong_alias): Define.
18341 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18343 (gomp_end_task): New.
18344 (struct gomp_task_icv, gomp_global_icv): New.
18345 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18346 (struct gomp_task): New.
18347 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18348 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18350 (gomp_schedule_type): Reorder enum to match
18352 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18354 (gomp_thread_start): Add gomp_team_barrier_wait call.
18355 For non-nested case remove clearing of docked thread thr fields.
18356 Use pool fields instead of global gomp_* variables. Use
18357 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18358 Create tasks for each member thread.
18359 (free_team): Only destroy team barrier, task_lock here and free it.
18360 (gomp_free_thread): Free last_team if non-NULL.
18361 (gomp_team_end): Call gomp_team_barrier_wait instead of
18362 gomp_barrier_wait. For nested case call one extra
18363 gomp_barrier_wait. Move here some destruction from free_team.
18364 Call free_team on pool->last_team if any, rather than freeing
18365 current team. Destroy work_share_list_free_lock ifndef
18366 HAVE_SYNC_BUILTINS.
18367 (gomp_new_icv): New function.
18368 (gomp_threads, gomp_threads_size, gomp_threads_used,
18369 gomp_threads_dock): Removed.
18370 (gomp_thread_destructor): New variable.
18371 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18373 (gomp_team_start): Create new pool if current thread doesn't have
18374 one. Use pool fields instead of global gomp_* variables.
18375 Initialize thread_pool field for new threads. Clear single_count.
18376 Change last argument from ws to team, don't create
18377 new team, set ts.work_share to &team->work_shares[0] and clear
18378 ts.last_work_share. Don't clear ts.work_share_generation.
18379 If number of threads changed, adjust atomically gomp_managed_threads.
18380 Use gomp_init_task instead of gomp_new_task,
18381 set thr->task to the corresponding implicit_task array entry.
18382 Create tasks for each member thread. Initialize ts.level.
18383 (initialize_team): Call pthread_key_create on
18384 gomp_thread_destructor.
18385 (team_destructor): New function.
18386 (new_team): Removed.
18387 (gomp_new_team): New function.
18388 (free_team): Free gomp_work_share blocks chained through next_alloc,
18389 instead of freeing work_shares and destroying work_share_lock.
18390 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18391 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18392 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18393 of gomp_barrier_wait.
18394 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18395 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18396 if gomp_work_share_start returned true. Don't unlock ws->lock.
18397 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18398 of gomp_barrier_wait.
18399 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18400 gomp_work_share_init_done if gomp_work_share_start returned true.
18401 Don't unlock ws->lock.
18402 * work.c: Include stddef.h.
18403 (free_work_share): Use work_share_list_free_lock instead
18404 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18405 Call gomp_fini_work_share and then either free ws if orphaned, or
18406 put it into work_share_list_free list of the current team.
18407 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18409 (gomp_work_share_start, gomp_work_share_end,
18410 gomp_work_share_end_nowait): Rewritten.
18411 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18412 (openmp_version): Set to 200805.
18413 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18414 omp_sched_guided, omp_sched_auto): New parameters.
18415 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18416 omp_set_max_active_levels, omp_get_max_active_levels,
18417 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18418 omp_get_active_level): New interfaces.
18419 * omp_lib.h.in (openmp_version): Set to 200805.
18420 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18421 omp_sched_guided, omp_sched_auto): New parameters.
18422 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18423 omp_set_max_active_levels, omp_get_max_active_levels,
18424 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18425 omp_get_active_level): New externals.
18426 * loop.c: Include limits.h.
18427 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18429 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18430 Likewise. Use gomp_icv.
18431 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18432 ts.static_trip here.
18433 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18434 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18435 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18436 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18437 don't unlock ws->lock, otherwise lock it.
18438 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18439 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18440 (gomp_parallel_loop_start): Call gomp_new_team instead of
18441 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18442 Adjust gomp_team_start caller. Pass 0 as second argument to
18443 gomp_resolve_num_threads.
18444 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18445 If adding ws->chunk_size nthreads + 1 times after end won't
18446 overflow, set ws->mode to 1.
18447 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18448 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18449 GOMP_loop_ull_ordered_static_start,
18450 GOMP_loop_ull_ordered_dynamic_start,
18451 GOMP_loop_ull_ordered_guided_start,
18452 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18453 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18454 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18455 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18456 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18458 * libgomp.map: Export lock routines also @@OMP_2.0.
18459 (GOMP_loop_ordered_dynamic_first,
18460 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18461 GOMP_loop_ordered_static_first): Remove.
18462 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18463 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18464 GOMP_loop_ull_ordered_dynamic_next,
18465 GOMP_loop_ull_ordered_dynamic_start,
18466 GOMP_loop_ull_ordered_guided_next,
18467 GOMP_loop_ull_ordered_guided_start,
18468 GOMP_loop_ull_ordered_runtime_next,
18469 GOMP_loop_ull_ordered_runtime_start,
18470 GOMP_loop_ull_ordered_static_next,
18471 GOMP_loop_ull_ordered_static_start,
18472 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18473 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18474 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18475 (omp_set_schedule, omp_get_schedule,
18476 omp_get_thread_limit, omp_set_max_active_levels,
18477 omp_get_max_active_levels, omp_get_level,
18478 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18479 omp_set_schedule_, omp_set_schedule_8_,
18480 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18481 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18482 omp_get_max_active_levels_, omp_get_level_,
18483 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18484 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18485 New exports @@OMP_3.0.
18486 * omp.h.in (omp_sched_t): New type.
18487 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18488 omp_set_max_active_levels, omp_get_max_active_levels,
18489 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18490 omp_get_active_level): New prototypes.
18491 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18492 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18493 gomp_thread_limit_var, gomp_remaining_threads_count,
18494 gomp_remaining_threads_lock): New variables.
18495 (parse_spincount): New function.
18496 (initialize_env): Call gomp_init_num_threads unconditionally.
18497 Initialize gomp_available_cpus. Call parse_spincount,
18498 initialize gomp_{,throttled_}spin_count_var
18499 depending on presence and value of OMP_WAIT_POLICY and
18500 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18501 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18502 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18503 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18504 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18505 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18506 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18507 (gomp_global_icv): New.
18508 (parse_schedule): Use it. Parse "auto".
18509 (omp_set_num_threads): Use gomp_icv.
18510 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18512 (omp_get_max_threads): Move from parallel.c.
18513 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18514 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18516 (parse_stacksize, parse_wait_policy): New functions.
18517 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18518 both wrappers for compatibility and new locks.
18519 (omp_set_schedule, omp_get_schedule,
18520 omp_get_thread_limit, omp_set_max_active_levels,
18521 omp_get_max_active_levels, omp_get_level,
18522 omp_get_ancestor_thread_num, omp_get_team_size,
18523 omp_get_active_level): New ialias_redirect.
18524 (omp_set_schedule_, omp_set_schedule_8_,
18525 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18526 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18527 omp_get_max_active_levels_, omp_get_level_,
18528 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18529 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18531 * parallel.c: Include limits.h.
18532 (gomp_resolve_num_threads): Add count argument. Rewritten.
18533 (GOMP_parallel_start): Call gomp_new_team and pass that as last
18534 argument to gomp_team_start. Pass 0 as second argument to
18535 gomp_resolve_num_threads.
18536 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18537 if gomp_thread_limit_var != ULONG_MAX.
18538 (omp_in_parallel): Implement using ts.active_level.
18539 (omp_get_max_threads): Move to env.c.
18540 (omp_get_level, omp_get_ancestor_thread_num,
18541 omp_get_team_size, omp_get_active_level): New functions,
18543 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18544 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
18545 gomp_iter_dynamic_next instead of the _locked variant and don't take
18546 lock around it, otherwise acquire it before calling
18547 gomp_iter_dynamic_next_locked.
18548 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18549 gomp_iter_dynamic_next instead of the _locked variant and don't take
18551 (GOMP_parallel_sections_start): Call gomp_new_team instead of
18552 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
18553 Adjust gomp_team_start caller. Pass count as second argument to
18554 gomp_resolve_num_threads, don't adjust num_threads after the call.
18556 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18557 ws->chunk_size by incr.
18558 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
18560 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18562 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18563 (omp_check_defines): Check even the compat defines.
18564 * config/linux/ptrlock.c: New file.
18565 * config/linux/ptrlock.h: New file.
18566 * config/linux/wait.h: New file.
18567 * config/posix/ptrlock.c: New file.
18568 * config/posix/ptrlock.h: New file.
18569 * config/linux/bar.h (gomp_team_barrier_wait,
18570 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18571 (gomp_team_barrier_set_task_pending,
18572 gomp_team_barrier_clear_task_pending,
18573 gomp_team_barrier_set_waiting_for_tasks,
18574 gomp_team_barrier_waiting_for_tasks,
18575 gomp_team_barrier_done): New inlines.
18576 (gomp_barrier_t): Rewritten.
18577 (gomp_barrier_state_t): New typedef.
18578 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18579 gomp_barrier_wait_start): Rewritten.
18580 (gomp_barrier_wait_end): Change second argument to
18581 gomp_barrier_state_t.
18582 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18584 * config/linux/bar.c: Include wait.h instead of libgomp.h and
18586 (gomp_barrier_wait_end): Rewritten.
18587 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18588 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18589 * config/posix/bar.h (gomp_barrier_t): Add generation field.
18590 (gomp_barrier_state_t): New typedef.
18591 (gomp_team_barrier_wait,
18592 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18593 (gomp_barrier_wait_start): Or all but low 2 bits from generation
18594 into the return value. Return gomp_barrier_state_t.
18595 (gomp_team_barrier_set_task_pending,
18596 gomp_team_barrier_clear_task_pending,
18597 gomp_team_barrier_set_waiting_for_tasks,
18598 gomp_team_barrier_waiting_for_tasks,
18599 gomp_team_barrier_done): New inlines.
18600 (gomp_barrier_wait_end): Change second argument to
18601 gomp_barrier_state_t.
18602 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18604 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18605 (gomp_barrier_wait_end): Change second argument to
18606 gomp_barrier_state_t.
18607 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18608 gomp_team_barrier_wake): New functions.
18609 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18611 (gomp_futex_wake, gomp_futex_wait): New variables.
18612 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18613 * config/linux/lock.c: Rewrite to make locks task owned,
18614 for backwards compatibility provide the old entrypoints
18615 if symbol versioning. Include wait.h instead of libgomp.h and
18617 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18618 * config/posix95/lock.c: Rewrite to make locks task owned,
18619 for backwards compatibility provide the old entrypoints
18620 if symbol versioning.
18621 * config/posix/lock.c: Rewrite to make locks task owned,
18622 for backwards compatibility provide the old entrypoints
18623 if symbol versioning.
18624 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18625 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18626 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18627 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18628 (sys_futex0): Return error code.
18629 (futex_wake, futex_wait): If ENOSYS was returned, clear
18630 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18631 (cpu_relax, atomic_write_barrier): New static inlines.
18632 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18633 (futex_wake, futex_wait): If ENOSYS was returned, clear
18634 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18635 (cpu_relax, atomic_write_barrier): New static inlines.
18636 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18637 (sys_futex0): Return error code.
18638 (futex_wake, futex_wait): If ENOSYS was returned, clear
18639 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18640 (cpu_relax, atomic_write_barrier): New static inlines.
18641 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18642 (sys_futex0): Return error code.
18643 (futex_wake, futex_wait): If ENOSYS was returned, clear
18644 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18645 (cpu_relax, atomic_write_barrier): New static inlines.
18646 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18647 (sys_futex0): Return error code.
18648 (futex_wake, futex_wait): If ENOSYS was returned, clear
18649 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18650 (cpu_relax, atomic_write_barrier): New static inlines.
18651 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18652 (sys_futex0): Return error code.
18653 (futex_wake, futex_wait): If ENOSYS was returned, clear
18654 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18655 (cpu_relax, atomic_write_barrier): New static inlines.
18656 * config/linux/sem.c: Include wait.h instead of libgomp.h and
18658 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18659 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18660 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18662 (omp_nest_lock_t): Change owner into void *, add lock field.
18663 * config/posix95/omp-lock.h: Include semaphore.h.
18664 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18665 (omp_lock_t): Use sem_t instead of mutex if semaphores
18667 (omp_nest_lock_t): Likewise. Change owner to void *.
18668 * config/posix/omp-lock.h: Include semaphore.h.
18669 (omp_lock_25_t, omp_nest_lock_25_t): New types.
18670 (omp_lock_t): Use sem_t instead of mutex if semaphores
18672 (omp_nest_lock_t): Likewise. Add owner field.
18674 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18676 * testsuite/libgomp.c/collapse-1.c: New test.
18677 * testsuite/libgomp.c/collapse-2.c: New test.
18678 * testsuite/libgomp.c/collapse-3.c: New test.
18679 * testsuite/libgomp.c/icv-1.c: New test.
18680 * testsuite/libgomp.c/icv-2.c: New test.
18681 * testsuite/libgomp.c/lib-2.c: New test.
18682 * testsuite/libgomp.c/lock-1.c: New test.
18683 * testsuite/libgomp.c/lock-2.c: New test.
18684 * testsuite/libgomp.c/lock-3.c: New test.
18685 * testsuite/libgomp.c/loop-4.c: New test.
18686 * testsuite/libgomp.c/loop-5.c: New test.
18687 * testsuite/libgomp.c/loop-6.c: New test.
18688 * testsuite/libgomp.c/loop-7.c: New test.
18689 * testsuite/libgomp.c/loop-8.c: New test.
18690 * testsuite/libgomp.c/loop-9.c: New test.
18691 * testsuite/libgomp.c/nested-3.c: New test.
18692 * testsuite/libgomp.c/nestedfn-6.c: New test.
18693 * testsuite/libgomp.c/sort-1.c: New test.
18694 * testsuite/libgomp.c/task-1.c: New test.
18695 * testsuite/libgomp.c/task-2.c: New test.
18696 * testsuite/libgomp.c/task-3.c: New test.
18697 * testsuite/libgomp.c/task-4.c: New test.
18698 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18699 to C++ testsuite default compiler options.
18700 * testsuite/libgomp.c++/collapse-1.C: New test.
18701 * testsuite/libgomp.c++/collapse-2.C: New test.
18702 * testsuite/libgomp.c++/ctor-10.C: New test.
18703 * testsuite/libgomp.c++/for-1.C: New test.
18704 * testsuite/libgomp.c++/for-2.C: New test.
18705 * testsuite/libgomp.c++/for-3.C: New test.
18706 * testsuite/libgomp.c++/for-4.C: New test.
18707 * testsuite/libgomp.c++/for-5.C: New test.
18708 * testsuite/libgomp.c++/loop-8.C: New test.
18709 * testsuite/libgomp.c++/loop-9.C: New test.
18710 * testsuite/libgomp.c++/loop-10.C: New test.
18711 * testsuite/libgomp.c++/task-1.C: New test.
18712 * testsuite/libgomp.c++/task-2.C: New test.
18713 * testsuite/libgomp.c++/task-3.C: New test.
18714 * testsuite/libgomp.c++/task-4.C: New test.
18715 * testsuite/libgomp.c++/task-5.C: New test.
18716 * testsuite/libgomp.c++/task-6.C: New test.
18717 * testsuite/libgomp.fortran/allocatable1.f90: New test.
18718 * testsuite/libgomp.fortran/allocatable2.f90: New test.
18719 * testsuite/libgomp.fortran/allocatable3.f90: New test.
18720 * testsuite/libgomp.fortran/allocatable4.f90: New test.
18721 * testsuite/libgomp.fortran/collapse1.f90: New test.
18722 * testsuite/libgomp.fortran/collapse2.f90: New test.
18723 * testsuite/libgomp.fortran/collapse3.f90: New test.
18724 * testsuite/libgomp.fortran/collapse4.f90: New test.
18725 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18726 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18727 * testsuite/libgomp.fortran/lib4.f90: New test.
18728 * testsuite/libgomp.fortran/lock-1.f90: New test.
18729 * testsuite/libgomp.fortran/lock-2.f90: New test.
18730 * testsuite/libgomp.fortran/nested1.f90: New test.
18731 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18732 * testsuite/libgomp.fortran/strassen.f90: New test.
18733 * testsuite/libgomp.fortran/tabs1.f90: New test.
18734 * testsuite/libgomp.fortran/tabs2.f: New test.
18735 * testsuite/libgomp.fortran/task1.f90: New test.
18736 * testsuite/libgomp.fortran/task2.f90: New test.
18737 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18738 * testsuite/libgomp.fortran/vla5.f90: Likewise.
18739 * testsuite/libgomp.c/pr26943-2.c: Likewise.
18740 * testsuite/libgomp.c/pr26943-3.c: Likewise.
18741 * testsuite/libgomp.c/pr26943-4.c: Likewise.
18743 2008-05-23 Jakub Jelinek <jakub@redhat.com>
18746 * testsuite/libgomp.c++/ctor-11.C: New test.
18747 * testsuite/libgomp.c++/ctor-12.C: New test.
18749 2008-05-15 Janis Johnson <janis187@us.ibm.com>
18751 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18753 2008-05-07 Jakub Jelinek <jakub@redhat.com>
18755 PR middle-end/36106
18756 * testsuite/libgomp.c/atomic-5.c: New test.
18757 * testsuite/libgomp.c/atomic-6.c: New test.
18758 * testsuite/libgomp.c/autopar-1.c: New test.
18760 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18762 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18763 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18764 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18765 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18766 * configure: Regenerate.
18767 * Makefile.in, testsuite/Makefile.in: Likewise.
18769 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
18772 * aclocal.m4: Regenerate.
18773 * configure: Regenerate.
18775 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18777 PR middle-end/35611
18778 * testsuite/libgomp.c/atomic-4.c: New test.
18781 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18782 (gomp_iter_guided_next): Likewise.
18783 * testsuite/libgomp.c/pr35625.c: New test.
18785 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18787 * aclocal.m4: Regenerate.
18788 * configure: Likewise.
18789 * Makefile.in: Likewise.
18790 * testsuite/Makefile.in: Likewise.
18792 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18794 PR middle-end/35185
18795 * testsuite/libgomp.c++/pr35185.C: New test.
18797 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18799 PR middle-end/35549
18800 * testsuite/libgomp.c/pr35549.c: New test.
18802 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18804 * testsuite/libgomp.c/atomic-3.c: New test.
18806 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18809 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18810 .F08 file suffixes.
18812 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
18815 * configure.ac: Add ACX_HEADER_STRING.
18816 * env.c: Include strings.h.
18817 * aclocal.m4: Regenerate.
18818 * config.h.in: Regenerate.
18819 * configure: Regenerate.
18820 * Makefile.in: Regenerate.
18821 * testsuite/Makefile.in: Regenerate.
18823 2008-02-15 Jakub Jelinek <jakub@redhat.com>
18825 PR middle-end/35196
18826 * testsuite/libgomp.c/pr35196.c: New test.
18828 PR middle-end/35130
18829 * testsuite/libgomp.fortran/pr35130.f90: New test.
18830 * testsuite/libgomp.c/pr35130.c: New test.
18832 2008-01-25 Jakub Jelinek <jakub@redhat.com>
18834 PR middle-end/33880
18835 * testsuite/libgomp.c/pr33880.c: New test.
18836 * testsuite/libgomp.fortran/pr33880.f90: New test.
18838 2008-01-24 David Edelsohn <edelsohn@gnu.org>
18840 * configure: Regenerate.
18842 2008-01-08 Jakub Jelinek <jakub@redhat.com>
18844 * configure.ac: Move futex checking into ../config/futex.m4.
18845 * configure: Rebuilt.
18846 * aclocal.m4: Rebuilt.
18847 * Makefile.in: Rebuilt.
18849 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18850 2007-10-15 ../config/tls.m4 change.
18852 2007-12-19 Jakub Jelinek <jakub@redhat.com>
18855 * testsuite/libgomp.c/pr34513.c: New test.
18856 * testsuite/libgomp.c++/pr34513.C: New test.
18858 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
18861 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18863 2007-12-04 Jakub Jelinek <jakub@redhat.com>
18865 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
18867 2007-12-03 Jakub Jelinek <jakub@redhat.com>
18869 * testsuite/libgomp.c/private-1.c: New test.
18871 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
18872 Paolo Bonzini <bonzini@gnu.org>
18874 * Makefile.am: Use space as vpath separator. Use 'vpath %'
18875 instead of 'VPATH ='.
18876 * Makefile.in: Regenerate.
18878 2007-11-23 Matthias Klose <doko@ubuntu.com>
18880 * configure.ac: Adjust makeinfo version check.
18881 * configure: Regenerate.
18883 2007-11-10 Jakub Jelinek <jakub@redhat.com>
18886 * testsuite/libgomp.fortran/pr34020.f90: New test.
18888 2007-11-06 Jakub Jelinek <jakub@redhat.com>
18891 * testsuite/libgomp.c++/atomic-1.C: New test.
18893 2007-10-25 Jakub Jelinek <jakub@redhat.com>
18896 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18897 Make x and y integers rather than (implicit) reals. Add private (j)
18898 clause to the last omp parallel.
18900 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
18902 * configure: Regenerate following changes to ../config/tls.m4.
18904 2007-09-28 Jakub Jelinek <jakub@redhat.com>
18906 * testsuite/libgomp.fortran/stack.f90: New test.
18908 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
18910 * config/mingw32/proc.c: New file.
18912 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
18914 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18915 (main): Use __get_cpuid to get i386 target fetaures.
18916 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18917 (main): Use __get_cpuid to get x86_64 target fetaures.
18919 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
18922 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18923 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18925 2007-07-12 Jakub Jelinek <jakub@redhat.com>
18928 * testsuite/libgomp.fortran/pr32550.f90: New test.
18929 * testsuite/libgomp.fortran/crayptr2.f90: New test.
18931 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
18933 * aclocal.m4: Regenerated.
18935 2007-07-05 Tobias Burnus <burnus@net-b.de>
18938 * testsuite/libgomp.fortran/pr32359.f90: New.
18940 2007-07-02 Jakub Jelinek <jakub@redhat.com>
18943 * sections.c (GOMP_parallel_sections_start): Only decrease
18944 number of threads to COUNT if dyn_var is true.
18945 * testsuite/libgomp.c/pr32468.c: New test.
18947 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18950 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18952 2007-06-21 Jakub Jelinek <jakub@redhat.com>
18954 PR middle-end/32362
18955 * testsuite/libgomp.c/pr32362-1.c: New test.
18956 * testsuite/libgomp.c/pr32362-2.c: New test.
18957 * testsuite/libgomp.c/pr32362-3.c: New test.
18959 2007-06-07 Jakub Jelinek <jakub@redhat.com>
18961 * team.c (gomp_team_start): Fix setting up thread_attr
18964 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
18966 * configure: Regenerate.
18968 2007-05-23 Steve Ellcey <sje@cup.hp.com>
18970 * Makefile.in: Regenerate.
18971 * configure: Regenerate.
18972 * aclocal.m4: Regenerate.
18973 * testsuite/Makefile.in: Regenerate.
18975 2007-05-04 Jakub Jelinek <jakub@redhat.com>
18977 * config/linux/proc.c: New file.
18980 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18982 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
18984 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18986 2007-04-16 Matthias Klose <doko@debian.org>
18988 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18989 flags if not building with -m64.
18990 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18991 flag for i?86-*-* targets, if current target matches -m64.
18993 2007-04-14 Steve Ellcey <sje@cup.hp.com>
18995 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18996 * Makefile.in: Regenerate.
18998 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19001 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19003 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19005 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19007 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19009 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19010 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19011 (parse_affinity): New function.
19012 (initialize_env): Call it and gomp_init_affinity.
19013 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19014 create new pthread_attr_t and call gomp_init_thread_affinity
19015 on it for each thread before passing the attribute to pthread_create.
19016 * config/linux/affinity.c: New file.
19017 * config/posix/affinity.c: New file.
19018 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19019 * configure: Rebuilt.
19020 * config.h.in: Rebuilt.
19021 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19022 * Makefile.in: Rebuilt.
19024 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19026 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19028 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19029 and use it if found.
19031 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19033 * testsuite/config/default.exp: New file.
19034 * testsuite/lib/libgomp.exp: New file.
19035 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19036 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19037 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19038 (libgomp_load): Remove.
19039 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19040 always_ld_library_path, not ld_library_path. Set additional_flags
19041 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19042 (target_compile): Do not call libgomp_init. Append lang_library_path
19043 and lang_link_flags to options.
19044 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19045 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19047 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19048 always_ld_library_path. Set LD_LIBRARY_PATH here.
19049 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19050 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19051 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19053 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19054 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19055 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19056 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19057 * testsuite/libgomp.c/atomic-10.c: Ditto.
19059 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19061 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19062 dg-final cleanup-modules line.
19063 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19064 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19065 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19066 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19067 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19068 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19069 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19071 2007-03-18 Andreas Schwab <schwab@suse.de>
19073 * acinclude.m4: Adjust regular expression for ld version
19075 * configure: Regenerate.
19077 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19079 * Makefile.am: Add install-pdf target as copied from
19080 automake v1.10 rules.
19081 * Makefile.in: Regenerate
19083 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19086 * configure: Regenerate.
19089 * testsuite/libgomp.c++/pr30703.C: New test.
19091 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19094 2006-07-05 Eric Christopher <echristo@apple.com>
19095 * configure.ac: Depend addition of -pthread on host OS.
19096 * configure: Regenerate.
19098 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19100 * libgomp.texi: Fix spacing after abbreviations.
19102 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19105 * configure.ac: Add check for makeinfo
19106 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19107 if an appropriate version of makeinfo is found.
19108 * aclocal.m4: Regenerated.
19109 * configure: Regenerated.
19110 * Makefile.in: Regenerated.
19111 * testsuite/Makefile.in: Regenerated.
19113 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19116 * libgomp.texi: More about implementation-dependent settings.
19118 2007-01-26 Tobias Burnus <burnus@net-b.de>
19120 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19122 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19124 PR middle-end/30494
19125 * testsuite/libgomp.c/pr30494.c: New test.
19127 2007-01-15 Tom Tromey <tromey@redhat.com>
19129 * configure: Rebuilt.
19130 * configure.ac: Fixed comment.
19132 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19134 * libgomp.texi: Document implementation specific default values of
19135 environment variables.
19137 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19140 * libgomp.texi: New file.
19141 * configure.ac: Add --enable-generated-files-in-srcdir option.
19142 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19144 * Makefile.in: Regenerated.
19145 * config.h.in: Regenerated.
19146 * testsuite/Makefile.in: Regenerated.
19149 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19152 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19154 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19156 * configure: Regenerate.
19158 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19161 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19162 start if there shouldn't be any loop iterations.
19163 (gomp_loop_ordered_static_start): Remove start == end test.
19164 * testsuite/libgomp.c/pr29947-1.c: New test.
19165 * testsuite/libgomp.c/pr29947-2.c: New test.
19167 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19169 * configure.tgt: Force initial-exec TLS model on Linux only.
19171 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19173 * configure: Regenerated.
19175 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19177 * env.c (parse_schedule): Reject out of range values.
19178 (parse_unsigned_long): Reject out of range, negative or zero values.
19180 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19183 * testsuite/libgomp.fortran/pr29629.f90: New test.
19185 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19188 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19189 * config/posix95: New directory.
19190 * config/posix95/omp-lock.h: New file.
19191 * config/posix95/lock.c: Likewise.
19193 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19195 * aclocal.m4: Regenerate.
19196 * configure: Regenerate.
19198 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19200 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19203 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19205 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19207 * configure: Regenerate.
19208 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19210 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19212 PR middle-end/25261
19213 PR middle-end/28790
19214 * testsuite/libgomp.c/nestedfn-4.c: New test.
19215 * testsuite/libgomp.c/nestedfn-5.c: New test.
19216 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19219 * testsuite/libgomp.fortran/condinc1.f: New test.
19220 * testsuite/libgomp.fortran/condinc2.f: New test.
19221 * testsuite/libgomp.fortran/condinc3.f90: New test.
19222 * testsuite/libgomp.fortran/condinc4.f90: New test.
19223 * testsuite/libgomp.fortran/condinc1.inc: New file.
19225 2006-09-18 Tom Tromey <tromey@redhat.com>
19227 * configure: Rebuilt.
19229 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19232 PR preprocessor/14634
19233 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19235 * configure: Regenerate.
19237 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19239 * testsuite/libgomp.fortran/reduction3.f90: Change
19240 -2147483648 to -huge(i)-1 to avoid overflow.
19241 * testsuite/libgomp.fortran/reduction4.f90: Change
19242 Z'ffffffff' to not(0) to avoid overflow.
19244 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19247 * Makefile.am (libsubincludedir): New.
19248 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19249 * Makefile.in: Regenerate.
19251 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19254 * env.c: Include ctype.h.
19255 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19256 leading and/or trailing whitespace and compare strings case
19259 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19262 * testsuite/libgomp.fortran/pr28390.f: New test.
19264 2006-07-05 Eric Christopher <echristo@apple.com>
19266 * configure.ac: Depend addition of -pthread on host OS.
19267 * configure: Regenerate.
19269 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19271 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19272 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19275 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19279 * configure.ac: If neither --enable-linux-futex nor
19280 --disable-linux-futex is passed, determine the default by checking
19281 for compiling and/or running against NPTL. With --enable-linux-futex,
19282 check if SYS_gettid and SYS_futex are defined.
19283 * configure: Rebuilt.
19285 2006-06-14 Richard Henderson <rth@redhat.com>
19288 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19289 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19291 2006-06-09 Richard Henderson <rth@redhat.com>
19293 * env.c (gomp_nthreads_var): Change to unsigned long.
19294 (gomp_run_sched_chunk): Likewise.
19295 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19296 (initialize_env): Initialize gomp_thread_attr.
19297 * libgomp.h (gomp_nthreads_var): Update decl.
19298 (gomp_run_sched_chunk): Likewise.
19299 (gomp_thread_attr): Declare.
19300 * team.c (gomp_thread_attr): Export.
19301 (initialize_team): Don't initialize it.
19303 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19306 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19307 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19309 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19311 * config/mingw32/time.c: New file.
19312 * configure.tgt: Use it.
19314 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19316 * Makefile.am: Add install-html target. Add install-html to .PHONY
19317 * Makefile.in: Regenerate.
19319 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19322 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19323 * testsuite/libgomp.c/critical-1.c: Likewise.
19324 * testsuite/libgomp.c/loop-1.c: Likewise.
19325 * testsuite/libgomp.c/loop-2.c: Likewise.
19326 * testsuite/libgomp.c/single-1.c: Likewise.
19327 * testsuite/libgomp.c/ordered-1.c: Likewise.
19328 * testsuite/libgomp.c/ordered-2.c: Likewise.
19330 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19332 PR middle-end/27416
19333 * libgomp.fortran/pr27416-1.f90: New test.
19335 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19338 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19339 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19341 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19344 * testsuite/libgomp.c/pr26943-1.c: New test.
19345 * testsuite/libgomp.c/pr26943-2.c: New test.
19346 * testsuite/libgomp.c/pr26943-3.c: New test.
19347 * testsuite/libgomp.c/pr26943-4.c: New test.
19348 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19349 * testsuite/libgomp.c++/pr26943.C: New test.
19351 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19353 PR middle-end/27337
19354 * testsuite/libgomp.c++/pr27337.C: New test.
19356 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19359 * testsuite/libgomp.c/pr26171.c: New test.
19361 2006-04-25 Richard Henderson <rth@redhat.com>
19364 * configure.ac: Use GCC_CHECK_TLS.
19365 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19366 * Makefile.in, aclocal.m4, configure: Regenerate.
19368 2006-04-10 Matthias Klose <doko@debian.org>
19370 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19371 directory names containing underscores.
19373 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19376 * testsuite/libgomp.c++/pr26691.C: New test.
19378 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19380 * testsuite/libgomp.fortran/retval2.f90: New test.
19382 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19384 * testsuite/libgomp.c++: New directory.
19386 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19388 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19389 * config/posix/sem.c: Implement the above.
19391 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19393 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19394 define HAVE_BROKEN_POSIX_SEMAPHORES.
19395 * configure: Rebuilt.
19396 * config.h.in: Rebuilt.
19398 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19401 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19402 for the other pthread check.
19403 * configure: Regenerate.
19404 * config.h.in: Regenerate.
19406 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19410 * Makefile.am (fincludedir): New variable.
19411 (nodist_include_HEADERS): Remove Fortran files.
19412 (nodist_finclude_HEADERS): New variable.
19413 * Makefile.in: Regenerated.
19415 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19417 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19418 Remove tests for returning assumed character length arrays.
19420 2006-02-12 Roger Sayle <roger@eyesopen.com>
19421 John David Anglin <dave@hiauly1.hia.nrc.ca>
19424 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19426 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19428 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19430 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19432 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19433 part of LD_LIBRARY_PATH manually.
19435 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19438 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19441 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19444 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19445 * configure.ac (PERL): Don't set.
19446 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19447 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19448 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19449 * omp.h.in: Wrap the new configure substitutions with @ characters.
19450 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19451 * aclocal.m4, configure, Makefile.in: Regenerate.
19452 * mkomp_h.pl: Delete.
19454 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19457 * configure.ac: Use GCC_HEADER_STDINT.
19458 * libgomp.h: Include gstdint.h.
19459 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19460 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19462 2006-01-24 Richard Henderson <rth@redhat.com>
19465 * configure.ac: Add AM_MAINTAINER_MODE.
19466 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19468 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19470 * Makefile.in: Regenerate.
19471 * testsuite/Makefile.in: Regenerate.
19472 * aclocal.m4: Regenerate.
19474 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19476 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19478 * configure.ac: Add check for loadavg.h.
19479 (link_gomp): Adjust comment.
19480 * configure: Regenerate.
19481 * config.h.in: Regenerate.
19483 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19486 * configure.ac: Remove check for alloca.h.
19487 * configure: Regenerate.
19488 * config.h.in: Regenerate.
19489 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19490 * team.c: Remove use of alloca.h.
19491 Call gomp_alloca instead of alloca.
19493 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19496 * team.c: Add include of alloca.h.
19497 * configure.ac: Add check for alloca.h.
19498 * configure: Regenerate.
19499 * config.h.in: Regenerate.
19501 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19504 * testsuite/libgomp.fortran/pr25219.f90: New test.
19506 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19508 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19509 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19510 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19511 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19512 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19513 testsuite/libgomp.fortran/threadprivate1.f90,
19514 testsuite/libgomp.fortran/threadprivate2.f90,
19515 testsuite/libgomp.fortran/threadprivate3.f90,
19516 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19517 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19518 testsuite/libgomp.fortran/omp_parse3.f90: Change required
19519 effective-target to TLS runtime.
19521 * testsuite/libgomp.fortran/pr25162.f: Require
19522 effective-target TLS runtime.
19524 2005-12-01 Jakub Jelinek <jakub@redhat.com>
19526 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19527 * testsuite/libgomp.c/nestedfn-3.c: New test.
19529 2005-11-30 Jakub Jelinek <jakub@redhat.com>
19532 * testsuite/libgomp.fortran/pr25162.f: New test.
19534 2005-11-28 Jakub Jelinek <jakub@redhat.com>
19536 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19537 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19539 2005-11-25 Jakub Jelinek <jakub@redhat.com>
19541 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19542 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19543 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19544 single.c, team.c, work.c, config/linux/alpha/futex.h,
19545 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19546 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19547 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19548 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19549 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19550 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19551 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19554 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19556 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19557 to nodist_noinst_HEADERS.
19558 * Makefile.in: Rebuilt.
19560 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19561 add integer count field.
19562 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19563 omp_nest_lock_t type change.
19564 (omp_init_nest_lock): Likewise. Initialize count to 0.
19565 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19567 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19569 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19570 Increment count if successful and return the new nesting level.
19571 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19572 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19573 * testsuite/libgomp.c/lib-1.c: New test.
19574 * testsuite/libgomp.fortran/lib1.f90: New test.
19575 * testsuite/libgomp.fortran/lib2.f: New test.
19576 * testsuite/libgomp.fortran/lib3.f: New test.
19578 2005-11-17 Richard Henderson <rth@redhat.com>
19581 * Makefile.am (nodist_toolexeclib_HEADERS): New.
19582 * configure.ac (link_gomp): New. Substitute it.
19583 (AC_CONFIG_FILES): Add libgomp.spec.
19584 * libgomp.spec.in: New file.
19585 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19586 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19588 2005-11-18 Jakub Jelinek <jakub@redhat.com>
19590 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19591 reduction(-:var) behaving the same as reduction(+:var).
19592 * testsuite/libgomp.c/reduction-4.c: New test.
19594 2005-11-15 Uros Bizjak <uros@kss-loka.si>
19596 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19597 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19598 testsuite/libgomp.c/copyin-3.c,
19599 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19600 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19601 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19602 testsuite/libgomp.c++/pr24455.C,
19603 testsuite/libgomp.fortran/threadprivate1.f90,
19604 testsuite/libgomp.fortran/threadprivate2.f90,
19605 testsuite/libgomp.fortran/threadprivate3.f90,
19606 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19607 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19608 testsuite/libgomp.fortran/omp_parse3.f90: Require
19609 effective-target TLS.
19611 2005-11-14 Diego Novillo <dnovillo@redhat.com>
19615 2005-11-13 Jakub Jelinek <jakub@redhat.com>
19618 * team.c (initialize_team): Pass NULL rather than free as
19619 pthread_key_create destructor. Initialize thread specific data
19620 pointer in initial thread to a static local variable rather than
19623 2005-11-11 Uros Bizjak <uros@kss-loka.si>
19625 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19626 its location to ld_library_path.
19628 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19630 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19632 2005-11-10 Diego Novillo <dnovillo@redhat.com>
19634 * testsuite/libgomp.c: Rename from libgomp.dg.
19636 2005-11-09 Diego Novillo <dnovillo@redhat.com>
19638 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19639 threadprivate variable 'i'.
19641 2005-11-09 Jakub Jelinek <jakub@redhat.com>
19643 * config/linux/s390/futex.h: New file.
19644 * configure.tgt: Use it.
19646 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19647 before the parallel.
19649 2005-11-08 Jakub Jelinek <jakub@redhat.com>
19652 * testsuite/libgomp.c++/master-1.C: New test.
19654 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19656 * testsuite/libgomp.dg/copyin-3.c: New test.
19658 2005-11-07 Jakub Jelinek <jakub@redhat.com>
19660 * testsuite/libgomp.fortran/retval1.f90: New test.
19661 * testsuite/libgomp.fortran/vla7.f90: New test.
19663 2005-11-06 Jakub Jelinek <jakub@redhat.com>
19665 * testsuite/libgomp.fortran/vla2.f90: New test.
19666 * testsuite/libgomp.fortran/vla3.f90: New test.
19667 * testsuite/libgomp.fortran/vla4.f90: New test.
19668 * testsuite/libgomp.fortran/vla5.f90: New test.
19669 * testsuite/libgomp.fortran/vla6.f90: New test.
19671 2005-11-01 Jakub Jelinek <jakub@redhat.com>
19673 * config/linux/sparc/futex.h: New file.
19674 * configure.tgt: Use it.
19675 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19677 * critical.c: Include stdlib.h.
19678 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19679 ignoring return value.
19680 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19681 LIBGOMP_CHECK_SYNC_BUILTINS check.
19682 * configure: Rebuilt.
19684 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19686 * testsuite/libgomp.fortran/vla1.f90: New test.
19688 2005-10-31 Richard Henderson <rth@redhat.com>
19690 * testsuite/libgomp.fortran/character2.f90: Fix race condition
19691 setting 's' in different threads.
19693 2005-10-31 Jakub Jelinek <jakub@redhat.com>
19695 * libgomp.h (attribute_hidden, ialias): Define.
19696 * config/posix/proc.c (omp_get_num_procs): Add ialias.
19697 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19698 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19699 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19700 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19701 omp_test_lock, omp_test_nest_lock): Likewise.
19702 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19703 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19704 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19705 omp_test_lock, omp_test_nest_lock): Likewise.
19706 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19707 omp_get_dynamic, omp_get_nested): Likewise.
19708 * parallel.c (omp_get_num_threads, omp_get_max_threads,
19709 omp_get_thread_num, omp_in_parallel): Likewise.
19710 * fortran.c (ialias_redirect): Define.
19711 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19712 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19713 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19714 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19715 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19716 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19717 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19718 omp_get_wtime): Add ialias_redirect.
19720 2005-10-30 Jakub Jelinek <jakub@redhat.com>
19722 * fortran.c: Include stdlib.h.
19724 2005-10-29 Jakub Jelinek <jakub@redhat.com>
19726 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19727 * Makefile.in: Regenerated.
19729 2005-10-28 Jakub Jelinek <jakub@redhat.com>
19731 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19732 * libgomp_f.h.in (omp_check_defines): New function.
19733 * env.c: Include libgomp_f.h.
19734 (initialize_env): Call omp_check_defines.
19736 * testsuite/libgomp.dg/copyin-2.c: New test.
19737 * testsuite/libgomp.c++/copyin-2.C: New test.
19738 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19740 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19741 * testsuite/libgomp.fortran/sharing2.f90: New test.
19743 * testsuite/libgomp.dg/copyin-1.c: New test.
19744 * testsuite/libgomp.c++/copyin-1.C: New test.
19746 2005-10-26 Jakub Jelinek <jakub@redhat.com>
19748 * testsuite/libgomp.fortran/crayptr1.f90: New test.
19750 * testsuite/libgomp.fortran/workshare1.f90: New test.
19752 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19754 * libgomp.fortran/sharing1.f90: New test.
19756 2005-10-24 Jakub Jelinek <jakub@redhat.com>
19759 * testsuite/libgomp.c++/loop-7.C: New test.
19761 * testsuite/libgomp.dg/nestedfn-2.c: New test.
19763 * testsuite/libgomp.dg/nestedfn-1.c: New test.
19764 * testsuite/libgomp.fortran/reduction6.f90: New test.
19765 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19767 2005-10-23 Richard Henderson <rth@redhat.com>
19769 * testsuite/libgomp.c++/ctor-1.C: New.
19770 * testsuite/libgomp.c++/ctor-2.C: New.
19771 * testsuite/libgomp.c++/ctor-3.C: New.
19772 * testsuite/libgomp.c++/ctor-4.C: New.
19773 * testsuite/libgomp.c++/ctor-5.C: New.
19774 * testsuite/libgomp.c++/ctor-6.C: New.
19775 * testsuite/libgomp.c++/ctor-7.C: New.
19776 * testsuite/libgomp.c++/ctor-8.C: New.
19777 * testsuite/libgomp.c++/ctor-9.C: New.
19779 2005-10-21 Diego Novillo <dnovillo@redhat.com>
19782 * testsuite/libgomp.c++/pr24455-1.C: New test.
19783 * testsuite/libgomp.c++/pr24455.C: New test.
19784 * testsuite/libgomp.dg/pr24455-1.c: New test.
19785 * testsuite/libgomp.dg/pr24455.c: New test.
19787 2005-10-20 Richard Henderson <rth@redhat.com>
19789 * testsuite/libgomp.c++/loop-6.C: New.
19790 * testsuite/libgomp.dg/loop-3.c: New.
19792 2005-10-20 Jakub Jelinek <jakub@redhat.com>
19794 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19795 explicitly private.
19796 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19799 2005-10-19 Diego Novillo <dnovillo@redhat.com>
19801 * testsuite/libgomp.fortran/jacobi.f: New test.
19803 2005-10-19 Richard Henderson <rth@redhat.com>
19805 * configure.tgt (i?86-linux): Default to with_arch instead of
19806 CFLAGS. Add -mtune to match target_cpu.
19807 (x86_64-linux): Tune to i686.
19809 * fortran.c (omp_test_nest_lock_): Fix typo.
19811 2005-10-19 Jakub Jelinek <jakub@redhat.com>
19813 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19814 gomp_ordered_sync): Do nothing if team->nthreads == 1.
19815 * testsuite/libgomp.dg/ordered-3.c: New test.
19817 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19818 Remove volatile keyword.
19820 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19821 in COMMON block to avoid warnings on 64-bit targets.
19823 2005-10-18 Diego Novillo <dnovillo@redhat.com>
19825 * testsuite/libgomp.dg/shared-3.c: New test.
19827 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19829 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19830 * testsuite/libgomp.fortran/reduction5.f90: New test.
19832 2005-10-18 Jakub Jelinek <jakub@redhat.com>
19834 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19836 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
19837 flush loop now that __sync_synchronize has proper memory barrier.
19838 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19839 Add -ffixed-form to dg-options.
19841 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19843 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19844 from subdirectories.
19845 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19846 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19847 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19848 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19849 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19850 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19851 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19852 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19853 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19854 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19855 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19856 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19857 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19858 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19859 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19860 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19861 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19862 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19863 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19864 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19865 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19866 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19867 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19868 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19869 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19871 2005-10-17 Jakub Jelinek <jakub@redhat.com>
19873 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19874 lang_library_path exists. Use find instead of glob to gather tests.
19875 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19877 2005-10-17 Diego Novillo <dnovillo@redhat.com>
19879 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19880 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19881 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19882 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19883 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19884 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19885 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19886 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19887 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19888 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19889 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19890 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19891 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19893 2005-10-15 Jakub Jelinek <jakub@redhat.com>
19895 * testsuite/libgomp.dg/vla-1.c: New test.
19897 * testsuite/libgomp.fortran/reference2.f90: New test.
19899 * testsuite/libgomp.fortran/character2.f90: Remove explicit
19900 declaration of omp_get_thread_num.
19901 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
19904 * testsuite/libgomp.fortran/reduction1.f90: New test.
19905 * testsuite/libgomp.fortran/reduction2.f90: New test.
19906 * testsuite/libgomp.fortran/reduction3.f90: New test.
19907 * testsuite/libgomp.fortran/reduction4.f90: New test.
19909 2005-10-13 Richard Henderson <rth@redhat.com>
19911 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19912 * Makefile.in: Regenerate.
19913 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19914 * libgomp.h: Include bar.h.
19915 (struct gomp_barrier): Remove.
19916 (struct gomp_team): Add barrier. Replace master_barrier with
19917 master_release. Replace threads with ordered_release.
19918 (struct gomp_thread): Replace barrier with release.
19919 * ordered.c (gomp_ordered_first): Update for ordered_release change.
19920 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19921 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19922 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19923 (GOMP_single_copy_end): Likewise.
19924 * team.c (gomp_threads_dock): New.
19925 (gomp_barrier_init, gomp_barrier_destroy): Remove.
19926 (gomp_thread_start): Use gomp_barrier_wait.
19927 (new_team, free_team): Update for gomp_team changes.
19928 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19929 (gomp_team_end): Use gomp_barrier_wait.
19930 (initialize_team): Update for gomp_thread changes.
19931 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19932 (gomp_work_share_end_nowait): Use atomic ops when available.
19933 * config/linux/bar.c, config/linux/bar.h: New files.
19934 * config/posix/bar.c, config/posix/bar.h: New files.
19936 2005-10-13 Jakub Jelinek <jakub@redhat.com>
19938 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19939 * testsuite/libgomp.dg/single-2.c: New test.
19941 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19942 lang_link_flags): Unset, so that they aren't inherited from previously
19945 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19947 2005-10-12 Richard Henderson <rth@redhat.com>
19949 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19950 (libgomp_init): Use lang_test_file, lang_library_path, and
19951 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
19953 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19954 (lang_test_file, lang_link_flags): New.
19955 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19957 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19958 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19959 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19960 testsuite/libgomp.c++/parallel-1.C,
19961 testsuite/libgomp.c++/reduction-1.C,
19962 testsuite/libgomp.c++/reduction-2.C,
19963 testsuite/libgomp.c++/reduction-3.C,
19964 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19965 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19966 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19967 New files, largely cribbed from the C testsuite.
19969 2005-10-12 Jakub Jelinek <jakub@redhat.com>
19971 * testsuite/libgomp.fortran/character1.f90: New test.
19972 * testsuite/libgomp.fortran/character2.f90: New test.
19974 * testsuite/libgomp.dg/nested-1.c: New test.
19975 * testsuite/libgomp.dg/nested-2.c: New test.
19976 * testsuite/libgomp.fortran/do1.f90: New test.
19977 * testsuite/libgomp.fortran/do2.f90: New test.
19979 * testsuite/libgomp.fortran/reference1.f90: New test.
19981 2005-10-11 Jakub Jelinek <jakub@redhat.com>
19983 * testsuite/libgomp.dg/reduction-1.c: New test.
19984 * testsuite/libgomp.dg/reduction-2.c: New test.
19985 * testsuite/libgomp.dg/reduction-3.c: New test.
19987 2005-10-10 Jakub Jelinek <jakub@redhat.com>
19989 * testsuite/libgomp.dg/atomic-1.c: New test.
19990 * testsuite/libgomp.dg/atomic-2.c: New test.
19992 2005-10-09 Richard Henderson <rth@redhat.com>
19994 * critical.c (atomic_lock): New.
19995 (initialize_critical): Initialize it.
19996 (GOMP_atomic_start, GOMP_atomic_end): New.
19997 * libgomp.map: Export them.
19998 * libgomp_g.h: Declare them.
20000 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20002 2005-10-02 Richard Henderson <rth@redhat.com>
20004 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20005 to XCFLAGS instead of CFLAGS.
20007 2005-09-30 Richard Henderson <rth@redhat.com>
20009 * configure.ac: Determine whether -pthread or -lpthread is needed.
20010 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20011 * Makefile.in, configure: Rebuild.
20013 2005-09-28 Richard Henderson <rth@redhat.com>
20015 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20016 * testsuite/libgomp.dg/omp-single-3.c: New test.
20018 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20020 * testsuite/libgomp.dg/omp-single-2.c: New test.
20021 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20023 2005-09-27 Richard Henderson <rth@redhat.com>
20025 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20026 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20028 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20030 * testsuite/libgomp.dg/omp-loop03.c: New test.
20032 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20034 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20036 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20038 * testsuite/libgomp.dg/omp-single-1.c: New test.
20039 * testsuite/libgomp.dg/shared-1.c: Return 0.
20040 Add prototype for abort.
20041 * testsuite/libgomp.dg/shared-2.c: Likewise.
20043 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20045 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20048 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20050 * testsuite/libgomp.dg/shared-1.c: New test.
20051 * testsuite/libgomp.dg/shared-2.c: New test.
20053 2005-09-24 Richard Henderson <rth@redhat.com>
20055 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20057 2005-09-24 Richard Henderson <rth@redhat.com>
20059 * iter.c (gomp_iter_static_next): Round up when computing number
20060 of iterations. Don't bother distributing a remainder equally.
20062 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20063 Don't call srand. Zero b before testing.
20066 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20068 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20069 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20071 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20073 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20074 without !$omp end do, followed immediately by subroutine end.
20076 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20078 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20080 2005-09-22 Richard Henderson <rth@redhat.com>
20082 * critical.c (GOMP_critical_name_start): Change argument to void**.
20083 Reuse the pointer space if the mutex fits.
20084 (GOMP_critical_name_end): Likewise.
20085 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20086 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20087 (GOMP_critical_name_end): Likewise.
20088 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20089 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20091 2005-09-20 Richard Henderson <rth@redhat.com>
20093 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20094 (create_lock_lock): New.
20095 (initialize_critical): Initialize it.
20096 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20097 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20099 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20101 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20103 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20105 * testsuite/libgomp.dg/omp-loop01.c: New test.
20106 * testsuite/libgomp.dg/omp-loop02.c: New test.
20108 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20110 * configure.ac (AC_PROG_FC): Add.
20111 (USE_FORTRAN): New automake conditional.
20112 * configure: Rebuilt.
20113 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20114 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20115 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20116 Add rules to build them.
20117 * Makefile.in: Rebuilt.
20118 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20119 OMP_NEST_LOCK_KIND.
20120 * libgomp.map: Add Fortran wrappers.
20121 * libgomp_f.h.in: New file.
20122 * omp_lib.h.in: New file.
20123 * omp_lib.f90.in: New file.
20124 * fortran.c: New file.
20125 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20126 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20127 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20128 libgfortran has been built.
20129 * testsuite/libgomp.fortran/fortran.exp: New file.
20130 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20131 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20132 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20133 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20134 * testsuite/libgomp.fortran/omp_hello.f: New test.
20135 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20136 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20137 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20138 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20139 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20140 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20141 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20142 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20144 2005-08-30 Richard Henderson <rth@redhat.com>
20146 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20147 function for when aliases are not usable.
20148 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20149 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20150 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20151 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20152 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20153 GOMP_loop_ordered_guided_next): Likewise.
20154 * ordered.c (GOMP_ordered_start): Likewise.
20156 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20158 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20159 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20160 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20161 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20162 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20163 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20164 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20165 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20166 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20168 2005-07-07 Eric Christopher <echristo@redhat.com>
20169 Diego Novillo <dnovillo@redhat.com>
20171 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20172 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20174 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20175 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20176 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20177 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20178 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20179 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20180 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20182 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20184 * TOPLEVEL.patch: Remove.
20186 2005-05-16 Richard Henderson <rth@redhat.com>
20188 * configure.ac: Test for clock_gettime.
20189 * config.h.in, configure: Rebuild.
20190 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20191 (omp_get_wtime): Use clock_gettime if available.
20192 (omp_get_wtick): Use clock_getres if available.
20194 2005-05-11 Richard Henderson <rth@redhat.com>
20196 * config/linux/ia64/futex.h: New file.
20197 * configure.tgt: Use it.
20199 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20201 2005-05-07 Richard Henderson <rth@redhat.com>
20203 * config/linux/powerpc/futex.h: New file.
20204 * configure.tgt: Use it.
20206 * config/linux/i486/futex.h: Merge ...
20207 * config/linux/x86_64/futex.h: ... into ...
20208 * config/linux/x86/futex.h: ... here.
20209 * configure.tgt: Update to match.
20211 2005-05-06 Richard Henderson <rth@redhat.com>
20213 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20214 * config/linux/i486/futex.h: Likewise.
20215 * config/linux/x86_64/futex.h: Likewise.
20217 * config/linux/lock.c: New file.
20218 * config/linux/omp-lock.h: New file.
20220 * critical.c, env.h: Don't include omp.h
20221 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20222 * config/posix/time.c: Likewise.
20223 * config/posix/omp-lock.h: New file.
20224 * libgomp.h: Include omp-lock.h and omp.h.
20225 * Makefile.am (nodist_include_HEADERS): New.
20227 * configure.ac (PERL): New.
20228 * mkomp_h.pl: New file.
20229 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20231 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20233 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20234 build directory. Re-add -march=i486 hack.
20236 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20237 (libgomp_link_flags): Remove.
20238 (libgomp_initialized): Remove.
20239 (libgomp_init): Don't protect from reinitialization. Copy code
20240 from libstdc++ for getting the multilib set correctly.
20242 2005-05-05 Richard Henderson <rth@redhat.com>
20244 * config/linux/alpha/futex.h: New file.
20245 * configure.tgt (alpha*-*-linux*): Use it.
20247 * config/posix/mutex.c: New file.
20248 * config/posix/sem.c: Use libgomp.h.
20250 * configure.tgt (x86_64-linux): Also test CC for -m32.
20251 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20253 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20256 * Makefile.am (SUBDIRS): New.
20257 (libgomp_la_LDFLAGS): Add -lpthread.
20258 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20259 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20261 * libgomp_g.h: New file.
20262 * libgomp.h: Split out all public declarations to libgomp_g.h.
20263 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20264 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20265 * config/linux/sem.h: Likewise.
20266 * config/posix/sem.h: Likewise.
20268 * Makefile.am (AM_LDFLAGS): New.
20269 (libgomp_version_script): Split out from ...
20270 (libgomp_la_LDFLAGS): ... here.
20271 (libgomp_version_info): New.
20272 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20273 (LIBGOMP_ENABLE): New.
20274 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20275 (LIBGOMP_ENABLE_SYMVERS): New.
20276 * configure.ac (AC_INIT): Version 1.0.
20277 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20278 (enable-linux-futex): Likewise. Rename from enable-futex.
20279 (libtool_VERSION): New.
20280 (LIBGOMP_ENABLE_SYMVERS): Use it.
20281 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20282 * Makefile.in, aclocal.m4, configure: Rebuild.
20284 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20285 (gomp_mutex_unlock_slow): Fix typo.
20286 * config/linux/sem.c: Similarly.
20287 (gomp_sem_post_slow): Fix typo.
20288 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20289 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20290 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20292 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20293 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20294 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20295 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20296 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20297 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20298 LDFLAGS. Pull enable_futex check to top-level.
20299 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20300 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20302 First attempt at real configury.
20303 * Makefile, config.h: Remove file.
20304 * Makefile.am, Makefile.in: New file.
20305 * acinclude.m4 aclocal.m4: New file.
20306 * configure.ac, configure.tgt, configure: New file.
20308 * config/posix/lock.c: Rename from sys-lock.c.
20309 * config/posix/mutex.h: Rename from sys-mutex.h.
20310 * config/posix/sem.c: Rename from sys-sem.c.
20311 * config/posix/sem.h: Rename from sys-sem.h.
20312 * config/posix/proc.c: Rename from sys-proc.c.
20313 * config/posix/time.c: Rename from sys-proc.c.
20315 * config/linux/mutex.c: New file.
20316 * config/linux/mutex.h: New file.
20317 * config/linux/sem.c: New file.
20318 * config/linux/sem.h: New file.
20319 * config/linux/i486/futex.h: New file.
20320 * config/linux/x86_64/futex.h: New file.
20322 2005-05-04 Richard Henderson <rth@redhat.com>
20324 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20325 * libgomp.h: Declare them.
20326 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20327 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20329 2005-05-04 Richard Henderson <rth@redhat.com>
20331 * libgomp-1 code drop
20333 2005-05-04 Richard Henderson <rth@redhat.com>
20335 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20336 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20337 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20338 (gomp_iter_static_next): Update.
20339 (gomp_ordered_static_next): Update.
20340 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20341 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20342 totally empty range.
20343 (gomp_loop_ordered_static_next): Refine test for calling
20344 gomp_ordered_static_next.
20345 * testsuite/ordered-1.c: Add case for more threads than iterations.
20347 * iter.c (gomp_iter_runtime_next_locked): Remove.
20348 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20349 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20350 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20351 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20352 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20353 gomp_loop_ordered_guided_next): Downcase name, make static, add
20354 an external alias with the old name.
20355 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20356 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20357 switch and call one of the above static functions.
20358 * libgomp.h: Update.
20360 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20361 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20362 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20363 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20364 GOMP_loop_ordered_guided_start): Update to match.
20365 * sections.c (GOMP_sections_start): Likewise.
20366 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20368 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20369 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20370 Use bounds check instead of modulus.
20371 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20372 (gomp_ordered_last): Don't sync with ordered_owner here.
20373 (gomp_ordered_next): Likewise.
20374 (gomp_ordered_static_loop_next): Likewise.
20375 * loop.c, libgomp.h: Update to match.
20377 * libgomp.h (GOMP_barrier): Declare.
20379 * testsuite/barrier-1.c: New file.
20380 * testsuite/critical-1.c: New file.
20381 * testsuite/ordered-2.c: New file.
20382 * testsuite/ordered-1.c: New file.
20383 * testsuite/sections-1.c: New file.
20384 * testsuite/single-1.c: New file.
20385 * testsuite/Makefile (TESTS): Add them.
20387 2005-05-04 Richard Henderson <rth@redhat.com>
20389 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20390 * loop.c (GOMP_loop_static_start): If not the startup thread,
20391 acquire the mutex to wait for initialization complete.
20392 (GOMP_loop_ordered_static_start): Likewise.
20393 (GOMP_loop_ordered_runtime_start): Likewise.
20394 (GOMP_loop_ordered_static_first): Remove.
20395 (GOMP_loop_ordered_dynamic_first): Remove.
20396 (GOMP_loop_ordered_guided_first): Remove.
20397 (GOMP_loop_ordered_runtime_first): Remove.
20398 * ordered.c (gomp_ordered_loop_first): Post to own release when
20399 we're the first thread.
20400 (gomp_ordered_loop_last): Wait on release if not owner.
20401 (gomp_ordered_loop_next): Likewise.
20402 (gomp_ordered_static_loop_init): New.
20403 (gomp_ordered_static_loop_next): Use ordered_owner.
20404 (GOMP_ordered_start): Likewise.
20405 * work.c (gomp_new_work_share): Initialize ordered_owner.
20407 2005-05-03 Richard Henderson <rth@redhat.com>
20409 * Makefile (OPT): New.
20412 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20413 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20414 * libgomp.h, libgomp.map, NOTES: Update to match.
20416 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20417 Add initialized and thr members.
20418 (gomp_thread_start): Pause when initially spawned to wait for
20419 the whole team to be created.
20420 (gomp_team_start): Release team members at the end.
20422 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20423 (f_foo_1): Use GOMP_loop_end.
20424 (f_foo_2): Use GOMP_loop_end_nowait.
20426 * testsuite/loop-2.c: New file.
20427 * testsuite/Makefile (TESTS): Add it.
20429 2005-05-03 Richard Henderson <rth@redhat.com>
20431 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20432 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20433 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20434 initial work_share.
20436 * testsuite/Makefile: New file.
20437 * testsuite/loop-1.c: New file.
20439 2005-05-03 Richard Henderson <rth@redhat.com>
20441 Initial implementation and checkin.
20443 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20445 Copying and distribution of this file, with or without modification,
20446 are permitted in any medium without royalty provided the copyright
20447 notice and this notice are preserved.