AArch64: List official cores before codenames
[official-gcc.git] / libgomp / ChangeLog
blob9de28eb4ce93205a91f370cd432b0e67ce7e4873
1 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
2             Chung-Lin Tang  <cltang@codesourcery.com>
4         PR testsuite/91884
5         PR testsuite/109951
6         * configure.ac: Revert earlier changes, instead
7         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
8         * Makefile.in: Regenerate.
9         * configure: Likewise.
10         * testsuite/Makefile.in: Likewise.
11         * testsuite/lib/libgomp.exp (libgomp_init): Remove
12         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
13         If '--with-build-sysroot=[...]' was specified, use it for
14         build-tree testing.
15         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
16         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
17         (SYSROOT_CFLAGS_FOR_TARGET): Set.
18         * testsuite/libgomp.c++/c++.exp (lang_source_re)
19         (lang_include_flags): Set for build-tree testing.
20         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
21         (lang_include_flags): Likewise.
23 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
25         * libgomp.texi (Memory Management Routines): New; add documentation for
26         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
27         omp_get_default_allocator.
28         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
30 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
32         * target.c (gomp_unload_device): Remove tailing whitespace.
34 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
35             Thomas Schwinge  <thomas@codesourcery.com>
37         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
39 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
41         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
43 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
45         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
46         * testsuite/libgomp.fortran/imperfect1.f90: New.
47         * testsuite/libgomp.fortran/imperfect2.f90: New.
48         * testsuite/libgomp.fortran/imperfect3.f90: New.
49         * testsuite/libgomp.fortran/imperfect4.f90: New.
50         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
51         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
52         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
53         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
55 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
57         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
58         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
59         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
60         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
61         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
62         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
63         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
64         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
65         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
66         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
68 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
70         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
71         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
72         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
73         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
74         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
75         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
76         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
77         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
78         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
79         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
80         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
81         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
82         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
84 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
86         * testsuite/lib/libgomp.exp: Add effective target.
87         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
88         functions.
90 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
92         * libgomp.texi (OpenMP 5.2 status): Add depobj with
93         destroy-var argument as 'N'. Mark defaultmap with
94         'all' category as 'Y'.
96 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
98         PR middle-end/111017
99         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
101 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
103         PR libgomp/111024
104         * allocator.c (gomp_init_libnuma): Call numa_available; if
105         not available or not returning 0, disable libnuma usage.
107 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
109         * configure: Regenerate.
111 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
113         * configure: Regenerate.
115 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
117         * configure: Regenerate.
119 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
121         * configure: Regenerate.
123 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
125         * configure: Regenerate.
127 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
129         * configure: Regenerate.
131 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
133         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
134         GOMP_OFFLOAD_CAP_SHARED_MEM.
135         (omp_target_memcpy_rect_copy): Likewise for lock condition.
136         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
137         memcpy3d/memcpy2d.
138         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
139         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
140         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
142 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
144         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
145         GOMP_OFFLOAD_memcpy3d): New prototypes.
146         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
147         and memcpy3d_func.
148         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
149         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
150         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
151         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
152         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
153         GOMP_OFFLOAD_memcpy3d): New.
154         * target.c (omp_target_memcpy_rect_worker):
155         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
156         Permit all device-to-device copyies; invoke new plugins for
157         2D and 3D copying when available.
158         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
159         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
160         * testsuite/libgomp.fortran/target-12.f90: Likewise.
161         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
163 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
165         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
166         (Tasking Routines): Document omp_in_explicit_task.
167         (Implementation-defined ICV Initialization): Use @ref not @code.
169 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
171         * libgomp.texi (OpenMP Runtime Library Routines):
172         Split long list by adding sections and moving routines there.
173         (OMP_ALLOCATORS): Fix typo.
175 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
177         PR fortran/107424
178         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
179         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
180         commented tests.
181         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
182         test file; tests are in non-rectangular-loop-1.f90.
183         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
184         testcase to use a non-constant step to retain the 'sorry' test.
185         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
187 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
188             Chung-Lin Tang  <cltang@codesourcery.com>
190         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
191         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
193 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
195         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
196         the traits. Add crossref to 'Memory allocation'.
197         (Memory allocation): Refer to OMP_ALLOCATOR for the available
198         traits and allocators/mem spaces; document the default value
199         for the pool_size trait.
201 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
203         * allocator.c (omp_init_allocator): Check whether symbol from
204         dlopened libnuma is available before using libnuma for
205         allocations.
207 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
209         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
210         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
211         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
213 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
215         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
216         'Memory allocation' section which contains the full status.
217         (TR11): Remove differently worded duplicated entry.
219 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
221         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
222         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
223         add GOMP_MEMKIND_LIBNUMA.
224         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
225         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
226         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
227         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
228         needed.
229         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
230         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
231         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
232         updated for libnuma usage.
233         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
234         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
236 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
238         * allocator.c (omp_init_allocator): Use malloc for
239         omp_high_bw_mem_space when the memkind lib is unavailable
240         instead of returning omp_null_allocator.
241         * libgomp.texi (OpenMP 5.0): Fix typo.
242         (Memory allocation with libmemkind): Document implementation
243         in more detail.
245 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
247         * libgomp.texi: Use @var for ICV vars.
248         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
249         document which ICV is set and which scope the ICV has; extend/cleanup
250         some @ref.
251         (Implementation-defined ICV Initialization): New.
252         (nvptx): Document the implementation-defined used per-warp stack size.
254 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
256         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
257         error.
259 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
261         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
262         as expected dg-output.
264 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
266         PR middle-end/110270
267         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
268         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
269         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
270         * testsuite/libgomp.c/target-19.c: Update expected value.
271         * testsuite/libgomp.c++/target-18.C: Likewise.
272         * testsuite/libgomp.c++/target-19.C: Likewise.
273         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
274         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
275         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
277 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
279         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
280         gomp_init_targets_once was called before using default-device-var.
281         * testsuite/libgomp.c/target-55.c: New test.
282         * testsuite/libgomp.c/target-55a.c: New test.
284 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
286         * env.c (gomp_def_allocator_envvar): New var.
287         (parse_allocator): Handle OpenMP 5.1 syntax.
288         (cleanup_env): New.
289         (omp_display_env): Output gomp_def_allocator_envvar
290         for an allocator with traits.
291         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
292         OMP_DISPLAY_AFFINITY): New.
293         * testsuite/libgomp.c/allocator-1.c: New test.
294         * testsuite/libgomp.c/allocator-2.c: New test.
295         * testsuite/libgomp.c/allocator-3.c: New test.
296         * testsuite/libgomp.c/allocator-4.c: New test.
297         * testsuite/libgomp.c/allocator-5.c: New test.
298         * testsuite/libgomp.c/allocator-6.c: New test.
300 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
302         * target.c (resolve_device): Align a
303         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
304         * testsuite/libgomp.c/target-51.c: Adjust.
306 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
308         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
309         set.
310         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
311         Likewise.
312         * testsuite/libgomp.c/simd-math-1.c: Remove
313         '-foffload-options=-lm'.
314         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
315         Likewise.
316         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
317         Likewise.
319 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
321         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
322         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
323         Likewise.
325 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
327         * testsuite/libgomp.c/target-51.c: Fix typo.
329 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
331         * env.c (gomp_default_icv_values): Init default_device_var to
332         an nonconforming value - INT_MIN.
333         (initialize_env): After env-var parsing, set default_device_var to
334         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
335         (omp_display_env): If default_device_var is INT_MIN, call
336         gomp_init_targets_once.
337         * icv-device.c (omp_get_default_device): Likewise.
338         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
339         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
340         * target.c (resolve_device): Improve error message device-num < 0
341         with 'mandatory' and no no-host devices available.
342         (gomp_target_init): Set default-device-var if INT_MIN.
343         * testsuite/libgomp.c/target-48.c: New test.
344         * testsuite/libgomp.c/target-49.c: New test.
345         * testsuite/libgomp.c/target-50.c: New test.
346         * testsuite/libgomp.c/target-50a.c: New test.
347         * testsuite/libgomp.c/target-51.c: New test.
348         * testsuite/libgomp.c/target-52.c: New test.
349         * testsuite/libgomp.c/target-53.c: New test.
350         * testsuite/libgomp.c/target-54.c: New test.
352 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
354         PR libgomp/109837
355         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
356         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
358 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
360         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
361         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
362         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
363         error message.
364         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
365         changed error message.
366         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
367         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
368         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
369         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
370         extend testcase to check that data is copied when needed.
371         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
372         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
374 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
375             Tobias Burnus  <tobias@codesourcery.com>
377         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
378         also for non-offload_device targets; check that it runs
379         successfully for those and for all until a checkpoint for all
380         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
381         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
382         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
383         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
384         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
385         add missing vars to map clause.
387 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
389         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
390         unified_address requirement as supported.
391         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
392         'unified_address' from the not-supported requirements.
394 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
395             Tobias Burnus  <tobias@codesourcery.com>
397         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
398         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
399         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
400         modifier.
401         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
402         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
403         Emit runtime error if memory region not present.
404         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
405         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
406         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
407         * testsuite/libgomp.fortran/target-present-1.f90: New test.
408         * testsuite/libgomp.fortran/target-present-2.f90: New test.
409         * testsuite/libgomp.fortran/target-present-3.f90: New test.
411 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
413         PR testsuite/66005
414         * testsuite/lib/libgomp.exp: 'flock' through stdout.
415         * testsuite/flock: New.
416         * configure.ac (FLOCK): Point to that if no 'flock' available, but
417         'perl' is.
418         * configure: Regenerate.
420 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
422         * configure.ac (PERL): Remove.
423         * configure: Regenerate.
424         * Makefile.in: Likewise.
425         * testsuite/Makefile.in: Likewise.
427 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
429         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
431 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
433         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
435 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
437         PR libgomp/109875
438         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
439         * config/nvptx/target.c (GOMP_teams4): Likewise.
440         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
441         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
442         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
443         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
445 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
447         PR libgomp/109904
448         * configure.ac (link_gomp): Include also $DL_LIBS.
449         * configure: Regenerated.
451 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
453         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
454         'target exit data'.
455         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
456         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
457         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
458         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
460 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
462         PR testsuite/66005
463         * configure.ac: Look for 'flock'.
464         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
465         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
466         * testsuite/lib/libgomp.exp: ... but here, instead.
467         (libgomp_load): Override for parallel testing.
468         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
469         * configure: Regenerate.
470         * Makefile.in: Regenerate.
471         * testsuite/Makefile.in: Regenerate.
473 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
474             Thomas Schwinge  <thomas@codesourcery.com>
476         PR testsuite/66005
477         * testsuite/Makefile.am (PWD_COMMAND): New variable.
478         (%/site.exp): New target.
479         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
480         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
481         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
482         (check_p_subdirs)
483         (check_DEJAGNU_libgomp_targets): New variables.
484         ($(check_DEJAGNU_libgomp_targets)): New target.
485         ($(check_DEJAGNU_libgomp_targets)): New dependency.
486         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
487         * testsuite/Makefile.in: Regenerate.
488         * testsuite/lib/libgomp.exp: For parallel testing,
489         'load_file ../libgomp-test-support.exp'.
491 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
493         PR testsuite/91884
494         * configure.ac: 'AC_SUBST(CXX)'.
495         * configure: Regenerate.
496         * Makefile.in: Likewise.
497         * testsuite/Makefile.in: Likewise.
498         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
499         (GFORTRAN_UNDER_TEST): Set.
500         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
501         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
502         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
503         * testsuite/libgomp.fortran/fortran.exp: Use
504         'GFORTRAN_UNDER_TEST'.
505         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
507 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
509         PR testsuite/91884
510         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
511         specify compiler.
512         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
513         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
514         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
515         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
516         Likewise.
517         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
518         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
519         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
520         Likewise.
522 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
524         PR libstdc++/109816
525         * testsuite/libgomp.c++/target-map-class-1.C: New test.
526         * testsuite/libgomp.c++/target-map-class-2.C: New test.
528 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
530         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
531         'lang_library_path' into a list of 'lang_library_paths'.
532         * testsuite/libgomp.c++/c++.exp: Adjust.
533         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
534         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
535         libquadmath, too.
536         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
538 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
540         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
541         at 'lang_test_file_found'.
542         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
543         'return' early if not able to test.  Simplify 'ld_library_path' setup.
544         * testsuite/libgomp.fortran/fortran.exp: Likewise.
545         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
546         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
548 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
550         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
551         first.
552         * testsuite/libgomp.fortran/fortran.exp: Likewise.
553         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
554         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
556 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
558         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
559         * testsuite/libgomp.c/c.exp: Likewise.
560         * testsuite/libgomp.fortran/fortran.exp: Likewise.
561         * testsuite/libgomp.graphite/graphite.exp: Likewise.
562         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
563         * testsuite/libgomp.oacc-c/c.exp: Likewise.
564         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
566 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
568         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
569         * testsuite/libgomp.fortran/fortran.exp: Likewise.
570         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
571         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
572         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
573         'lang_test_file'.
574         * testsuite/libgomp.oacc-c/c.exp: Likewise.
575         * testsuite/libgomp.graphite/graphite.exp: Likewise.
576         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
577         'lang_test_file_found' instead of 'lang_test_file'.
579 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
581         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
582         set.
583         * testsuite/libgomp.c++/c++.exp: Likewise.
584         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
586 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
588         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
589         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
591 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
593         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
594         of 'libstdcxx_includes'.
595         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
597 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
599         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
600         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
601         * libgomp.h (gomp_target_rev): Adjust.
602         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
603         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
604         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
605         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
606         (rev_off_host_to_dev_cpy): Remove.
607         (GOMP_OFFLOAD_run): Adjust.
609 2023-05-04  Julian Brown  <julian@codesourcery.com>
611         PR fortran/109622
612         * testsuite/libgomp.fortran/pr109622.f90: Move test...
613         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
614         vector length warning.
615         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
616         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
617         missing copyin/copyout variable. Ignore vector length warnings.
618         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
619         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
620         vector length warnings.
621         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
623 2023-04-28  Julian Brown  <julian@codesourcery.com>
625         PR fortran/109622
626         * testsuite/libgomp.fortran/pr109622.f90: New test.
627         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
628         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
630 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
632         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
633         * testsuite/libgomp.c/scan-23.c: New test.
634         * testsuite/libgomp.fortran/scan-2.f90: New test.
636 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
638         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
639         weak_undefined options.
641 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
643         * libgomp.texi (Offload-Target Specifics): Grammar fix.
645 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
647         PR fortran/104949
648         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
649         caveat/safeguard.
651 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
653         PR libgomp/90596
654         * target.c (gomp_map_vars_internal): Allow for
655         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
656         * oacc-parallel.c (GOACC_parallel_keyed): Pass
657         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
658         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
659         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
660         Adjust, simplify.
661         (gomp_offload_free): Remove.
662         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
663         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
664         (cuda_free_argmem): Remove.
665         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
666         Adjust.
668 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
670         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
671         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
672         data.
674 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
676         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
677         'GOMP_MAP_IF_PRESENT'.
678         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
679         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
680         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
681         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
682         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
683         testing.
684         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
686 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
688         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
689         shortcut.
691 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
693         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
694         another aspect of OpenACC 'async' semantics.
696 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
698         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
699         position.
700         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
701         Verify 'acc_ev_alloc', 'acc_ev_free'.
703 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
705         PR libgomp/109062
706         * env.c (wait_policy): Initialize to -1.
707         (initialize_icvs): Initialize icvs->wait_policy to -1.
708         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
710 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
712         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
714 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
715             Paul-Antoine Arras  <pa@codesourcery.com>
717         * testsuite/libgomp.c/simd-math-1.c: New testcase.
719 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
721         PR middle-end/108546
722         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
723         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
725 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
727         * testsuite/libgomp.fortran/alloc-10.f90: Use
728         '-Wno-complain-wrong-lang'.
729         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
730         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
731         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
732         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
733         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
734         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
735         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
736         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
737         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
738         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
739         Likewise.
740         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
741         Likewise.
742         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
743         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
744         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
745         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
746         'dg-prune-output'.
748 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
750         * libgomp.texi: Fix typos - theads -> threads.
752 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
754         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
755         comment typo and improve its wording.
757 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
759         * target.c (gomp_target_rev): Dereference ptr
760         to get device address.
761         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
762         for unallocated allocatable.
764 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
766         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
767         kind check.
768         (GOMP_target_enter_exit_data): If the next map item is
769         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
770         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
772 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
774         PR fortran/107424
775         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
776         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
777         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
778         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
779         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
780         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
782 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
784         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
785         offloading compilation.
787 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
789         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
790         freeing not allocated memory.
791         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
793 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
795         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
796         reverse offload.
797         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
798         reverse-offload requirement.
800 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
802         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
803         (DEFAULT_TEAM_ARENA_SIZE): New define.
804         (struct heap): Move to this file.
805         (struct kernargs_abi): Likewise.
806         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
807         the kernargs.
808         * libgomp.h: Include libgomp-gcn.h.
809         (TEAM_ARENA_SIZE): Remove.
810         (team_malloc): Update the error message.
811         * plugin/plugin-gcn.c (struct kernargs): Move common content to
812         struct kernargs_abi.
813         (struct agent_info): Rename team arenas to ephemeral memories.
814         (struct team_arena_list): Rename ....
815         (struct ephemeral_memories_list): to this.
816         (struct heap): Delete.
817         (team_arena_size): New variable.
818         (stack_size): New variable.
819         (print_kernel_dispatch): Update debug messages.
820         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
821         Read GCN_STACK_SIZE.
822         (get_team_arena): Rename ...
823         (configure_ephemeral_memories): ... to this, and set up stacks.
824         (release_team_arena): Rename ...
825         (release_ephemeral_memories): ... to this.
826         (destroy_team_arenas): Rename ...
827         (destroy_ephemeral_memories): ... to this.
828         (create_kernel_dispatch): Add num_threads parameter.
829         Adjust for kernargs_abi refactor and ephemeral memories.
830         (release_kernel_dispatch): Adjust for ephemeral memories.
831         (run_kernel): Pass thread-count to create_kernel_dispatch.
832         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
833         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
835 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
837         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
839 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
841         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
842         usage, remove unused -fdump-tree-original.
843         * testsuite/libgomp.fortran/allocate-4.f90: New.
845 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
847         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
848         (GCN): Add item about 'omp requires'.
849         (nvptx): Likewise; add item about reverse offload.
851 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
853         PR fortran/108558
854         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
856 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
858         * libgomp.texi (OpenMP 5.0): Set non-rectangular
859         loop nest back to 'P' as Fortran support is incomplete.
861 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
863         PR middle-end/108459
864         * testsuite/libgomp.c/pr108459.c: New test.
866 2023-01-17  Martin Liska  <mliska@suse.cz>
868         * Makefile.in: Regenerate.
869         * configure: Regenerate.
871 2023-01-07  LIU Hao  <lh_mouse@126.com>
873         PR middle-end/108300
874         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
875         <windows.h>.
877 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
879         PR c++/108286
880         * testsuite/libgomp.c++/pr108286.C: New test.
882 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
884         * libgomp.texi: Bump @copying's copyright year.
886 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
888         PR target/99555
889         * config/nvptx/bar.c (generation_to_barrier): Remove.
890         (futex_wait,futex_wake,do_spin,do_wait): Remove.
891         (GOMP_WAIT_H): Remove.
892         (#include "../linux/bar.c"): Remove.
893         (gomp_barrier_wait_end): New function.
894         (gomp_barrier_wait): Likewise.
895         (gomp_barrier_wait_last): Likewise.
896         (gomp_team_barrier_wait_end): Likewise.
897         (gomp_team_barrier_wait): Likewise.
898         (gomp_team_barrier_wait_final): Likewise.
899         (gomp_team_barrier_wait_cancel_end): Likewise.
900         (gomp_team_barrier_wait_cancel): Likewise.
901         (gomp_team_barrier_cancel): Likewise.
902         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
903         (gomp_barrier_init): Remove init of waiters, lock fields.
904         (gomp_team_barrier_wake): Remove prototype, add new static inline
905         function.
907 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
909         PR c++/108180
910         * testsuite/libgomp.c++/pr108180.C: New test.
912 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
914         PR libfortran/108056
915         * testsuite/libgomp.fortran/allocate-4.f90: Remove
916         accidentally added file.
918 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
920         PR libfortran/108056
921         * testsuite/libgomp.fortran/allocate-4.f90: New file.
923 2022-12-14  Julian Brown  <julian@codesourcery.com>
925         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
926         test.
928 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
930         * libgomp.h (struct target_mem_desc): Predeclare; move
931         below after 'reverse_splay_tree_node' and add rev_array
932         member.
933         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
934         (reverse_splay_tree_node, reverse_splay_tree,
935         reverse_splay_tree_key): New typedef.
936         (struct gomp_device_descr): Add mem_map_rev member.
937         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
938         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
939         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
940         * splay-tree.h (splay_tree_callback_stop): New typedef; like
941         splay_tree_callback but returning int not void.
942         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
943         taking splay_tree_callback_stop as argument.
944         * splay-tree.c (splay_tree_foreach_internal_lazy,
945         splay_tree_foreach_lazy): New; but early exit if callback returns
946         nonzero.
947         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
948         (gomp_map_lookup_rev): New.
949         (gomp_load_image_to_device): Handle reverse-offload function
950         lookup table.
951         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
952         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
953         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
954         gomp_map_cdata_lookup): New auxiliary structs and functions for
955         gomp_target_rev.
956         (gomp_target_rev): Implement reverse offloading and its mapping.
957         (gomp_target_init): Init current_device.mem_map_rev.root.
958         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
959         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
960         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
961         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
962         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
963         mapping of on-device allocated variables.
965 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
967         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
968         item about 'align'; mark clause as 'Y' and directive as 'N'.
969         * testsuite/libgomp.fortran/allocate-2.f90: New test.
970         * testsuite/libgomp.fortran/allocate-3.f90: New test.
972 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
974         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
975         allow processing of device-specific values.
976         (omp_set_teams_thread_limit): Likewise.
977         (ialias): Likewise.
978         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
979         (omp_set_teams_thread_limit): Likewise.
980         (ialias): Likewise.
981         * icv-device.c (omp_get_teams_thread_limit): Likewise.
982         (ialias): Likewise.
983         (omp_set_teams_thread_limit): Likewise.
984         * icv.c (omp_set_teams_thread_limit): Removed.
985         (omp_get_teams_thread_limit): Likewise.
986         (ialias): Likewise.
987         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
988         to the limitation of the number of teams.
989         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
990         the number of teams by twice the number of compute units.
991         (parse_target_attributes): Limit the number of teams on gcn offload
992         devices.
993         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
994         handling.
995         (gomp_load_image_to_device): Added a size check for the ICVs struct
996         variable.
997         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
998         copy back the ICV values from device to host.
999         (GOMP_target_ext): Update the number of teams and threads in the kernel
1000         args also considering device-specific values.
1001         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1002         of OMP_TEAMS_THREAD_LIMIT from the environment.
1003         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1004         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1005         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1006         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1007         * testsuite/libgomp.fortran/icv-5.f90: New test.
1008         * testsuite/libgomp.fortran/icv-6.f90: New test.
1010 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1012         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1013         (TR11): Add missing '@tab N @tab'.
1015 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1017         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1019 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1021         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1022         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1023         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1024         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1025         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1026         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1027         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1029 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1031         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1033 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1035         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1036         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1037         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1038         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1040 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1042         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1043         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1044         as valid and the code having no reverse-offload code.
1045         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1047 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1049         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1050         and status for Technical Report (TR) 11.
1052 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1054         * config/gcn/libgomp-gcn.h (struct output):
1055         Remove 'msg_u64' from the union, change
1056         value_u64[2] to value_u64[6].
1057         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1058         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1059         Likewise.
1061 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1063         * config/gcn/libgomp-gcn.h: New file; contains
1064         struct output, declared previously in plugin-gcn.c.
1065         * config/gcn/target.c: Include it.
1066         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1067         (GOMP_target_ext): Handle reverse offload.
1068         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1069         (struct kernargs): Replace struct def by the one
1070         from libgomp-gcn.h for output_data.
1071         (process_reverse_offload): New.
1072         (console_output): Call it.
1074 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1075             Andrew Stubbs  <ams@codesourcery.com>
1077         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1078         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1080 2022-11-14  Martin Liska  <mliska@suse.cz>
1082         Revert:
1083         2022-11-14  Martin Liska  <mliska@suse.cz>
1085         * doc/amd-radeon-gcn.rst: New file.
1086         * doc/conf.py: New file.
1087         * doc/copyright.rst: New file.
1088         * doc/cuda-streams-usage.rst: New file.
1089         * doc/enabling-openacc.rst: New file.
1090         * doc/enabling-openmp.rst: New file.
1091         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1092         * doc/first-invocation-openacc-library-api.rst: New file.
1093         * doc/funding.rst: New file.
1094         * doc/general-public-license-3.rst: New file.
1095         * doc/gnu-free-documentation-license.rst: New file.
1096         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1097         * doc/index.rst: New file.
1098         * doc/indices-and-tables.rst: New file.
1099         * doc/introduction.rst: New file.
1100         * doc/memory-allocation-with-libmemkind.rst: New file.
1101         * doc/nvptx.rst: New file.
1102         * doc/offload-target-specifics.rst: New file.
1103         * doc/openacc-environment-variables.rst: New file.
1104         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1105         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1106         * doc/openacc-environment-variables/accproflib.rst: New file.
1107         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1108         * doc/openacc-introduction.rst: New file.
1109         * doc/openacc-library-and-environment-variables.rst: New file.
1110         * doc/openacc-library-interoperability.rst: New file.
1111         * doc/openacc-profiling-interface.rst: New file.
1112         * doc/openacc-runtime-library-routines.rst: New file.
1113         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1114         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1115         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1116         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1117         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1118         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1119         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1120         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1121         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1122         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1123         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1124         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1125         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1126         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1127         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1128         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1129         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1130         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1131         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1132         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1133         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1134         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1135         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1136         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1137         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1138         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1139         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1140         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1141         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1142         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1143         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1144         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1145         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1146         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1147         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1148         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1149         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1150         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1151         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1152         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1153         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1154         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1155         * doc/openmp-context-selectors.rst: New file.
1156         * doc/openmp-environment-variables.rst: New file.
1157         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1158         * doc/openmp-environment-variables/gompdebug.rst: New file.
1159         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1160         * doc/openmp-environment-variables/gompspincount.rst: New file.
1161         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1162         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1163         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1164         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1165         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1166         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1167         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1168         * doc/openmp-environment-variables/ompnested.rst: New file.
1169         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1170         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1171         * doc/openmp-environment-variables/ompplaces.rst: New file.
1172         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1173         * doc/openmp-environment-variables/ompschedule.rst: New file.
1174         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1175         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1176         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1177         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1178         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1179         * doc/openmp-implementation-specifics.rst: New file.
1180         * doc/openmp-implementation-status.rst: New file.
1181         * doc/openmp-implementation-status/openmp-45.rst: New file.
1182         * doc/openmp-implementation-status/openmp-50.rst: New file.
1183         * doc/openmp-implementation-status/openmp-51.rst: New file.
1184         * doc/openmp-implementation-status/openmp-52.rst: New file.
1185         * doc/openmp-runtime-library-routines.rst: New file.
1186         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1187         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1188         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1189         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1190         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1191         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1192         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1193         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1194         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1195         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1196         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1197         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1198         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1199         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1200         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1201         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1202         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1203         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1204         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1205         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1206         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1207         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1208         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1209         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1210         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1211         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1212         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1213         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1214         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1215         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1216         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1217         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1218         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1219         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1220         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1221         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1222         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1223         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1224         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1225         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1226         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1227         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1228         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1229         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1230         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1231         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1232         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1233         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1234         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1235         * doc/reporting-bugs.rst: New file.
1236         * doc/the-libgomp-abi.rst: New file.
1237         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1238         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1239         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1240         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1241         New file.
1242         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1243         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1244         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1245         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1246         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1247         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1248         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1249         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1250         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1251         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1252         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1254 2022-11-14  Martin Liska  <mliska@suse.cz>
1256         Revert:
1257         2022-11-14  Martin Liska  <mliska@suse.cz>
1259         * Makefile.in: Support Sphinx based documentation.
1261 2022-11-14  Martin Liska  <mliska@suse.cz>
1263         Revert:
1264         2022-11-14  Martin Liska  <mliska@suse.cz>
1266         * libgomp.texi: Removed.
1268 2022-11-14  Martin Liska  <mliska@suse.cz>
1270         Revert:
1271         2022-11-14  Martin Liska  <mliska@suse.cz>
1273         * Makefile.in: Support --with-sphinx-build.
1274         * configure.ac: Likewise..
1275         * configure: Regenerate.
1277 2022-11-14  Martin Liska  <mliska@suse.cz>
1279         Revert:
1280         2022-11-09  Martin Liska  <mliska@suse.cz>
1282         * Makefile.in: Build info pages conditionally.
1284 2022-11-14  Martin Liska  <mliska@suse.cz>
1286         Revert:
1287         2022-11-14  Martin Liska  <mliska@suse.cz>
1289         * doc/amd-radeon-gcn.rst:
1290         Add trailing newline.
1291         * doc/copyright.rst:
1292         Add trailing newline.
1293         * doc/cuda-streams-usage.rst:
1294         Add trailing newline.
1295         * doc/enabling-openacc.rst:
1296         Add trailing newline.
1297         * doc/enabling-openmp.rst:
1298         Add trailing newline.
1299         * doc/first-invocation-nvidia-cublas-library-api.rst:
1300         Add trailing newline.
1301         * doc/first-invocation-openacc-library-api.rst:
1302         Add trailing newline.
1303         * doc/funding.rst:
1304         Add trailing newline.
1305         * doc/general-public-license-3.rst:
1306         Add trailing newline.
1307         * doc/gnu-free-documentation-license.rst:
1308         Add trailing newline.
1309         * doc/implementation-status-and-implementation-defined-behavior.rst:
1310         Add trailing newline.
1311         * doc/index.rst:
1312         Add trailing newline.
1313         * doc/indices-and-tables.rst:
1314         Add trailing newline.
1315         * doc/introduction.rst:
1316         Add trailing newline.
1317         * doc/memory-allocation-with-libmemkind.rst:
1318         Add trailing newline.
1319         * doc/nvptx.rst:
1320         Add trailing newline.
1321         * doc/offload-target-specifics.rst:
1322         Add trailing newline.
1323         * doc/openacc-environment-variables.rst:
1324         Add trailing newline.
1325         * doc/openacc-environment-variables/accdevicenum.rst:
1326         Add trailing newline.
1327         * doc/openacc-environment-variables/accdevicetype.rst:
1328         Add trailing newline.
1329         * doc/openacc-environment-variables/accproflib.rst:
1330         Add trailing newline.
1331         * doc/openacc-environment-variables/gccaccnotify.rst:
1332         Add trailing newline.
1333         * doc/openacc-introduction.rst:
1334         Add trailing newline.
1335         * doc/openacc-library-and-environment-variables.rst:
1336         Add trailing newline.
1337         * doc/openacc-library-interoperability.rst:
1338         Add trailing newline.
1339         * doc/openacc-profiling-interface.rst:
1340         Add trailing newline.
1341         * doc/openacc-runtime-library-routines.rst:
1342         Add trailing newline.
1343         * doc/openacc-runtime-library-routines/accasynctest.rst:
1344         Add trailing newline.
1345         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1346         Add trailing newline.
1347         * doc/openacc-runtime-library-routines/accattach.rst:
1348         Add trailing newline.
1349         * doc/openacc-runtime-library-routines/acccopyin.rst:
1350         Add trailing newline.
1351         * doc/openacc-runtime-library-routines/acccopyout.rst:
1352         Add trailing newline.
1353         * doc/openacc-runtime-library-routines/acccreate.rst:
1354         Add trailing newline.
1355         * doc/openacc-runtime-library-routines/accdelete.rst:
1356         Add trailing newline.
1357         * doc/openacc-runtime-library-routines/accdetach.rst:
1358         Add trailing newline.
1359         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1360         Add trailing newline.
1361         * doc/openacc-runtime-library-routines/accfree.rst:
1362         Add trailing newline.
1363         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1364         Add trailing newline.
1365         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1366         Add trailing newline.
1367         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1368         Add trailing newline.
1369         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1370         Add trailing newline.
1371         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1372         Add trailing newline.
1373         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1374         Add trailing newline.
1375         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1376         Add trailing newline.
1377         * doc/openacc-runtime-library-routines/acchostptr.rst:
1378         Add trailing newline.
1379         * doc/openacc-runtime-library-routines/accinit.rst:
1380         Add trailing newline.
1381         * doc/openacc-runtime-library-routines/accispresent.rst:
1382         Add trailing newline.
1383         * doc/openacc-runtime-library-routines/accmalloc.rst:
1384         Add trailing newline.
1385         * doc/openacc-runtime-library-routines/accmapdata.rst:
1386         Add trailing newline.
1387         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1388         Add trailing newline.
1389         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1390         Add trailing newline.
1391         * doc/openacc-runtime-library-routines/accondevice.rst:
1392         Add trailing newline.
1393         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1394         Add trailing newline.
1395         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1396         Add trailing newline.
1397         * doc/openacc-runtime-library-routines/accproflookup.rst:
1398         Add trailing newline.
1399         * doc/openacc-runtime-library-routines/accprofregister.rst:
1400         Add trailing newline.
1401         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1402         Add trailing newline.
1403         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1404         Add trailing newline.
1405         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1406         Add trailing newline.
1407         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1408         Add trailing newline.
1409         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1410         Add trailing newline.
1411         * doc/openacc-runtime-library-routines/accshutdown.rst:
1412         Add trailing newline.
1413         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1414         Add trailing newline.
1415         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1416         Add trailing newline.
1417         * doc/openacc-runtime-library-routines/accupdateself.rst:
1418         Add trailing newline.
1419         * doc/openacc-runtime-library-routines/accwait.rst:
1420         Add trailing newline.
1421         * doc/openacc-runtime-library-routines/accwaitall.rst:
1422         Add trailing newline.
1423         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1424         Add trailing newline.
1425         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1426         Add trailing newline.
1427         * doc/openmp-context-selectors.rst:
1428         Add trailing newline.
1429         * doc/openmp-environment-variables.rst:
1430         Add trailing newline.
1431         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1432         Add trailing newline.
1433         * doc/openmp-environment-variables/gompdebug.rst:
1434         Add trailing newline.
1435         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1436         Add trailing newline.
1437         * doc/openmp-environment-variables/gompspincount.rst:
1438         Add trailing newline.
1439         * doc/openmp-environment-variables/gompstacksize.rst:
1440         Add trailing newline.
1441         * doc/openmp-environment-variables/ompcancellation.rst:
1442         Add trailing newline.
1443         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1444         Add trailing newline.
1445         * doc/openmp-environment-variables/ompdisplayenv.rst:
1446         Add trailing newline.
1447         * doc/openmp-environment-variables/ompdynamic.rst:
1448         Add trailing newline.
1449         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1450         Add trailing newline.
1451         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1452         Add trailing newline.
1453         * doc/openmp-environment-variables/ompnested.rst:
1454         Add trailing newline.
1455         * doc/openmp-environment-variables/ompnumteams.rst:
1456         Add trailing newline.
1457         * doc/openmp-environment-variables/ompnumthreads.rst:
1458         Add trailing newline.
1459         * doc/openmp-environment-variables/ompplaces.rst:
1460         Add trailing newline.
1461         * doc/openmp-environment-variables/ompprocbind.rst:
1462         Add trailing newline.
1463         * doc/openmp-environment-variables/ompschedule.rst:
1464         Add trailing newline.
1465         * doc/openmp-environment-variables/ompstacksize.rst:
1466         Add trailing newline.
1467         * doc/openmp-environment-variables/omptargetoffload.rst:
1468         Add trailing newline.
1469         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1470         Add trailing newline.
1471         * doc/openmp-environment-variables/ompthreadlimit.rst:
1472         Add trailing newline.
1473         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1474         Add trailing newline.
1475         * doc/openmp-implementation-specifics.rst:
1476         Add trailing newline.
1477         * doc/openmp-implementation-status.rst:
1478         Add trailing newline.
1479         * doc/openmp-implementation-status/openmp-45.rst:
1480         Add trailing newline.
1481         * doc/openmp-implementation-status/openmp-50.rst:
1482         Add trailing newline.
1483         * doc/openmp-implementation-status/openmp-51.rst:
1484         Add trailing newline.
1485         * doc/openmp-implementation-status/openmp-52.rst:
1486         Add trailing newline.
1487         * doc/openmp-runtime-library-routines.rst:
1488         Add trailing newline.
1489         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1490         Add trailing newline.
1491         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1492         Add trailing newline.
1493         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1494         Add trailing newline.
1495         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1496         Add trailing newline.
1497         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1498         Add trailing newline.
1499         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1500         Add trailing newline.
1501         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1502         Add trailing newline.
1503         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1504         Add trailing newline.
1505         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1506         Add trailing newline.
1507         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1508         Add trailing newline.
1509         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1510         Add trailing newline.
1511         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1512         Add trailing newline.
1513         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1514         Add trailing newline.
1515         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1516         Add trailing newline.
1517         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1518         Add trailing newline.
1519         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1520         Add trailing newline.
1521         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1522         Add trailing newline.
1523         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1524         Add trailing newline.
1525         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1526         Add trailing newline.
1527         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1528         Add trailing newline.
1529         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1530         Add trailing newline.
1531         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1532         Add trailing newline.
1533         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1534         Add trailing newline.
1535         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1536         Add trailing newline.
1537         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1538         Add trailing newline.
1539         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1540         Add trailing newline.
1541         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1542         Add trailing newline.
1543         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1544         Add trailing newline.
1545         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1546         Add trailing newline.
1547         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1548         Add trailing newline.
1549         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1550         Add trailing newline.
1551         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1552         Add trailing newline.
1553         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1554         Add trailing newline.
1555         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1556         Add trailing newline.
1557         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1558         Add trailing newline.
1559         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1560         Add trailing newline.
1561         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1562         Add trailing newline.
1563         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1564         Add trailing newline.
1565         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1566         Add trailing newline.
1567         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1568         Add trailing newline.
1569         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1570         Add trailing newline.
1571         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1572         Add trailing newline.
1573         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1574         Add trailing newline.
1575         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1576         Add trailing newline.
1577         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1578         Add trailing newline.
1579         * doc/openmp-runtime-library-routines/omptestlock.rst:
1580         Add trailing newline.
1581         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1582         Add trailing newline.
1583         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1584         Add trailing newline.
1585         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1586         Add trailing newline.
1587         * doc/reporting-bugs.rst:
1588         Add trailing newline.
1589         * doc/the-libgomp-abi.rst:
1590         Add trailing newline.
1591         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1592         Add trailing newline.
1593         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1594         Add trailing newline.
1595         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1596         Add trailing newline.
1597         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1598         Add trailing newline.
1599         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1600         Add trailing newline.
1601         * doc/the-libgomp-abi/implementing-for-construct.rst:
1602         Add trailing newline.
1603         * doc/the-libgomp-abi/implementing-master-construct.rst:
1604         Add trailing newline.
1605         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1606         Add trailing newline.
1607         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1608         Add trailing newline.
1609         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1610         Add trailing newline.
1611         * doc/the-libgomp-abi/implementing-private-clause.rst:
1612         Add trailing newline.
1613         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1614         Add trailing newline.
1615         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1616         Add trailing newline.
1617         * doc/the-libgomp-abi/implementing-single-construct.rst:
1618         Add trailing newline.
1619         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1620         Add trailing newline.
1622 2022-11-14  Martin Liska  <mliska@suse.cz>
1624         Revert:
1625         2022-11-09  Martin Liska  <mliska@suse.cz>
1627         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1629 2022-11-14  Martin Liska  <mliska@suse.cz>
1631         Revert:
1632         2022-11-14  Martin Liska  <mliska@suse.cz>
1634         * doc/conf.py: Add newline at last line.
1636 2022-11-14  Martin Liska  <mliska@suse.cz>
1638         Revert:
1639         2022-11-14  Martin Liska  <mliska@suse.cz>
1641         PR other/107620
1642         * configure: Regenerate.
1643         * configure.ac: Always set sphinx-build.
1645 2022-11-13  Martin Liska  <mliska@suse.cz>
1647         PR other/107620
1648         * configure: Regenerate.
1649         * configure.ac: Always set sphinx-build.
1651 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
1653         PR libgomp/107641
1654         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1655         unsigned long.  Change type of upper from unsigned to unsigned long.
1657 2022-11-10  Martin Liska  <mliska@suse.cz>
1659         * doc/conf.py: Add newline at last line.
1661 2022-11-09  Martin Liska  <mliska@suse.cz>
1663         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1665 2022-11-09  Martin Liska  <mliska@suse.cz>
1667         * doc/amd-radeon-gcn.rst:
1668         Add trailing newline.
1669         * doc/copyright.rst:
1670         Add trailing newline.
1671         * doc/cuda-streams-usage.rst:
1672         Add trailing newline.
1673         * doc/enabling-openacc.rst:
1674         Add trailing newline.
1675         * doc/enabling-openmp.rst:
1676         Add trailing newline.
1677         * doc/first-invocation-nvidia-cublas-library-api.rst:
1678         Add trailing newline.
1679         * doc/first-invocation-openacc-library-api.rst:
1680         Add trailing newline.
1681         * doc/funding.rst:
1682         Add trailing newline.
1683         * doc/general-public-license-3.rst:
1684         Add trailing newline.
1685         * doc/gnu-free-documentation-license.rst:
1686         Add trailing newline.
1687         * doc/implementation-status-and-implementation-defined-behavior.rst:
1688         Add trailing newline.
1689         * doc/index.rst:
1690         Add trailing newline.
1691         * doc/indices-and-tables.rst:
1692         Add trailing newline.
1693         * doc/introduction.rst:
1694         Add trailing newline.
1695         * doc/memory-allocation-with-libmemkind.rst:
1696         Add trailing newline.
1697         * doc/nvptx.rst:
1698         Add trailing newline.
1699         * doc/offload-target-specifics.rst:
1700         Add trailing newline.
1701         * doc/openacc-environment-variables.rst:
1702         Add trailing newline.
1703         * doc/openacc-environment-variables/accdevicenum.rst:
1704         Add trailing newline.
1705         * doc/openacc-environment-variables/accdevicetype.rst:
1706         Add trailing newline.
1707         * doc/openacc-environment-variables/accproflib.rst:
1708         Add trailing newline.
1709         * doc/openacc-environment-variables/gccaccnotify.rst:
1710         Add trailing newline.
1711         * doc/openacc-introduction.rst:
1712         Add trailing newline.
1713         * doc/openacc-library-and-environment-variables.rst:
1714         Add trailing newline.
1715         * doc/openacc-library-interoperability.rst:
1716         Add trailing newline.
1717         * doc/openacc-profiling-interface.rst:
1718         Add trailing newline.
1719         * doc/openacc-runtime-library-routines.rst:
1720         Add trailing newline.
1721         * doc/openacc-runtime-library-routines/accasynctest.rst:
1722         Add trailing newline.
1723         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1724         Add trailing newline.
1725         * doc/openacc-runtime-library-routines/accattach.rst:
1726         Add trailing newline.
1727         * doc/openacc-runtime-library-routines/acccopyin.rst:
1728         Add trailing newline.
1729         * doc/openacc-runtime-library-routines/acccopyout.rst:
1730         Add trailing newline.
1731         * doc/openacc-runtime-library-routines/acccreate.rst:
1732         Add trailing newline.
1733         * doc/openacc-runtime-library-routines/accdelete.rst:
1734         Add trailing newline.
1735         * doc/openacc-runtime-library-routines/accdetach.rst:
1736         Add trailing newline.
1737         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1738         Add trailing newline.
1739         * doc/openacc-runtime-library-routines/accfree.rst:
1740         Add trailing newline.
1741         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1742         Add trailing newline.
1743         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1744         Add trailing newline.
1745         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1746         Add trailing newline.
1747         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1748         Add trailing newline.
1749         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1750         Add trailing newline.
1751         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1752         Add trailing newline.
1753         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1754         Add trailing newline.
1755         * doc/openacc-runtime-library-routines/acchostptr.rst:
1756         Add trailing newline.
1757         * doc/openacc-runtime-library-routines/accinit.rst:
1758         Add trailing newline.
1759         * doc/openacc-runtime-library-routines/accispresent.rst:
1760         Add trailing newline.
1761         * doc/openacc-runtime-library-routines/accmalloc.rst:
1762         Add trailing newline.
1763         * doc/openacc-runtime-library-routines/accmapdata.rst:
1764         Add trailing newline.
1765         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1766         Add trailing newline.
1767         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1768         Add trailing newline.
1769         * doc/openacc-runtime-library-routines/accondevice.rst:
1770         Add trailing newline.
1771         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1772         Add trailing newline.
1773         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1774         Add trailing newline.
1775         * doc/openacc-runtime-library-routines/accproflookup.rst:
1776         Add trailing newline.
1777         * doc/openacc-runtime-library-routines/accprofregister.rst:
1778         Add trailing newline.
1779         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1780         Add trailing newline.
1781         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1782         Add trailing newline.
1783         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1784         Add trailing newline.
1785         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1786         Add trailing newline.
1787         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1788         Add trailing newline.
1789         * doc/openacc-runtime-library-routines/accshutdown.rst:
1790         Add trailing newline.
1791         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1792         Add trailing newline.
1793         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1794         Add trailing newline.
1795         * doc/openacc-runtime-library-routines/accupdateself.rst:
1796         Add trailing newline.
1797         * doc/openacc-runtime-library-routines/accwait.rst:
1798         Add trailing newline.
1799         * doc/openacc-runtime-library-routines/accwaitall.rst:
1800         Add trailing newline.
1801         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1802         Add trailing newline.
1803         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1804         Add trailing newline.
1805         * doc/openmp-context-selectors.rst:
1806         Add trailing newline.
1807         * doc/openmp-environment-variables.rst:
1808         Add trailing newline.
1809         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1810         Add trailing newline.
1811         * doc/openmp-environment-variables/gompdebug.rst:
1812         Add trailing newline.
1813         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1814         Add trailing newline.
1815         * doc/openmp-environment-variables/gompspincount.rst:
1816         Add trailing newline.
1817         * doc/openmp-environment-variables/gompstacksize.rst:
1818         Add trailing newline.
1819         * doc/openmp-environment-variables/ompcancellation.rst:
1820         Add trailing newline.
1821         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1822         Add trailing newline.
1823         * doc/openmp-environment-variables/ompdisplayenv.rst:
1824         Add trailing newline.
1825         * doc/openmp-environment-variables/ompdynamic.rst:
1826         Add trailing newline.
1827         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1828         Add trailing newline.
1829         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1830         Add trailing newline.
1831         * doc/openmp-environment-variables/ompnested.rst:
1832         Add trailing newline.
1833         * doc/openmp-environment-variables/ompnumteams.rst:
1834         Add trailing newline.
1835         * doc/openmp-environment-variables/ompnumthreads.rst:
1836         Add trailing newline.
1837         * doc/openmp-environment-variables/ompplaces.rst:
1838         Add trailing newline.
1839         * doc/openmp-environment-variables/ompprocbind.rst:
1840         Add trailing newline.
1841         * doc/openmp-environment-variables/ompschedule.rst:
1842         Add trailing newline.
1843         * doc/openmp-environment-variables/ompstacksize.rst:
1844         Add trailing newline.
1845         * doc/openmp-environment-variables/omptargetoffload.rst:
1846         Add trailing newline.
1847         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1848         Add trailing newline.
1849         * doc/openmp-environment-variables/ompthreadlimit.rst:
1850         Add trailing newline.
1851         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1852         Add trailing newline.
1853         * doc/openmp-implementation-specifics.rst:
1854         Add trailing newline.
1855         * doc/openmp-implementation-status.rst:
1856         Add trailing newline.
1857         * doc/openmp-implementation-status/openmp-45.rst:
1858         Add trailing newline.
1859         * doc/openmp-implementation-status/openmp-50.rst:
1860         Add trailing newline.
1861         * doc/openmp-implementation-status/openmp-51.rst:
1862         Add trailing newline.
1863         * doc/openmp-implementation-status/openmp-52.rst:
1864         Add trailing newline.
1865         * doc/openmp-runtime-library-routines.rst:
1866         Add trailing newline.
1867         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1868         Add trailing newline.
1869         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1870         Add trailing newline.
1871         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1872         Add trailing newline.
1873         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1874         Add trailing newline.
1875         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1876         Add trailing newline.
1877         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1878         Add trailing newline.
1879         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1880         Add trailing newline.
1881         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1882         Add trailing newline.
1883         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1884         Add trailing newline.
1885         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1886         Add trailing newline.
1887         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1888         Add trailing newline.
1889         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1890         Add trailing newline.
1891         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1892         Add trailing newline.
1893         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1894         Add trailing newline.
1895         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1896         Add trailing newline.
1897         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1898         Add trailing newline.
1899         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1900         Add trailing newline.
1901         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1902         Add trailing newline.
1903         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1904         Add trailing newline.
1905         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1906         Add trailing newline.
1907         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1908         Add trailing newline.
1909         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1910         Add trailing newline.
1911         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1912         Add trailing newline.
1913         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1914         Add trailing newline.
1915         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1916         Add trailing newline.
1917         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1918         Add trailing newline.
1919         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1920         Add trailing newline.
1921         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1922         Add trailing newline.
1923         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1924         Add trailing newline.
1925         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1926         Add trailing newline.
1927         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1928         Add trailing newline.
1929         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1930         Add trailing newline.
1931         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1932         Add trailing newline.
1933         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1934         Add trailing newline.
1935         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1936         Add trailing newline.
1937         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1938         Add trailing newline.
1939         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1940         Add trailing newline.
1941         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1942         Add trailing newline.
1943         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1944         Add trailing newline.
1945         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1946         Add trailing newline.
1947         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1948         Add trailing newline.
1949         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1950         Add trailing newline.
1951         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1952         Add trailing newline.
1953         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1954         Add trailing newline.
1955         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1956         Add trailing newline.
1957         * doc/openmp-runtime-library-routines/omptestlock.rst:
1958         Add trailing newline.
1959         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1960         Add trailing newline.
1961         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1962         Add trailing newline.
1963         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1964         Add trailing newline.
1965         * doc/reporting-bugs.rst:
1966         Add trailing newline.
1967         * doc/the-libgomp-abi.rst:
1968         Add trailing newline.
1969         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1970         Add trailing newline.
1971         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1972         Add trailing newline.
1973         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1974         Add trailing newline.
1975         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1976         Add trailing newline.
1977         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1978         Add trailing newline.
1979         * doc/the-libgomp-abi/implementing-for-construct.rst:
1980         Add trailing newline.
1981         * doc/the-libgomp-abi/implementing-master-construct.rst:
1982         Add trailing newline.
1983         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1984         Add trailing newline.
1985         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1986         Add trailing newline.
1987         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1988         Add trailing newline.
1989         * doc/the-libgomp-abi/implementing-private-clause.rst:
1990         Add trailing newline.
1991         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1992         Add trailing newline.
1993         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1994         Add trailing newline.
1995         * doc/the-libgomp-abi/implementing-single-construct.rst:
1996         Add trailing newline.
1997         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1998         Add trailing newline.
2000 2022-11-09  Martin Liska  <mliska@suse.cz>
2002         * Makefile.in: Build info pages conditionally.
2004 2022-11-09  Martin Liska  <mliska@suse.cz>
2006         * Makefile.in: Support --with-sphinx-build.
2007         * configure.ac: Likewise..
2008         * configure: Regenerate.
2010 2022-11-09  Martin Liska  <mliska@suse.cz>
2012         * libgomp.texi: Removed.
2014 2022-11-09  Martin Liska  <mliska@suse.cz>
2016         * Makefile.in: Support Sphinx based documentation.
2018 2022-11-09  Martin Liska  <mliska@suse.cz>
2020         * doc/amd-radeon-gcn.rst: New file.
2021         * doc/conf.py: New file.
2022         * doc/copyright.rst: New file.
2023         * doc/cuda-streams-usage.rst: New file.
2024         * doc/enabling-openacc.rst: New file.
2025         * doc/enabling-openmp.rst: New file.
2026         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2027         * doc/first-invocation-openacc-library-api.rst: New file.
2028         * doc/funding.rst: New file.
2029         * doc/general-public-license-3.rst: New file.
2030         * doc/gnu-free-documentation-license.rst: New file.
2031         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2032         * doc/index.rst: New file.
2033         * doc/indices-and-tables.rst: New file.
2034         * doc/introduction.rst: New file.
2035         * doc/memory-allocation-with-libmemkind.rst: New file.
2036         * doc/nvptx.rst: New file.
2037         * doc/offload-target-specifics.rst: New file.
2038         * doc/openacc-environment-variables.rst: New file.
2039         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2040         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2041         * doc/openacc-environment-variables/accproflib.rst: New file.
2042         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2043         * doc/openacc-introduction.rst: New file.
2044         * doc/openacc-library-and-environment-variables.rst: New file.
2045         * doc/openacc-library-interoperability.rst: New file.
2046         * doc/openacc-profiling-interface.rst: New file.
2047         * doc/openacc-runtime-library-routines.rst: New file.
2048         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2049         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2050         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2051         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2052         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2053         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2054         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2055         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2056         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2057         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2058         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2059         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2060         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2061         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2062         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2063         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2064         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2065         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2066         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2067         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2068         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2069         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2070         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2071         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2072         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2073         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2074         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2075         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2076         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2077         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2078         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2079         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2080         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2081         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2082         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2083         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2084         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2085         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2086         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2087         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2088         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2089         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2090         * doc/openmp-context-selectors.rst: New file.
2091         * doc/openmp-environment-variables.rst: New file.
2092         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2093         * doc/openmp-environment-variables/gompdebug.rst: New file.
2094         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2095         * doc/openmp-environment-variables/gompspincount.rst: New file.
2096         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2097         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2098         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2099         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2100         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2101         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2102         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2103         * doc/openmp-environment-variables/ompnested.rst: New file.
2104         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2105         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2106         * doc/openmp-environment-variables/ompplaces.rst: New file.
2107         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2108         * doc/openmp-environment-variables/ompschedule.rst: New file.
2109         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2110         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2111         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2112         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2113         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2114         * doc/openmp-implementation-specifics.rst: New file.
2115         * doc/openmp-implementation-status.rst: New file.
2116         * doc/openmp-implementation-status/openmp-45.rst: New file.
2117         * doc/openmp-implementation-status/openmp-50.rst: New file.
2118         * doc/openmp-implementation-status/openmp-51.rst: New file.
2119         * doc/openmp-implementation-status/openmp-52.rst: New file.
2120         * doc/openmp-runtime-library-routines.rst: New file.
2121         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2122         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2123         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2124         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2125         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2126         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2127         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2128         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2129         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2130         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2131         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2132         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2133         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2134         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2135         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2136         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2137         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2138         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2139         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2140         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2141         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2142         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2143         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2144         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2145         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2146         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2147         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2148         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2149         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2150         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2151         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2152         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2153         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2154         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2155         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2156         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2157         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2158         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2159         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2160         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2161         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2162         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2163         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2164         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2165         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2166         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2167         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2168         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2169         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2170         * doc/reporting-bugs.rst: New file.
2171         * doc/the-libgomp-abi.rst: New file.
2172         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2173         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2174         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2175         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2176         New file.
2177         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2178         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2179         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2180         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2181         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2182         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2183         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2184         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2185         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2186         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2187         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2189 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2191         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2192         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2193         documentation.
2194         * plugin/configfrag.ac <enable_offload_targets>
2195         [*-intelmic-* | *-intelmicemul-*]: Remove.
2196         * configure: Regenerate.
2197         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2198         handling.
2199         (offload_target_to_openacc_device_type)
2200         [$offload_target = *-intelmic*]: Remove.
2201         (check_effective_target_offload_device_intel_mic)
2202         (check_effective_target_offload_device_any_intel_mic): Remove.
2203         * testsuite/libgomp.c-c++-common/on_device_arch.h
2204         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2205         (any_device_arch_intel_mic): Remove.
2206         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2207         'offload_device_any_intel_mic' XFAIL.
2208         * testsuite/libgomp.fortran/target10.f90: Likewise.
2210 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2212         * testsuite/libgomp.fortran/target-11.f90: New test.
2213         * testsuite/libgomp.fortran/target-13.f90: New test.
2215 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2217         PR libgomp/106643
2218         PR fortran/96668
2219         * oacc-mem.c (goacc_enter_data_internal): Support
2220         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2221         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2222         Adjust.
2223         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2225 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2227         PR libgomp/106643
2228         * oacc-mem.c (goacc_enter_data_internal): Support
2229         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2230         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2231         New.
2232         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2233         New.
2235 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2237         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2238         New.
2240 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2242         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2243         New.
2245 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2246             Thomas Schwinge  <thomas@codesourcery.com>
2248         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2250 2022-10-28  Julian Brown  <julian@codesourcery.com>
2251             Thomas Schwinge  <thomas@codesourcery.com>
2253         PR middle-end/90115
2254         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2255         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2256         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2257         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2258         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2260 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2262         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2263         'ptx_dev->rev_data'.
2265 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2267         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2268         'static' for this variable.
2269         * config/nvptx/libgomp-nvptx.h: New file.
2270         * config/nvptx/target.c: Include it.
2271         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2272         (GOMP_REV_OFFLOAD_VAR): Declare var.
2273         (GOMP_target_ext): Handle reverse offload.
2274         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2275         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2276         * target.c (gomp_target_rev): ... this new stub function.
2277         * libgomp.h (gomp_target_rev): Declare.
2278         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2279         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2280         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2281         (struct ptx_device): Add rev_data member.
2282         (nvptx_open_device): Remove async_engines query, last used in
2283         r10-304-g1f4c5b9b; add unified-address assert check.
2284         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2285         support.
2286         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2287         offload functions exist. Make offload var available
2288         on host and device.
2289         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2290         (GOMP_OFFLOAD_run): Handle reverse offload.
2292 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2294         PR tree-optimization/107195
2295         PR target/107344
2296         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2297         regions checking.
2299 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2301         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2302         New.
2303         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2304         on_device_arch_gcn): New.
2305         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2306         requires-4.c but using heap-allocated memory.
2308 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2310         PR target/105421
2311         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2313 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2315         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2316         '-foffload-options' syntax.
2318 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2320         * testsuite/libgomp.fortran/task-7.f90: New test.
2321         * testsuite/libgomp.fortran/task-8.f90: New test.
2322         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2323         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2324         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2325         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2326         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2328 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2330         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2331         in deprecation bullet.
2333 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2335         * omp.h.in (omp_in_explicit_task): Declare.
2336         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2337         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2338         * libgomp.map (OMP_5.2): New symbol version, export
2339         omp_in_explicit_task and omp_in_explicit_task_.
2340         * task.c (omp_in_explicit_task): New function.
2341         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2342         (omp_in_explicit_task_): New function.
2343         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2344         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2345         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2346         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2348 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2350         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2351         from within explicit task.
2352         * target.c (GOMP_target_ext): Likewise.
2353         * testsuite/libgomp.c/task-7.c: New test.
2354         * testsuite/libgomp.c/task-8.c: New test.
2355         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2356         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2358 2022-10-12  Martin Liska  <mliska@suse.cz>
2360         * configure: Regenerate.
2362 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2363             Olivier Hainque  <hainque@adacore.com>
2365         * configure: Regenerate.
2367 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2369         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2371 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
2373         * libgomp.texi (Support begin/end declare target syntax in C/C++):
2374         Mark as implemented.
2376 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
2378         PR fortran/105318
2379         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2381 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
2383         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2384         for C/C++. Remove duplicated 'begin declare target' entry.
2386 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
2388         PR c/106981
2389         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2391 2022-09-14  Julian Brown  <julian@codesourcery.com>
2393         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2394         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2395         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2396         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2397         test to here, make "run" test.
2399 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
2401         PR libgomp/106906
2402         * env.c (get_icv_member_addr): Cast false to void * before assigning
2403         it to icv_addr[1], and comment the whole assignment out.
2405 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
2407         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2408         (nvptx): ... here.
2410 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2412         * libgomp.texi (Offload-Target Specifics: nvptx): Document
2413         that reverse offload requires >= -march=sm_35.
2414         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2415         with -misa=sm_35.
2416         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2417         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2418         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2419         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2420         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2422 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2424         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2425         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2427 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
2429         PR libgomp/106894
2430         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2431         (main): Avoid tests for which corresponding non-_ALL suffixed variable
2432         is in the environment, or for OMP_NUM_TEAMS on the device
2433         OMP_NUM_TEAMS_DEV_?.
2435 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
2437         * env.c (initialize_env): Include libiberty environ.h.
2439 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2441         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2442         function address table '$offload_func_table' if rev_fn_table
2443         is not NULL.
2445 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2447         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2448         .offload_func_table to populate rev_fn_table when requested.
2450 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2452         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2453         'uint64_t **rev_fn_table' argument.
2454         * oacc-host.c (host_load_image): Likewise.
2455         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2456         currently unused.
2457         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2458         * target.c (gomp_load_image_to_device): Update call but pass
2459         NULL for now.
2461 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
2463         PR libgomp/106894
2464         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2465         char * for dest[1] initialization from params[1].  Formatting fixes.
2467 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2469         PR fortran/106670
2470         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2472 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2474         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2475         section; move OpenMP Context Selectors from ...
2476         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2477         'nvptx' sections.
2479 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
2481         * config/gcn/icv-device.c (omp_get_default_device): Return device-
2482         specific ICV.
2483         (omp_get_max_teams): Added for GCN devices.
2484         (omp_set_num_teams): Likewise.
2485         (ialias): Likewise.
2486         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2487         specific ICV.
2488         (omp_get_max_teams): Added for NVPTX devices.
2489         (omp_set_num_teams): Likewise.
2490         (ialias): Likewise.
2491         * env.c (struct gomp_icv_list): New struct to store entries of initial
2492         ICV values.
2493         (struct gomp_offload_icv_list): New struct to store entries of device-
2494         specific ICV values that are copied to the device and back.
2495         (struct gomp_default_icv_values): New struct to store default values of
2496         ICVs according to the OpenMP standard.
2497         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2498         (print_env_var_error): Function that prints an error for invalid values
2499         for ICVs.
2500         (parse_unsigned_long_1): Removed getenv.  Generalized.
2501         (parse_unsigned_long): Likewise.
2502         (parse_int_1): Likewise.
2503         (parse_int): Likewise.
2504         (parse_int_secure): Likewise.
2505         (parse_unsigned_long_list): Likewise.
2506         (parse_target_offload): Likewise.
2507         (parse_bind_var): Likewise.
2508         (parse_stacksize): Likewise.
2509         (parse_boolean): Likewise.
2510         (parse_wait_policy): Likewise.
2511         (parse_allocator): Likewise.
2512         (omp_display_env): Extended to output different variants of environment
2513         variables.
2514         (print_schedule): New helper function for omp_display_env which prints
2515         the values of run_sched_var.
2516         (print_proc_bind): New helper function for omp_display_env which prints
2517         the values of proc_bind_var.
2518         (enum gomp_parse_type): Collection of types used for parsing environment
2519         variables.
2520         (ENTRY): Preprocess string lengths of environment variables.
2521         (OMP_VAR_CNT): Preprocess table size.
2522         (OMP_HOST_VAR_CNT): Likewise.
2523         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2524         number.
2525         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2526         (gomp_set_icv_flag): Sets a flag for a particular ICV.
2527         (print_device_specific_icvs): New helper function for omp_display_env to
2528         print device specific ICV values.
2529         (get_device_num): New helper function for parse_device_specific.
2530         Extracts the device number from an environment variable name.
2531         (get_icv_member_addr): Gets the memory address for a particular member
2532         of an ICV struct.
2533         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2534         (initialize_icvs): New function to initialize a gomp_initial_icvs
2535         struct.
2536         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2537         (startswith): Checks if a string starts with a given prefix.
2538         (initialize_env): Extended to parse the new syntax of environment
2539         variables.
2540         * icv-device.c (omp_get_max_teams): Added.
2541         (ialias): Likewise.
2542         (omp_set_num_teams): Likewise.
2543         * icv.c (omp_set_num_teams): Moved to icv-device.c.
2544         (omp_get_max_teams): Likewise.
2545         (ialias): Likewise.
2546         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2547         (GOMP_ADDITIONAL_ICVS): New target-side struct that
2548         holds the designated ICVs of the target device.
2549         * libgomp.h (enum gomp_icvs): Collection of ICVs.
2550         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2551         no suffix.
2552         (enum gomp_env_suffix): Collection of possible suffixes of environment
2553         variables.
2554         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2555         initial values.
2556         (struct gomp_default_icv):New struct to hold ICVs for which we need
2557         to store initial values.
2558         (struct gomp_icv_list): Definition of a linked list that is used for
2559         storing ICVs for the devices and also for _DEV, _ALL, and without
2560         suffix.
2561         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2562         a device.
2563         (struct gomp_offload_icv_list): Definition of a linked list that holds
2564         device-specific ICVs that are copied to devices.
2565         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2566         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2567         * libgomp.texi: Updated.
2568         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2569         further ICVs from the offload image.
2570         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2571         * target.c (gomp_get_offload_icv_item): Get a list item of
2572         gomp_offload_icv_list.
2573         (get_gomp_offload_icvs): New. Returns the ICV values
2574         depending on the device num and the variable hierarchy.
2575         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2576         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2577         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2578         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2579         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2580         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2581         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2583 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
2585         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2586         fully supported.
2587         * testsuite/libgomp.c/doacross-4.c: New test.
2588         * testsuite/libgomp.c/doacross-5.c: New test.
2589         * testsuite/libgomp.c/doacross-6.c: New test.
2590         * testsuite/libgomp.c/doacross-7.c: New test.
2592 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
2594         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2596 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
2598         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2599         refer to 'requires'.
2600         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2601         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2602         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2603         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2605 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2607         PR middle-end/106548
2608         * testsuite/libgomp.c/linear-2.c: New test.
2610 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2612         * splay-tree.h: Fix splay_* macro unsetting if
2613         splay_tree_prefix is defined.
2615 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
2617         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2619 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
2621         PR middle-end/106449
2622         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2624 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
2626         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2628 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
2630         PR middle-end/101551
2631         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2632         'offloading_enabled' diagnostics issue.
2634 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
2636         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2637         '_Pragma' diagnostics verification.
2639 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
2641         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2642         improved warning locations.
2643         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2645 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2647         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2648         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2649         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2650         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2651         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2653 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2655         * target.c (GOMP_offload_register, GOMP_offload_unregister):
2656         Denote as legacy entry points.
2657         * testsuite/lib/libgomp.exp
2658         (check_effective_target_offload_target_any): New proc.
2659         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2660         'offload_target_any'.
2661         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2662         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2663         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2665 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2667         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2668         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2670 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2672         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2674 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
2676         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2677         'data'.
2678         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
2680 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2681             Jakub Jelinek  <jakub@redhat.com>
2683         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2685 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2686             Chung-Lin Tang  <cltang@codesourcery.com>
2687             Thomas Schwinge  <thomas@codesourcery.com>
2689         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2690         omp_requires_mask arg.
2691         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2692         return -1 when device available but omp_requires_mask != 0.
2693         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2694         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2695         Update call.
2696         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2697         goacc_attach_host_thread_to_device, acc_get_num_devices,
2698         acc_set_device_num, get_property_any): Likewise.
2699         * target.c (omp_requires_mask): New global var.
2700         (gomp_requires_to_name): New.
2701         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2702         (gomp_target_init): Handle omp_requires_mask.
2703         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2704         (OpenMP 5.1): Add a missed item.
2705         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2706         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2707         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2708         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2709         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2710         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2711         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2712         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2713         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2714         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2715         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2716         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2717         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2718         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2719         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2720         * testsuite/libgomp.fortran/requires-1.f90: New test.
2722 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
2724         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2725         with fromto as implemented.
2727 2022-06-28  Martin Liska  <mliska@suse.cz>
2729         * acinclude.m4: Fix typo in mold linker detection.
2730         * Makefile.in: Regenerate.
2731         * configure: Regenerate.
2733 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
2734             Paul Iannetta  <piannetta@kalrayinc.com>
2736         PR libgomp/106045
2737         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2739 2022-06-17  Martin Liska  <mliska@suse.cz>
2741         * libgomp.texi: Add table header for new features of
2742         OpenMP 5.2.
2744 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
2746         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2747         q to ddress of an automatic variable.  Use -5 instead of -1 in
2748         omp_get_mapped_ptr call.  Add test with omp_initial_device.
2749         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2750         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
2751         Renumber stop arguments afterwards.
2753 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
2755         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2756         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2757         parameters.
2758         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2759         * target.c (resolve_device): Add remapped argument, handle
2760         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2761         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2762         if remapped, otherwise treat omp_initial_device that way.  For
2763         omp_invalid_device, always emit gomp_fatal, even when
2764         OMP_TARGET_OFFLOAD isn't mandatory.
2765         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2766         GOMP_target_update, GOMP_target_update_ext,
2767         GOMP_target_enter_exit_data): Pass true as remapped argument to
2768         resolve_device.
2769         (omp_target_alloc, omp_target_free, omp_target_is_present,
2770         omp_target_memcpy_check, omp_target_associate_ptr,
2771         omp_target_disassociate_ptr, omp_get_mapped_ptr,
2772         omp_target_is_accessible): Pass false as remapped argument to
2773         resolve_device.  Treat omp_initial_device the same as
2774         gomp_get_num_devices ().  Don't bypass resolve_device calls if
2775         device_num is negative.
2776         (omp_pause_resource): Treat omp_initial_device the same as
2777         gomp_get_num_devices ().  Call resolve_device.
2778         * icv-device.c (omp_set_default_device): Always set to device_num
2779         even when it is negative.
2780         * libgomp.texi: Document that Conforming device numbers,
2781         omp_initial_device and omp_invalid_device is implemented.
2782         * testsuite/libgomp.c/target-41.c (main): Add test with
2783         omp_initial_device.
2784         * testsuite/libgomp.c/target-45.c: New test.
2785         * testsuite/libgomp.c/target-46.c: New test.
2786         * testsuite/libgomp.c/target-47.c: New test.
2787         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2788         test with omp_initial_device.  Use -5 instead of -1 for negative value
2789         test.
2790         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2791         Likewise.  Reorder stop numbers.
2793 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
2795         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2796         rather than "libmemkind.so".
2798 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2800         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2801         * plugin/configfrag.ac (--with-cuda-driver)
2802         (--with-cuda-driver-include, --with-cuda-driver-lib)
2803         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2804         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2805         Remove.
2806         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2807         (cuda_driver_lib): Remove.
2808         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2809         * Makefile.in: Regenerate.
2810         * configure: Likewise.
2811         * testsuite/Makefile.in: Likewise.
2813 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2815         * config/linux/allocator.c: Fix up #include directive.
2817 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2819         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2820         (enum gomp_memkind_kind): New type.
2821         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2822         is defined.
2823         (struct gomp_memkind_data): New type.
2824         (memkind_data, memkind_data_once): New variables.
2825         (gomp_init_memkind, gomp_get_memkind): New functions.
2826         (omp_init_allocator): Initialize data.memkind, don't fail for
2827         omp_high_bw_mem_space if libmemkind supports it.
2828         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2829         memkind support of LIBGOMP_USE_MEMKIND is defined.
2830         * config/linux/allocator.c: New file.
2832 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
2834         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2835         * testsuite/libgomp.fortran/scope-2.f90: New test.
2837 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
2839         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2841 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
2843         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2844         scope construct with allocate clause.
2845         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2846         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2848 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
2850         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2851         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2852         explicit 'to' and 'enter' clause.
2853         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2855 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
2857         PR libgomp/105745
2858         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2859         defined(HAVE__ALIGNED_MALLOC) case.
2860         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2861         handling as last option before fallback instead of first.
2862         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2863         _aligned_free.
2865 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
2867         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2868         clauses to enter.
2869         * testsuite/libgomp.c/target-41.c: Likewise.
2871 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
2873         * libgomp.texi (Other new OpenMP 5.1 features): Add
2874         'begin declare target'.
2875         (Other new OpenMP 5.2 features): New.
2877 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
2879         * task.c (gomp_task_run_post_handle_dependers): If empty_task
2880         is the last task taskwait depend depends on, wake it up.
2881         Similarly if it is the last child of a taskgroup, use atomic
2882         store instead of decrement and awak taskgroup wait if any.
2883         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2885 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
2887         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2888         EF_AMDGPU_MACH_AMDGCN_GFX90a.
2889         (gcn_gfx90a_s): New.
2890         (isa_hsa_name): Support gfx90a.
2891         (isa_code): Likewise.
2893 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
2895         PR c/105378
2896         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2897         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2899 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
2901         PR c/105378
2902         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2903         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2904         * task.c (empty_task): New function.
2905         (gomp_task_run_post_handle_depend_hash): Declare earlier.
2906         (gomp_task_run_post_handle_depend): Declare.
2907         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2908         for.
2909         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2910         (GOMP_taskwait_depend_nowait): New function.
2911         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2913 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
2915         PR fortran/104949
2916         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2917         Support attach for GOMP_MAP_FIRSTPRIVATE.
2918         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2919         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2920         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2922 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
2924         * libgomp.map: Added omp_target_memcpy_async and
2925         omp_target_memcpy_rect_async.
2926         * libgomp.texi: Both functions are now supported.
2927         * omp.h.in: Added omp_target_memcpy_async and
2928         omp_target_memcpy_rect_async.
2929         * omp_lib.f90.in: Added interfaces for both new functions.
2930         * omp_lib.h.in: Likewise.
2931         * target.c (ialias_redirect): Added for GOMP_task.
2932         (omp_target_memcpy): Restructured into check and copy part.
2933         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2934         omp_target_memcpy_async that checks requirements.
2935         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2936         omp_target_memcpy_async that performs the memcpy.
2937         (omp_target_memcpy_async_helper): New helper function that is used in
2938         omp_target_memcpy_async for the asynchronous task.
2939         (omp_target_memcpy_async): Added.
2940         (omp_target_memcpy_rect): Restructured into check and copy part.
2941         (omp_target_memcpy_rect_check): New helper function for
2942         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2943         requirements.
2944         (omp_target_memcpy_rect_copy): New helper function for
2945         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2946         the memcpy.
2947         (omp_target_memcpy_rect_async_helper): New helper function that is used
2948         in omp_target_memcpy_rect_async for the asynchronous task.
2949         (omp_target_memcpy_rect_async): Added.
2950         * task.c (ialias): Added for GOMP_task.
2951         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2952         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2953         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2954         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2955         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2956         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2957         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2958         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2960 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
2962         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2963         (OpenMP Context Selectors): Add missing comma.
2964         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2965         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2966         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2967         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2969 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2971         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2972         comment for omp_display_env feature.
2974 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2976         * libgomp.texi (Offload-Target Specifics): New chapter; add section
2977         to document OpenMP context selectors.
2979 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2981         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2982         from bool to unsigned char.
2983         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2984         Ignore dependencies where
2985         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2986         rather than just task->depend[i].is_in && ent->is_in.  Remember
2987         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2988         conditional.
2989         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2990         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2991         rather than just elem.is_in && ent->is_in.
2992         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2993         inoutset depend-kind.
2994         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2995         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2996         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2998 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3000         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3002 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3004         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3005         * testsuite/libgomp.fortran/depend-5.f90: New test.
3006         * testsuite/libgomp.fortran/depend-6.f90: New test.
3007         * testsuite/libgomp.fortran/depend-7.f90: New test.
3009 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3011         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3012         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3013         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3015 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3017         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3019 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3021         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3023 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3025         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3026         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3027         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3028         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3029         * Makefile.in: Regenerate.
3031 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3033         * Makefile.am (libgomp_la_LIBADD): Initialize.
3034         * plugin/configfrag.ac (DL_LIBS): New.
3035         (PLUGIN_GCN_LIBS): Remove.
3036         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3037         * plugin/Makefrag.am (libgomp_la_LIBADD)
3038         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3039         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3040         * Makefile.in: Regenerate.
3041         * config.h.in: Likewise.
3042         * configure: Likewise.
3043         * testsuite/Makefile.in: Likewise.
3045 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3047         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3048         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3049         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3050         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3051         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3052         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3053         * Makefile.in: Regenerate.
3054         * config.h.in: Likewise.
3055         * configure: Likewise.
3057 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3059         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3060         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3061         * Makefile.in: Regenerate.
3062         * config.h.in: Likewise.
3063         * configure: Likewise.
3064         * testsuite/Makefile.in: Likewise.
3066 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3068         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3069         * task.c (gomp_init_task): Initialize depend_all_memory.
3070         (gomp_task_handle_depend): Handle omp_all_memory.
3071         (gomp_task_run_post_handle_depend_hash): Clear
3072         parent->depend_all_memory if equal to current task.
3073         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3074         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3075         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3076         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3078 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3080         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3081         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3082         * Makefile.in: Regenerate.
3083         * configure: Likewise.
3084         * testsuite/Makefile.in: Likewise.
3086 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3088         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3089         consider 'PLUGIN_GCN_CPPFLAGS'.
3090         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3091         'PLUGIN_GCN_LDFLAGS'.
3092         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3093         Remove.
3094         * Makefile.in: Regenerate.
3095         * configure: Likewise.
3096         * testsuite/Makefile.in: Likewise.
3098 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3100         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3101         (HSA_RUNTIME_LDFLAGS): Remove.
3102         * configure: Regenerate.
3104 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3106         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3107         'append always_ld_library_path ":$hsa_runtime_lib"'.
3108         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3110 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3112         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3113         multi-device testing.
3115 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3117         * libgomp.map: Added omp_target_is_accessible.
3118         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3119         * omp.h.in: Added omp_target_is_accessible.
3120         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3121         * omp_lib.h.in: Likewise.
3122         * target.c (omp_target_is_accessible): Added implementation of
3123         omp_target_is_accessible.
3124         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3125         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3127 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3129         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3131 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3133         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3135 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3137         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3139 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3141         * libgomp.map: Added omp_get_mapped_ptr.
3142         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3143         * omp.h.in: Added omp_get_mapped_ptr.
3144         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3145         * omp_lib.h.in: Likewise.
3146         * target.c (omp_get_mapped_ptr): Added implementation of
3147         omp_get_mapped_ptr.
3148         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3149         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3150         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3151         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3152         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3153         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3154         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3155         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3157 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3159         PR fortran/104717
3160         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3161         privatization scanning.  For GCN offloading compilation, raise
3162         '-mgang-private-size'.
3164 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3166         PR libgomp/105358
3167         * work.c (gomp_init_work_share): Don't mask of adjustment for
3168         dynamic long long realignment if struct gomp_work_share has smaller
3169         alignof than long long.
3170         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3171         struct gomp_work_share has smaller alignof than long long or if
3172         sizeof (struct gomp_work_share) is smaller than
3173         INLINE_ORDERED_TEAM_IDS_OFF.
3174         * loop_ull.c (GOMP_loop_ull_start): Likewise.
3175         * sections.c (GOMP_sections2_start): Likewise.
3177 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
3178             Thomas Schwinge  <thomas@codesourcery.com>
3180         PR fortran/104717
3181         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3183 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
3185         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3187 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3189         * plugin/cuda/cuda.h: Remove file.
3190         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3191         "cuda/cuda.h" instead of <cuda.h>.
3192         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3193         'PLUGIN_NVPTX_CPPFLAGS'.
3194         * configure: Regenerate.
3196 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3198         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3200 2022-04-04  Tom de Vries  <tdevries@suse.de>
3202         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3203         on_device_arch_nvptx instead of offload_target_nvptx.
3204         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3206 2022-04-01  Tom de Vries  <tdevries@suse.de>
3208         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3209         and use REC_DEPTH.
3210         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3212 2022-04-01  Tom de Vries  <tdevries@suse.de>
3214         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3215         num_workers check.
3217 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3218             Lulu Cheng  <chenglulu@loongson.cn>
3220         * configure.tgt: Add LoongArch triplet.
3222 2022-03-28  Tom de Vries  <tdevries@suse.de>
3224         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3225         instead of /libexec/.
3226         * configure: Regenerate.
3228 2022-03-25  Tom de Vries  <tdevries@suse.de>
3230         PR libgomp/105042
3231         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3232         execution time.
3233         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3234         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3236 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3238         PR middle-end/104285
3239         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3240         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3241         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3242         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3243         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3244         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3246 2022-03-22  Tom de Vries  <tdevries@suse.de>
3248         PR target/104916
3249         PR target/104783
3250         * testsuite/libgomp.c/pr104783-2.c: New test.
3252 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3254         PR fortran/103039
3255         * testsuite/libgomp.fortran/associate4.f90: New test.
3257 2022-03-18  Tom de Vries  <tdevries@suse.de>
3259         PR target/104952
3260         * testsuite/libgomp.c/pr104952-1.c: New test.
3261         * testsuite/libgomp.c/pr104952-2.c: New test.
3263 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3265         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3266         variable next to pl variable.
3268 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3270         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3271         Enhance.
3272         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3273         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3275 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3277         PR middle-end/90115
3278         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3279         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3281 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3283         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3284         omp_set_max_active_levels.
3285         * testsuite/libgomp.fortran/icv-8.f90: New test.
3287 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3289         PR testsuite/102841
3290         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3292 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3294         * libgomp.texi: Fix typo.
3296 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3298         PR middle-end/100280
3299         PR middle-end/104892
3300         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3301         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3302         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3303         Likewise.
3304         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3305         Likewise.
3306         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3307         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3308         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3309         Likewise.
3311 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3313         PR middle-end/104892
3314         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3315         to PR104892.
3316         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3317         enable '--param=openacc-kernels=decompose' and adjust.
3318         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3319         Likewise.
3320         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3321         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3322         Likewise.
3324 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3326         PR middle-end/90115
3327         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3328         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3329         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3330         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3332 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3334         PR middle-end/100280
3335         PR middle-end/104086
3336         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3337         Merge this...
3338         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3339         ..., and this...
3340         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3341         this, and adjust.
3342         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3343         Extend.
3345 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3347         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3348         trait.  Test last index in w and v array.  Remove redundant
3349         assignment to V(1).  Move alignment checks at the end of
3350         parallel region.
3352 2022-03-10  Tom de Vries  <tdevries@suse.de>
3354         * testsuite/libgomp.c/pr104783.c: New test.
3356 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3358         PR middle-end/90115
3359         PR middle-end/102330
3360         PR middle-end/104774
3361         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3362         Enhance.
3363         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3364         Adjust.
3365         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3366         Likewise.
3367         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3368         Likewise.
3369         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3370         Likewise.
3371         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3372         Likewise.
3373         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3374         Likewise.
3375         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3376         Likewise.
3377         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3378         Likewise.
3379         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3380         Likewise.
3381         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3382         Likewise.
3383         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3384         Likewise.
3385         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3386         Likewise.
3387         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3388         Likewise.
3389         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3390         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3391         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3393 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3395         PR middle-end/90115
3396         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3397         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3398         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3399         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3401 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3403         PR testsuite/104791
3404         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3405         expected diagnostics.
3407 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3409         PR middle-end/104784
3410         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3411         Test with '--param=openacc-kernels=decompose'.
3412         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3413         Likewise.
3414         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3415         Likewise.
3416         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3417         Likewise.
3418         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3419         Likewise.
3420         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3421         Likewise.
3422         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3423         Likewise.
3424         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3425         Likewise.
3426         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3427         Likewise.
3428         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3429         Likewise.
3430         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3431         Likewise.
3432         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3433         Likewise.
3434         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3435         Likewise.
3436         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3437         Likewise.
3438         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3439         Likewise.
3440         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3441         Likewise.
3442         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3443         Likewise.
3444         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3445         Likewise.
3446         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3447         Likewise.
3448         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3449         Likewise.
3450         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3451         Likewise.
3452         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3453         Likewise.
3454         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3455         Likewise.
3456         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3457         Likewise.
3458         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3459         Likewise.
3460         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3461         Likewise.
3462         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3463         Likewise.
3464         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3465         Likewise.
3466         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3467         Likewise.
3468         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3469         Likewise.
3470         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3471         Likewise.
3472         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3473         Likewise.
3474         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3475         Likewise.
3477 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3479         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3480         Test '-fopt-info-omp-all'.
3481         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3482         Likewise.
3483         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3484         Likewise.
3485         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3486         Likewise.
3487         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3488         Likewise.
3489         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3490         Likewise.
3491         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3492         Likewise.
3493         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3494         Likewise.
3495         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3496         Likewise.
3497         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3498         Likewise.
3499         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3500         Likewise.
3501         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3502         Likewise.
3503         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3504         Likewise.
3505         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3506         Likewise.
3507         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3508         Likewise.
3509         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3510         Likewise.
3511         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3512         Likewise.
3513         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3514         Likewise.
3515         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3516         Likewise.
3517         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3518         Likewise.
3519         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3520         Likewise.
3521         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3522         Likewise.
3523         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3524         Likewise.
3525         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3526         Likewise.
3527         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3528         Likewise.
3529         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3530         Likewise.
3531         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3532         Likewise.
3533         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3534         Likewise.
3535         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3536         Likewise.
3537         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3538         Likewise.
3539         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3540         Likewise.
3541         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3542         Likewise.
3543         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3544         Likewise.
3546 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3548         PR middle-end/100280
3549         PR middle-end/104132
3550         PR middle-end/104133
3551         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3552         Extend.
3554 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3556         PR middle-end/100280
3557         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3558         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3559         Likewise.
3561 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3563         PR middle-end/100280
3564         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3565         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3566         Likewise.
3568 2022-02-28  Tom de Vries  <tdevries@suse.de>
3570         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3571         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3572         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3573         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3574         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3575         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3577 2022-02-24  Tom de Vries  <tdevries@suse.de>
3579         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3580         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3581         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3582         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3583         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3584         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3585         * testsuite/libgomp.c/declare-variant-3.h: New header file.
3587 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3589         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3590         gang-redundant execution.
3592 2022-02-22  Tom de Vries  <tdevries@suse.de>
3594         PR target/99555
3595         * config/nvptx/bar.c (generation_to_barrier): New function, copied
3596         from config/rtems/bar.c.
3597         (futex_wait, futex_wake): New function.
3598         (do_spin, do_wait): New function, copied from config/linux/wait.h.
3599         (gomp_barrier_wait_end, gomp_barrier_wait_last)
3600         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3601         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3602         and replace with include of config/linux/bar.c.
3603         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3604         (gomp_barrier_init): Init new fields.
3605         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3606         workarounds.
3607         * testsuite/libgomp.c/pr99555-1.c: Same.
3608         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3610 2022-02-22  Tom de Vries  <tdevries@suse.de>
3612         PR testsuite/104146
3613         * testsuite/libgomp.c++/pr96390.C: Add additional-option
3614         -foffload=-Wa,--verify for nvptx.
3615         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3617 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
3619         * testsuite/libgomp.fortran/depend-4.f90: New test.
3621 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
3623         PR c++/102204
3624         * testsuite/libgomp.c++/target-virtual-1.C: New test.
3626 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
3628         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3629         * target.c (copy_firstprivate_data): Copy only if host address is not
3630         NULL.
3631         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3632         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3633         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3634         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3635         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3636         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3637         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3638         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3639         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3640         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3642 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
3644         PR libgomp/104385
3645         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3646         clear task->parent.
3647         * testsuite/libgomp.c/pr104385.c: New test.
3649 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3651         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3652         STOP of previous commit.
3654 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3656         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3657         from is_64bit_aligned_.
3658         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3659         and use it, more implicit none, remove unused argument.
3661 2022-02-03  David Seifert  <soap@gentoo.org>
3662             Jakub Jelinek  <jakub@redhat.com>
3664         * configure.ac: Support --disable-werror.
3665         * configure: Regenerate.
3667 2022-02-01  Tom de Vries  <tdevries@suse.de>
3669         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3670         PR83812 workaround.
3671         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3672         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3674 2022-02-01  Tom de Vries  <tdevries@suse.de>
3676         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3677         num_workers for nvidia accelerator to fix libgomp error 'insufficient
3678         resources'.
3679         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3680         Same.
3681         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3683 2022-02-01  Tom de Vries  <tdevries@suse.de>
3685         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3686         recursion depth.
3687         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3689 2022-01-31  Martin Liska  <mliska@suse.cz>
3691         * acinclude.m4: Detect *_ld_is_mold and use it.
3692         * configure: Regenerate.
3694 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
3696         * libgomp.texi (OpenMP 5.0): Update implementation status.
3698 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
3700         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3701         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3702         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3703         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3704         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3705         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3706         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3707         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3708         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3709         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3710         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3711         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3712         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3713         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3714         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3716 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
3718         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3719         "static") to make the device num available in the offload image.
3721 2022-01-19  Martin Liska  <mliska@suse.cz>
3722             Thomas Schwinge  <thomas@codesourcery.com>
3724         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3725         patterns.
3726         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3727         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3728         Likewise.
3729         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3730         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3731         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3732         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3733         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3734         Likewise.
3735         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3736         Likewise.
3737         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3738         Likewise.
3739         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3740         Likewise.
3741         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3742         Likewise.
3743         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3744         Likewise.
3745         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3746         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3747         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3749 2022-01-18  Martin Liska  <mliska@suse.cz>
3751         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3752         in dg-warning.
3753         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3754         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3755         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3756         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3757         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3758         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3759         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3760         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3761         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3762         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3763         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3764         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3765         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3766         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3767         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3769 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
3771         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3772         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3773         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3775 2022-01-17  Julian Brown  <julian@codesourcery.com>
3776             Thomas Schwinge  <thomas@codesourcery.com>
3778         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3779         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3780         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3782 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3783             Andrew Stubbs   <ams@codesourcery.com>
3785         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3786         the number of teams and threads if necessary.
3787         (gcn_exec): Automatically set the number of gangs and workers if
3788         necessary.
3790 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3792         * testsuite/libgomp.fortran/allocate-1.c: New test.
3793         * testsuite/libgomp.fortran/allocate-1.f90: New test.
3794         * libgomp.texi: Remove string that says that allocate clause
3795         support is for C/C++ only.
3797 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3799         * testsuite/libgomp.c-c++-common/on_device_arch.h
3800         (any_device_arch, any_device_arch_intel_mic): New.
3801         * testsuite/lib/libgomp.exp
3802         (check_effective_target_offload_device_any_intel_mic): New.
3803         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3804         * testsuite/libgomp.fortran/target10.f90: Likewise.
3806 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3808         PR tree-optimization/102192
3809         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3810         '-Wuninitialized' diagnostics.
3812 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3814         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3815         current '-Wuninitialized' diagnostics.
3816         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3817         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3818         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3819         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3820         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3821         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3822         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3823         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3824         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3825         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3826         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3827         Likewise.
3829 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3831         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3832         for 'offload_device_intel_mic'.
3834 2022-01-13  Julian Brown  <julian@codesourcery.com>
3835             Thomas Schwinge  <thomas@codesourcery.com>
3837         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3838         offloading execution XFAIL.
3840 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3842         PR middle-end/100280
3843         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3844         Update.
3845         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3846         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3847         Likewise.
3849 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3851         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3852         Enhance.
3853         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3854         Likewise.
3855         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3856         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3857         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3858         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3859         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3860         Likewise.
3861         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3862         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3863         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3864         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3866 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
3868         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3869         * testsuite/libgomp.fortran/target10.f90: Likewise.
3871 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
3873         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3874         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3875         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3877 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
3879         * libgomp.texi: Bump @copying's copyright year.
3881 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
3883         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3884         * testsuite/libgomp.fortran/atomic-19.f90: New test.
3886 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
3888         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3889         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3890         table, not individual symbols.
3892 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
3894         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3895         "target offload_device_nonshared_as"
3896         * testsuite/libgomp.c++/target-this-3.C: Likewise.
3897         * testsuite/libgomp.c++/target-this-4.C: Likewise.
3899 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3901         * target.c (gomp_map_vars_existing): Make sure attached pointer is
3902         not overwritten during cross-host/device copying.
3903         (gomp_update): Likewise.
3904         (gomp_exit_data): Likewise.
3905         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3906         * testsuite/libgomp.c++/target-12.C: Likewise.
3907         * testsuite/libgomp.c++/target-15.C: Likewise.
3908         * testsuite/libgomp.c++/target-16.C: Likewise.
3909         * testsuite/libgomp.c++/target-17.C: Likewise.
3910         * testsuite/libgomp.c++/target-21.C: Likewise.
3911         * testsuite/libgomp.c++/target-23.C: Likewise.
3912         * testsuite/libgomp.c/target-23.c: Likewise.
3913         * testsuite/libgomp.c/target-29.c: Likewise.
3914         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3916 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3918         PR middle-end/92120
3919         * libgomp.h (gomp_attach_pointer): Add bool parameter.
3920         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3921         (goacc_enter_data_internal): Likewise.
3922         * target.c (gomp_map_vars_existing): Update assert condition to
3923         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3924         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3925         parameter, add support for mapping a pointer with NULL target.
3926         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3927         parameter, add support for attaching a pointer with NULL target.
3928         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3929         gomp_attach_pointer, add handling for
3930         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3931         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3932         * testsuite/libgomp.c++/target-23.C: New testcase.
3933         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3934         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3935         * testsuite/libgomp.c++/target-this-1.C: New testcase.
3936         * testsuite/libgomp.c++/target-this-2.C: New testcase.
3937         * testsuite/libgomp.c++/target-this-3.C: New testcase.
3938         * testsuite/libgomp.c++/target-this-4.C: New testcase.
3939         * testsuite/libgomp.c++/target-this-5.C: New testcase.
3941 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3943         * libgomp.texi (OpenMP 5.1): Update status.
3945 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3947         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3949 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
3951         PR fortran/90030
3952         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3953         * testsuite/libgomp.fortran/pr90030.f90: New test.
3955 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
3956             Thomas Schwinge  <thomas@codesourcery.com>
3958         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3959         temporary skip.
3961 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
3962             Thomas Schwinge  <thomas@codesourcery.com>
3964         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3965         skip.
3967 2021-11-29  Richard Biener  <rguenther@suse.de>
3969         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3970         return.
3972 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
3974         PR middle-end/103384
3975         * testsuite/libgomp.c/declare-variant-2.c: New test.
3977 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
3979         * alloc.c (gomp_aligned_alloc): Fix typo.
3981 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3983         PR libgomp/102838
3984         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3985         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3986         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3987         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3988         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3989         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3990         gomp_aligned_alloc instead of team_malloc.
3992 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3994         PR libgomp/102838
3995         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3996         memalign over posix_memalign over aligned_alloc over fallback
3997         with malloc instead of aligned_alloc over _aligned_alloc over
3998         posix_memalign over memalign over fallback with malloc.  For
3999         aligned_alloc, round up size up to multiple of al.
4001 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4003         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4004         construct as implemented.
4006 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4008         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4010 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4012         * task.c (gomp_create_target_task): Copy args array as well.
4013         * target.c (gomp_target_fallback): Add args argument.
4014         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4015         (GOMP_target): Adjust gomp_target_fallback caller.
4016         (GOMP_target_ext): Likewise.
4017         (gomp_target_task_fn): Likewise.
4018         * config/nvptx/team.c (gomp_nvptx_main): Set
4019         gomp_global_icv.thread_limit_var.
4020         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4022 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4024         * config/nvptx/team.c (__gomp_team_num): Define as
4025         __attribute__((shared)) var.
4026         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4027         * config/nvptx/target.c (__gomp_team_num): Declare as
4028         extern __attribute__((shared)) var.
4029         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4030         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4031         is bigger than num_blocks, use num_teams_lower teams and arrange for
4032         bumping of __gomp_team_num if !first and returning false once we run
4033         out of teams.
4034         * config/nvptx/teams.c (__gomp_team_num): Declare as
4035         extern __attribute__((shared)) var.
4036         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4038 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4040         * testsuite/libgomp.c/teams-5.c: New test.
4042 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4044         PR target/103201
4045         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4046         to ...
4047         * config/gcn/teams.c: ... here.  New file.
4049 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4051         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4052         implicit map handling to allow a "superset" existing map as valid case.
4053         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4054         (get_implicit): New function to extract implicit status.
4055         (gomp_map_fields_existing): Adjust arguments in calls to
4056         gomp_map_vars_existing, and add uses of get_implicit.
4057         (gomp_map_vars_internal): Likewise.
4058         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4060 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4062         * libgomp_g.h (GOMP_teams4): Declare.
4063         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4064         * target.c (GOMP_teams4): New function.
4065         * config/nvptx/target.c (GOMP_teams): Remove.
4066         (GOMP_teams4): New function.
4067         * config/gcn/target.c (GOMP_teams): Remove.
4068         (GOMP_teams4): New function.
4069         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4070         teams instead of <= 2.
4071         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4073 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4075         * testsuite/libgomp.fortran/teams-1.f90: New test.
4077 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4079         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4080         * team.c (struct gomp_thread_start_data): Likewise.
4081         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4082         (gomp_team_start): Initialize start_data->num_teams and
4083         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4084         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4085         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4086         instead of gomp_num_teams and gomp_team_num.
4087         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4088         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4089         * testsuite/libgomp.c/teams-4.c: New test.
4091 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4093         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4095 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4097         * env.c (parse_gomp_openacc_dim): Restore parsing.
4099 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4101         PR middle-end/102972
4102         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4103         parallel construct.
4104         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4105         * testsuite/libgomp.c/target-3.c: Likewise.
4106         * testsuite/libgomp.c/target-5.c: Likewise.
4107         * testsuite/libgomp.c/target-6.c: Likewise.
4108         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4109         * testsuite/libgomp.c/teams-1.c: Likewise.
4110         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4111         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4112         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4113         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4114         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4115         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4116         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4118 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4120         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4121         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4123 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4125         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4126         aren't implemented for Fortran yet.
4128 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4130         * testsuite/libgomp.c/loop-26.c: New test.
4131         * testsuite/libgomp.c/loop-27.c: New test.
4133 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4135         PR testsuite/102910
4136         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4137         instead of #include <alloca.h> + alloca.
4139 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4141         * libgomp.texi (Support of strictly structured blocks in Fortran):
4142         Adjust to 'Y'.
4143         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4145 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4147         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4148         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4150 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4152         PR libgomp/102838
4153         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4154         (struct gomp_work_share): Only use aligned(64) attribute if
4155         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4156         add padding before lock to ensure lock is at offset 64 bytes
4157         into the structure.
4158         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4159         New poor man's static assertions.
4160         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4161         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4163 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4164             Richard Biener  <rguenther@suse.de>
4166         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4168 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
4170         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4171         && gomp_places_list_len < count after nfirst <= nlast loop condition.
4173 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
4175         PR fortran/102086
4176         PR fortran/92189
4177         PR fortran/92621
4178         PR fortran/101308
4179         PR fortran/101309
4180         PR fortran/101635
4181         PR fortran/92482
4182         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4184 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4186         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4187         type from char [50] to const char *.
4188         (places_array): Add a testcase for simplified syntax place followed
4189         by length or length and stride.
4191 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4193         * env.c (parse_one_place): Handle non-negative-number the same
4194         as { non-negative-number }.  Reject even !number:1 and
4195         !number:1:stride or !place:1 or !place:1:stride instead of just
4196         length other than 1.
4197         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4198         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4199         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4200         as implemented.
4201         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4202         simplified syntax.
4204 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4206         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4207         clearly reject return value 0 as invalid handle the case where end
4208         pointer is the same as first argument as invalid.
4209         (parse_unsigned_long_1): Likewise.
4210         (parse_one_place): Likewise.
4211         (parse_places_var): Likewise.
4212         (parse_stacksize): Likewise.
4213         (parse_spincount): Likewise.
4214         (parse_affinity): Likewise.
4215         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4216         Make code valid C89.
4217         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4218         For strtoul calls which don't clearly reject return value 0 as
4219         invalid handle the case where end pointer is the same as first
4220         argument as invalid.
4221         (gomp_affinity_init_level_1): Likewise.
4222         (gomp_affinity_init_numa_domains): Likewise.
4223         * config/rtems/proc.c (parse_thread_pools): Likewise.
4225 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4227         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4228         after creating count places clean up and return immediately.
4229         * testsuite/libgomp.c/places-6.c: New test.
4230         * testsuite/libgomp.c/places-7.c: New test.
4231         * testsuite/libgomp.c/places-8.c: New test.
4232         * testsuite/libgomp.c/places-9.c: New test.
4233         * testsuite/libgomp.c/places-10.c: New test.
4235 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4237         * env.c (parse_places_var): Handle numa_domains as level 5.
4238         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4239         function.
4240         (gomp_affinity_init_level): Use it instead of
4241         gomp_affinity_init_level_1 for level == 5.
4242         * testsuite/libgomp.c/places-5.c: New test.
4244 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4246         * env.c (parse_places_var): Handle ll_caches as level 4.
4247         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4248         function.
4249         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4250         last level cache.
4251         (gomp_affinity_init_level): Likewise.
4252         * testsuite/libgomp.c/places-1.c: New test.
4253         * testsuite/libgomp.c/places-2.c: New test.
4254         * testsuite/libgomp.c/places-3.c: New test.
4255         * testsuite/libgomp.c/places-4.c: New test.
4257 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4259         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4260         directive.
4262 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4264         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4266 2021-10-12  Julian Brown  <julian@codesourcery.com>
4268         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4269         error path.
4271 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4273         * testsuite/libgomp.fortran/icv-3.f90: New.
4274         * testsuite/libgomp.fortran/icv-4.f90: New.
4276 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4278         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4279         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4280         OMP_TEAMS_THREAD_LIMIT): Document.
4282 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4284         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4285         to avoid makeinfo warnings.
4287 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4289         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4290         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4292 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4294         PR libgomp/102628
4295         PR libgomp/102668
4296         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4297         allocation sizes from 420 to 320 and from 768 to 568.
4298         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4299         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4300         for cr from 16 to 4.
4302 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4304         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4305         * testsuite/libgomp.c/scan-12.c: Likewise.
4306         * testsuite/libgomp.c/scan-13.c: Likewise.
4307         * testsuite/libgomp.c/scan-14.c: Likewise.
4308         * testsuite/libgomp.c/scan-15.c: Likewise.
4309         * testsuite/libgomp.c/scan-16.c: Likewise.
4310         * testsuite/libgomp.c/scan-17.c: Likewise.
4311         * testsuite/libgomp.c/scan-18.c: Likewise.
4312         * testsuite/libgomp.c/scan-19.c: Likewise.
4313         * testsuite/libgomp.c/scan-20.c: Likewise.
4314         * testsuite/libgomp.c/scan-21.c: Likewise.
4315         * testsuite/libgomp.c/scan-22.c: Likewise.
4316         * testsuite/libgomp.c++/scan-9.C: Likewise.
4317         * testsuite/libgomp.c++/scan-10.C: Likewise.
4318         * testsuite/libgomp.c++/scan-11.C: Likewise.
4319         * testsuite/libgomp.c++/scan-12.C: Likewise.
4320         * testsuite/libgomp.c++/scan-13.C: Likewise.
4321         * testsuite/libgomp.c++/scan-14.C: Likewise.
4322         * testsuite/libgomp.c++/scan-15.C: Likewise.
4323         * testsuite/libgomp.c++/scan-16.C: Likewise.
4325 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4327         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4329 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4331         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4332         omp_atv_serialized.
4333         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4334         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4335         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4336         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4338 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4340         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4341         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4342         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4343         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4344         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4345         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4346         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4347         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4348         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4349         omp_set_teams_thread_limit{,_,_8_}.
4350         * icv.c (omp_set_num_teams, omp_get_max_teams,
4351         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4352         functions.
4353         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4354         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4355         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4356         vars.
4357         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4358         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4359         is not specified, use gomp_nteams_var.
4360         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4361         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4362         ialias_redirect.
4363         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4364         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4365         omp_get_teams_thread_limit_): New functions.
4367 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4369         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4370         * testsuite/libgomp.c++/scan-11.C: Ditto.
4371         * testsuite/libgomp.c++/scan-12.C: Ditto.
4372         * testsuite/libgomp.c++/scan-13.C: Ditto.
4373         * testsuite/libgomp.c++/scan-14.C: Ditto.
4374         * testsuite/libgomp.c++/scan-15.C: Ditto.
4375         * testsuite/libgomp.c++/scan-16.C: Ditto.
4376         * testsuite/libgomp.c++/scan-9.C: Ditto.
4377         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4378         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4379         * testsuite/libgomp.c/scan-11.c: Ditto.
4380         * testsuite/libgomp.c/scan-12.c: Ditto.
4381         * testsuite/libgomp.c/scan-13.c: Ditto.
4382         * testsuite/libgomp.c/scan-14.c: Ditto.
4383         * testsuite/libgomp.c/scan-15.c: Ditto.
4384         * testsuite/libgomp.c/scan-16.c: Ditto.
4385         * testsuite/libgomp.c/scan-17.c: Ditto.
4386         * testsuite/libgomp.c/scan-18.c: Ditto.
4387         * testsuite/libgomp.c/scan-19.c: Ditto.
4388         * testsuite/libgomp.c/scan-20.c: Ditto.
4389         * testsuite/libgomp.c/scan-21.c: Ditto.
4390         * testsuite/libgomp.c/scan-22.c: Ditto.
4392 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
4394         * libgomp.texi (OpenMP 5.1): Mention implemented support for
4395         structured block sequences in C/C++.  Mention support for
4396         unconstrained/reproducible modifiers on order clause.
4397         Mention partial (C/C++ only) support of extentensions to atomics
4398         construct.  Mention partial (C/C++ on clause only) support of
4399         align/allocator modifiers on allocate clause.
4401 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
4403         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4404         based on libgomp.c-c++-common/order-reproducible-1.c.
4405         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4406         * testsuite/libgomp.fortran/my-usleep.c: New test.
4408 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
4410         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4411         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4412         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4413         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4414         based on libgomp.c-c++-common/alloc-9.c.
4416 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4418         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4419         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4421 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4423         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4424         ialias_redirect.
4425         * env.c (handle_omp_display_env): Use ialias_call.
4426         * icv-device.c: Move ialias right below each function.
4427         (omp_get_device_num): Use ialias_call.
4428         * fortran.c (omp_fulfill_event): Add ialias_redirect.
4429         * icv.c (omp_get_active_level): Add ialias_redirect.
4431 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4433         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4434         __alloc_align__ (1) attribute.
4435         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4437 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4439         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4440         for -fintrinsic-modules-path= warning of the C compiler.
4441         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4442         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4444 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4446         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4447         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4448         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4449         omp_realloc): Add.
4450         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4451         omp_realloc): Add.
4452         * testsuite/libgomp.fortran/alloc-10.f90: New test.
4453         * testsuite/libgomp.fortran/alloc-6.f90: New test.
4454         * testsuite/libgomp.fortran/alloc-7.c: New test.
4455         * testsuite/libgomp.fortran/alloc-7.f90: New test.
4456         * testsuite/libgomp.fortran/alloc-8.f90: New test.
4457         * testsuite/libgomp.fortran/alloc-9.f90: New test.
4459 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
4461         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4462         omp_realloc): New prototypes.
4463         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4464         attribute.
4465         * allocator.c: Include string.h.
4466         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
4467         variable and use it instead of alignment so that when retrying the old
4468         alignment is used again.  Don't retry if new alignment is the same
4469         as old alignment, unless allocator had pool size.
4470         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4471         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4472         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4473         omp_aligned_calloc and omp_realloc.
4474         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4475         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4476         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4477         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4478         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4479         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4481 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
4483         PR libgomp/96661
4484         * configure.ac: Only check for int-type = 2*size_t support when
4485         building with Fortran support.
4486         * configure: Regenerate.
4488 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
4490         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4491         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4493 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
4495         * team.c: Initialize start_data.
4496         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4497         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4499 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4501         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4502         dg-message back to dg-note.
4504 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4506         PR fortran/94070
4507         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4508         expected dg-note output.
4510 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
4512         PR fortran/55534
4513         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4514         r12-3722 by removing -Wno-missing-include-dirs.
4515         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4517 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
4519         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4520         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4522 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
4524         PR fortran/55534
4525         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4526         to ALWAYS_CFLAGS.
4527         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4529 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
4531         * testsuite/libgomp.c++/default-1.C: New test.
4532         * testsuite/libgomp.c-c++-common/default-1.c: New test.
4533         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4534         to default clause in C and C++" as implemented.
4536 2021-09-17  Julian Brown  <julian@codesourcery.com>
4538         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4540 2021-09-17  Julian Brown  <julian@codesourcery.com>
4542         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4544 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4546         * libgomp.texi (OpenMP 5.1): Spelling fix,
4547         declare variante -> declare variant.
4549 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4551         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4552         Use /* */ comments instead of //.
4553         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4554         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4555         * testsuite/libgomp.c++/atomic-16.C: New test.
4556         * testsuite/libgomp.c++/atomic-17.C: New test.
4558 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
4560         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4561         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4562         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4564 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4566         * libgomp.texi (OpenMP Implementation Status): Extend
4567         OpenMP 5.0 section.
4568         (OpenACC Profiling Interface): Fix typo.
4570 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4572         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4573         not to 4.5; link to new section.
4574         (OpenMP Implementation Status): New.
4576 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
4578         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4580 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
4582         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4583         dg-output.
4584         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4586 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4587             Jakub Jelinek  <jakub@redhat.com>
4589         * testsuite/libgomp.c/address-space-1.c: New file.
4591 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4593         * testsuite/lib/libgomp.exp
4594         (check_effective_target_offload_target_intelmic): Remove 'proc'.
4595         (check_effective_target_offload_device_intel_mic): New 'proc'.
4596         * testsuite/libgomp.c-c++-common/on_device_arch.h
4597         (device_arch_intel_mic, on_device_arch_intel_mic): New.
4598         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4599         'dg-xfail-run-if'.
4600         * testsuite/libgomp.fortran/target10.f90: Likewise.
4602 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
4604         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4605         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4606         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4607         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4609 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
4611         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4612         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4613         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4615 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
4617         * config/nvptx/error.c (fwrite, exit): Override, too.
4618         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4619         of offloading testing.
4620         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4622 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
4624         * testsuite/libgomp.fortran/error-1.f90: New test.
4626 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
4628         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4629         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4630         * error.c (GOMP_warning, GOMP_error): New functions.
4631         * testsuite/libgomp.c-c++-common/error-1.c: New test.
4633 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
4635         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4636         omp_target_free. omp_target_is_present, omp_target_memcpy,
4637         omp_target_memcpy_rect, omp_target_associate_ptr,
4638         omp_target_disassociate_ptr): Add interface.
4639         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4640         omp_target_free. omp_target_is_present, omp_target_memcpy,
4641         omp_target_memcpy_rect, omp_target_associate_ptr,
4642         omp_target_disassociate_ptr): Add interface.
4643         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4644         interface block for omp_alloc + omp_free.
4645         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4646         * testsuite/libgomp.fortran/refcount-1.f90: New test.
4647         * testsuite/libgomp.fortran/target-12.f90: New test.
4649 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
4651         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4653 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
4655         * testsuite/libgomp.fortran/scope-1.f90: New test.
4656         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4658 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
4660         * Makefile.am (libgomp_la_SOURCES): Add scope.c
4661         * Makefile.in: Regenerated.
4662         * libgomp_g.h (GOMP_scope_start): Declare.
4663         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4664         * scope.c: New file.
4665         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4666         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4668 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
4670         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4671         '?:' issues.
4673 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
4675         * testsuite/libgomp.fortran/masked-1.f90: New test.
4677 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
4679         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4681 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
4683         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4685 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
4687         * env.c (parse_bind_var): Accept 'primary' as alias for
4688         'master'.
4689         (omp_display_env): Add TODO comment to
4690         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4691         * libgomp.texi: Change 'master thread' to 'primary thread'
4692         in line with OpenMP 5.1.
4693         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4694         omp_proc_bind_master is an alias of it.
4695         (OMP_PROC_BIND): Mention 'PRIMARY'.
4696         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4697         (omp_proc_bind_primary): Add.
4698         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4699         * omp_lib.f90.in (omp_proc_bind_primary): Add.
4700         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4701         * omp_lib.h.in (omp_proc_bind_primary): Add.
4702         * testsuite/libgomp.c/affinity-1.c: Check that
4703         'primary' works and is identical to 'master'.
4705 2021-08-09  Julian Brown  <julian@codesourcery.com>
4706             Kwok Cheung Yeung  <kcy@codesourcery.com>
4707             Thomas Schwinge  <thomas@codesourcery.com>
4709         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4710         16.
4711         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4712         [acc_device_radeon]: Update.
4713         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4714         [ACC_DEVICE_TYPE_radeon]: Likewise.
4715         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4716         [acc_device_radeon]: Likewise.
4717         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4718         [ACC_DEVICE_TYPE_radeon]: Likewise.
4719         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4720         'openacc_radeon_accel_selected' and '-O0'.
4721         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4723 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
4725         * icv-device.c (omp_get_device_num): New API function, host side.
4726         * fortran.c (omp_get_device_num_): New interface function.
4727         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4728         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4729         omp_get_device_num_.
4730         * libgomp.texi (omp_get_device_num): Add documentation for new API
4731         function.
4732         * omp.h.in (omp_get_device_num): Add declaration.
4733         * omp_lib.f90.in (omp_get_device_num): Likewise.
4734         * omp_lib.h.in (omp_get_device_num): Likewise.
4735         * target.c (gomp_load_image_to_device): If additional entry for device
4736         number exists at end of returned entries from 'load_image_func' hook,
4737         copy the assigned device number over to the device variable.
4738         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4739         (omp_get_device_num): New API function, device side.
4740         * plugin/plugin-gcn.c ("symcat.h"): Add include.
4741         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4742         at end of returned 'target_table' entries.
4743         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4744         (omp_get_device_num): New API function, device side.
4745         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4746         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4747         at end of returned 'target_table' entries.
4748         * testsuite/lib/libgomp.exp
4749         (check_effective_target_offload_target_intelmic): New function for
4750         testing for intelmic offloading.
4751         * testsuite/libgomp.c-c++-common/target-45.c: New test.
4752         * testsuite/libgomp.fortran/target10.f90: New test.
4754 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
4755             Ulrich Drepper  <drepper@redhat.com>
4757         * fortran.c (omp_display_env_, omp_display_env_8_): Only
4758         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4760 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
4761             Julian Brown  <julian@codesourcery.com>
4762             Kwok Cheung Yeung  <kcy@codesourcery.com>
4764         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4765         's%oaccdevlow%oaccloops%g'.
4766         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4767         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4768         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4769         Likewise.
4770         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4771         Likewise.
4772         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4773         Likewise.
4774         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4775         Likewise.
4776         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4777         Likewise.
4778         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4779         Likewise.
4780         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4781         Likewise.
4782         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4783         Likewise.
4784         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4786 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
4788         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4789         threader.
4790         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4792 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
4794         * env.c (wait_policy, stacksize): New static variables,
4795         move out of handle_omp_display_env.
4796         (omp_display_env): New function.  The meat of the old
4797         handle_omp_display_env function.
4798         (handle_omp_display_env): Change to not take parameters
4799         and instead use the global variables.  Only perform
4800         parsing, defer to omp_display_env for the implementation.
4801         (initialize_env): Remove local variables wait_policy and
4802         stacksize.  Don't pass parameters to handle_omp_display_env.
4803         * fortran.c: Add ialias_redirect for omp_display_env.
4804         (omp_display_env_, omp_display_env_8_): New functions.
4805         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
4806         omp_display_env_, and omp_display_env_8_.
4807         * omp.h.in: Declare omp_display_env.
4808         * omp_lib.f90.in: Likewise.
4809         * omp_lib.h.in: Likewise.
4811 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4812             Julian Brown  <julian@codesourcery.com>
4814         * target.c (gomp_coalesce_buf_add): Update comment.
4815         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4816         'aq && cbuf'.
4817         (gomp_map_vars_internal): Only 'if (!aq)', do
4818         'gomp_coalesce_buf_add'.
4819         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4820         XFAIL.
4822 2021-07-27  Julian Brown  <julian@codesourcery.com>
4823             Thomas Schwinge  <thomas@codesourcery.com>
4825         * libgomp.h (gomp_copy_host2dev): Update prototype.
4826         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4827         argument to gomp_copy_host2dev (false).
4828         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4829         (copy_data): Don't free src.
4830         (queue_push_copy): Remove free_src handling.
4831         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4832         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4833         snapshotting.
4834         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4835         queue_push_copy.
4836         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4837         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
4838         data when true, and set up deferred freeing of temporary buffer.
4839         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4840         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4841         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4842         calls to gomp_copy_host2dev with appropriate ephemeral argument.
4843         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4844         XFAIL.
4846 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4847             Tom de Vries  <tom@codesourcery.com>
4849         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4850         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4852 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4854         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4855         sequencing of 'async' data copying vs. profiling events.
4856         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4857         Likewise.
4859 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4860             Julian Brown  <julian@codesourcery.com>
4862         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4863         'async'/'wait' issue.
4864         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4865         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4866         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4868 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
4869             Joseph Myers  <joseph@codesourcery.com>
4870             Cesar Philippidis  <cesar@codesourcery.com>
4872         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4873         file.
4874         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4875         Likewise.
4876         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4877         Likewise.
4878         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4880 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
4882         PR target/101484
4883         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4884         '-Wno-error=array-bounds'.
4885         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4886         * libgomp.h [__AMDGCN__]: Likewise.
4888 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
4890         PR target/101484
4891         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4892         * libgomp.h [__AMDGCN__]: Likewise.
4894 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
4895             Florian Weimer  <fweimer@redhat.com>
4897         * config/linux/sem.h: Don't include limits.h.
4898         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4899         * config/linux/affinity.c: Include limits.h.
4901 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
4903         PR middle-end/94366
4904         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4906 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4908         PR other/67300
4909         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4910         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4911         avoid disabling other offload targets.
4912         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4913         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4914         * testsuite/libgomp.c/target-44.c: Likewise.
4916 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4918         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4919         target has shared memory and disable some scalar pointer/allocatable
4920         checks if not as firstprivate does not work.
4922 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
4924         PR testsuite/101114
4925         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4926         Add "target offload_device_nonshared_as" condition for enabling test.
4928 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
4930         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4931         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4932         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4933         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4935 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
4937         PR middle-end/101167
4938         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4940 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
4942         * hashtab.h (htab_clear): New function with initialization code
4943         factored out from...
4944         (htab_create): ...here, adjust to use htab_clear function.
4945         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4946         special refcount values, add comments.
4947         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4948         (REFCOUNT_LINK): Likewise.
4949         (REFCOUNT_STRUCTELEM): New special refcount range for structure
4950         element siblings.
4951         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4952         sibling maps.
4953         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4954         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
4955         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4956         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4957         (struct splay_tree_key_s): Add structelem_refcount and
4958         structelem_refcount_ptr fields into a union with dynamic_refcount.
4959         Add comments.
4960         (gomp_map_vars): Delete declaration.
4961         (gomp_map_vars_async): Likewise.
4962         (gomp_unmap_vars): Likewise.
4963         (gomp_unmap_vars_async): Likewise.
4964         (goacc_map_vars): New declaration.
4965         (goacc_unmap_vars): Likewise.
4966         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4967         (goacc_enter_datum): Likewise.
4968         (goacc_enter_data_internal): Likewise.
4969         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4970         and goacc_unmap_vars.
4971         (GOACC_data_start): Adjust to use goacc_map_vars.
4972         (GOACC_data_end): Adjust to use goacc_unmap_vars.
4973         * target.c (hash_entry_type): New typedef.
4974         (htab_alloc): New function hook for hashtab.h.
4975         (htab_free): Likewise.
4976         (htab_hash): Likewise.
4977         (htab_eq): Likewise.
4978         (hashtab.h): Add file include.
4979         (gomp_increment_refcount): New function.
4980         (gomp_decrement_refcount): Likewise.
4981         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4982         gomp_increment_refcount.
4983         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4984         to gomp_map_vars_existing.
4985         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4986         variable to guard OpenMP specific paths, adjust calls to
4987         gomp_map_vars_existing, add structure element sibling splay_tree_key
4988         sequence creation code, adjust Fortran map case to avoid increment
4989         under OpenMP.
4990         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4991         local refcount_set if caller passed in NULL, adjust call to
4992         gomp_map_vars_internal.
4993         (gomp_map_vars_async): Adjust and rename into...
4994         (goacc_map_vars): ...this new function, adjust call to
4995         gomp_map_vars_internal.
4996         (gomp_remove_splay_tree_key): New function with code factored out from
4997         gomp_remove_var_internal.
4998         (gomp_remove_var_internal): Add code to handle removing multiple
4999         splay_tree_key sequence for structure elements, adjust code to use
5000         gomp_remove_splay_tree_key for splay-tree key removal.
5001         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5002         gomp_decrement_refcount.
5003         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5004         local refcount_set if caller passed in NULL, adjust call to
5005         gomp_unmap_vars_internal.
5006         (gomp_unmap_vars_async): Adjust and rename into...
5007         (goacc_unmap_vars): ...this new function, adjust call to
5008         gomp_unmap_vars_internal.
5009         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5010         gomp_unmap_vars.
5011         (GOMP_target_ext): Likewise.
5012         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5013         (GOMP_target_data): Likewise.
5014         (GOMP_target_data_ext): Likewise.
5015         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5016         (gomp_exit_data): Add refcount_set parameter, adjust to use
5017         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5018         after main loop.
5019         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5020         gomp_map_vars and gomp_exit_data.
5021         (gomp_target_task_fn): Likewise.
5022         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5023         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5024         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5025         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5026         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5027         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5029 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5031         PR fortran/92568
5032         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5034 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5035             Thomas Schwinge  <thomas@codesourcery.com>
5037         * libgomp.map (GOACC_2.0.2): New symbol version.
5038         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5039         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5041 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5042             Andrew Stubbs  <ams@codesourcery.com>
5044         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5045         extracted from...
5046         (GOACC_enter_exit_data): ... here.
5047         (GOACC_declare): Use it.
5049 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5051         * oacc-parallel.c (GOACC_declare): Move...
5052         * oacc-mem.c: ... here.
5053         * libgomp_g.h: Adjust.
5055 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5056             Thomas Schwinge  <thomas@codesourcery.com>
5058         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5059         handling.
5061 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5063         PR tree-optimization/100981
5064         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5065         dsdotr and dsdoti to 0.
5067 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5069         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5070         if atomic compare-and-swap is supported on 'int'.
5072 2021-06-09  Richard Biener  <rguenther@suse.de>
5074         PR tree-optimization/100981
5075         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5077 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5079         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5080         unconditionally.
5081         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5082         Update.
5083         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5084         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5086 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5088         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5089         '-DACC_MEM_SHARED=0'.
5090         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5091         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5092         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5093         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5094         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5095         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5096         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5097         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5098         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5099         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5100         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5101         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5102         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5103         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5104         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5105         'acc_device_radeon' testing.
5106         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5107         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5108         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5109         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5110         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5111         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5112         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5113         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5114         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5115         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5116         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5117         for non-'openacc_nvidia_accel_selected'.
5118         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5119         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5120         all implement this checking".
5121         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5122         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5123         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5124         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5125         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5127 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5129         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5130         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5132 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5134         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5135         for 'acc_device_radeon'.
5137 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5139         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5140         for non-'acc_device_nvidia'.
5142 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5144         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5145         'acc_device_radeon' testing.
5146         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5147         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5148         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5150 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5152         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5153         require 'openacc_nvidia_accel_selected'.  Fix up for
5154         'ACC_DEVICE_TYPE_radeon'.
5156 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5158         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5159         'openacc_nvidia_accel_selected'.
5160         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5162 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5164         * testsuite/lib/libgomp.exp
5165         (check_effective_target_openacc_radeon_accel_selected):
5166         Streamline.
5168 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5170         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5171         PR80547 workaround.
5173 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5175         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5176         <acc_device_nvidia>: Update comment.
5178 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5180         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5182 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
5184         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5185         check_effective_target_openacc_cublas,
5186         check_effective_target_openacc_cudart): New.
5187         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5188         target openacc_cublas.
5189         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5190         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5191         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5192         target openacc_cuda.
5193         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5194         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5195         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5196         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5197         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5198         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5199         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5200         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5201         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5202         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5203         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5204         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5205         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5206         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5207         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5208         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5209         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5210         targets openacc_cublas and openacc_cudart.
5211         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5212         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5213         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5214         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5215         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5216         Require effective target openacc_cudart.
5217         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5218         for effective target openacc_cuda and add && defined USE_CUDA_H to
5219         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5220         effective target.
5222 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5224         PR libgomp/100573
5225         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5226         GOMP_target_end_data, GOMP_target_update_ext,
5227         GOMP_target_enter_exit_data): New dummy entrypoints.
5228         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5229         GOMP_target_end_data, GOMP_target_update_ext,
5230         GOMP_target_enter_exit_data): Likewise.
5231         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5232         OMPFROM, OMPTO): Define.
5233         (main): Remove #pragma omp target teams around all the tests.
5234         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5235         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5237 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5239         PR middle-end/99928
5240         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5242 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5244         PR fortran/86470
5245         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5246         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5247         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5249 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5251         PR testsuite/90115
5252         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5253         uninteresting/varying diagnostics.
5255 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5257         PR middle-end/90115
5258         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5259         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5261 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5263         PR middle-end/90115
5264         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5265         file.
5266         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5267         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5268         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5269         Likewise.
5270         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5271         Likewise.
5272         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5273         Likewise.
5274         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5275         Likewise.
5276         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5277         Likewise.
5278         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5279         Likewise.
5280         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5281         Likewise.
5282         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5283         Likewise.
5284         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5285         Likewise.
5286         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5287         Likewise.
5288         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5289         Likewise.
5290         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5291         Likewise.
5292         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5293         Likewise.
5294         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5295         Likewise.
5296         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5297         Likewise.
5298         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5299         Likewise.
5300         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5301         Likewise.
5302         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5303         Likewise.
5304         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5305         Likewise.
5306         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5307         Likewise.
5308         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5309         Likewise.
5310         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5311         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5312         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5313         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5314         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5315         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5316         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5317         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5318         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5319         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5320         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5321         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5322         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5323         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5324         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5325         Likewise.
5326         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5327         Likewise.
5328         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5329         Likewise.
5330         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5331         Likewise.
5332         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5333         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5334         Likewise.
5335         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5336         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5337         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5338         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5339         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5340         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5341         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5342         Likewise.
5343         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5344         Likewise.
5345         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5346         Likewise.
5347         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5348         Likewise.
5349         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5350         Likewise.
5351         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5352         Likewise.
5353         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5354         Likewise.
5355         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5356         Likewise.
5357         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5358         Likewise.
5359         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5360         Likewise.
5361         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5362         Likewise.
5363         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5364         Likewise.
5365         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5366         Likewise.
5367         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5368         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5369         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5370         Likewise.
5371         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5372         Likewise.
5373         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5374         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5375         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5377 2021-05-21  Julian Brown  <julian@codesourcery.com>
5378             Chung-Lin Tang  <cltang@codesourcery.com>
5379             Thomas Schwinge  <thomas@codesourcery.com>
5381         PR middle-end/90115
5382         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5383         test.
5384         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5385         Likewise.
5386         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5387         Likewise.
5389 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5391         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5392         for nvptx offloading.
5394 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
5396         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5398 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5400         PR target/83812
5401         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5403 2021-05-19  Julian Brown  <julian@codesourcery.com>
5405         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5407 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5409         * testsuite/lib/libgomp.exp
5410         (check_effective_target_offload_target_nvptx): Don't shadow global
5411         'offload_targets' variable.
5413 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5415         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5416         '-latomic' to nvptx offloading compilation.
5417         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5419 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5421         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5422         offloading compilation.
5424 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5426         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5427         if new tasks generated.
5428         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5430 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
5432         * testsuite/libgomp.fortran/parallel-master.f90: New test.
5434 2021-05-13  Martin Liska  <mliska@suse.cz>
5436         PR testsuite/100569
5437         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5438         * testsuite/libgomp.c/pr46032-2.c: Likewise.
5439         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5440         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5442 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
5444         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5445         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5447 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
5449         PR middle-end/100471
5450         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5451         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5452         reduction pointer.
5453         * testsuite/libgomp.c/task-reduction-4.c: New test.
5455 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
5456             Tom de Vries  <tdevries@suse.de>
5458         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5459         complex/floating-point || + && reduction with 'omp target'.
5460         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5462 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5464         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5465         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5466         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5467         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5469 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5471         PR testsuite/100397
5472         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5473         declaration to scope of non-'depend'-guarded assignment to avoid races.
5475 2021-05-03  Tom de Vries  <tdevries@suse.de>
5477         PR target/100321
5478         * testsuite/libgomp.c/target-44.c: New test.
5480 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
5482         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5484 2021-04-29  Tom de Vries  <tdevries@suse.de>
5486         * testsuite/libgomp.c/pr81778.c: New test.
5488 2021-04-29  Tom de Vries  <tdevries@suse.de>
5490         PR target/100232
5491         * testsuite/libgomp.c/target-43.c: New file.
5493 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
5494             Tobias Burnus  <tobias@codesourcery.com>
5496         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5497         * target.c (gomp_load_plugin_for_device): If set and if a plugin
5498         can't be dlopened, silently assume it has no devices.
5499         * Makefile.in: Regenerate.
5500         * config.h.in: Regenerate.
5501         * configure: Regenerate.
5503 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5505         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5506         Use [Ww]arning in dg-bogus as FE diagnostic and default
5507         diagnostic differ and the result depends on ENABLE_OFFLOAD.
5508         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5509         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5510         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5512 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5514         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5515         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5516         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5517         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5518         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5520 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5521             Nathan Sidwell  <nathan@codesourcery.com>
5522             Tom de Vries  <vries@codesourcery.com>
5523             Julian Brown  <julian@codesourcery.com>
5524             Kwok Cheung Yeung  <kcy@codesourcery.com>
5526         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5527         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5528         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5529         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5530         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5531         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5532         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5533         Likewise.
5534         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5535         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5536         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5537         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5538         Likewise.
5539         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5540         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5541         Likewise.
5542         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5543         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5544         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5545         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5546         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5547         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5548         Likewise.
5549         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5550         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5551         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5552         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5553         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5554         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5555         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5556         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5557         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5558         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5559         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5561 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5563         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5564         compile with '-w'.
5565         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5566         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5567         Likewise.
5568         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5569         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5570         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5571         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5572         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5573         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5574         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5576 2021-04-22  Richard Biener  <rguenther@suse.de>
5578         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5579         only on nvptx-none.
5581 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5583         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5584         omp_depend_kind instead of defining it as 16.
5586 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5588         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5589         New, based on check_effective_target_offload_target_nvptx.
5590         (check_effective_target_offload_target_nvptx): Call it.
5591         (check_effective_target_offload_target_amdgcn): New.
5592         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5593         Require target offload_target_nvptx || offload_target_amdgcn.
5594         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5595         * testsuite/libgomp.c/pr86416-1.c: Likewise.
5596         * testsuite/libgomp.c/pr86416-2.c: Likewise.
5598 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5600         * testsuite/libgomp.fortran/depobj-1.f90: New test.
5602 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5604         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5605         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5606         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5607         Likewise.
5608         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5609         Likewise.
5610         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5612 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5614         PR target/99555
5615         * testsuite/lib/libgomp.exp
5616         (check_effective_target_offload_device_nvptx): New.
5617         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5618         resolved, make sure that we exit quickly, with error status,
5619         XFAILed.
5620         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5621         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5623 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
5625         PR testsuite/100071
5626         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5627         cp = omp_alloc with cp, p arguments instead of cq, q and call
5628         c_f_pointer after last cq = omp_alloc with cq, q.
5630 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5632         PR middle-end/98088
5633         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5634         for loop with GT/GE condition.
5635         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5637 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
5639         PR middle-end/84991
5640         PR middle-end/84992
5641         PR middle-end/90779
5642         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5644 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
5646         PR libgomp/99984
5647         * team.c (gomp_thread_start): Call pthread_setspecific for
5648         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5649         has been initialized to avoid false positive warning.
5651 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
5653         PR target/99555
5654         * testsuite/lib/on_device_arch.c: Move to ...
5655         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5656         * testsuite/libgomp.fortran/on_device_arch.c: New file;
5657         #include on_device_arch.h.
5658         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5659         on_device_arch.h instead of using dg-additional-source.
5660         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5661         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5662         on_device_arch.c without relative paths.
5664 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5666         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5667         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5668         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5669         * config.h.in: Regenerate.
5670         * configure: Likewise.
5672 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5674         PR target/99555
5675         * testsuite/lib/on_device_arch.c: New file.
5676         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5677         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5678         skip for nvptx offloading, with error status.
5679         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5681 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5683         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5684         OpenACC 'serial' construct diagnostic for nvptx offloading.
5686 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
5688         PR c++/99509
5689         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5691 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
5693         PR fortran/98858
5694         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5696 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
5698         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5699         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5700         checking of -m32 or -mx32 options on the command line.
5701         * config.h.in: Regenerated.
5702         * configure: Regenerated.
5704 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
5706         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5707         support from the target.
5709 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5710             Jakub Jelinek  <jakub@redhat.com>
5712         PR libgomp/98738
5713         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5714         (struct gomp_task): Replace detach and completion_sem fields with
5715         union containing completion_sem and detach_team.  Add deferred_p
5716         field.
5717         (struct gomp_team): Remove task_detach_queue.
5718         * task.c: Include assert.h.
5719         (gomp_init_task): Initialize deferred_p and completion_sem fields.
5720         Rearrange initialization order of fields.
5721         (task_fulfilled_p): Delete.
5722         (GOMP_task): Use address of task as the event handle.  Remove
5723         initialization of detach field.  Initialize deferred_p field.
5724         Use automatic local for completion_sem.  Initialize detach_team field
5725         for deferred tasks.
5726         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5727         Set kind of suspended detach task to GOMP_TASK_DETACHED and
5728         decrement task_running_count.  Move finish_cancelled block out of
5729         else branch.  Relocate call to gomp_team_barrier_done.
5730         (GOMP_taskwait): Handle tasks with completion events that have not
5731         been fulfilled.
5732         (GOMP_taskgroup_end): Likewise.
5733         (omp_fulfill_event): Use address of task as event handle.  Post to
5734         completion_sem for undeferred tasks.  Clear detach_team if task
5735         has not finished.  For finished tasks, handle post-execution tasks,
5736         call gomp_team_barrier_wake if necessary, and free task.
5737         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5738         (free_team): Remove free of task_detach_queue.
5739         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5740         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5741         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5742         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5743         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5744         Change data-sharing of detach events on enclosing parallel to private.
5745         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
5746         taskwait directive.
5747         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5748         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5749         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5750         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5751         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5752         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5753         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5754         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5755         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5756         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5757         Change data-sharing of detach events on enclosing parallel to private.
5758         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
5759         taskwait directive.
5760         * testsuite/libgomp.fortran/task-detach-7.f90: New.
5761         * testsuite/libgomp.fortran/task-detach-8.f90: New.
5762         * testsuite/libgomp.fortran/task-detach-9.f90: New.
5763         * testsuite/libgomp.fortran/task-detach-10.f90: New.
5764         * testsuite/libgomp.fortran/task-detach-11.f90: New.
5766 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
5768         PR fortran/99171
5769         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5771 2021-02-17  Julian Brown  <julian@codesourcery.com>
5773         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5774         expected errors.
5776 2021-02-17  Julian Brown  <julian@codesourcery.com>
5778         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5779         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5781 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5783         * config/linux/x86/futex.h (__futex_wait):
5784         Revert output type back to long.
5785         (__futex_wake): Ditto.
5786         (futex_wait): Update for revert.
5787         (futex_wake): Ditto.
5789 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5791         * config/linux/x86/futex.h (__futex_wait): New static inline
5792         wrapper function.  Correct output type to int and
5793         timeout type to void *.
5794         (__futex_wake): New static inline wrapper function.
5795         Correct output type to int.
5796         (futex_wait): Use __futex_wait.
5797         (futex_wake): Use __futex_wake.
5799 2021-02-10  Julian Brown  <julian@codesourcery.com>
5801         PR fortran/98979
5802         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5803         errors.
5805 2021-02-04  Julian Brown  <julian@codesourcery.com>
5807         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5809 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
5811         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5812         EF_AMDGPU_MACH_AMDGCN_GFX908.
5813         (gcn_gfx908_s): New constant string.
5814         (isa_hsa_name): Add gfx908.
5815         (isa_code): Add gfx908.
5817 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5819         * libgomp.texi (omp_fulfill_event): New entry.
5821 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
5823         * task.c (GOMP_task): Rename priority argument to priority_arg,
5824         add priority automatic variable and modify that variable.  Instead of
5825         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5826         check flags for that bit.
5828 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
5830         PR fortran/98476
5831         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5833 2021-01-18  Andreas Schwab  <schwab@suse.de>
5835         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5837 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5839         * config/rtems/sem.h (gomp_sem_getcount): New function.
5841 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
5843         * config/linux/sem.h (gomp_sem_getcount): New function.
5844         * config/posix/sem.h (gomp_sem_getcount): New function.
5845         * config/posix/sem.c (gomp_sem_getcount): New function.
5846         * config/accel/sem.h (gomp_sem_getcount): New function.
5847         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5848         (omp_fulfill_event): Likewise.
5850 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
5852         * fortran.c (omp_fulfill_event_): New.
5853         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5854         (struct gomp_team): Add task_detach_queue and task_detach_count
5855         fields.
5856         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5857         * libgomp_g.h (GOMP_task): Add extra argument.
5858         * omp.h.in (enum omp_event_handle_t): New.
5859         (omp_fulfill_event): New.
5860         * omp_lib.f90.in (omp_event_handle_kind): New.
5861         (omp_fulfill_event): New.
5862         * omp_lib.h.in (omp_event_handle_kind): New.
5863         (omp_fulfill_event): Declare.
5864         * priority_queue.c (priority_tree_find): New.
5865         (priority_list_find): New.
5866         (priority_queue_find): New.
5867         * priority_queue.h (priority_queue_predicate): New.
5868         (priority_queue_find): New.
5869         * task.c (gomp_init_task): Initialize detach field.
5870         (task_fulfilled_p): New.
5871         (GOMP_task): Add detach argument.  Ignore detach argument if
5872         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
5873         field.  Copy address of completion_sem into detach argument and
5874         into the start of the data record.  Wait for detach event if task
5875         not deferred.
5876         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5877         Remove completed tasks and requeue dependent tasks.
5878         (omp_fulfill_event): New.
5879         * team.c (gomp_new_team): Initialize task_detach_queue and
5880         task_detach_count fields.
5881         (free_team): Free task_detach_queue field.
5882         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5883         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5884         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5885         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5886         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5887         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5888         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5889         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5890         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5891         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5892         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5893         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5895 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
5897         PR target/70454
5898         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5899         be added through preprocessor check on
5900         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5902 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
5904         PR libgomp/65099
5905         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5906         configurations.
5907         * configure: Regenerate.
5908         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5909         check.
5911 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5913         * configure: Re-generate.
5915 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5917         * configure: Re-generate.
5919 2021-01-05  Julian Brown  <julian@codesourcery.com>
5921         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5922         (struct ptx_device): Add omp_stacks struct.
5923         (nvptx_open_device): Initialise cached-stacks housekeeping info.
5924         (nvptx_close_device): Free cached stacks block and mutex.
5925         (nvptx_stacks_free): New function.
5926         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5927         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5928         (nvptx_stacks_alloc): Rename to...
5929         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
5930         size or smaller is required.
5931         (nvptx_stacks_free): Remove.
5932         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5933         during kernel execution.
5935 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
5937         * libgomp.texi: Bump @copying's copyright year.
5939 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
5941         * libgomp.texi (Top): Avoid bad "up" link.
5943 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
5945         * testsuite/libgomp.c/task-6.c: New test.
5947 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
5949         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5950         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5952 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
5954         * testsuite/libgomp.fortran/scan-1.f90: New test.
5956 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
5958         PR target/97865
5959         * configure: Regenerate.
5961 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
5963         * configure: Regenerate.
5965 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
5967         * testsuite/libgomp.oacc-c++/cache-1.C: New.
5968         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5970 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
5972         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5973         expected results.
5975 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
5977         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5978         (reserved): Delete unused define.
5980 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
5982         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5983         Tcl 8.5-specific behavior.
5984         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5986 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5988         * env.c (gomp_global_icv): Remove nest_var field.  Add
5989         max_active_levels_var field.
5990         (gomp_max_active_levels_var): Remove.
5991         (parse_boolean): Return true on success.
5992         (handle_omp_display_env): Express OMP_NESTED in terms of
5993         max_active_levels_var.  Change format specifier for
5994         max_active_levels_var.
5995         (initialize_env): Set max_active_levels_var from
5996         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5997         OMP_PROC_BIND.
5998         * icv.c (omp_set_nested): Express in terms of
5999         max_active_levels_var.
6000         (omp_get_nested): Likewise.
6001         (omp_set_max_active_levels): Use max_active_levels_var field instead
6002         of gomp_max_active_levels_var.
6003         (omp_get_max_active_levels): Likewise.
6004         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6005         max_active_levels_var field.
6006         (gomp_supported_active_levels): Set to UCHAR_MAX.
6007         (gomp_max_active_levels_var): Delete.
6008         * libgomp.texi (omp_get_nested): Update documentation.
6009         (omp_set_nested): Likewise.
6010         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6011         (OMP_NESTED): Likewise.
6012         (OMP_NUM_THREADS): Likewise.
6013         (OMP_PROC_BIND): Likewise.
6014         * parallel.c (gomp_resolve_num_threads): Replace reference
6015         to nest_var with max_active_levels_var.  Use max_active_levels_var
6016         field instead of gomp_max_active_levels_var.
6018 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6020         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6021         nvptx_usleep; use also for device={arch(gcn)}.
6023 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6025         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6026         (foo): Add tests for non-VLA private and firstprivate clauses on
6027         omp task.
6028         (bar): Likewise.  Remove taking of address from private/firstprivate
6029         variables.
6030         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6031         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6032         and for non-VLA private and firstprivate clauses on omp task.
6033         (bar): Removed.
6034         (main): Adjust foo caller.  Don't call bar.
6036 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6037             Thomas Schwinge  <thomas@codesourcery.com>
6039         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6040         New.
6041         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6042         Likewise.
6043         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6044         Likewise.
6045         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6046         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6048 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6049             Thomas Schwinge  <thomas@codesourcery.com>
6051         PR fortran/94358
6052         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6054 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6056         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6057         for array reductions.
6058         (main): Adjust foo callers.
6060 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6062         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6063         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6064         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6065         * allocator.c (omp_aligned_alloc): New for now static function,
6066         add alignment argument and handle it.
6067         (omp_alloc): Reimplement using omp_aligned_alloc.
6068         (GOMP_alloc, GOMP_free): New functions.
6069         (omp_free): Add ialias.
6070         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6071         * testsuite/libgomp.c++/allocate-1.C: New test.
6073 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6075         PR fortran/97782
6076         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6078 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6080         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6081         usable.
6082         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6083         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6084         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6085         (goacc_enter_data_internal): Likewise.
6086         * target.c (gomp_map_vars_internal):
6087         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6088         of gomp_attach_pointer for OpenMP cases.
6089         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6090         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6091         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6093 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6094             Kwok Cheung Yeung  <kcy@codesourcery.com>
6096         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6097         * Makefile.in: Regenerate.
6098         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6099         pragmas to ignore -Wdeprecated-declarations warnings.
6100         * icv.c: Likewise.
6101         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6102         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6103         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6104         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6105         deprecated.
6106         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6107         to test options.
6108         * testsuite/libgomp.c/affinity-1.c: Likewise.
6109         * testsuite/libgomp.c/affinity-2.c: Likewise.
6110         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6111         * testsuite/libgomp.c/lib-1.c: Likewise.
6112         * testsuite/libgomp.c/nested-1.c: Likewise.
6113         * testsuite/libgomp.c/nested-2.c: Likewise.
6114         * testsuite/libgomp.c/nested-3.c: Likewise.
6115         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6116         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6117         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6118         * testsuite/libgomp.c/pr35549.c: Likewise.
6119         * testsuite/libgomp.c/pr42942.c: Likewise.
6120         * testsuite/libgomp.c/pr61200.c: Likewise.
6121         * testsuite/libgomp.c/sort-1.c: Likewise.
6122         * testsuite/libgomp.c/target-5.c: Likewise.
6123         * testsuite/libgomp.c/target-6.c: Likewise.
6124         * testsuite/libgomp.c/teams-1.c: Likewise.
6125         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6126         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6127         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6128         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6129         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6130         * testsuite/libgomp.fortran/lib2.f: Likewise.
6131         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6132         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6134 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6136         PR target/85486
6137         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6138         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6139         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6141 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6143         PR testsuite/80219
6144         PR testsuite/85303
6145         * testsuite/lib/libgomp.exp (libgomp_init): Set
6146         'gcc_warning_prefix', 'gcc_error_prefix'.
6148 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6150         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6151         even in field_tgt_clear initializer.
6153 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6155         * testsuite/libgomp.c/target-42.c: New test.
6157 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6158             Tom de Vries  <tdevries@suse.de>
6160         PR testsuite/81690
6161         * testsuite/libgomp.c/usleep.h: New file.
6162         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6163         (main): Use tgt_usleep instead of usleep.
6164         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6165         (main): Use tgt_usleep instead of usleep.
6167 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6169         PR lto/96680
6170         * testsuite/libgomp.c/declare-variant-1.c: New test.
6172 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6174         * testsuite/libgomp.c/target-41.c: New test.
6176 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6178         * icv.c (omp_get_initial_device): Remove including corresponding
6179         ialias.
6180         * icv-device.c (omp_get_initial_device): New function.  Return
6181         gomp_get_num_devices ().  Add ialias.
6182         * target.c (resolve_device): Don't fail with
6183         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6184         gomp_get_num_devices ().
6185         (omp_target_alloc, omp_target_free, omp_target_is_present,
6186         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6187         omp_target_disassociate_ptr, omp_pause_resource): Use
6188         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6189         first use in the functions, in uses dominated by the
6190         gomp_get_num_devices call use num_devices_openmp instead.
6191         * libgomp.texi (omp_get_initial_device): Document.
6192         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6193         Add ialias.
6194         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6195         * testsuite/libgomp.c/target-40.c: New test.
6197 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6199         * env.c (parse_target_offload): Change new_offload var type to int,
6200         preinitialize to -1, remove found var and test new_offload != -1
6201         instead of found.
6203 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6205         * target.c (gomp_target_init): Inside of the function, use automatic
6206         variables corresponding to num_devices, num_devices_openmp and devices
6207         global variables and update the globals only at the end of the
6208         function.
6210 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6212         * env.c (gomp_target_offload_var): New.
6213         (parse_target_offload): New.
6214         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6215         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6216         * libgomp.h (gomp_target_offload_t): New.
6217         (gomp_target_offload_var): New.
6218         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6219         * target.c (resolve_device): Generate error if device not found and
6220         offloading is mandatory.
6221         (gomp_target_fallback): Generate error if offloading is mandatory.
6222         (GOMP_target): Add argument in call to gomp_target_fallback.
6223         (GOMP_target_ext): Likewise.
6224         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6225         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6226         (GOMP_target_data_ext): Likewise.
6227         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6228         (gomp_target_init): Return early if offloading is disabled.
6230 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6232         * libgomp.texi (omp_get_max_active_levels): Modify description.
6233         (omp_get_supported_active_levels): Make descriptions consistent.
6235 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6237         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6239 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6241         * env.c (gomp_max_active_levels_var): Initialize to
6242         gomp_supported_active_levels.
6243         (initialize_env): Limit gomp_max_active_levels_var to be at most
6244         equal to gomp_supported_active_levels.
6245         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6246         (omp_get_supported_active_levels_): New.
6247         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6248         to at most equal to gomp_supported_active_levels.
6249         (omp_get_supported_active_levels): New.
6250         * libgomp.h (gomp_supported_active_levels): New.
6251         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6252         omp_get_supported_active_levels_.
6253         * libgomp.texi (omp_get_supported_active_levels): New.
6254         (omp_set_max_active_levels): Update.  Add reference to
6255         omp_get_supported_active_levels.
6256         * omp.h.in (omp_get_supported_active_levels): New.
6257         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6258         * omp_lib.h.in (omp_get_supported_active_levels): New.
6259         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6260         against omp_get_supported_active_levels.
6261         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6263 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6265         * config/t-aix: Delete and recreate libgomp before creating
6266         FAT library.
6268 2020-10-08  Tom de Vries  <tdevries@suse.de>
6270         PR libgomp/81802
6271         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6272         dimensions.
6274 2020-10-06  Tom de Vries  <tdevries@suse.de>
6276         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6278 2020-10-06  Tom de Vries  <tdevries@suse.de>
6280         PR middle-end/90861
6281         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6283 2020-10-05  Tom de Vries  <tdevries@suse.de>
6285         PR fortran/95654
6286         * testsuite/libgomp.fortran/pr95654.f90: New test.
6288 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6290         * Makefile.in: Regenerate with automake 1.15.1.
6291         * aclocal.m4: Likewise.
6292         * configure: Likewise.
6293         * testsuite/Makefile.in: Likewise.
6295 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6297         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6298         and amdgcn targets.
6300 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6302         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6304 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6306         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6307         total number of threads is one.
6308         (gomp_team_barrier_wake): Likewise.
6309         (gomp_team_barrier_wait_end): Likewise.
6310         (gomp_team_barrier_wait_cancel_end): Likewise.
6311         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6312         (gomp_team_barrier_wake): Likewise.
6313         (gomp_team_barrier_wait_end): Likewise.
6314         (gomp_team_barrier_wait_cancel_end): Likewise.
6315         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6317 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6319         PR middle-end/96390
6320         * testsuite/libgomp.c++/pr96390.C: New test.
6321         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6323 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6325         * config/t-aix: Use $(AR) without -X32_64.
6327 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6329         * testsuite/libgomp.c/loop-25.c: New test.
6331 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6333         PR fortran/95654
6334         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6336 2020-09-22  Tom de Vries  <tdevries@suse.de>
6338         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6339         fails.
6341 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6343         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6345 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6347         PR fortran/96668
6348         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6350 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6352         PR fortran/96668
6353         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6354         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6355         (gomp_map_vars_existing): Update call to it.
6356         (gomp_map_fields_existing): Likewise
6357         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6358         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6359         remapped.
6360         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6361         GOMP_MAP_POINTER.
6362         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6363         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6365 2020-09-14  Tom de Vries  <tdevries@suse.de>
6367         * config/nvptx/atomic.c: New file.  Add
6368         __sync_val_compare_and_swap_16.
6369         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6370         target offload_target_nvptx.
6372 2020-09-08  Julian Brown  <julian@codesourcery.com>
6374         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6375         iteration-ordering assumptions.
6377 2020-09-08  Julian Brown  <julian@codesourcery.com>
6379         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6380         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6382 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
6384         * plugin/plugin-nvptx.c (nvptx_free):
6385         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6386         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6387         comments.
6389 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
6391         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6393 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6395         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6397 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
6399         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6400         * testsuite/libgomp.c/loop-23.c (main): Likewise.
6401         * testsuite/libgomp.c/loop-24.c: New test.
6403 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
6404             Tobias Burnus  <tobias@codesourcery.com>
6406         PR fortran/93553
6407         * testsuite/libgomp.fortran/pr93553.f90: New test.
6409 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6411         * testsuite/libgomp.c/loop-22.c: New test.
6412         * testsuite/libgomp.c/loop-23.c: New test.
6414 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6416         PR middle-end/96459
6417         * testsuite/libgomp.c/teams-3.c: New test.
6418         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6419         if not defined yet.
6420         (N(test)): Use it before all N(f*) calls.
6421         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6422         (main): Don't call all test_* functions from within
6423         #pragma omp teams reduction(|:err), call them directly.
6425 2020-08-04  Tom de Vries  <tdevries@suse.de>
6427         PR target/96428
6428         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6429         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6431 2020-08-03  Julian Brown  <julian@codesourcery.com>
6432             Thomas Schwinge  <thomas@codesourcery.com>
6434         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6435         shared-memory devices.  Extend with further checking.
6437 2020-08-03  Martin Jambor  <mjambor@suse.cz>
6439         * plugin/Makefrag.am: Remove configuration of HSA plugin.
6440         * aclocal.m4: Regenerated.
6441         * Makefile.in: Regenerated.
6442         * config.h.in: Regenerated.
6443         * configure: Regenerated.
6444         * plugin/configfrag.ac: Likewise.
6445         * plugin/hsa_ext_finalize.h: Removed.
6446         * plugin/plugin-hsa.c: Likewise.
6447         * testsuite/Makefile.in: Regenerated.
6448         * testsuite/lib/libgomp.exp
6449         (offload_target_to_openacc_device_type): Remove hsa case.
6450         (check_effective_target_hsa_offloading_selected_nocache): Removed
6451         (check_effective_target_hsa_offloading_selected): Likewise.
6452         (libgomp_init): Do not add -Wno-hsa to additional_flags.
6453         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6454         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6455         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6456         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6457         * testsuite/libgomp.hsa.c/c.exp: Likewise.
6458         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6459         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6460         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6461         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6462         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6463         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6464         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6465         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6466         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6467         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6468         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6469         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6470         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6471         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6472         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6473         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6474         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6475         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6476         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6478 2020-07-27  Julian Brown  <julian@codesourcery.com>
6479             Thomas Schwinge  <thomas@codesourcery.com>
6481         * libgomp.h (struct target_var_desc): Rename do_detach field to
6482         is_attach.
6483         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
6484         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6485         (goacc_enter_data_internal): Don't affect reference counts
6486         for attach mappings.
6487         (goacc_exit_data_internal): Don't affect reference counts for detach
6488         mappings.
6489         * target.c (gomp_map_vars_existing): Don't affect reference counts for
6490         attach mappings.
6491         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6492         mark attach mappings.
6493         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6494         reference count for attach mappings.
6495         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6496         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6497         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6498         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6499         test as shouldfail.
6500         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6501         gracefully in no-finalize mode.
6502         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6504 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
6506         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6507         use.
6508         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6509         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6511 2020-07-23  Julian Brown  <julian@codesourcery.com>
6512             Thomas Schwinge  <thomas@codesourcery.com>
6514         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6515         finalization for detach operation.
6516         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6517         New test.
6519 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
6521         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6522         * libgomp_f.h.in (omp_check_defines): Check whether
6523         sizeof of determined Fortran kind and C typedef match.
6524         * omp_lib.f90.in: Add omp_depened_kind.
6525         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6526         * configure: Regenerate.
6527         * Makefile.in: Regenerate.
6528         * testsuite/Makefile.in: Regenerate.
6530 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6532         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6533         gcc/testsuite/c-c++-common/gomp/.
6534         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6535         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6536         from gcc/testsuite/gfortran.dg/gomp/.
6537         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6539 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6541         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6542         * omp_lib.h.in: Likewise.
6544 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
6546         PR target/95620
6547         * testsuite/libgomp.c/pr95620.c: New test.
6549 2020-07-16  Julian Brown  <julian@codesourcery.com>
6550             Thomas Schwinge  <thomas@codesourcery.com>
6552         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6553         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6555 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6557         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6558         avoid conversion on 32bit systems from 32bit to 64bit due
6559         to -fdefault-integer-8.
6561 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6563         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6564         variables; add character(kind=4) tests; update TODO comment.
6566 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6568         * allocator.c: Add ialias for omp_init_allocator and
6569         omp_destroy_allocator.
6570         * configure.ac: Set INTPTR_T_KIND.
6571         * configure: Regenerate.
6572         * Makefile.in: Regenerate.
6573         * testsuite/Makefile.in: Regenerate.
6574         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6575         omp_set_default_allocator_, omp_get_default_allocator_): New
6576         functions and ialias_redirect.
6577         * icv.c: Add ialias for omp_set_default_allocator and
6578         omp_get_default_allocator.
6579         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6580         omp_destroy_allocator_, omp_set_default_allocator_ and
6581         omp_get_default_allocator_.
6582         * omp_lib.f90.in: Add allocator traits parameters, declare
6583         allocator routines and add related kind parameters.
6584         * omp_lib.h.in: Likewise.
6585         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6586         * testsuite/libgomp.fortran/alloc-1.F90: New test.
6587         * testsuite/libgomp.fortran/alloc-2.F90: New test.
6588         * testsuite/libgomp.fortran/alloc-3.F: New test.
6589         * testsuite/libgomp.fortran/alloc-4.f90: New test.
6590         * testsuite/libgomp.fortran/alloc-5.f90: New test.
6592 2020-07-14  Tom de Vries  <tom@codesourcery.com>
6593             Cesar Philippidis  <cesar@codesourcery.com>
6594             Thomas Schwinge  <thomas@codesourcery.com>
6595             Kwok Cheung Yeung  <kcy@codesourcery.com>
6597         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6598         New variable.
6599         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
6600         acc_init_state to initializing at the start, and to initialized at the
6601         end.
6602         (self_initializing_p): New function.
6603         (acc_get_device_type): Return acc_device_none if called by thread that
6604         is currently executing acc_init_1.
6605         * libgomp.texi (acc_get_device_type): Update documentation.
6606         (Implementation Status and Implementation-Defined Behavior): Likewise.
6607         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6609 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
6611         * config/t-aix: Set BITS from compiler cpp macro.
6613 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6615         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6617 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6619         PR fortran/67311
6620         * testsuite/libgomp.fortran/target-map-1.f90: New test.
6622 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
6624         * testsuite/libgomp.c/loop-21.c: New test.
6626 2020-07-13  Julian Brown  <julian@codesourcery.com>
6627             Thomas Schwinge  <thomas@codesourcery.com>
6629         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6631 2020-07-10  Julian Brown  <julian@codesourcery.com>
6632             Thomas Schwinge  <thomas@codesourcery.com>
6634         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6635         dynamic_refcount.
6636         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6637         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6638         dynamic_refcount.
6639         (acc_unmap_data): Update comment.
6640         (goacc_map_var_existing, goacc_enter_datum): Adjust for
6641         dynamic_refcount semantics.
6642         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6643         Adjust for dynamic_refcount semantics.
6644         (goacc_enter_data_internal): Implement "present" case of dynamic
6645         memory-map handling here.  Update "non-present" case for
6646         dynamic_refcount semantics.
6647         (goacc_exit_data_internal): Use goacc_exit_datum_1.
6648         * target.c (gomp_map_vars_internal): Remove
6649         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
6650         handling.
6651         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6652         (gomp_load_image_to_device): Substitute dynamic_refcount for
6653         virtual_refcount.
6654         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6655         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6656         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6657         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6658         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6659         trace output.
6660         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6661         trace output.
6662         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6663         test.
6664         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6665         Remove stale comment.
6666         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6667         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6668         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6669         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6670         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6671         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6673 2020-07-10  Julian Brown  <julian@codesourcery.com>
6674             Thomas Schwinge  <thomas@codesourcery.com>
6676         * oacc-mem.c (goacc_map_var_existing): New function.
6677         (goacc_enter_datum): Use above function.
6678         (goacc_exit_datum_1): New function.
6679         (goacc_exit_datum): Use above function.
6681 2020-07-09  Julian Brown  <julian@codesourcery.com>
6682             Thomas Schwinge  <thomas@codesourcery.com>
6684         PR middle-end/95270
6685         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6686         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6688 2020-07-09  Julian Brown  <julian@codesourcery.com>
6690         * oacc-mem.c (find_group_last): Group data-movement clauses
6691         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6692         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
6694 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6696         * testsuite/libgomp.c/loop-19.c: New test.
6697         * testsuite/libgomp.c/loop-20.c: New test.
6699 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6701         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6702         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
6703         it.  Remove __omp_alloctrait_value_max__.
6704         * allocator.c (omp_init_allocator): Handle omp_atv_default for
6705         omp_atk_alignment and omp_atk_pool_size.
6707 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6709         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6710         behavior for 'GOMP_MAP_FORCE_FROM'.
6711         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6713 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6715         * oacc-mem.c (goacc_exit_data_internal): Remove
6716         'GOMP_MAP_ALWAYS_FROM' handling.
6718 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6720         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6721         'scan-assembler' with 'scan-offload-rtl'.
6722         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6723         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6724         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6725         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6727 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6729         * target.c (gomp_map_vars_existing): Assert 'kind !=
6730         GOMP_MAP_ATTACH'.
6731         (gomp_map_vars_internal): Clean up.
6733 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
6735         * testsuite/libgomp.c/loop-17.c: New test.
6736         * testsuite/libgomp.c/loop-18.c: New test.
6738 2020-06-26  Marek Polacek  <polacek@redhat.com>
6740         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6742 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
6744         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6745         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6747 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
6749         * Makefile.am: Use -include.
6750         * Makefile.in: Regenerate.
6752 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
6754         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6755         * Makefile.in: Regenerate
6756         * configure.ac (tmake_file): Substitute.
6757         * configure: Regenerate.
6758         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6759         * config/t-aix: New file.
6761 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
6763         PR lto/94848
6764         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6765         'dg-do run'.
6767 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
6769         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6770         variant for HSA_RUNTIME_LIB name.
6771         (find_executable_symbol_1): Delete.
6772         (find_executable_symbol): Delete.
6773         (init_kernel_properties): Add ".kd" suffix to symbol names.
6774         (find_load_offset): Delete.
6775         (create_and_finalize_hsa_program): Remove relocation handling.
6777 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
6779         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6781 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
6783         PR lto/94848
6784         PR middle-end/95551
6785         * testsuite/libgomp.fortran/target-var.f90: New test.
6787 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6788             Julian Brown  <julian@codesourcery.com>
6790         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6791         special handling.
6793 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6794             Julian Brown  <julian@codesourcery.com>
6796         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6797         Simplify.
6799 2020-06-05  Julian Brown  <julian@codesourcery.com>
6801         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6802         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6804 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6806         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6807         Evaluate 'copyfrom' individually for each entry.
6808         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6810 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6812         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6813         Evaluate 'finalize' individually for each entry.
6814         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6815         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6816         file.
6818 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6820         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6821         usage.
6822         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6824 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6825             Julian Brown  <julian@codesourcery.com>
6827         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6828         checking.
6829         (acc_unmap_data, goacc_exit_data_internal): Restore
6830         'is_tgt_unmapped' checking.
6831         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6832         file.
6833         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6834         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6835         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6836         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6837         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6838         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6840 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6841             Julian Brown  <julian@codesourcery.com>
6843         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6845 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6847         PR libgomp/92854
6848         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6850 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6852         PR libgomp/92854
6853         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6854         more.
6856 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6857             Julian Brown  <julian@codesourcery.com>
6859         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6860         'gomp_map_vars'.
6861         (acc_map_data): Clean up accordingly.
6863 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6865         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6866         of over-eager 'finalize' clause.
6867         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6868         file.
6869         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6870         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6871         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6872         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6873         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6874         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6875         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6876         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6878 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6880         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6882 2020-06-04  Julian Brown  <julian@codesourcery.com>
6884         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6885         error path.
6886         (goacc_detach_internal): Likewise.
6888 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6890         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6891         the checkpoint.
6892         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6893         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6894         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6895         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6896         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6898 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
6900         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6901         defined.
6903 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6905         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6907 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6909         * allocator.c (omp_alloc): For size == 0, return NULL early.
6911 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
6913         PR bootstrap/95413
6914         * configure: Regenerated.
6916 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
6918         PR libfortran/95191
6919         * testsuite/libgomp.fortran/async_io_9.f90: New test.
6921 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
6923         * omp.h.in (omp_uintptr_t): New typedef.
6924         (__GOMP_UINTPTR_T_ENUM): Define.
6925         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6926         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6927         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6928         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6929         omp_get_default_allocator, omp_alloc, omp_free): Declare.
6930         * libgomp.h (struct gomp_team_state): Add def_allocator field.
6931         (gomp_def_allocator): Declare.
6932         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6933         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6934         omp_alloc and omp_free.
6935         * team.c (gomp_team_start): Copy over ts.def_allocator.
6936         * env.c (gomp_def_allocator): New variable.
6937         (parse_wait_policy): Adjust function comment.
6938         (parse_allocator): New function.
6939         (handle_omp_display_env): Print OMP_ALLOCATOR.
6940         (initialize_env): Call parse_allocator.
6941         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6942         * allocator.c: New file.
6943         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6944         functions.
6945         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6946         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6947         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6948         * Makefile.in: Regenerated.
6950 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6952         PR bootstrap/95147
6953         * configure: Regenerated.
6955 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
6957         PR libfortran/95119
6958         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6960 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6962         * configure: Regenerated.
6964 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
6966         * testsuite/libgomp.c-c++-common/target-40.c: New test.
6968 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
6970         PR fortran/94690
6971         * testsuite/libgomp.fortran/pr66199-3.f90: New.
6972         * testsuite/libgomp.fortran/pr66199-4.f90: New.
6973         * testsuite/libgomp.fortran/pr66199-5.f90: New.
6974         * testsuite/libgomp.fortran/pr66199-6.f90: New.
6975         * testsuite/libgomp.fortran/pr66199-7.f90: New.
6976         * testsuite/libgomp.fortran/pr66199-8.f90: New.
6977         * testsuite/libgomp.fortran/pr66199-9.f90: New.
6979 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
6981         * testsuite/libgomp.c/target-39.c: New test.
6983 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6985         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6986         * openacc.f90 (acc_device_current): Likewise.
6987         * openacc.h (acc_device_current): Likewise.
6988         * openacc_lib.h (acc_device_current): Likewise.
6990         PR target/94282
6991         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6992         'dg-allow-blank-lines-in-output'.
6994         * oacc-init.c (get_openacc_name): Handle 'gcn'.
6995         * testsuite/lib/libgomp.exp
6996         (offload_target_to_openacc_device_type) [amdgcn*]: Return
6997         'radeon'.  Adjust all users.
6998         (check_effective_target_openacc_amdgcn_accel_present): Rename
6999         to...
7000         (check_effective_target_openacc_radeon_accel_present): ... this.
7001         Adjust all users.
7002         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7003         (check_effective_target_openacc_radeon_accel_selected): ... this.
7004         Adjust all users.
7006         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7007         'dg-do run'.
7009 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7011         PR other/94629
7013         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7014         hsa_iterate_agents.
7015         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7016         hsa_agent_iterate_regions.
7018 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7020         PR middle-end/94635
7021         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7022         run'.
7024 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7026         PR middle-end/94120
7027         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7028         test case.
7030 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7032         PR middle-end/94635
7033         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7035 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7037         PR libgomp/92843
7038         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7039         Rename to...
7040         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7041         ... this.
7042         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7043         Rename to...
7044         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7045         ... this.
7046         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7047         Rename to...
7048         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7049         ... this.
7050         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7051         Rename to...
7052         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7053         ... this.
7054         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7055         Rename to...
7056         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7057         ... this.
7058         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7059         Rename to...
7060         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7061         ... this.
7062         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7063         Rename to...
7064         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7065         ... this.
7066         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7067         Rename to...
7068         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7069         ... this.
7070         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7071         Rename to...
7072         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7073         ... this.
7074         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7075         Rename to...
7076         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7077         ... this.
7078         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7079         Rename to...
7080         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7081         ... this.
7082         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7083         Rename to...
7084         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7085         ... this.
7086         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7087         Rename to...
7088         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7089         ... this.
7090         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7091         Rename to...
7092         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7093         ... this.
7094         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7095         Rename to...
7096         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7097         ... this.
7098         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7099         Rename to...
7100         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7101         ... this.
7103 2020-04-10  Julian Brown  <julian@codesourcery.com>
7104             Thomas Schwinge  <thomas@codesourcery.com>
7106         PR libgomp/92843
7107         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7108         New file.
7109         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7110         Likewise.
7111         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7112         Likewise.
7113         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7114         Likewise.
7115         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7116         Likewise.
7117         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7118         Likewise.
7119         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7120         Likewise.
7121         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7122         Likewise.
7123         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7124         Likewise.
7125         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7126         Likewise.
7127         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7128         Likewise.
7129         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7130         Likewise.
7131         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7132         Likewise.
7133         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7134         Likewise.
7135         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7136         Likewise.
7137         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7138         Likewise.
7140 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7142         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7143         run'.
7145 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7147         PR middle-end/94120
7148         * libgomp.oacc-c++/declare-pr94120.C: New.
7150 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7152         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7153         files.
7154         * configure: Regenerate.
7155         * testsuite/libgomp-site-extra.exp.in: New file.
7156         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7157         variable.
7158         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7159         variable.
7160         * testsuite/Makefile.in: Regenerate.
7162 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7164         PR tree-optimization/89713
7165         PR c/94392
7166         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7167         'bar.sync'.
7168         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7170 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
7172         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7173         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7175 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
7177         PR libgomp/81689
7178         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7180 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
7182         PR libgomp/94251
7183         * target.c (gomp_load_image_to_device): Fix link
7184         variable handling.
7186 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7188         PR c++/93931
7189         * testsuite/libgomp.c++/pr93931.C: New test.
7191 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7193         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7194         dg-allow-blank-lines-in-output.
7196 2020-03-18  Julian Brown <julian@codesourcery.com>
7197             Tobias Burnus  <tobias@codesourcery.com>
7199         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7200         it work concurrently.
7202 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7204         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7205         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7206         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7208 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7210         PR middle-end/93566
7211         * testsuite/libgomp.c/pr93566.c: New test.
7213 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7215         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7216         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7217         integer(acc_device_property) for the type of the return value of
7218         acc_get_property.
7220 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7222         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7223         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7224         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7225         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7226         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7227         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7228         corrections; add note about the previous interface and named constant.
7229         (OpenACC library and environment variables): Fix two typos.
7230         * openacc.f90: Use for all procedures the argument names from the spec
7231         as for â€¦_h they are user visible.
7232         (openacc_kinds): Rename acc_device_property to
7233         acc_device_property_kinds and change value to int32 ; and update users.
7234         Re-add acc_device_property for for backward compatibility.
7235         (acc_get_property_string_h): Clean up as acc_device_property_kind
7236         changed.
7237         (acc_get_property_h): Likewise and return c_size_t instead of
7238         acc_device_property.
7239         (openacc): Also export acc_device_property_kinds.
7240         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7241         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7242         handling; check against /= 0 instead of == 1 to match C.
7243         * openacc_lib.h: Use for all procedures the argument names from the spec
7244         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7245         be active also for fixed-form souce form.
7246         (acc_device_current, acc_device_property_kind, acc_device_property,
7247         acc_property_memory, acc_property_free_memory, acc_property_name,
7248         acc_property_vendor, acc_property_driver): New named constants.
7249         (acc_get_property, acc_get_property_string): New generic interface.
7251 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7253         PR libgomp/93481
7254         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7255         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7256         optional.
7257         (gomp_target_task_fn): Assert "devicep->async_run_func".
7258         (clear_unsupported_flags): New function to remove unsupported flags
7259         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7260         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7261         * testsuite/libgomp.c/target-33.c:
7262         Remove xfail for offload_target_nvptx.
7263         * testsuite/libgomp.c/target-34.c: Likewise.
7265 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7267         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7268         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7269         * testsuite/libgomp.c/target-34.c: Likewise.
7270         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7271         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7273 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7275         * testsuite/libgomp.c/target-38.c: New test.
7277 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7279         PR libgomp/93515
7280         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7282 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7284         * testsuite/lib/libgomp.exp
7285         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7286         and not as 'source' argument to libgomp_target_compile.
7288 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7290         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7291         (gcn_gfx801_s): Remove.
7292         (isa_hsa_name): Remove gfx801.
7293         (isa_gcc_name): Remove gfx801/carizzo.
7294         (isa_code): Remove gfx801.
7296 2020-02-03  Julian Brown  <julian@codesourcery.com>
7297             Tobias Burnus  <tobias@codesourcery.com>
7299         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7300         and *_finalize variants; document acc_attach and acc_detach; update
7301         references from OpenACC 2.0 to 2.6.
7302         * openacc.f90 (openacc_version): Update to 201711.
7303         * openacc_lib.h (openacc_version): Update to 201711.
7304         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7305         openacc_version to 201711.
7306         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7308 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7310         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7311         and vgpr_count fields.
7312         (struct kernel_info): Add a field for a hsa_kernel_description.
7313         (run_kernel): Reduce the number of threads/workers if the requested
7314         number would require too many VGPRs.
7315         (init_basic_kernel_info): Initialize description field with
7316         the hsa_kernel_description entry for the kernel.
7318 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7320         PR bootstrap/93409
7321         * plugin/configfrag.ac (enable_offload_targets): Skip
7322         HSA and GCN plugin besides -m32 also for -mx32.
7323         * configure: Regenerate.
7325 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7327         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7329 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7331         * plugin-gcn.c (struct agent_info): Add fields "name" and
7332         "vendor_name" ...
7333         (GOMP_OFFLOAD_init_device): ... and init from here.
7334         (struct hsa_context_info): Add field "driver_version_s" ...
7335         (init_hsa_contest): ... and init from here.
7336         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7337         implementation.
7338         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7339         Enable test execution for amdgcn and host offloading targets.
7340         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7341         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7342         (expect_device_properties): Split function into ...
7343         (expect_device_string_properties): ... this new function ...
7344         (expect_device_memory): ... and this new function.
7345         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7346         Add test.
7348 2020-01-28  Julian Brown  <julian@codesourcery.com>
7350         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7351         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7352         component/non-component variable refs in a single directive.
7353         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7355 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7357         * configure.ac: Handle `--with-toolexeclibdir='.
7358         * Makefile.in: Regenerate.
7359         * aclocal.m4: Regenerate.
7360         * configure: Regenerate.
7361         * testsuite/Makefile.in: Regenerate.
7363 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7365         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7366         (expect_device_properties): Remove "expected_free_mem" argument,
7367         change "expected_total_mem" argument type to size_t;
7368         change types of acc_get_property results to size_t,
7369         adapt format strings.
7370         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7371         Use %zu instead of %zd to print size_t values.
7372         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7373         rename to ...
7374         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7375         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7376         rename to ...
7377         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7379 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
7381         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7382         the device id.
7384 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
7386         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7387         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7388         Adjust test dimensions for amdgcn.
7389         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7390         gang/worker/vector expectations dynamically.
7391         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7392         (main): Likewise.
7393         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7394         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7395         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7396         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7397         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7398         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7399         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7400         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7401         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7402         (acc_gang): Recognise acc_device_radeon.
7403         (acc_worker): Likewise.
7404         (acc_vector): Likewise.
7405         (main): Set expectations for amdgcn.
7406         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7407         (main): Adjust gang/worker/vector expectations dynamically.
7408         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7409         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7410         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7411         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7412         for amdgcn.
7414 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
7416         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7417         acc_device_radeon.
7418         (openacc): Likewise.
7419         * openacc.f90 (openacc_kinds): Likewise.
7420         (openacc): Likewise.
7421         * openacc.h (acc_device_t): Likewise.
7422         * openacc_lib.h: Likewise.
7423         * testsuite/lib/libgomp.exp
7424         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7425         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7426         (cb_compute_construct_end): Likewise.
7427         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7428         (cb_enqueue_launch_start): Likewise.
7429         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7430         (cb_enter_data_end): Likewise.
7431         (cb_exit_data_start): Likewise.
7432         (cb_exit_data_end): Likewise.
7433         (cb_compute_construct_end): Likewise.
7434         (cb_enqueue_launch_start): Likewise.
7435         (cb_enqueue_launch_end): Likewise.
7436         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7437         (main): Likewise.
7439 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7441         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
7442         to use this instead of 'enum gomp_device_property'.
7443         (GOMP_OFFLOAD_get_property): Rename to...
7444         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
7445         * libgomp.h (struct gomp_device_descr): Move
7446         'GOMP_OFFLOAD_openacc_get_property'...
7447         (struct acc_dispatch_t): ... here.  Adjust all users.
7448         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7450         * target.c (gomp_map_vars_internal)
7451         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7452         paths.
7454 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
7456         PR libgomp/93219
7457         * libgomp.h (gomp_print_string): Change return type from void to int.
7458         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
7459         not all characters have been written.
7461 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
7463         * libgomp.texi: Fix typos, use https.
7465 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
7467         * testsuite/libgomp.fortran/optional-map.f90: Add test for
7468         unallocated/disassociated actual arguments to nonallocatable/nonpointer
7469         dummy arguments; those are/shall be regarded as absent arguments.
7470         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7471         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7473 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
7475         Update copyright years.
7477         * libgomp.texi: Bump @copying's copyright year.
7479 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
7481         PR libgomp/93065
7482         * oacc-init.c (goacc_runtime_deinitialize): New function.
7484 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
7486         PR bootstrap/93074
7487         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7488         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
7490 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
7491             Frederik Harwath  <frederik@codesourcery.com>
7492             Thomas Schwinge  <tschwinge@codesourcery.com>
7494         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7495         * libgomp-plugin.h (gomp_device_property_value): New union.
7496         (gomp_device_property_value): New prototype.
7497         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7498         constant.
7499         (acc_device_property_t): New enum.
7500         (acc_get_property, acc_get_property_string): New prototypes.
7501         * oacc-init.c (acc_get_device_type): Also assert that result
7502         is not `acc_device_current'.
7503         (get_property_any, acc_get_property, acc_get_property_string):
7504         New functions.
7505         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7506         `acc_property_memory', `acc_property_free_memory',
7507         `acc_property_name', `acc_property_vendor' and
7508         `acc_property_driver' constants.  Add `acc_device_property' data
7509         type.
7510         (openacc_internal): Add `acc_get_property' and
7511         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
7512         `acc_get_property_string_h', `acc_get_property_l' and
7513         `acc_get_property_string_l'.
7514         * oacc-host.c (host_get_property): New function.
7515         (host_dispatch): Wire it.
7516         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7517         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7518         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7519         * libgomp.texi (OpenACC Runtime Library Routines): Add
7520         `acc_get_property'.
7521         (acc_get_property): New node.
7522         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7523         function (stub).
7524         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7525         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7526         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7527         calls.
7528         (GOMP_OFFLOAD_get_property): New function.
7529         (struct ptx_device): Add new field "name".
7530         (cuda_driver_version_s): Add new static variable ...
7531         (nvptx_init): ... and init from here.
7533         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7534         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7535         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7536         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7537         with test helper functions.
7539         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7541 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
7543         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7544         variable.
7546 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
7548         * target.c (gomp_map_vars_internal): Restore 'omp declare target
7549         link' handling.
7551 2019-12-19  Julian Brown  <julian@codesourcery.com>
7553         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7554         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7555         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7557 2019-12-19  Julian Brown  <julian@codesourcery.com>
7558             Cesar Philippidis  <cesar@codesourcery.com>
7560         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7561         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7562         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7563         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7564         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7565         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7566         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7567         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7568         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7569         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7570         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7571         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7572         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7574 2019-12-19  Julian Brown  <julian@codesourcery.com>
7576         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7577         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7578         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7579         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7580         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7581         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7582         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7583         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7584         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7585         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7586         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7587         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7589 2019-12-19  Julian Brown  <julian@codesourcery.com>
7591         * libgomp.h (struct target_var_desc): Add do_detach flag.
7592         * oacc-init.c (acc_shutdown_1): Free aux block if present.
7593         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7594         struct components.  Tidy up and add some new checks.
7595         (goacc_enter_data_internal): Update call to find_group_last.
7596         (goacc_exit_data_internal): Support detach operations and
7597         GOMP_MAP_STRUCT.
7598         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7599         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
7600         attach/detach in enter/exit data detection code.
7601         * target.c (gomp_map_vars_existing): Initialise do_detach field of
7602         tgt_var_desc.
7603         (gomp_map_vars_internal): Support attach.
7604         (gomp_unmap_vars_internal): Support detach.
7606 2019-12-19  Julian Brown  <julian@codesourcery.com>
7607             Thomas Schwinge  <thomas@codesourcery.com>
7609         * libgomp.h (struct splay_tree_aux): Add attach_count field.
7610         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7611         * libgomp.map (OACC_2.6): New section. Add acc_attach,
7612         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7613         acc_detach_finalize_async.
7614         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7615         acc_detach, acc_detach_async, acc_detach_finalize,
7616         acc_detach_finalize_async): New functions.
7617         * openacc.h (acc_attach, acc_attach_async, acc_detach,
7618         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7619         prototypes.
7620         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7621         (gomp_remove_var_internal): Free attachment counts if present.
7622         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7623         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7625 2019-12-19  Julian Brown  <julian@codesourcery.com>
7626             Cesar Philippidis  <cesar@codesourcery.com>
7628         * libgomp.h (gomp_map_val): Add prototype.
7629         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7630         open-coding device-address calculation.
7631         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7632         non-present case.
7634 2019-12-19  Julian Brown  <julian@codesourcery.com>
7636         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7637         field for virtual_refcount.
7638         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7639         (gomp_free_memmap): Remove prototype.
7640         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7641         instead of calling gomp_free_memmap.
7642         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7643         dynamic_refcount.
7644         (acc_unmap_data): Open code instead of forcing target_mem_desc's
7645         to_free field to NULL then calling gomp_unmap_vars.  Handle
7646         REFCOUNT_INFINITY on target blocks.
7647         (goacc_enter_data): Rename to...
7648         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
7649         handling for mapping groups.  Use virtual_refcount instead of
7650         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7651         map_map_vars_async call.  Re-do lookup for target pointer return value.
7652         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7653         renamed goacc_enter_datum function.
7654         (goacc_exit_data): Rename to...
7655         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
7656         (acc_delete, acc_delete_async, acc_delete_finalize,
7657         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7658         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7659         goacc_exit_datum function.
7660         (gomp_acc_remove_pointer, find_pointer): Remove functions.
7661         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7662         New functions.
7663         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7664         goacc_exit_data_internal helper functions.
7665         * target.c (gomp_map_vars_internal): Handle
7666         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
7667         semantics.
7668         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7669         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7670         virtual_refcount field instead of dynamic_refcount.
7671         (gomp_free_memmap): Remove function.
7672         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7673         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7674         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7676 2019-12-19  Julian Brown  <julian@codesourcery.com>
7677             Thomas Schwinge  <thomas@codesourcery.com>
7679         * libgomp.h (struct splay_tree_aux): New.
7680         (struct splay_tree_key_s): Replace link_key field with aux pointer.
7681         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7682         to aux struct.
7683         (gomp_remove_var_internal): Free aux block if present.
7684         (gomp_load_image_to_device): Zero-initialise aux field instead of
7685         link_key field.
7686         (omp_target_associate_pointer): Zero-initialise aux field.
7688 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
7690         PR middle-end/86416
7691         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7692         q or none.
7693         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7694         L or none.
7696 2019-12-19  Julian Brown  <julian@codesourcery.com>
7697             Maciej W. Rozycki  <macro@codesourcery.com>
7698             Tobias Burnus  <tobias@codesourcery.com>
7699             Thomas Schwinge  <thomas@codesourcery.com>
7701         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7702         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7703         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7704         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7705         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7706         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7707         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7708         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7709         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7711 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
7713         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7714         called...
7715         (goacc_insert_pointer): ... from here, "present" case.
7716         (goacc_insert_pointer): Inline function into...
7717         (GOACC_enter_exit_data): ... here, and simplify.
7719         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7720         called...
7721         (goacc_insert_pointer): ... from here, "not present" case.
7723         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
7724         all users.
7726         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7727         'goacc_enter_data', 'goacc_exit_data'.
7729         * oacc-mem.c (delete_copyout): Refactor into...
7730         (goacc_exit_data): ... this.  Adjust all users.
7732         * oacc-mem.c (present_create_copy): Refactor into...
7733         (goacc_enter_data): ... this.  Adjust all users.
7735         * target.c (gomp_unmap_vars_internal): Add a safeguard to
7736         'gomp_remove_var'.
7738         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7739         like 'GOMP_MAP_FROM'.
7741         PR libgomp/92726
7742         PR libgomp/92970
7743         PR libgomp/92984
7744         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7745         fails.
7746         (GOACC_enter_exit_data): Simplify accordingly.
7747         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7748         subsuming...
7749         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7750         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7751         file.
7752         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7753         subsuming...
7754         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7755         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7756         file.
7757         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7758         subsuming...
7759         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7761         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7762         'finalize' handling.
7764         PR libgomp/92848
7765         * oacc-mem.c (acc_map_data, present_create_copy)
7766         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7767         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7768         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7769         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7770         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7771         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7772         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7773         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7774         Remove "XFAIL"s.
7776         * target.c (gomp_unmap_tgt): Make it 'static'.
7777         * libgomp.h (gomp_unmap_tgt): Remove.
7779 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
7781         PR middle-end/86416
7782         * testsuite/libgomp.c/pr86416-1.c: New.
7783         * testsuite/libgomp.c/pr86416-2.c: New.
7785 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
7787         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7788         all symbols as public except for the 'use â€¦, only' imported symbol,
7789         which is private.
7790         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7791         all symbols from module openacc_kinds as PUBLIC
7792         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7793         fix comment typo.
7794         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7796 2019-12-13  Julian Brown  <julian@codesourcery.com>
7798         PR libgomp/92881
7800         * libgomp.h (gomp_remove_var_async): Add prototype.
7801         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7802         gomp_remove_var.
7803         * target.c (gomp_unref_tgt): Change return type to bool, indicating
7804         whether target_mem_desc was unmapped.
7805         (gomp_unref_tgt_void): New.
7806         (gomp_remove_var): Reimplement in terms of...
7807         (gomp_remove_var_internal): ...this new helper function.
7808         (gomp_remove_var_async): New, implemented using above helper function.
7809         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7810         gomp_unref_tgt.
7812 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
7814         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7815         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7816         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7817         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7818         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7819         Likewise.
7820         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7821         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7823 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
7825         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7826         as public except for the 'use â€¦, only' imported symbol, which is
7827         private.
7828         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7829         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7830         attributes for acc_copyout_finalize and acc_delete_finalize.
7832 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
7834         PR fortran/92899
7835         * testsuite/libgomp.fortran/atomic1.f90: New test.
7837 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7839         PR libgomp/92843
7840         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7841         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
7842         assertions.
7843         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7844         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7845         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7846         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7847         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7849         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7850         * oacc-mem.c: ... here.
7851         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7852         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7853         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7854         Remove.
7855         * libgomp_g.h: Update.
7857         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7858         * oacc-async.c: ... here.
7859         * oacc-int.h (goacc_wait): Declare.
7860         * libgomp_g.h: Update
7862         PR libgomp/92854
7863         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7864         New file.
7865         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7866         Likewise.
7867         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7868         Likewise.
7869         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7870         Likewise.
7871         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7872         Likewise.
7873         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7874         Likewise.
7876 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7877             Julian Brown  <julian@codesourcery.com>
7879         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7880         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7882 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7884         * omp_lib.h.in: Fix spelling of function declaration
7885         omp_get_cancell(l)ation.
7886         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7887         Fix typos.
7888         * env.c: Fix comment typos.
7889         * oacc-host.c: Likewise.
7890         * ordered.c: Likewise.
7891         * task.c: Likewise.
7892         * team.c: Likewise.
7893         * config/gcn/task.c: Likewise.
7894         * config/gcn/team.c: Likewise.
7895         * config/nvptx/task.c: Likewise.
7896         * config/nvptx/team.c: Likewise.
7897         * plugin/plugin-gcn.c: Likewise.
7898         * testsuite/libgomp.fortran/jacobi.f: Likewise.
7899         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7900         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7902 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7904         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7905         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7906         unnecessary 'dg-additional-options "-w"'.
7908 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7909             Julian Brown  <julian@codesourcery.com>
7911         PR libgomp/92116
7912         PR libgomp/92877
7914         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
7915         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7916         Adjust all users.
7917         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7918         Remove XFAIL.
7919         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7920         Likewise.
7921         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7923 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7925         PR libgomp/92503
7926         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7927         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7928         file.
7929         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7930         Likewise.
7931         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7932         Likewise.
7933         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7934         Likewise.
7935         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7936         Likewise.
7937         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7938         Likewise.
7939         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7940         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7941         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7942         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7943         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7944         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7945         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7946         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7947         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7948         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7950         PR libgomp/92840
7951         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7952         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7953         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7954         New file.
7955         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7956         Likewise.
7957         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7958         Likewise.
7959         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7960         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7962         PR libgomp/92511
7963         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7964         this file...
7965         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7966         this file...
7967         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7968         file...
7969         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7970         file...
7971         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7972         ... with their content moved into, and extended in this new file.
7973         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7974         New file.
7975         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7976         Likewise.
7977         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7978         Likewise.
7979         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7980         Likewise.
7982         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7984         PR libgomp/92854
7985         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7987         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7989         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7991 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
7993         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7994         unique.
7995         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7996         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7997         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7998         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7999         Ditto.
8000         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8001         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8003 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8005         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8007 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8008             Kwok Cheung Yeung <kcy@codesourcery.com>
8010         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8011         if input it a NULL pointer.
8012         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8013         diagnostic of NULL pointer.
8014         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8015         * testsuite/libgomp.fortran/optional-map.f90: New.
8016         * testsuite/libgomp.fortran/use_device_addr-1.f90
8017         (test_dummy_opt_callee_1_absent): New.
8018         (test_dummy_opt_call_1): Call it.
8019         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8020         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8021         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8022         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8023         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8024         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8025         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8026         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8027         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8028         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8029         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8030         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8031         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8032         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8033         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8034         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8036 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8038         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8039         expect dg-output of 'Error termination.' for GCN.
8040         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8041         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8043 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8045         PR fortran/92756
8046         * testsuite/libgomp.fortran/teams1.f90: New test.
8047         * testsuite/libgomp.fortran/teams2.f90: New test.
8049 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8051         * oacc-init.c (acc_known_device_type): Add function.
8052         (unknown_device_type_error): Add function.
8053         (name_of_acc_device_t): Change to call unknown_device_type_error
8054         on unknown type.
8055         (resolve_device): Use acc_known_device_type.
8056         (acc_init): Fail if acc_device_t argument is not valid.
8057         (acc_shutdown): Likewise.
8058         (acc_get_num_devices): Likewise.
8059         (acc_set_device_type): Likewise.
8060         (acc_get_device_num): Likewise.
8061         (acc_set_device_num): Likewise.
8062         (acc_on_device): Add comment that argument validity is not checked.
8064 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8066         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8067         Recognize amdgcn.
8068         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8069         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8070         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8071         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8072         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8074 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8076         PR libgomp/91938
8077         * configure.tgt: Avoid IE tls on *-*-musl*.
8079 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8081         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8082         adding a common-block test case.
8084 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8086         PR c++/60228
8087         * testsuite/libgomp.c++/udr-20.C: New test.
8088         * testsuite/libgomp.c++/udr-21.C: New test.
8090 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8092         * testsuite/lib/libgomp.exp
8093         (check_effective_target_offload_target_nvptx): New proc.
8094         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8095         'dg-skip-if'.
8096         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8097         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8098         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8100 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8102         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8103         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8104         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8105         * testsuite/libgomp.c/private-1.c: Likewise.
8106         * testsuite/libgomp.c/task-1.c: Likewise.
8107         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8109 2019-11-20  Julian Brown  <julian@codesourcery.com>
8111         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8112         aq->mutex here.
8113         (queue_push_launch): Lock aq->mutex before calling
8114         wait_for_queue_nonfull.
8115         (queue_push_callback): Likewise.
8116         (queue_push_asyncwait): Likewise.
8117         (queue_push_placeholder): Likewise.
8119 2019-11-20  Julian Brown  <julian@codesourcery.com>
8121         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8122         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8123         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8124         return code.
8126 2019-11-20  Julian Brown  <julian@codesourcery.com>
8128         PR libgomp/92511
8130         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8131         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8132         in non-present/create case.
8133         (delete_copyout): Change error condition to fail only on copies outside
8134         of mapped block.  Adjust error message accordingly.
8135         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8136         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8137         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8138         message.
8139         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8140         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8141         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8143 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8145         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8146         libatomic in build-tree testing.
8148 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8150         * testsuite/Makefile.in: Regenerate.
8152 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8154         * testsuite/libgomp.c/target-print-1.c: New file.
8155         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8156         * testsuite/libgomp.oacc-c/print-1.c: New file.
8157         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8159 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8160             Kwok Cheung Yeung  <kcy@codesourcery.com>
8161             Julian Brown  <julian@codesourcery.com>
8162             Tom de Vries  <tom@codesourcery.com>
8164         * plugin/Makefrag.am: Add amdgcn plugin support.
8165         * plugin/configfrag.ac: Likewise.
8166         * plugin/plugin-gcn.c: New file.
8167         * configure: Regenerate.
8168         * Makefile.in: Regenerate.
8169         * testsuite/Makefile.in: Regenerate.
8171 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8173         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8174         and use team_malloc variants.
8175         (gomp_gcn_exit_kernel): Use team_free.
8176         * libgomp.h (TEAM_ARENA_SIZE): Define.
8177         (TEAM_ARENA_START): Define.
8178         (TEAM_ARENA_FREE): Define.
8179         (TEAM_ARENA_END): Define.
8180         (team_malloc): New function.
8181         (team_malloc_cleared): New function.
8182         (team_free): New function.
8183         * team.c (gomp_new_team): Initialize and use team_malloc.
8184         (free_team): Use team_free.
8185         (gomp_free_thread): Use team_free.
8186         (gomp_pause_host): Use team_free.
8187         * work.c (gomp_init_work_share): Use team_malloc.
8188         (gomp_fini_work_share): Use team_free.
8190 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8191             Kwok Cheung Yeung  <kcy@codesourcery.com>
8192             Julian Brown  <julian@codesourcery.com>
8193             Tom de Vries  <tom@codesourcery.com>
8195         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8196         * Makefile.in: Regenerate.
8197         * config.h.in (PLUGIN_GCN): Add new undef.
8198         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8199         * config/gcn/affinity-fmt.c: New file.
8200         * config/gcn/bar.c: New file.
8201         * config/gcn/bar.h: New file.
8202         * config/gcn/doacross.h: New file.
8203         * config/gcn/icv-device.c: New file.
8204         * config/gcn/oacc-target.c: New file.
8205         * config/gcn/simple-bar.h: New file.
8206         * config/gcn/target.c: New file.
8207         * config/gcn/task.c: New file.
8208         * config/gcn/team.c: New file.
8209         * config/gcn/time.c: New file.
8210         * configure.ac: Add amdgcn*-*-*.
8211         * configure: Regenerate.
8212         * configure.tgt: Add amdgcn*-*-*.
8213         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8214         * libgomp.h (gcn_thrs): Add amdgcn variant.
8215         (set_gcn_thrs): Likewise.
8216         (gomp_thread): Likewise.
8217         * oacc-int.h (goacc_thread): Likewise.
8218         * oacc-target.c: New file.
8219         * openacc.f90 (acc_device_gcn): New parameter.
8220         * openacc.h (acc_device_t): Add acc_device_gcn.
8221         * team.c (gomp_free_pool_helper): Add amdgcn support.
8223 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8224             Julian Brown  <julian@codesourcery.com>
8226         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8227         parameter.
8228         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8229         queue constructor.
8230         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8231         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8232         device parameter.
8234 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8236         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8237         * config/nvptx/libgomp-plugin.c: Move ...
8238         * config/accel/libgomp-plugin.c: ... to here.
8239         * config/nvptx/lock.c: Move ...
8240         * config/accel/lock.c: ... to here.
8241         * config/nvptx/mutex.c: Move ...
8242         * config/accel/mutex.c: ... to here.
8243         * config/nvptx/mutex.h: Move ...
8244         * config/accel/mutex.h: ... to here.
8245         * config/nvptx/oacc-async.c: Move ...
8246         * config/accel/oacc-async.c: ... to here.
8247         * config/nvptx/oacc-cuda.c: Move ...
8248         * config/accel/oacc-cuda.c: ... to here.
8249         * config/nvptx/oacc-host.c: Move ...
8250         * config/accel/oacc-host.c: ... to here.
8251         * config/nvptx/oacc-init.c: Move ...
8252         * config/accel/oacc-init.c: ... to here.
8253         * config/nvptx/oacc-mem.c: Move ...
8254         * config/accel/oacc-mem.c: ... to here.
8255         * config/nvptx/oacc-plugin.c: Move ...
8256         * config/accel/oacc-plugin.c: ... to here.
8257         * config/nvptx/omp-lock.h: Move ...
8258         * config/accel/omp-lock.h: ... to here.
8259         * config/nvptx/openacc.f90: Move ...
8260         * config/accel/openacc.f90: ... to here.
8261         * config/nvptx/pool.h: Move ...
8262         * config/accel/pool.h: ... to here.
8263         * config/nvptx/proc.c: Move ...
8264         * config/accel/proc.c: ... to here.
8265         * config/nvptx/ptrlock.c: Move ...
8266         * config/accel/ptrlock.c: ... to here.
8267         * config/nvptx/ptrlock.h: Move ...
8268         * config/accel/ptrlock.h: ... to here.
8269         * config/nvptx/sem.c: Move ...
8270         * config/accel/sem.c: ... to here.
8271         * config/nvptx/sem.h: Move ...
8272         * config/accel/sem.h: ... to here.
8273         * config/nvptx/thread-stacksize.h: Move ...
8274         * config/accel/thread-stacksize.h: ... to here.
8276 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8277             Tobias Burnus  <tobias@codesourcery.com>
8278             Frederik Harwath  <frederik@codesourcery.com>
8279             Thomas Schwinge  <thomas@codesourcery.com>
8281         libgomp/
8282         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8283         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8284         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8286 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8287             Kwok Cheung Yeung  <kcy@codesourcery.com>
8289         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8290         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8292 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8294         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8296         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8297         run'.
8298         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8299         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8301 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8303         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8304         Add expected warnings about missing reduction clauses.
8305         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8306         Likewise.
8307         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8308         Likewise.
8309         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8310         Likewise.
8312 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8314         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8315         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8316         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8317         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8318         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8319         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8321 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8323         PR fortran/92305
8324         * testsuite/libgomp.fortran/allocatable2.f90: Use
8325         unique numbers with 'stop'.
8326         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8327         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8328         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8329         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8330         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8332 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8334         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8335         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8336         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8337         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8338         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8339         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8341 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8343         * testsuite/libgomp.fortran/target9.f90: New.
8345 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8347         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8348         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8349         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8350         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8351         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8352         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8353         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8354         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8355         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8356         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8357         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8358         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8359         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8360         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8361         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8362         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8363         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8364         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8365         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8366         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8367         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8368         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8369         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8370         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8371         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8372         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8373         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8374         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8375         * testsuite/libgomp.fortran/character1.f90: Ditto.
8376         * testsuite/libgomp.fortran/character2.f90: Ditto.
8377         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8378         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8379         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8380         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8381         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8382         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8383         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8384         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8385         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8386         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8387         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8388         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8389         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8390         * testsuite/libgomp.fortran/do1.f90: Ditto.
8391         * testsuite/libgomp.fortran/do2.f90: Ditto.
8392         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8393         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8394         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8395         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8396         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8397         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8398         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8399         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8400         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8401         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8402         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8403         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8404         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8405         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8406         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8407         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8408         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8409         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8410         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8411         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8412         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8413         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8414         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8415         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8416         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8417         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8418         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8419         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8420         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8421         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8422         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8423         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8424         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8425         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8426         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8427         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8428         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8429         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8430         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8431         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8432         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8433         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8434         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8435         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8436         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8437         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8438         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8439         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8440         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8441         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8442         * testsuite/libgomp.fortran/lib1.f90: Ditto.
8443         * testsuite/libgomp.fortran/lib4.f90: Ditto.
8444         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8445         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8446         * testsuite/libgomp.fortran/nested1.f90: Ditto.
8447         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8448         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8449         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8450         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8451         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8452         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8453         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8454         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8455         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8456         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8457         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8458         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8459         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8460         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8461         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8462         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8463         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8464         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8465         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8466         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8467         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8468         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8469         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8470         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8471         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8472         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8473         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8474         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8475         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8476         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8477         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8478         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8479         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8480         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8481         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8482         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8483         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8484         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8485         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8486         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8487         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8488         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8489         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8490         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8491         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8492         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8493         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8494         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8495         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8496         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8497         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8498         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8499         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8500         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8501         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8502         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8503         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8504         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8505         * testsuite/libgomp.fortran/reference1.f90: Ditto.
8506         * testsuite/libgomp.fortran/reference2.f90: Ditto.
8507         * testsuite/libgomp.fortran/retval1.f90: Ditto.
8508         * testsuite/libgomp.fortran/retval2.f90: Ditto.
8509         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8510         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8511         * testsuite/libgomp.fortran/simd1.f90: Ditto.
8512         * testsuite/libgomp.fortran/simd2.f90: Ditto.
8513         * testsuite/libgomp.fortran/simd3.f90: Ditto.
8514         * testsuite/libgomp.fortran/simd4.f90: Ditto.
8515         * testsuite/libgomp.fortran/simd5.f90: Ditto.
8516         * testsuite/libgomp.fortran/simd6.f90: Ditto.
8517         * testsuite/libgomp.fortran/simd7.f90: Ditto.
8518         * testsuite/libgomp.fortran/stack.f90: Ditto.
8519         * testsuite/libgomp.fortran/strassen.f90: Ditto.
8520         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8521         * testsuite/libgomp.fortran/tabs2.f: Ditto.
8522         * testsuite/libgomp.fortran/target1.f90: Ditto.
8523         * testsuite/libgomp.fortran/target2.f90: Ditto.
8524         * testsuite/libgomp.fortran/target3.f90: Ditto.
8525         * testsuite/libgomp.fortran/target4.f90: Ditto.
8526         * testsuite/libgomp.fortran/target5.f90: Ditto.
8527         * testsuite/libgomp.fortran/target6.f90: Ditto.
8528         * testsuite/libgomp.fortran/target7.f90: Ditto.
8529         * testsuite/libgomp.fortran/target8.f90: Ditto.
8530         * testsuite/libgomp.fortran/task1.f90: Ditto.
8531         * testsuite/libgomp.fortran/task2.f90: Ditto.
8532         * testsuite/libgomp.fortran/task3.f90: Ditto.
8533         * testsuite/libgomp.fortran/task4.f90: Ditto.
8534         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8535         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8536         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8537         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8538         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8539         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8540         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8541         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8542         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8543         * testsuite/libgomp.fortran/udr1.f90: Ditto.
8544         * testsuite/libgomp.fortran/udr10.f90: Ditto.
8545         * testsuite/libgomp.fortran/udr11.f90: Ditto.
8546         * testsuite/libgomp.fortran/udr12.f90: Ditto.
8547         * testsuite/libgomp.fortran/udr13.f90: Ditto.
8548         * testsuite/libgomp.fortran/udr14.f90: Ditto.
8549         * testsuite/libgomp.fortran/udr15.f90: Ditto.
8550         * testsuite/libgomp.fortran/udr2.f90: Ditto.
8551         * testsuite/libgomp.fortran/udr3.f90: Ditto.
8552         * testsuite/libgomp.fortran/udr4.f90: Ditto.
8553         * testsuite/libgomp.fortran/udr5.f90: Ditto.
8554         * testsuite/libgomp.fortran/udr6.f90: Ditto.
8555         * testsuite/libgomp.fortran/udr7.f90: Ditto.
8556         * testsuite/libgomp.fortran/udr8.f90: Ditto.
8557         * testsuite/libgomp.fortran/udr9.f90: Ditto.
8558         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8559         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8560         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8561         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8562         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8563         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8564         * testsuite/libgomp.fortran/vla7.f90: Ditto.
8565         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8566         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8567         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8569 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8571         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8572         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8573         Ditto; add 'dg-do run' for torture testing.
8574         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
8575         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8576         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8577         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8578         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8579         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8580         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8581         * testsuite/libgomp.fortran/task2.f90: Ditto.
8582         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8583         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8584         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8585         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8586         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8587         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8589 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
8591         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8592         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8593         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8594         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8595         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8596         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8597         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8598         Use 'stop' not abort().
8599         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8600         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8601         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8602         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8603         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8604         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8605         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8606         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8607         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8608         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8609         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8610         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8611         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8612         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8613         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8614         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8615         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8616         Ditto.
8617         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8618         Ditto.
8619         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8620         Ditto.
8621         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8622         Ditto.
8623         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8624         Ditto.
8625         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8626         Ditto.
8627         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8628         Ditto.
8629         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8630         Ditto.
8631         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8632         Ditto.
8633         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8634         Ditto.
8635         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8636         Ditto.
8637         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8638         Ditto.
8639         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8640         Ditto.
8641         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8642         Ditto.
8643         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8644         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8645         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8646         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8647         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8648         Likewise and also add 'dg-do run'.
8649         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8650         Ditto.
8652 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8653             Tobias Burnus  <tobias@codesourcery.com>
8655         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8656         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8657         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8659 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
8661         PR libgomp/92081
8662         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8663         than 0.
8665 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8667         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8668         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8670 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
8672         PR middle-end/92036
8673         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8674         file.
8676 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
8678         PR testsuite/91884
8679         * testsuite/libgomp.fortran/fortran.exp: Conditionally
8680         add -lquadmath.
8681         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8683 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
8685         PR libgomp/92028
8686         * target.c (gomp_map_vars_internal): Readd the previous
8687         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8688         though do that just in the !not_found_cnt case.
8690 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
8692         * gfortran.dg/gomp/target-simd.f90: New.
8694 2019-10-02  Julian Brown  <julian@codesourcery.com>
8695             Cesar Philippidis  <cesar@codesourcery.com>
8697         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8698         * target.c (FIELD_TGT_EMPTY): Define.
8699         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
8700         as switch instead of list of ifs.
8701         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8703 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
8705         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8706         include. Replace alloca () with __builtin_alloca ().
8707         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8709 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
8711         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8712         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8713         * oacc-parallel.c: Don't include "libgomp_g.h".
8714         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8715         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8716         * aclocal.m4: Regenerated.
8717         * config.h.in: Regenerated.
8718         * configure: Regenerated.
8719         * Makefile.in: Regenerated.
8721 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
8723         * libgomp_g.h: Include stdint.h instead of gstdint.h.
8725 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
8727         * configure: Regenerate.
8729 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
8731         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8732         string is initialized.
8734 2019-09-06  Florian Weimer  <fweimer@redhat.com>
8736         * configure: Regenerate.
8738 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
8740         PR other/79543
8741         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8742         scanning to conform to the GNU Coding Standards.
8743         * configure: Regenerate.
8745 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
8747         PR libgomp/91530
8748         * testsuite/libgomp.c/scan-21.c: New test.
8749         * testsuite/libgomp.c/scan-22.c: New test.
8751 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
8753         PR libgomp/91530
8754         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8755         targets.
8756         * testsuite/libgomp.c/scan-12.c: Likewise.
8757         * testsuite/libgomp.c/scan-13.c: Likewise.
8758         * testsuite/libgomp.c/scan-14.c: Likewise.
8759         * testsuite/libgomp.c/scan-15.c: Likewise.
8760         * testsuite/libgomp.c/scan-16.c: Likewise.
8761         * testsuite/libgomp.c/scan-17.c: Likewise.
8762         * testsuite/libgomp.c/scan-18.c: Likewise.
8763         * testsuite/libgomp.c/scan-19.c: Likewise.
8764         * testsuite/libgomp.c/scan-20.c: Likewise.
8765         * testsuite/libgomp.c++/scan-9.C: Likewise.
8766         * testsuite/libgomp.c++/scan-10.C: Likewise.
8767         * testsuite/libgomp.c++/scan-11.C: Likewise.
8768         * testsuite/libgomp.c++/scan-12.C: Likewise.
8769         * testsuite/libgomp.c++/scan-14.C: Likewise.
8770         * testsuite/libgomp.c++/scan-15.C: Likewise.
8771         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
8772         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8773         * testsuite/libgomp.c++/scan-16.C: Likewise.
8775 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
8777         PR fortran/91473
8778         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8779         -std=legacy so invalid code in the test case is accepted.
8781 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8783         PR fortran/91422
8784         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8785         dimension.
8787 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8789         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8790         perform the lookup in the first loop only if !not_found_cnt, otherwise
8791         perform lookups for it in the second loop guarded with
8792         if (not_found_cnt || has_firstprivate).
8793         * testsuite/libgomp.c/target-37.c: New test.
8794         * testsuite/libgomp.c++/target-22.C: New test.
8796 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8798         * testsuite/libgomp.c/target-18.c (struct S): New type.
8799         (foo): Use use_device_addr clause instead of use_device_ptr clause
8800         where required by OpenMP 5.0, add further tests for both use_device_ptr
8801         and use_device_addr clauses.
8802         * testsuite/libgomp.c++/target-9.C (struct S): New type.
8803         (foo): Use use_device_addr clause instead of use_device_ptr clause
8804         where required by OpenMP 5.0, add further tests for both use_device_ptr
8805         and use_device_addr clauses.  Add t and u arguments.
8806         (main): Adjust caller.
8808 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8810         * testsuite/libgomp.c++/loop-13.C: New test.
8811         * testsuite/libgomp.c++/loop-14.C: New test.
8812         * testsuite/libgomp.c++/loop-15.C: New test.
8814 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8816         PR middle-end/91301
8817         * testsuite/libgomp.c++/for-27.C: New test.
8819 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
8821         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8822         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8824 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8826         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8828 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
8830         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8831         * testsuite/libgomp.c++/scan-16.C: Likewise.
8833 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
8835         * testsuite/libgomp.c/scan-19.c: New test.
8836         * testsuite/libgomp.c/scan-20.c: New test.
8838         * testsuite/libgomp.c/scan-11.c: New test.
8839         * testsuite/libgomp.c/scan-12.c: New test.
8840         * testsuite/libgomp.c/scan-13.c: New test.
8841         * testsuite/libgomp.c/scan-14.c: New test.
8842         * testsuite/libgomp.c/scan-15.c: New test.
8843         * testsuite/libgomp.c/scan-16.c: New test.
8844         * testsuite/libgomp.c/scan-17.c: New test.
8845         * testsuite/libgomp.c/scan-18.c: New test.
8846         * testsuite/libgomp.c++/scan-9.C: New test.
8847         * testsuite/libgomp.c++/scan-10.C: New test.
8848         * testsuite/libgomp.c++/scan-11.C: New test.
8849         * testsuite/libgomp.c++/scan-12.C: New test.
8850         * testsuite/libgomp.c++/scan-13.C: New test.
8851         * testsuite/libgomp.c++/scan-14.C: New test.
8852         * testsuite/libgomp.c++/scan-15.C: New test.
8853         * testsuite/libgomp.c++/scan-16.C: New test.
8855 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
8857         * testsuite/libgomp.c/scan-9.c: New test.
8858         * testsuite/libgomp.c/scan-10.c: New test.
8860 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
8862         * testsuite/libgomp.c++/scan-1.C: New test.
8863         * testsuite/libgomp.c++/scan-2.C: New test.
8864         * testsuite/libgomp.c++/scan-3.C: New test.
8865         * testsuite/libgomp.c++/scan-4.C: New test.
8866         * testsuite/libgomp.c++/scan-5.C: New test.
8867         * testsuite/libgomp.c++/scan-6.C: New test.
8868         * testsuite/libgomp.c++/scan-7.C: New test.
8869         * testsuite/libgomp.c++/scan-8.C: New test.
8870         * testsuite/libgomp.c/scan-1.c: New test.
8871         * testsuite/libgomp.c/scan-2.c: New test.
8872         * testsuite/libgomp.c/scan-3.c: New test.
8873         * testsuite/libgomp.c/scan-4.c: New test.
8874         * testsuite/libgomp.c/scan-5.c: New test.
8875         * testsuite/libgomp.c/scan-6.c: New test.
8876         * testsuite/libgomp.c/scan-7.c: New test.
8877         * testsuite/libgomp.c/scan-8.c: New test.
8879 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8881         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8882         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8883         Likewise.
8885         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8886         check.
8888 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
8890         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8891         file.
8893 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8895         PR fortran/90743
8896         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8897         case.
8898         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8899         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8900         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8901         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8903         PR testsuite/90861
8904         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8906         PR middle-end/90862
8907         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8909 2019-06-16  Tom de Vries  <tdevries@suse.de>
8911         PR tree-optimization/89376
8912         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8914 2019-06-15  Tom de Vries  <tdevries@suse.de>
8916         PR tree-optimization/89713
8917         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8918         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8920 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
8922         PR middle-end/90779
8923         * testsuite/libgomp.c/pr90779.c: New test.
8924         * testsuite/libgomp.fortran/pr90779.f90: New test.
8926 2019-06-15  Tom de Vries  <tdevries@suse.de>
8928         PR tree-optimization/90009
8929         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8931 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
8933         PR tree-optimization/89713
8934         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8936 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
8938         PR target/90811
8939         * testsuite/libgomp.c/pr90811.c: New test.
8941 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
8943         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8944         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8946 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
8948         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8949         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8950         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8951         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8953 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8955         * configure.ac: Call AX_COUNT_CPUS.
8956         Substitute CPU_COUNT.
8957         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8958         count fallback.
8959         * aclocal.m4: Regenerate.
8960         * configure: Regenerate.
8961         * Makefile.in, testsuite/Makefile.in: Regenerate.
8963 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
8965         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8966         to ...
8967         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8968         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8969         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8971 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
8973         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8975         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8977         PR libgomp/90641
8978         * work.c (gomp_init_work_share): Instead of aligning final ordered
8979         value to multiples of long long alignment, align to that the
8980         first part (ordered team ids) and if inline_ordered_team_ids
8981         is not on a long long alignment boundary within the structure,
8982         use __alignof__ (long long) - 1 pad size always.
8983         * loop.c (GOMP_loop_start): Fix *mem computation if
8984         inline_ordered_team_ids is not aligned on long long alignment boundary
8985         within the structure.
8986         * loop-ull.c (GOMP_loop_ull_start): Likewise.
8987         * sections.c (GOMP_sections2_start): Likewise.
8989 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
8991         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8992         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8994         PR libgomp/90585
8995         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
8996         HAVE_INTTYPES_H is defined.
8997         (print_uint64_t): New typedef.
8998         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8999         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9000         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9001         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9002         before casting to void *.
9003         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9004         * oacc-mem.c: Don't include config.h nor stdint.h.
9005         * target.c: Don't include config.h.
9006         * oacc-cuda.c: Likewise.
9007         * oacc-host.c: Don't include stdint.h.
9009 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9011         PR libgomp/90527
9012         * alloc.c (_GNU_SOURCE): Define.
9014 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9016         * acc_prof.h: New file.
9017         * oacc-profiling.c: Likewise.
9018         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9019         Add these, respectively.
9020         * Makefile.in: Regenerate.
9021         * env.c (initialize_env): Call goacc_profiling_initialize.
9022         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9023         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9024         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9025         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9026         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9027         acc_prof_register, acc_prof_unregister, and acc_register_library.
9028         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9029         GOMP_PLUGIN_goacc_thread.
9030         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9031         prof_callbacks_enabled members.
9032         (goacc_prof_enabled, goacc_profiling_initialize)
9033         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9034         (goacc_profiling_dispatch): Declare.
9035         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9036         (GOACC_PROFILING_SETUP_P): Define.
9037         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9038         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9039         OpenACC Profiling Interface.
9040         * oacc-cuda.c (acc_get_current_cuda_device)
9041         (acc_get_current_cuda_context, acc_get_cuda_stream)
9042         (acc_set_cuda_stream): Likewise.
9043         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9044         (acc_init, acc_set_device_type, acc_get_device_type)
9045         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9046         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9047         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9048         (acc_unmap_data, present_create_copy, delete_copyout)
9049         (update_dev_host): Likewise.
9050         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9051         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9052         Likewise.
9053         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9054         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9055         Likewise.
9056         * libgomp.texi: Update.
9057         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9058         file.
9059         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9060         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9061         Likewise.
9062         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9063         Likewise.
9064         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9065         Likewise.
9066         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9067         Likewise.
9069 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9071         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9072         (struct goacc_asyncqueue_list): Likewise.
9073         (goacc_aq): Likewise.
9074         (goacc_aq_list): Likewise.
9075         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9076         (GOMP_OFFLOAD_openacc_async_test): Remove.
9077         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9078         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9079         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9080         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9081         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9082         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9083         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9084         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9085         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9086         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9087         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9088         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9089         (GOMP_OFFLOAD_openacc_async_test): Declare.
9090         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9091         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9092         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9093         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9094         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9096         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9097         (gomp_acc_insert_pointer): Adjust declaration.
9098         (gomp_copy_host2dev): New declaration.
9099         (gomp_copy_dev2host): Likewise.
9100         (gomp_map_vars_async): Likewise.
9101         (gomp_unmap_tgt): Likewise.
9102         (gomp_unmap_vars_async): Likewise.
9103         (gomp_fini_device): Likewise.
9105         * oacc-async.c (get_goacc_thread): New function.
9106         (get_goacc_thread_device): New function.
9107         (lookup_goacc_asyncqueue): New function.
9108         (get_goacc_asyncqueue): New function.
9109         (acc_async_test): Adjust code to use new async design.
9110         (acc_async_test_all): Likewise.
9111         (acc_wait): Likewise.
9112         (acc_wait_async): Likewise.
9113         (acc_wait_all): Likewise.
9114         (acc_wait_all_async): Likewise.
9115         (goacc_async_free): New function.
9116         (goacc_init_asyncqueues): Likewise.
9117         (goacc_fini_asyncqueues): Likewise.
9118         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9119         design.
9120         (acc_set_cuda_stream): Likewise.
9121         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9122         (host_openacc_register_async_cleanup): Remove.
9123         (host_openacc_async_exec): New function.
9124         (host_openacc_async_test): Adjust parameters.
9125         (host_openacc_async_test_all): Remove.
9126         (host_openacc_async_wait): Remove.
9127         (host_openacc_async_wait_async): Remove.
9128         (host_openacc_async_wait_all): Remove.
9129         (host_openacc_async_wait_all_async): Remove.
9130         (host_openacc_async_set_async): Remove.
9131         (host_openacc_async_synchronize): New function.
9132         (host_openacc_async_serialize): New function.
9133         (host_openacc_async_host2dev): New function.
9134         (host_openacc_async_dev2host): New function.
9135         (host_openacc_async_queue_callback): New function.
9136         (host_openacc_async_construct): New function.
9137         (host_openacc_async_destruct): New function.
9138         (struct gomp_device_descr host_dispatch): Remove initialization of old
9139         interface, add initialization of new async sub-struct.
9140         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9141         (goacc_attach_host_thread_to_device): Remove old async code usage.
9142         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9143         (goacc_fini_asyncqueues): Likewise.
9144         (goacc_async_copyout_unmap_vars): Likewise.
9145         (goacc_async_free): Likewise.
9146         (get_goacc_asyncqueue): Likewise.
9147         (lookup_goacc_asyncqueue): Likewise.
9148         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9149         design.
9150         (present_create_copy): Adjust code to use new async design.
9151         (delete_copyout): Likewise.
9152         (update_dev_host): Likewise.
9153         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9154         async design.
9155         (gomp_acc_remove_pointer): Adjust code to use new async design.
9156         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9157         design.
9158         (GOACC_enter_exit_data): Likewise.
9159         (goacc_wait): Likewise.
9160         (GOACC_update): Likewise.
9161         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9162         when called, warn as obsolete in comment.
9163         * target.c (goacc_device_copy_async): New function.
9164         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9165         add goacc_device_copy_async case.
9166         (gomp_copy_dev2host): Likewise.
9167         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9168         (gomp_map_pointer): Likewise.
9169         (gomp_map_fields_existing): Likewise.
9170         (gomp_map_vars_internal): New always_inline function, renamed from
9171         gomp_map_vars.
9172         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9173         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9174         passing goacc_asyncqueue argument.
9175         (gomp_unmap_tgt): Remove static, add attribute_hidden.
9176         (gomp_unref_tgt): New function.
9177         (gomp_unmap_vars_internal): New always_inline function, renamed from
9178         gomp_unmap_vars.
9179         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9180         (gomp_unmap_vars_async): Implement by calling
9181         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9182         (gomp_fini_device): New function.
9183         (gomp_exit_data): Adjust gomp_copy_dev2host call.
9184         (gomp_load_plugin_for_device): Remove old interface, adjust to load
9185         new async interface.
9186         (gomp_target_fini): Adjust code to call gomp_fini_device.
9188         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9189         (struct ptx_stream): Remove.
9190         (struct nvptx_thread): Remove current_stream field.
9191         (cuda_map_create): Remove.
9192         (cuda_map_destroy): Remove.
9193         (map_init): Remove.
9194         (map_fini): Remove.
9195         (map_pop): Remove.
9196         (map_push): Remove.
9197         (struct goacc_asyncqueue): Define.
9198         (struct nvptx_callback): Define.
9199         (struct ptx_free_block): Define.
9200         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9201         stream_lock, and next fields.
9202         (enum ptx_event_type): Remove.
9203         (struct ptx_event): Remove.
9204         (ptx_event_lock): Remove.
9205         (ptx_events): Remove.
9206         (init_streams_for_device): Remove.
9207         (fini_streams_for_device): Remove.
9208         (select_stream_for_async): Remove.
9209         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9210         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9211         case.
9212         (nvptx_open_device): Add free_blocks initialization, remove
9213         init_streams_for_device call.
9214         (nvptx_close_device): Remove fini_streams_for_device call, add
9215         free_blocks destruct code.
9216         (event_gc): Remove.
9217         (event_add): Remove.
9218         (nvptx_exec): Adjust parameters and code.
9219         (nvptx_free): Likewise.
9220         (nvptx_host2dev): Remove.
9221         (nvptx_dev2host): Remove.
9222         (nvptx_set_async): Remove.
9223         (nvptx_async_test): Remove.
9224         (nvptx_async_test_all): Remove.
9225         (nvptx_wait): Remove.
9226         (nvptx_wait_async): Remove.
9227         (nvptx_wait_all): Remove.
9228         (nvptx_wait_all_async): Remove.
9229         (nvptx_get_cuda_stream): Remove.
9230         (nvptx_set_cuda_stream): Remove.
9231         (GOMP_OFFLOAD_alloc): Adjust code.
9232         (GOMP_OFFLOAD_free): Likewise.
9233         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9234         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9235         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9236         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9237         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9238         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9239         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9240         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9241         (cuda_free_argmem): New function.
9242         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9243         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9244         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9245         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9246         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9247         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9248         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9249         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9250         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9251         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9252         (cuda_callback_wrapper): New function.
9253         (cuda_memcpy_sanity_check): New function.
9254         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9255         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9256         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9257         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9259 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9261         PR target/87835
9262         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9264 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9266         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9268 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9270         * team.c (gomp_team_start): Initialize pool->threads[0].
9272 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9274         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9275         "-foffload=$offload_target".
9276         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9277         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9278         * testsuite/lib/libgomp.exp
9279         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9280         as (conceptually) merged into
9281         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9282         users.
9284         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9285         * testsuite/libgomp-test-support.exp.in: Adjust.
9286         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9287         openacc_device_types_s.
9288         (offload_target_to_openacc_device_type): New proc.
9289         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9290         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9291         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9292         * Makefile.in: Regenerate.
9293         * configure: Likewise.
9294         * testsuite/Makefile.in: Likewise.
9296         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9297         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9298         instead of OFFLOAD_TARGETS.
9299         * target.c (gomp_target_init): Adjust.
9300         * testsuite/libgomp-test-support.exp.in: Likewise.
9301         * testsuite/lib/libgomp.exp: Likewise.  Populate
9302         openacc_device_types_s instead of offload_targets_s_openacc.
9303         (check_effective_target_openacc_nvidia_accel_selected)
9304         (check_effective_target_openacc_host_selected): Adjust.
9305         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9306         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9307         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9308         * Makefile.in: Regenerate.
9309         * config.h.in: Likewise.
9310         * configure: Likewise.
9311         * testsuite/Makefile.in: Likewise.
9313         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9314         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9315         "offloading: supported, but hardware not accessible".
9316         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9317         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9319 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9321         PR c/87924
9322         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9323         goacc_wait().
9324         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9325         and related adjustment.
9327 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9329         PR c++/88988
9330         * testsuite/libgomp.c++/pr88988.C: New test.
9332 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9334         PR middle-end/89002
9335         * testsuite/libgomp.c/pr89002.c: New test.
9337 2019-01-28  Richard Biener  <rguenther@suse.de>
9339         PR testsuite/89064
9340         PR tree-optimization/86865
9341         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9343 2019-01-24  Tom de Vries  <tdevries@suse.de>
9345         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9346         once instantiated_devices drops to 0.
9348 2019-01-23  Tom de Vries  <tdevries@suse.de>
9350         PR target/PR88946
9351         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9352         cuMemFree.
9353         (nvptx_exec): Don't call map_push if mapnum == 0.
9354         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9356 2019-01-23  Tom de Vries  <tdevries@suse.de>
9358         PR target/88941
9359         PR target/88939
9360         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9361         (map_fini): Remove "assert (!s->map->active)".
9362         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9364 2019-01-23  Tom de Vries  <tdevries@suse.de>
9366         PR target/87835
9367         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9368         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9370 2019-01-15  Tom de Vries  <tdevries@suse.de>
9372         PR target/80547
9373         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9374         New test.
9376 2019-01-12  Tom de Vries  <tdevries@suse.de>
9378         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9379         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9380         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9381         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9383 2019-01-12  Tom de Vries  <tdevries@suse.de>
9385         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9387 2019-01-12  Tom de Vries  <tdevries@suse.de>
9389         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9390         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9391         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9393 2019-01-12  Tom de Vries  <tdevries@suse.de>
9395         PR target/85486
9396         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9397         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9399 2019-01-12  Tom de Vries  <tdevries@suse.de>
9401         PR target/85381
9402         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9403         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9405 2019-01-12  Tom de Vries  <tdevries@suse.de>
9407         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9408         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9409         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9411 2019-01-12  Tom de Vries  <tdevries@suse.de>
9413         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9414         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9415         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9417 2019-01-12  Tom de Vries  <tdevries@suse.de>
9419         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9420         resources diagnostic.
9422 2019-01-12  Tom de Vries  <tdevries@suse.de>
9424         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9425         vector length to be 128.
9426         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9427         length 2097152 to be reduced to 1024 instead of 32.
9429 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
9430             James Norris  <jnorris@codesourcery.com>
9432         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9433         Library Routines", and "Environment Variables".
9435 2019-01-11  Tom de Vries  <tdevries@suse.de>
9437         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9438         num_workers 16.
9440 2019-01-11  Tom de Vries  <tdevries@suse.de>
9442         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9443         -foffload=-w.
9444         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9445         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9446         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9447         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9449 2019-01-11  Tom de Vries  <tdevries@suse.de>
9451         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9452         test.
9454 2019-01-10  Nathan Sidwell  <nathan@acm.org>
9455             Julian Brown  <julian@codesourcery.com>
9457         PR lto/71959
9458         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9459         * testsuite/libgomp.oacc-c++/pr71959.C: New.
9461 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9463         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9464         and paste code.
9466 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9468         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
9469         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9470         write.
9472 2019-01-09  Tom de Vries  <tdevries@suse.de>
9474         PR target/88756
9475         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9476         #define instead of "const int".
9477         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9478         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9479         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9480         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9482 2019-01-09  Tom de Vries  <tdevries@suse.de>
9484         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9485         one worker.
9487 2019-01-07  Tom de Vries  <tdevries@suse.de>
9489         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9490         GOMP_OPENACC_DIM argument.
9492 2019-01-03  Tom de Vries  <tdevries@suse.de>
9494         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9495         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9497 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9499         Update copyright years.
9501 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9503         * libgomp.texi: Bump @copying's copyright year.
9505 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9507         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9508         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9509         (GOACC_declare): Redefine the "device" argument to "flags".
9511 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9512             Cesar Philippidis  <cesar@codesourcery.com>
9514         * target.c (struct gomp_coalesce_chunk): New structure.
9515         (struct gomp_coalesce_buf): Update the chunks member to use that
9516         type.  Adjust all users.
9518 2018-12-19  Tom de Vries  <tdevries@suse.de>
9520         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9521         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9522         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9524 2018-12-19  Tom de Vries  <tdevries@suse.de>
9526         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9527         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9528         gcc/testsuite/gcc.dg/goacc.
9529         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9531 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9532             Chung-Lin Tang  <cltang@codesourcery.com>
9534         * oacc-mem.c (acc_present_or_create): Remove definition and change
9535         to alias of acc_create.
9536         (acc_present_or_copyin): Remove definition and change to alias of
9537         acc_copyin.
9538         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9539         of acc_present_or_create.
9540         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9541         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9542         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9543         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9544         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9545         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9546         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9547         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9548         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9549         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9550         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9551         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9552         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9553         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9554         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9555         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9557 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9559         PR libgomp/88495
9560         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9561         "identical parameters".
9562         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9563         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9565         PR libgomp/88484
9566         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9567         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9569         PR libgomp/88407
9570         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9571         (nvptx_wait_async): Unseen async-argument is a no-op.
9572         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9573         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9574         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9575         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9576         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9577         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9578         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
9579         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9580         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
9582         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9583         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9585 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
9587         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9588         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9589         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9591 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9593         PR libgomp/88370
9594         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9595         (acc_set_cuda_stream): Clarify.
9596         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9597         "async_valid_p".
9598         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9599         acc_async_sync".
9600         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9601         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9602         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9603         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9605 2018-12-14  Tom de Vries  <tdevries@suse.de>
9607         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9608         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9609         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9610         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9611         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9613 2018-12-13  Tom de Vries  <tdevries@suse.de>
9615         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9616         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9617         * fortran.c (omp_display_affinity_): ... here.
9618         * libgomp.h (gomp_print_string): Declare.
9619         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
9620         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9621         write.
9623 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
9625         PR libgomp/88460
9626         * testsuite/libgomp.c++/for-24.C (results): Include it in
9627         omp declare target region.
9628         (main): Use map (always, tofrom: results) instead of
9629         map (tofrom: results).
9631 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
9633         PR fortran/88463
9634         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9635         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9637         * testsuite/libgomp.c-c++-common/for-16.c: New test.
9639 2018-12-12  Andreas Schwab  <schwab@suse.de>
9641         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9642         clobbered.
9644 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
9646         PR fortran/88411
9647         * testsuite/libgomp.fortran/async_io_8.f90: New test.
9649 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9650             Jakub Jelinek  <jakub@redhat.com>
9652         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9653         devicep->host2dev_func.
9655 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
9657         PR libgomp/87995
9658         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9659         tls_runtime effective target.
9660         (t): New threadprivate variable.
9661         (main): Set t in threads which execute iterations of the worksharing
9662         loop.  Propagate that to the task after the loop and don't abort
9663         if the current taskgroup hasn't been cancelled.
9665 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
9667         * testsuite/libgomp.c/task-reduction-3.c: New test.
9669         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9671 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
9673         PR libgomp/88288
9674         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9675         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9677 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
9679         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9681 2018-10-19  Richard Biener  <rguenther@suse.de>
9683         PR tree-optimization/88182
9684         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9686 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
9688         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9689         (RUNTEST): Don't define.
9690         (RUNTESTDEFAULTFLAGS): Add.
9691         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9692         (distclean-am): Depend on distclean-DEJAGNU.
9693         (check-am): If -j% option is present in MFLAGS and if
9694         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9695         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9696         * testsuite/Makefile.in: Regenerated.
9698 2018-11-26  Richard Biener  <rguenther@suse.de>
9700         PR tree-optimization/88182
9701         * testsuite/libgomp.c++/pr88182.C: New testcase.
9703 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
9705         PR bootstrap/88106
9706         * config/mingw32/affinity-fmt.c: New file.
9708 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
9710         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9711         (gomp_display_affinity): Use __builtin_choose_expr to handle
9712         properly handle argument having integral, or pointer or some other
9713         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
9714         with uint64_t type instead of %llx and unsigned long long.
9716         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9717         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9719 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9721         * affinity.c: Include <string.h>, <stdio.h>.
9722         (gomp_display_affinity_place): Remove cpusetp.
9723         * teams.c: Include <limits.h>.
9725 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
9727         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9728         in_reduction clause for s[0].
9730         * affinity.c (gomp_display_affinity_place): New function.
9731         * affinity-fmt.c: New file.
9732         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9733         * config/linux/affinity.c (gomp_display_affinity_place): New function.
9734         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9735         Move these functions to ...
9736         * config/nvptx/teams.c: ... here.  New file.
9737         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9738         New functions.
9739         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9740         functions.
9741         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9742         and _aligned_malloc.
9743         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9744         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9745         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9746         gomp_affinity_format_len): New variables.
9747         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9748         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
9749         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9750         modifiers.  Display (non-default) chunk sizes.  Print
9751         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9752         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
9753         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9754         * fortran.c: Include stdio.h and string.h.
9755         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9756         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9757         (omp_set_affinity_format_, omp_get_affinity_format_,
9758         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9759         omp_pause_resource_all_): New functions.
9760         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9761         switch.
9762         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9763         functions to ...
9764         * teams.c: ... here.  New file.
9765         * libgomp_g.h: Include gstdint.h.
9766         (GOMP_loop_nonmonotonic_runtime_start,
9767         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9768         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9769         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9770         GOMP_parallel_loop_nonmonotonic_runtime,
9771         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9772         GOMP_loop_ull_nonmonotonic_runtime_start,
9773         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9774         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9775         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9776         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9777         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9778         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9779         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9780         GOMP_teams_reg): Declare.
9781         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9782         gomp_aligned_alloc uses fallback implementation.
9783         (gomp_aligned_alloc, gomp_aligned_free): Declare.
9784         (enum gomp_schedule_type): Add GFS_MONOTONIC.
9785         (struct gomp_doacross_work_share): Add extra field.
9786         (struct gomp_work_share): Add task_reductions field.
9787         (struct gomp_taskgroup): Add workshare and reductions fields.
9788         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9789         (gomp_thread_handle): New typedef.
9790         (gomp_display_affinity_place, gomp_set_affinity_format,
9791         gomp_display_string, gomp_display_affinity,
9792         gomp_display_affinity_thread): Declare.
9793         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9794         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9795         gomp_workshare_task_reduction_register): Declare.
9796         (gomp_team_start): Add taskgroup argument.
9797         (gomp_pause_host): Declare.
9798         (gomp_init_work_share, gomp_work_share_start): Change bool argument
9799         to size_t.
9800         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9801         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9802         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9803         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9804         GOMP_loop_ull_doacross_start,
9805         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9806         GOMP_loop_maybe_nonmonotonic_runtime_next,
9807         GOMP_loop_maybe_nonmonotonic_runtime_start,
9808         GOMP_loop_nonmonotonic_runtime_next,
9809         GOMP_loop_nonmonotonic_runtime_start,
9810         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9811         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9812         GOMP_loop_ull_nonmonotonic_runtime_next,
9813         GOMP_loop_ull_nonmonotonic_runtime_start,
9814         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9815         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9816         GOMP_taskgroup_reduction_register,
9817         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9818         GOMP_teams_reg and GOMP_taskwait_depend.
9819         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9820         omp_{capture,display}_affinity{,_}, and
9821         omp_[gs]et_affinity_format{,_}.
9822         * loop.c: Include string.h.
9823         (GOMP_loop_runtime_next): Add ialias.
9824         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9825         (gomp_loop_static_start, gomp_loop_dynamic_start,
9826         gomp_loop_guided_start, gomp_loop_ordered_static_start,
9827         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9828         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9829         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9830         or gomp_doacross_init callers.
9831         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9832         GOMP_loop_doacross_start): New functions.
9833         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9834         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9835         Mask off GFS_MONOTONIC bit.
9836         (GOMP_loop_maybe_nonmonotonic_runtime_next,
9837         GOMP_loop_maybe_nonmonotonic_runtime_start,
9838         GOMP_loop_nonmonotonic_runtime_next,
9839         GOMP_loop_nonmonotonic_runtime_start,
9840         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9841         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9842         functions.
9843         (gomp_parallel_loop_start): Pass NULL as taskgroup to
9844         gomp_team_start.
9845         * loop_ull.c: Include string.h.
9846         (GOMP_loop_ull_runtime_next): Add ialias.
9847         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9848         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9849         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9850         gomp_loop_ull_ordered_dynamic_start,
9851         gomp_loop_ull_ordered_guided_start,
9852         gomp_loop_ull_doacross_static_start,
9853         gomp_loop_ull_doacross_dynamic_start,
9854         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9855         and gomp_doacross_ull_init callers.
9856         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9857         GOMP_loop_ull_doacross_start): New functions.
9858         (GOMP_loop_ull_runtime_start,
9859         GOMP_loop_ull_ordered_runtime_start,
9860         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9861         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9862         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9863         GOMP_loop_ull_nonmonotonic_runtime_next,
9864         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9865         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9866         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9867         (omp_pause_resource_t, omp_depend_t): New typedefs.
9868         (enum omp_lock_hint_t): Renamed to ...
9869         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
9870         enumerators using numbers and omp_lock_hint_* as their aliases.
9871         (omp_lock_hint_t): New typedef.  Rename to ...
9872         (omp_sync_hint_t): ... this.
9873         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9874         omp_sync_hint_t instead of omp_lock_hint_t.
9875         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9876         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9877         Declare.
9878         (omp_target_is_present, omp_target_disassociate_ptr):
9879         Change first argument from void * to const void *.
9880         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9881         from void * to const void *.
9882         (omp_target_associate_ptr): Change first and second arguments from
9883         void * to const void *.
9884         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9885         omp_pause_hard): New parameters.
9886         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9887         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9888         New interfaces.
9889         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9890         omp_pause_hard): New parameters.
9891         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9892         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9893         New externals.
9894         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9895         EXTRA argument.  If not needed to prepare array, if extra is 0,
9896         clear ws->doacross, otherwise allocate just doacross structure and
9897         extra payload.  If array is needed, allocate also extra payload.
9898         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9899         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9900         doacross == NULL.
9901         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9902         gomp_team_start.
9903         (GOMP_parallel): Likewise.  Formatting fix.
9904         (GOMP_parallel_reductions): New function.
9905         (GOMP_cancellation_point): If taskgroup has workshare
9906         flag set, check cancelled of prev taskgroup if any.
9907         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9908         on prev taskgroup if any.
9909         * sections.c: Include string.h.
9910         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9911         (GOMP_sections_start): Adjust gomp_work_share_start caller.
9912         (GOMP_sections2_start): New function.
9913         (GOMP_parallel_sections_start, GOMP_parallel_sections):
9914         Pass NULL as taskgroup to gomp_team_start.
9915         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9916         gomp_work_share_start callers.
9917         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9918         If taskgroup has workshare flag set, check cancelled on prev
9919         taskgroup if any.  Guard all cancellation tests with
9920         gomp_cancel_var test.
9921         (omp_target_is_present, omp_target_disassociate_ptr):
9922         Change ptr argument from void * to const void *.
9923         (omp_target_memcpy): Change src argument from void * to const void *.
9924         (omp_target_memcpy_rect): Likewise.
9925         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
9926         instead of char * where needed.
9927         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9928         from void * to const void *.
9929         (omp_pause_resource, omp_pause_resource_all): New functions.
9930         * task.c (gomp_task_handle_depend): Handle new depend array format
9931         in addition to the old.  Handle mutexinoutset kinds the same as
9932         inout for now, handle unspecified kinds.
9933         (gomp_create_target_task): If taskgroup has workshare flag set, check
9934         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9935         gomp_cancel_var test.  Handle new depend array format count in
9936         addition to the old.
9937         (GOMP_task): Likewise.  Adjust function comment.
9938         (gomp_task_run_pre): If taskgroup has workshare flag set, check
9939         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9940         gomp_cancel_var test.
9941         (GOMP_taskwait_depend): New function.
9942         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9943         format in addition to the old.  Handle mutexinoutset kinds the same as
9944         inout for now, handle unspecified kinds.  Fix a function comment typo.
9945         (gomp_taskgroup_init): New function.
9946         (GOMP_taskgroup_start): Use it.
9947         (gomp_reduction_register, gomp_create_artificial_team,
9948         GOMP_taskgroup_reduction_register,
9949         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9950         gomp_parallel_reduction_register,
9951         gomp_workshare_task_reduction_register,
9952         gomp_workshare_taskgroup_start,
9953         GOMP_workshare_task_reduction_unregister): New functions.
9954         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9955         check cancelled on prev taskgroup if any.  Guard all cancellation
9956         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
9957         by calling GOMP_taskgroup_reduction_register.
9958         * team.c (gomp_thread_attr): Remove comment.
9959         (struct gomp_thread_start_data): Add handle field.
9960         (gomp_thread_start): Call pthread_detach.
9961         (gomp_new_team): Adjust gomp_init_work_share caller.
9962         (gomp_free_pool_helper): Call pthread_detach.
9963         (gomp_team_start): Add taskgroup argument, initialize implicit
9964         tasks' taskgroup field to that.  Don't call
9965         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
9966         (gomp_team_end): Determine nesting by thr->ts.level != 0
9967         rather than thr->ts.team != NULL.
9968         (gomp_pause_pool_helper, gomp_pause_host): New functions.
9969         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9970         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9971         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9972         if more than 1 allocate also extra payload at the end of array.  Never
9973         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9974         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9975         return true instead of ws.
9976         * Makefile.in: Regenerated.
9977         * configure: Regenerated.
9978         * config.h.in: Regenerated.
9979         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9980         in some cases.
9981         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9982         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9983         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9984         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9985         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9986         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9987         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9988         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9989         * testsuite/libgomp.c-c++-common/for-10.c: New test.
9990         * testsuite/libgomp.c-c++-common/for-11.c: New test.
9991         * testsuite/libgomp.c-c++-common/for-12.c: New test.
9992         * testsuite/libgomp.c-c++-common/for-13.c: New test.
9993         * testsuite/libgomp.c-c++-common/for-14.c: New test.
9994         * testsuite/libgomp.c-c++-common/for-15.c: New test.
9995         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9996         define a different N(test), don't define N(f0) to N(f14), but instead
9997         define N(f20) to N(f34) using != comparisons.
9998         * testsuite/libgomp.c-c++-common/for-7.c: New test.
9999         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10000         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10001         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10002         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10003         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10004         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10005         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10006         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10007         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10008         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10009         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10010         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10011         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10012         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10013         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10014         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10015         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10016         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10017         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10018         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10019         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10020         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10021         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10022         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10023         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10024         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10025         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10026         * testsuite/libgomp.c++/depend-1.C: New test.
10027         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10028         * testsuite/libgomp.c++/depobj-1.C: New test.
10029         * testsuite/libgomp.c++/for-16.C: New test.
10030         * testsuite/libgomp.c++/for-21.C: New test.
10031         * testsuite/libgomp.c++/for-22.C: New test.
10032         * testsuite/libgomp.c++/for-23.C: New test.
10033         * testsuite/libgomp.c++/for-24.C: New test.
10034         * testsuite/libgomp.c++/for-25.C: New test.
10035         * testsuite/libgomp.c++/for-26.C: New test.
10036         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10037         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10038         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10039         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10040         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10041         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10042         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10043         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10044         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10045         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10046         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10047         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10048         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10049         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10050         * testsuite/libgomp.c/task-reduction-1.c: New test.
10051         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10052         * testsuite/libgomp.c/task-reduction-2.c: New test.
10053         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10054         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10055         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10056         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10057         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10058         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10059         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10060         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10061         * testsuite/libgomp.c/teams-1.c: New test.
10062         * testsuite/libgomp.c/teams-2.c: New test.
10063         * testsuite/libgomp.c/thread-limit-4.c: New test.
10064         * testsuite/libgomp.c/thread-limit-5.c: New test.
10065         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10067 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10069         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10070         acc_memcpy_to/from_device functions, now with async parameter.
10071         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10072         (acc_memcpy_from_device): Likewise.
10073         (acc_memcpy_to_device_async): New API function.
10074         (acc_memcpy_from_device_async): Likewise.
10075         (present_create_copy): Add async parameter and async setting/unsetting.
10076         (acc_create): Adjust present_create_copy call.
10077         (acc_copyin): Likewise.
10078         (acc_present_or_create): Likewise.
10079         (acc_present_or_copyin): Likewise.
10080         (acc_create_async): New API function.
10081         (acc_copyin_async): New API function.
10082         (delete_copyout): Add async parameter and async setting/unsetting.
10083         (acc_delete): Adjust delete_copyout call.
10084         (acc_copyout): Likewise.
10085         (acc_delete_async): New API function.
10086         (acc_copyout_async): Likewise.
10087         (update_dev_host): Add async parameter and async setting/unsetting.
10088         (acc_update_device): Adjust update_dev_host call.
10089         (acc_update_self): Likewise.
10090         (acc_update_device_async): New API function.
10091         (acc_update_self_async): Likewise.
10092         * openacc.h (acc_copyin_async): Declare new API function.
10093         (acc_create_async): Likewise.
10094         (acc_copyout_async): Likewise.
10095         (acc_delete_async): Likewise.
10096         (acc_update_device_async): Likewise.
10097         (acc_update_self_async): Likewise.
10098         (acc_memcpy_to_device_async): Likewise.
10099         (acc_memcpy_from_device_async): Likewise.
10100         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10101         (acc_copyin_async_64_h): New subroutine.
10102         (acc_copyin_async_array_h): New subroutine.
10103         (acc_create_async_32_h): New subroutine.
10104         (acc_create_async_64_h): New subroutine.
10105         (acc_create_async_array_h): New subroutine.
10106         (acc_copyout_async_32_h): New subroutine.
10107         (acc_copyout_async_64_h): New subroutine.
10108         (acc_copyout_async_array_h): New subroutine.
10109         (acc_delete_async_32_h): New subroutine.
10110         (acc_delete_async_64_h): New subroutine.
10111         (acc_delete_async_array_h): New subroutine.
10112         (acc_update_device_async_32_h): New subroutine.
10113         (acc_update_device_async_64_h): New subroutine.
10114         (acc_update_device_async_array_h): New subroutine.
10115         (acc_update_self_async_32_h): New subroutine.
10116         (acc_update_self_async_64_h): New subroutine.
10117         (acc_update_self_async_array_h): New subroutine.
10118         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10119         (acc_copyin_async_64_h): New subroutine.
10120         (acc_copyin_async_array_h): New subroutine.
10121         (acc_create_async_32_h): New subroutine.
10122         (acc_create_async_64_h): New subroutine.
10123         (acc_create_async_array_h): New subroutine.
10124         (acc_copyout_async_32_h): New subroutine.
10125         (acc_copyout_async_64_h): New subroutine.
10126         (acc_copyout_async_array_h): New subroutine.
10127         (acc_delete_async_32_h): New subroutine.
10128         (acc_delete_async_64_h): New subroutine.
10129         (acc_delete_async_array_h): New subroutine.
10130         (acc_update_device_async_32_h): New subroutine.
10131         (acc_update_device_async_64_h): New subroutine.
10132         (acc_update_device_async_array_h): New subroutine.
10133         (acc_update_self_async_32_h): New subroutine.
10134         (acc_update_self_async_64_h): New subroutine.
10135         (acc_update_self_async_array_h): New subroutine.
10136         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10137         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10138         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10139         acc_memcpy_to_device_async*, acc_update_device_async*, and
10140         acc_update_self_async* entries.
10141         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10142         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10143         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10145 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10147         PR bootstrap/82856
10148         * Makefile.am: Include multilib.am
10149         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10150         (CLEANFILES): Remove libgomp.info.
10151         * configure.ac: Remove AC_PREREQ.
10152         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10153         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10154         Regenerate.
10156 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10157             Julian Brown  <julian@codesourcery.com>
10159         * testsuite/libgomp.oacc-c++/this.C: New.
10161 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10163         * plugin/plugin-nvptx.c (struct cuda_map): New.
10164         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10165         h_tail with (cuda_map *) map.
10166         (cuda_map_create): New function.
10167         (cuda_map_destroy): New function.
10168         (map_init): Update to use a linked list of cuda_map objects.
10169         (map_fini): Likewise.
10170         (map_pop): Likewise.
10171         (map_push): Likewise.  Return CUdeviceptr instead of void.
10172         (init_streams_for_device): Remove stales references to ptx_stream
10173         members.
10174         (select_stream_for_async): Likewise.
10175         (nvptx_exec): Update call to map_init.
10177 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
10178             Julian Brown  <julian@codesourcery.com>
10180         PR middle-end/86336
10181         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10183 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
10184         Thomas Koenig <tkoenig@gcc.gnu.org>
10186         PR fortran/25829
10187         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10188         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10189         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10190         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10191         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10192         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10193         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10195 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10196             Tom de Vries  <tdevries@suse.de>
10198         PR target/85590
10199         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10200         (cuOccupancyMaxPotentialBlockSize): Declare.
10201         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10202         CUDA_ONE_CALL_MAYBE_NULL.
10203         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10204         CUoccupancyB2DSize and declare
10205         cuOccupancyMaxPotentialBlockSize.
10206         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10207         default num_gangs and num_workers when the driver supports it.
10209 2018-08-08  Tom de Vries  <tdevries@suse.de>
10211         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10212         CUDA_ONE_CALL_MAYBE_NULL.
10213         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10214         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10215         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10216         are not found.
10218 2018-08-08  Tom de Vries  <tdevries@suse.de>
10220         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10221         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10222         present.
10224 2018-08-08  Tom de Vries  <tdevries@suse.de>
10226         * plugin/plugin-nvptx.c
10227         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10228         (nvptx_open_device): Use
10229         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10231 2018-08-08  Tom de Vries  <tdevries@suse.de>
10233         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10234         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10236 2018-08-07  Tom de Vries  <tdevries@suse.de>
10238         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10239         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10240         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10241         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10242         CUDA_ONE_CALL_MAYBE_NULL.
10243         (CUDA_CALL_EXISTS): Define.
10245 2018-08-07  Tom de Vries  <tdevries@suse.de>
10247         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10248         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10249         corresponding undefs right after.
10251 2018-08-04  Tom de Vries  <tdevries@suse.de>
10253         * plugin/configfrag.ac: For --without-cuda-driver, set
10254         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10255         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10256         * configure: Regenerate.
10258 2018-08-02  Tom de Vries  <tdevries@suse.de>
10260         PR target/86660
10261         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10262         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10263         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10264         Same.
10265         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10266         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10267         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10269 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10270             Thomas Schwinge <thomas@codesourcery.com>
10272         * config/nvptx/oacc-parallel.c: Truncate.
10274 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10275             James Norris <jnorris@codesourcery.com>
10277         * plugin/plugin-nvptx.c (struct map): Removed.
10278         (map_init, map_pop): Remove use of struct map.
10279         (map_push): Likewise and change argument list.
10280         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10282 2018-08-01  Tom de Vries  <tdevries@suse.de>
10284         * plugin/cuda-lib.def: New file.  Factor out of ...
10285         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10286         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10287         using CUDA_CALLS.
10289 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10291         Revert 'AsyncI/O patch committed'.
10292         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10293                 Thomas Koenig <tkoenig@gcc.gnu.org>
10295         PR fortran/25829
10296         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10297         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10298         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10299         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10300         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10301         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10302         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10304 2018-07-30  Tom de Vries  <tdevries@suse.de>
10306         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10307         (nvptx_exec): Ensure worker and vector default dims don't exceed
10308         targ_fn->max_threads_per_block.
10310 2018-07-30  Tom de Vries  <tdevries@suse.de>
10312         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10313         (nvptx_open_device): Init default_dims for device.
10314         (nvptx_exec): Use default_dims from device.
10316 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10318         PR testsuite/86660
10319         * testsuite/libgomp.c++/for-15.C (results): Include it in
10320         omp declare target region.
10321         (main): Use map (always, tofrom: results) instead of
10322         map (tofrom: results).
10324         PR middle-end/86660
10325         * testsuite/libgomp.c/pr86660.c: New test.
10327 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10328             Tom de Vries  <tdevries@suse.de>
10330         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10331         sufficient resources to launch a kernel, and give a hint on how to fix
10332         it.
10334 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10335             Tom de Vries  <tdevries@suse.de>
10337         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10338         max_threads_per_block and max_threads_per_multiprocessor fields.
10339         (nvptx_open_device): Initialize new fields.
10340         (nvptx_exec): Use num_sms, and new fields.
10342 2018-07-26  Tom de Vries  <tdevries@suse.de>
10344         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10345         to correct locations.  Remove xfail.
10347 2018-07-26  Tom de Vries  <tdevries@suse.de>
10349         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10350         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10351         xfail.
10353 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10354         Thomas Koenig <tkoenig@gcc.gnu.org>
10356         PR fortran/25829
10357         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10358         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10359         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10360         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10361         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10362         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10363         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10365 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10367         PR middle-end/86542
10368         * testsuite/libgomp.c++/pr86542.C: New test.
10370         PR middle-end/86539
10371         * testsuite/libgomp.c++/pr86539.C: New test.
10373 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
10375         PR c++/86443
10376         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10377         (results): Make sure the variable is not inside declare target region.
10378         (qux): Remove unused function.
10380 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
10382         PR c++/86443
10383         * testsuite/libgomp.c++/for-15.C: New test.
10385 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
10387         PR c++/86291
10388         * testsuite/libgomp.c++/pr86291.C: New test.
10390 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
10392         * libgomp.texi (Top): Move www.openmp.org to https.
10393         (Enabling OpenMP): Ditto.
10394         (omp_get_active_level): Ditto.
10395         (omp_get_ancestor_thread_num): Ditto.
10396         (omp_get_cancellation): Ditto.
10397         (omp_get_default_device): Ditto.
10398         (omp_get_dynamic): Ditto.
10399         (omp_get_level): Ditto.
10400         (omp_get_max_active_levels): Ditto.
10401         (omp_get_max_task_priority): Ditto.
10402         (omp_get_max_threads): Ditto.
10403         (omp_get_nested): Ditto.
10404         (omp_get_num_devices): Ditto.
10405         (omp_get_num_procs): Ditto.
10406         (omp_get_num_teams): Ditto.
10407         (omp_get_num_threads): Ditto.
10408         (omp_get_proc_bind): Ditto.
10409         (omp_get_schedule): Ditto.
10410         (omp_get_team_num): Ditto.
10411         (omp_get_team_size): Ditto.
10412         (omp_get_thread_limit): Ditto.
10413         (omp_get_thread_num): Ditto.
10414         (omp_in_parallel): Ditto.
10415         (omp_in_final): Ditto.
10416         (omp_is_initial_device): Ditto.
10417         (omp_set_default_device): Ditto.
10418         (omp_set_dynamic): Ditto.
10419         (omp_set_max_active_levels): Ditto.
10420         (omp_set_nested): Ditto.
10421         (omp_set_num_threads): Ditto.
10422         (omp_set_schedule): Ditto.
10423         (omp_init_lock): Ditto.
10424         (omp_set_lock): Ditto.
10425         (omp_test_lock): Ditto.
10426         (omp_unset_lock): Ditto.
10427         (omp_destroy_lock): Ditto.
10428         (omp_init_nest_lock): Ditto.
10429         (omp_set_nest_lock): Ditto.
10430         (omp_test_nest_lock): Ditto.
10431         (omp_unset_nest_lock): Ditto.
10432         (omp_destroy_nest_lock): Ditto.
10433         (omp_get_wtick): Ditto.
10434         (omp_get_wtime): Ditto.
10435         (OMP_CANCELLATION): Ditto.
10436         (OMP_DISPLAY_ENV): Ditto.
10437         (OMP_DEFAULT_DEVICE): Ditto.
10438         (OMP_DYNAMIC): Ditto.
10439         (OMP_MAX_ACTIVE_LEVELS): Ditto.
10440         (OMP_MAX_TASK_PRIORITY): Ditto.
10441         (OMP_NESTED): Ditto.
10442         (OMP_NUM_THREADS): Ditto.
10443         (OMP_PROC_BIND): Ditto.
10444         (OMP_PLACES): Ditto.
10445         (OMP_STACKSIZE): Ditto.
10446         (OMP_SCHEDULE): Ditto.
10447         (OMP_THREAD_LIMIT): Ditto.
10448         (OMP_WAIT_POLICY): Ditto.
10450 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
10451             James Norris  <jnorris@codesourcery.com>
10452             Julian Brown  <julian@codesourcery.com>
10453             Thomas Schwinge  <thomas@codesourcery.com>
10454             Tom de Vries  <tom@codesourcery.com>
10456         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10457         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10458         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10459         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10460         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10461         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10462         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10463         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10464         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10465         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10466         Likewise.
10467         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10468         Likewise.
10469         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10470         Likewise.
10471         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10472         Likewise.
10473         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10474         Likewise.
10475         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10476         Likewise.
10477         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10478         Likewise.
10479         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10480         Likewise.
10481         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10482         Likewise.
10483         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10484         Likewise.
10485         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10486         Likewise.
10487         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10488         Likewise.
10489         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10490         Likewise.
10491         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10492         Likewise.
10493         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10494         Likewise.
10495         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10496         Likewise.
10497         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10498         Likewise.
10499         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10500         Likewise.
10501         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10502         Likewise.
10503         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10504         Likewise.
10505         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10506         Likewise.
10507         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10508         Likewise.
10509         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10510         Likewise.
10511         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10512         Likewise.
10513         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10514         Likewise.
10515         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10516         Likewise.
10517         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10518         Likewise.
10519         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10520         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10521         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10522         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10523         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10524         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10525         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10526         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10527         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10528         Likewise.
10529         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10530         Likewise.
10531         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10532         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10533         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10534         Likewise.
10535         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10536         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10537         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10538         Likewise.
10539         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10540         Likewise.
10541         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10542         Likewise.
10543         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10544         Likewise.
10545         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10546         Likewise.
10547         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10548         Likewise.
10549         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10550         Likewise.
10551         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10552         Likewise.
10553         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10554         Likewise.
10555         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10556         Likewise.
10557         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10558         Likewise.
10559         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10560         Likewise.
10561         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10562         Likewise.
10563         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10564         Likewise.
10565         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10566         Likewise.
10567         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10568         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10569         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10570         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10571         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10572         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10573         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10575 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
10576             Thomas Schwinge <thomas@codesourcery.com>
10577             Cesar Philippidis  <cesar@codesourcery.com>
10579         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10580         (gomp_acc_remove_pointer): Update declaration.
10581         (gomp_acc_declare_allocate): Declare.
10582         (gomp_remove_var): Declare.
10583         * libgomp.map (OACC_2.5): Define.
10584         * oacc-mem.c (acc_map_data): Update refcount.
10585         (acc_unmap_data): Likewise.
10586         (present_create_copy): Likewise.
10587         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10588         (acc_copyin): Likewise.
10589         (FLAG_FINALIZE): Define.
10590         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10591         (acc_delete_finalize): New function.
10592         (acc_delete_finalize_async): New function.
10593         (acc_copyout_finalize): New function.
10594         (acc_copyout_finalize_async): New function.
10595         (gomp_acc_insert_pointer): Update refcounts.
10596         (gomp_acc_remove_pointer): Return if data is not present on the
10597         accelerator.
10598         * oacc-parallel.c (find_pset): Rename to find_pointer.
10599         (find_pointer): Add support for GOMP_MAP_POINTER.
10600         (handle_ftn_pointers): New function.
10601         (GOACC_parallel_keyed): Update refcounts of variables.
10602         (GOACC_enter_exit_data): Add support for finalized data mappings.
10603         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10604         of fortran arrays.
10605         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10606         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10607         for GOMP_MAP_FORCE_FROM.
10608         * openacc.f90 (module openacc_internal): Add
10609         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10610         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10611         acc_copyout_finalize and acc_delete_finalize.
10612         (acc_copyout_finalize_32_h): New subroutine.
10613         (acc_copyout_finalize_64_h): New subroutine.
10614         (acc_copyout_finalize_array_h): New subroutine.
10615         (acc_delete_finalize_32_h): New subroutine.
10616         (acc_delete_finalize_64_h): New subroutine.
10617         (acc_delete_finalize_array_h): New subroutine.
10618         * openacc.h (acc_copyout_finalize): Declare.
10619         (acc_copyout_finalize_async): Declare.
10620         (acc_delete_finalize): Declare.
10621         (acc_delete_finalize_async): Declare.
10622         * openacc_lib.h (acc_copyout_finalize): New interface.
10623         (acc_delete_finalize): New interface.
10624         * target.c (gomp_map_vars): Update dynamic_refcount.
10625         (gomp_remove_var): New function.
10626         (gomp_unmap_vars): Use it.
10627         (gomp_unload_image_from_device): Likewise.
10628         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10629         case to utilize OpenACC 2.5 data clause semantics.
10630         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10631         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10632         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10633         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10634         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10635         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10636         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10637         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10638         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10639         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10640         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10641         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10642         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10643         utilize OpenACC 2.5 data clause semantics.
10644         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10645         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10646         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10647         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10648         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10649         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10650         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10651         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10652         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10654 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
10656         PR fortran/85841
10657         PR testsuite/85865
10658         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10659         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10660         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10661         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10662         * testsuite/libgomp.fortran/task2.f90: Ditto.
10663         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10664         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10665         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10666         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10667         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10668         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10669         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10670         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10671         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10673 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
10675         PR c++/85782
10676         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10678 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10680         PR libgomp/82901
10681         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10682         to GOACC_enter_exit_data.
10684 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10686         PR libgomp/83792
10687         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10688         (async_synchronous_p): New function.
10689         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10690         async_valid_p.
10691         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10692         async_valid_stream_id_p.
10693         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10694         * oacc-parallel.c (GOACC_parallel_keyed): Same.
10696 2018-05-07  Tom de Vries  <tom@codesourcery.com>
10698         PR testsuite/85677
10699         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10700         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10702 2018-05-03  Tom de Vries  <tom@codesourcery.com>
10704         PR testsuite/85106
10705         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10706         extra_tool_flags if it contains an -foffload=-fdump-* flag.
10707         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10708         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10710 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10712         PR libgomp/85411
10713         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10714         GOMP_OPENACC_DIM ...
10715         * env.c (parse_gomp_openacc_dim): ... here.  New function.
10716         (initialize_env): Call parse_gomp_openacc_dim.
10717         (goacc_default_dims): Define.
10718         * libgomp.h (goacc_default_dims): Declare.
10719         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10720         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10721         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10722         GOMP_PLUGIN_acc_default_dim.
10723         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10724         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10726 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10728         PR testsuite/83791
10729         * testsuite/libgomp.c++/udr-9.C: Update.
10730         * testsuite/libgomp.c++/atomic-16.C: Remove.
10731         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10732         * testsuite/libgomp.c++/loop-13.C: Remove.
10733         * testsuite/libgomp.c++/loop-14.C: Remove.
10734         * testsuite/libgomp.c++/loop-15.C: Remove.
10735         * testsuite/libgomp.c++/monotonic-1.C: Remove.
10736         * testsuite/libgomp.c++/monotonic-2.C: Remove.
10737         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10738         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10739         * testsuite/libgomp.c++/ordered-1.C: Remove.
10740         * testsuite/libgomp.c++/pr45784.C: Remove.
10741         * testsuite/libgomp.c++/pr64824.C: Remove.
10742         * testsuite/libgomp.c++/pr64868.C: Remove.
10743         * testsuite/libgomp.c++/pr66199-1.C: Remove.
10744         * testsuite/libgomp.c++/pr66199-2.C: Remove.
10745         * testsuite/libgomp.c++/pr66199-3.C: Remove.
10746         * testsuite/libgomp.c++/pr66199-4.C: Remove.
10747         * testsuite/libgomp.c++/pr66199-5.C: Remove.
10748         * testsuite/libgomp.c++/pr66199-6.C: Remove.
10749         * testsuite/libgomp.c++/pr66199-7.C: Remove.
10750         * testsuite/libgomp.c++/pr66199-8.C: Remove.
10751         * testsuite/libgomp.c++/pr66199-9.C: Remove.
10752         * testsuite/libgomp.c++/pr69389.C: Remove.
10753         * testsuite/libgomp.c++/simd10.C: Remove.
10754         * testsuite/libgomp.c++/simd11.C: Remove.
10755         * testsuite/libgomp.c++/simd12.C: Remove.
10756         * testsuite/libgomp.c++/simd13.C: Remove.
10757         * testsuite/libgomp.c++/target-1.C: Remove.
10758         * testsuite/libgomp.c++/target-3.C: Remove.
10759         * testsuite/libgomp.c++/target-4.C: Remove.
10760         * testsuite/libgomp.c++/target-5.C: Remove.
10761         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10762         * testsuite/libgomp.c++/taskloop-1.C: Remove.
10763         * testsuite/libgomp.c++/taskloop-2.C: Remove.
10764         * testsuite/libgomp.c++/taskloop-3.C: Remove.
10765         * testsuite/libgomp.c++/taskloop-4.C: Remove.
10766         * testsuite/libgomp.c++/udr-9.C: Remove.
10767         * testsuite/libgomp.c++/for-10.C: Remove.
10768         * testsuite/libgomp.c++/for-11.C: Remove.
10769         * testsuite/libgomp.c++/for-12.C: Remove.
10770         * testsuite/libgomp.c++/for-13.C: Remove.
10771         * testsuite/libgomp.c++/for-14.C: Remove.
10772         * testsuite/libgomp.c++/for-9.C: Remove.
10773         * testsuite/libgomp.c/atomic-18.c: Move ...
10774         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10775         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10776         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10777         * testsuite/libgomp.c/loop-13.c: Move ...
10778         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10779         * testsuite/libgomp.c/loop-14.c: Move ...
10780         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10781         * testsuite/libgomp.c/loop-15.c: Remove.
10782         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10783         * testsuite/libgomp.c/monotonic-1.c: Move ...
10784         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10785         * testsuite/libgomp.c/monotonic-2.c: Move ...
10786         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10787         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10788         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10789         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10790         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10791         * testsuite/libgomp.c/ordered-4.c: Move ...
10792         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10793         * testsuite/libgomp.c/pr45784.c: Move ...
10794         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10795         * testsuite/libgomp.c/pr64824.c: Move ...
10796         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10797         * testsuite/libgomp.c/pr64868.c: Move ...
10798         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10799         * testsuite/libgomp.c/pr66199-1.c: Move ...
10800         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10801         * testsuite/libgomp.c/pr66199-2.c: Move ...
10802         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10803         * testsuite/libgomp.c/pr66199-3.c: Move ...
10804         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10805         * testsuite/libgomp.c/pr66199-4.c: Move ...
10806         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10807         * testsuite/libgomp.c/pr66199-5.c: Move ...
10808         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10809         * testsuite/libgomp.c/pr66199-6.c: Move ...
10810         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10811         * testsuite/libgomp.c/pr66199-7.c: Move ...
10812         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10813         * testsuite/libgomp.c/pr66199-8.c: Move ...
10814         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10815         * testsuite/libgomp.c/pr66199-9.c: Move ...
10816         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10817         * testsuite/libgomp.c/pr69389.c: Move ...
10818         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10819         * testsuite/libgomp.c/simd-14.c: Move ...
10820         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10821         * testsuite/libgomp.c/simd-15.c: Move ...
10822         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10823         * testsuite/libgomp.c/simd-16.c: Move ...
10824         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10825         * testsuite/libgomp.c/simd-17.c: Move ...
10826         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10827         * testsuite/libgomp.c/target-1.c: Move ...
10828         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10829         * testsuite/libgomp.c/target-10.c: Move ...
10830         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10831         * testsuite/libgomp.c/target-13.c: Move ...
10832         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10833         * testsuite/libgomp.c/target-2.c: Move ...
10834         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10835         * testsuite/libgomp.c/taskgroup-1.c: Move ...
10836         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10837         * testsuite/libgomp.c/taskloop-1.c: Move ...
10838         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10839         * testsuite/libgomp.c/taskloop-2.c: Move ...
10840         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10841         * testsuite/libgomp.c/taskloop-3.c: Move ...
10842         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10843         * testsuite/libgomp.c/taskloop-4.c: Move ...
10844         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10845         * testsuite/libgomp.c/udr-1.c: Move ...
10846         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10847         * testsuite/libgomp.c/for-1.c: Move ...
10848         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10849         * testsuite/libgomp.c/for-1.h: Move ...
10850         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10851         * testsuite/libgomp.c/for-2.c: Move ...
10852         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10853         * testsuite/libgomp.c/for-2.h: Move ...
10854         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10855         * testsuite/libgomp.c/for-3.c: Move ...
10856         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10857         * testsuite/libgomp.c/for-4.c: Move ...
10858         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10859         * testsuite/libgomp.c/for-5.c: Move ...
10860         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10861         * testsuite/libgomp.c/for-6.c: Move ...
10862         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10864 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10866         PR libgomp/82428
10867         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10868         __builtin_goacc_parlevel_{id,size}.
10869         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10870         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10871         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10872         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10873         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10874         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10875         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10876         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10877         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10878         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10879         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10880         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10881         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10882         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10883         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10884         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10885         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10886         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10887         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10888         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10889         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10890         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10891         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10893 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10895         PR testsuite/85106
10896         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10898 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10900         PR testsuite/85106
10901         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10903 2018-04-29  Julian Brown  <julian@codesourcery.com>
10904             Tom de Vries  <tom@codesourcery.com>
10906         PR testsuite/85527
10907         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10908         arbitrary order for iterations of atomic subtract check.
10910 2018-04-28  Tom de Vries  <tom@codesourcery.com>
10912         PR testsuite/85527
10913         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10914         atomic capture results obtained in parallel loop to an array, instead of
10915         to a scalar.
10917 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10919         PR libgomp/84020
10920         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10921         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10922         (process_GOMP_NVPTX_JIT): New function.
10923         (link_ptx): Use process_GOMP_NVPTX_JIT.
10925 2018-04-26  Richard Biener <rguenther@suse.de>
10926             Tom de Vries  <tom@codesourcery.com>
10928         PR lto/85422
10929         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10931 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10933         PR target/85519
10934         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10935         recursion depth from 25 to 23.
10936         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10938 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
10940         * configure: Regenerated.
10942 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
10943             Tom de Vries  <tom@codesourcery.com>
10945         PR target/85445
10946         * testsuite/libgomp.oacc-c++/ref-1.C: New.
10948 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
10950         PR libgomp/85463
10951         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10952         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10953         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10954         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10955         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10956         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10958         PR libfortran/85166
10959         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10960         abort".
10961         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10963 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
10965         * configure: Regenerated.
10967 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
10969         PR jit/85384
10970         * configure: Regenerate.
10972 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
10973             Tom de Vries  <tom@codesourcery.com>
10975         PR middle-end/84955
10976         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10977         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10979 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
10981         PR fortran/83064
10982         PR testsuite/85346
10983         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10984         test from gfortran.dg to here.
10986 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10988         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10989         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10991 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10993         PR middle-end/84955
10994         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10995         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10997 2018-04-05  Tom de Vries  <tom@codesourcery.com>
10999         PR target/85204
11000         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11002 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11004         PR tree-optimization/85063
11005         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11006         * testsuite/libgomp.c/switch-conversion.c: New test.
11007         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11008         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11010 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11012         PR fortran/84381
11013         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11014         call abort by STOP n.
11015         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11016         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11017         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11018         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11019         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11020         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11021         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11022         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11023         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11024         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11025         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11026         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11027         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11028         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11029         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11030         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11031         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11032         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11033         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11034         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11035         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11036         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11037         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11038         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11039         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11040         * testsuite/libgomp.fortran/character1.f90: Likewise.
11041         * testsuite/libgomp.fortran/character2.f90: Likewise.
11042         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11043         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11044         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11045         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11046         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11047         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11048         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11049         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11050         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11051         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11052         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11053         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11054         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11055         * testsuite/libgomp.fortran/do1.f90: Likewise.
11056         * testsuite/libgomp.fortran/do2.f90: Likewise.
11057         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11058         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11059         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11060         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11061         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11062         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11063         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11064         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11065         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11066         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11067         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11068         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11069         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11070         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11071         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11072         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11073         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11074         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11075         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11076         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11077         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11078         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11079         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11080         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11081         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11082         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11083         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11084         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11085         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11086         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11087         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11088         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11089         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11090         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11091         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11092         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11093         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11094         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11095         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11096         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11097         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11098         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11099         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11100         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11101         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11102         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11103         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11104         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11105         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11106         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11107         * testsuite/libgomp.fortran/lib2.f: Likewise.
11108         * testsuite/libgomp.fortran/lib3.f: Likewise.
11109         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11110         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11111         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11112         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11113         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11114         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11115         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11116         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11117         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11118         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11119         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11120         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11121         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11122         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11123         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11124         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11125         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11126         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11127         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11128         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11129         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11130         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11131         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11132         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11133         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11134         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11135         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11136         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11137         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11138         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11139         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11140         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11141         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11142         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11143         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11144         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11145         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11146         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11147         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11148         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11149         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11150         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11151         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11152         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11153         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11154         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11155         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11156         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11157         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11158         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11159         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11160         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11161         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11162         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11163         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11164         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11165         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11166         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11167         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11168         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11169         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11170         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11171         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11172         * testsuite/libgomp.fortran/reference1.f90: Likewise.
11173         * testsuite/libgomp.fortran/reference2.f90: Likewise.
11174         * testsuite/libgomp.fortran/retval1.f90: Likewise.
11175         * testsuite/libgomp.fortran/retval2.f90: Likewise.
11176         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11177         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11178         * testsuite/libgomp.fortran/simd1.f90: Likewise.
11179         * testsuite/libgomp.fortran/simd2.f90: Likewise.
11180         * testsuite/libgomp.fortran/simd3.f90: Likewise.
11181         * testsuite/libgomp.fortran/simd4.f90: Likewise.
11182         * testsuite/libgomp.fortran/simd5.f90: Likewise.
11183         * testsuite/libgomp.fortran/simd6.f90: Likewise.
11184         * testsuite/libgomp.fortran/simd7.f90: Likewise.
11185         * testsuite/libgomp.fortran/stack.f90: Likewise.
11186         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11187         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11188         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11189         * testsuite/libgomp.fortran/target1.f90: Likewise.
11190         * testsuite/libgomp.fortran/target2.f90: Likewise.
11191         * testsuite/libgomp.fortran/target3.f90: Likewise.
11192         * testsuite/libgomp.fortran/target4.f90: Likewise.
11193         * testsuite/libgomp.fortran/target5.f90: Likewise.
11194         * testsuite/libgomp.fortran/target6.f90: Likewise.
11195         * testsuite/libgomp.fortran/target7.f90: Likewise.
11196         * testsuite/libgomp.fortran/target8.f90: Likewise.
11197         * testsuite/libgomp.fortran/task1.f90: Likewise.
11198         * testsuite/libgomp.fortran/task2.f90: Likewise.
11199         * testsuite/libgomp.fortran/task3.f90: Likewise.
11200         * testsuite/libgomp.fortran/task4.f90: Likewise.
11201         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11202         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11203         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11204         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11205         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11206         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11207         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11208         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11209         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11210         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11211         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11212         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11213         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11214         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11215         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11216         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11217         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11218         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11219         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11220         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11221         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11222         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11223         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11224         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11225         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11226         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11227         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11228         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11229         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11230         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11231         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11232         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11233         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11234         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11235         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11236         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11237         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11238         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11239         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11240         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11241         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11242         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11243         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11244         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11245         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11246         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11247         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11248         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11249         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11250         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11251         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11252         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11253         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11254         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11255         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11256         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11257         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11258         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11259         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11260         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11261         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11262         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11263         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11264         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11265         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11266         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11267         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11268         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11269         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11270         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11271         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11272         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11273         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11274         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11275         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11276         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11277         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11278         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11279         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11280         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11281         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11282         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11283         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11284         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11285         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11286         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11287         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11288         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11289         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11290         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11291         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11292         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11293         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11294         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11295         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11296         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11297         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11298         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11299         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11300         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11301         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11302         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11303         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11304         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11305         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11306         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11307         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11308         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11309         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11310         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11311         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11312         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11313         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11314         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11315         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11316         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11317         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11318         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11319         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11320         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11321         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11322         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11323         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11324         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11325         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11326         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11328 2018-03-20  Richard Biener  <rguenther@suse.de>
11330         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11331         parallelizable loop.
11333 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11335         PR target/84148
11336         * configure: Regenerate.
11338 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11340         PR fortran/84418
11341         * libgomp.fortran/pr84418-1.f90: New test.
11342         * libgomp.fortran/pr84418-2.f90: New test.
11344 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11346         PR fortran/84313
11347         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11348         -std=f2003 -fall-intrinsics into dg-additional-options.
11350 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11352         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11353         clonable.
11355 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11357         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11359 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11361         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11362         [__cplusplus]: Declare extern "C".
11364 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11366         PR libgomp/84217
11367         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11369 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11370             Jakub Jelinek  <jakub@redhat.com>
11372         PR libgomp/84096
11373         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11374         instead of omp_lock_t.
11376 2018-01-25  Tom de Vries  <tom@codesourcery.com>
11378         PR target/84028
11379         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11381 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11383         PR target/83589
11384         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11386 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11388         PR target/81352
11389         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11391 2018-01-19  Tom de Vries  <tom@codesourcery.com>
11392             Cesar Philippidis  <cesar@codesourcery.com>
11394         PR target/83920
11395         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11396         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11398 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11400         Update copyright years.
11402         * libgomp.texi: Bump @copying's copyright year.
11404 2017-12-30  Tom de Vries  <tom@codesourcery.com>
11406         PR libgomp/83046
11407         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11408         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11410 2017-12-27  Tom de Vries  <tom@codesourcery.com>
11412         PR c++/83046
11413         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11414         (test_nonstatic): Fix return type to workaround PR83046.
11416 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
11418         PR testsuite/83281
11419         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11420         j suffix instead of i.
11421         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11422         Likewise.
11424 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
11426         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11427         call to acc_wait (1).
11429 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
11431         PR fortran/81304
11432         * testsuite/libgomp.fortran/pr81304.f90: New test.
11434 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
11436         PR fortran/81841
11437         * libgomp.fortran/pr81841.f90: New test.
11439 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
11441         PR libgomp/83106
11442         * target.c (gomp_target_init): Compute lengths just once and
11443         use them in both malloc size and subsequent copying.
11445 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11447         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11448         * acinclude.m4: Add cet.m4.
11449         * configure: Regenerate.
11450         * Makefile.in: Likewise.
11451         * testsuite/Makefile.in: Likewise.
11453 2017-11-15  Tom de Vries  <tom@codesourcery.com>
11455         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11456         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
11457         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11458         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
11459         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11460         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
11462 2017-11-14  Tom de Vries  <tom@codesourcery.com>
11464         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11465         non-nvidia devices.
11467 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
11469         PR c++/82835
11470         * testsuite/libgomp.c++/pr82835.C: New test.
11472 2017-11-06  Martin Liska  <mliska@suse.cz>
11474         * testsuite/libgomp.c++/loop-2.C: Return a value
11475         for functions with non-void return type, or change type to void,
11476         or add -Wno-return-type for test.
11477         * testsuite/libgomp.c++/loop-4.C: Likewise.
11478         * testsuite/libgomp.c++/parallel-1.C: Likewise.
11479         * testsuite/libgomp.c++/shared-1.C: Likewise.
11480         * testsuite/libgomp.c++/single-1.C: Likewise.
11481         * testsuite/libgomp.c++/single-2.C: Likewise.
11483 2017-10-31  Tom de Vries  <tom@codesourcery.com>
11485         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11486         "do {} while (false)".
11487         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11488         after HSA_DEBUG call.
11490 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
11492         * target.c (struct gomp_coalesce_buf): New type.
11493         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11494         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11495         (gomp_copy_host2dev): Add CBUF argument, if copying into
11496         the cached ranges, memcpy into buffer instead of copying
11497         into device.
11498         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11499         Add CBUF argument, pass it through to other calls.
11500         (gomp_map_vars): Aggregate copies from host to device if small enough
11501         and with small enough gaps in between into memcpy into a buffer and
11502         fewer host to device copies from the buffer.
11503         (gomp_update): Adjust gomp_copy_host2dev caller.
11505 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
11507         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11508         run" directive.
11509         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11510         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11511         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11512         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11514 2017-10-16  Tom de Vries  <tom@codesourcery.com>
11516         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11517         openacc_nvidia_accel_selected.
11518         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11519         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11520         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11521         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11522         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11523         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11524         openacc_nvidia_accel_selected. Skip for shared memory device.
11525         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11526         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11528 2017-10-09  Martin Jambor  <mjambor@suse.cz>
11530         PR hsa/82416
11531         * testsuite/libgomp.hsa.c/pr82416.c: New test.
11533 2017-10-07  Tom de Vries  <tom@codesourcery.com>
11535         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11536         Remove acc_device_nvidia references.
11537         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11538         Same.
11540 2017-10-05  Tom de Vries  <tom@codesourcery.com>
11542         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11543         vector_length(32) clause from acc parallel directive.
11544         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11546 2017-10-04  Tom de Vries  <tom@codesourcery.com>
11548         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11549         (main): Reduce sum of arr elements.  Assert that hres is exactly
11550         representable in 32-bit floating point.
11551         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11552         (main): Reduce sum of arr elements.  Assert that hres and hmres are
11553         exactly representable in 32-bit floating point.
11554         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11556 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11558         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11559         setting.
11560         * testsuite/libgomp.c++/pr69393.C: Same.
11561         * testsuite/libgomp.c++/taskloop-1.C: Same.
11562         * testsuite/libgomp.c++/taskloop-3.C: Same.
11563         * testsuite/libgomp.c++/taskloop-4.C: Same.
11564         * testsuite/libgomp.c/for-4.c: Same.
11565         * testsuite/libgomp.c/pr66199-3.c: Same.
11566         * testsuite/libgomp.c/pr66199-4.c: Same.
11567         * testsuite/libgomp.c/pr66199-6.c: Same.
11568         * testsuite/libgomp.c/taskloop-1.c: Same.
11569         * testsuite/libgomp.c/taskloop-3.c: Same.
11570         * testsuite/libgomp.c/taskloop-4.c: Same.
11571         * testsuite/libgomp.fortran/aligned1.f03: Same.
11572         * testsuite/libgomp.fortran/condinc1.f: Same.
11573         * testsuite/libgomp.fortran/condinc3.f90: Same.
11574         * testsuite/libgomp.fortran/crayptr1.f90: Same.
11575         * testsuite/libgomp.fortran/crayptr2.f90: Same.
11576         * testsuite/libgomp.fortran/crayptr3.f90: Same.
11577         * testsuite/libgomp.fortran/omp_cond1.f: Same.
11578         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11579         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11580         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11581         * testsuite/libgomp.fortran/recursion1.f90: Same.
11582         * testsuite/libgomp.fortran/target2.f90: Same.
11583         * testsuite/libgomp.fortran/target5.f90: Same.
11584         * testsuite/libgomp.fortran/task3.f90: Same.
11586 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11588         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11589         vector_length(32) clause from acc parallel directive.
11590         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11592 2017-09-27  Tom de Vries  <tom@codesourcery.com>
11594         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11595         Remove acc_device_nvidia references.
11597 2017-09-16  Tom de Vries  <tom@codesourcery.com>
11599         PR c/81875
11600         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11602 2017-09-14  Tom de Vries  <tom@codesourcery.com>
11604         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11605         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11606         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11607         * testsuite/libgomp.c/c.exp: Include test-cases from
11608         libgomp.c-c++-common.
11609         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
11610         files.
11612 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
11614         PR c++/81314
11615         * testsuite/libgomp.c++/pr81314.C: New test.
11617 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
11619         * libgomp.texi (Top): www.openacc.org now uses https.
11620         (Enabling OpenACC): Ditto.
11621         (acc_get_num_devices): Ditto.
11622         (acc_set_device_type): Ditto.
11623         (acc_get_device_type): Ditto.
11624         (acc_set_device_num): Ditto.
11625         (acc_get_device_num): Ditto.
11626         (acc_async_test): Ditto.
11627         (acc_async_test_all): Ditto.
11628         (acc_wait): Ditto.
11629         (acc_wait_all): Ditto.
11630         (acc_wait_all_async): Ditto.
11631         (acc_wait_async): Ditto.
11632         (acc_init): Ditto.
11633         (acc_shutdown): Ditto.
11634         (acc_on_device): Ditto.
11635         (acc_malloc): Ditto.
11636         (acc_free): Ditto.
11637         (acc_copyin): Ditto.
11638         (acc_present_or_copyin): Ditto.
11639         (acc_create): Ditto.
11640         (acc_present_or_create): Ditto.
11641         (acc_copyout): Ditto.
11642         (acc_delete): Ditto.
11643         (acc_update_device): Ditto.
11644         (acc_update_self): Ditto.
11645         (acc_map_data): Ditto.
11646         (acc_unmap_data): Ditto.
11647         (acc_deviceptr): Ditto.
11648         (acc_hostptr): Ditto.
11649         (acc_is_present): Ditto.
11650         (acc_memcpy_to_device): Ditto.
11651         (acc_memcpy_from_device): Ditto.
11652         (acc_get_current_cuda_device): Ditto.
11653         (acc_get_current_cuda_context): Ditto.
11654         (acc_get_cuda_stream): Ditto.
11655         (acc_set_cuda_stream): Ditto.
11656         (ACC_DEVICE_TYPE): Ditto.
11657         (ACC_DEVICE_NUM): Ditto.
11658         (OpenACC Library Interoperability): Ditto.
11660 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11662         PR c/81687
11663         * testsuite/libgomp.c/pr81687-1.c: New test.
11664         * testsuite/libgomp.c/pr81687-2.c: New test.
11666 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11668         PR c/69389
11669         * testsuite/libgomp.c/pr69389.c: New test.
11670         * testsuite/libgomp.c++/pr69389.C: New test.
11672 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11674         PR middle-end/78266
11675         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11676         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11678 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
11680         PR c/45784
11681         * testsuite/libgomp.c/pr45784.c: New test.
11682         * testsuite/libgomp.c++/pr45784.C: New test.
11684 2017-07-19  Tom de Vries  <tom@codesourcery.com>
11686         * testsuite/libgomp.oacc-c/vec.c: New test.
11688 2017-07-03  Tom de Vries  <tom@codesourcery.com>
11690         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11692 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11694         * plugin/plugin-nvptx.c (notify_var): New function.
11695         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11697 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11699         * env.c (parse_unsigned_long_1): Factor out of ...
11700         (parse_unsigned_long): ... here.
11701         (parse_int_1): Factor out of ...
11702         (parse_int): ... here.
11703         (parse_int_secure): New function.
11704         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11705         * secure_getenv.h: Factor out of ...
11706         * plugin/plugin-hsa.c: ... here.
11707         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11709 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
11711         PR c++/81130
11712         * testsuite/libgomp.c++/pr81130.C: New test.
11714 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11716         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11717         default args.
11718         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11719         dg-xfail-run-if default args.
11721 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11723         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11724         * testsuite/libgomp.c/pr39591-3.c: Likewise.
11726 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
11728         PR libgomp/80822
11729         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11730         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
11731         sibling lists, depending on level just pick up what CPUs to put
11732         together into a place vs. whether add multiple ordered places.
11734 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
11736         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11737         * libgomp.map (OACC_2.0.1): Add these.
11738         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11739         for "acc_wait", and "acc_wait_all", respectively.
11740         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11741         for "acc_wait", and "acc_wait_all", respectively.
11742         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11743         * libgomp.texi (acc_wait, acc_wait_all): Update.
11744         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11745         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11746         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11748         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11749         acc_present_or_copyin and acc_present_or_create procedures,
11750         respectively.
11751         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11752         generally different variants of OpenACC Runtime Library functions.
11753         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11755         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11756         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11758         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11759         of preprocessor definitions.
11760         * libgomp.h (strong_alias): Guard by "#ifdef
11761         HAVE_ATTRIBUTE_ALIAS".
11762         * oacc-mem.c: Provide "acc_pcreate" as alias for
11763         "acc_present_or_create", and "acc_pcopyin" as alias for
11764         "acc_present_or_copyin".
11765         * libgomp.map: New version "OACC_2.0.1".
11766         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11767         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11768         its content into...
11769         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11770         Extend testing.
11772         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11773         when disabling nvptx offloading.
11775 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11777         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11778         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11779         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11781         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11782         * testsuite/lib/libgomp.exp
11783         (check_effective_target_openacc_nvidia_accel_configured): New
11784         proc.
11785         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11786         (check_effective_target_c++): New procs.
11787         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11788         (check_effective_target_c++): Likewise.
11790 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11792         PR middle-end/80809
11793         * testsuite/libgomp.c/pr80809-2.c: New test.
11794         * testsuite/libgomp.c/pr80809-3.c: New test.
11796         PR middle-end/80809
11797         * testsuite/libgomp.c/pr80809-1.c: New test.
11799         PR middle-end/80853
11800         * testsuite/libgomp.c/pr80853.c: New test.
11802 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11804         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11805         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11806         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11807         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11808         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11810         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11811         Debug output for failure.
11813 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11815         * testsuite/lib/libgomp.exp: Load scanlang.exp.
11817 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
11819         PR bootstrap/80531
11820         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11821         bootstrap compare failures.
11823 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11825         * testsuite/libgomp.c/target-36.c: New testcase.
11827 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11829         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11830         instead of char.
11832 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11834         PR libgomp/80394
11835         * testsuite/libgomp.c/pr80394.c: New test.
11837 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
11839         PR libgomp/79876
11840         * config/posix/thread-stacksize.h: New file.
11841         * config/darwin/thread-stacksize.h: New file.
11842         * config/nvptx/thread-stacksize.h: New file.
11843         * env.c: Include thread-stacksize.h.
11844         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11845         instead of 0.  Call pthread_attr_setstacksize even if
11846         GOMP_DEFAULT_STACKSIZE is non-zero.
11848 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
11850         * env.c (initialize_env): Initialize stacksize to 0.
11852 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
11854         PR c++/80029
11855         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11857 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11859         PR c/79940
11860         * testsuite/libgomp.c/pr79940.c: New test.
11862 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11864         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11865         targets.
11866         Add __float128 options.
11868 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
11870         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11871         hppa*-*-* dg-skip-if directive.
11873 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11875         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11876         dg-skip-if directive into a comment.
11878 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11879             Chung-Lin Tang  <cltang@codesourcery.com>
11881         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11882         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11883         add additional case.
11884         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11885         "openacc_nvidia_accel_selected".
11886         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11887         Add num_workers(8) clause.
11889 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
11891         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11892         hppa*-*-*.
11893         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11894         include complex.h on hppa*-*-hpux*.
11895         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11897 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11899         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11901         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11902         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
11903         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11904         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
11905         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11906         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
11907         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11908         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
11909         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11910         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
11912 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
11914         * libgomp-plugin.h: #include <stdbool.h>.
11915         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11916         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11917         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11918         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11919         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11920         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11921         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11922         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11923         (GOMP_OFFLOAD_openacc_register_async_cleanup)
11924         (GOMP_OFFLOAD_openacc_async_test)
11925         (GOMP_OFFLOAD_openacc_async_test_all)
11926         (GOMP_OFFLOAD_openacc_async_wait)
11927         (GOMP_OFFLOAD_openacc_async_wait_async)
11928         (GOMP_OFFLOAD_openacc_async_wait_all)
11929         (GOMP_OFFLOAD_openacc_async_wait_all_async)
11930         (GOMP_OFFLOAD_openacc_async_set_async)
11931         (GOMP_OFFLOAD_openacc_create_thread_data)
11932         (GOMP_OFFLOAD_openacc_destroy_thread_data)
11933         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11934         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11935         (GOMP_OFFLOAD_openacc_get_cuda_stream)
11936         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11937         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11938         these.
11939         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11940         (GOMP_OFFLOAD_unload_image): Fix argument types.
11942 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
11944         * testsuite/lib/libgomp.exp
11945         (check_effective_target_hsa_offloading_selected_nocache): Fix up
11946         check_compile invocation.  Fix up removal of executable.  Drop
11947         bogus "2>&1" argument.
11949         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11950         directive.
11952 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
11953             Martin Jambor  <mjambor@suse.cz>
11955         * plugin/hsa.h: Moved to top level include.
11956         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11958 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
11960         PR other/79046
11961         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11962         of cat to get version from BASE-VER file.
11963         * testsuite/Makefile.in: Regenerated.
11965 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
11967         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11968         for _WIN64.
11970 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11972         * plugin/hsa.h: Add GCC runtime library exception.
11973         * plugin/hsa_ext_finalize.h: Likewise.
11975         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11976         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
11977         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11978         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11979         plugin/include/cuda as include dir and -ldl instead of -lcuda as
11980         library to link ptx plugin against.
11981         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11982         (CUDA_CALLS): Define.
11983         (cuda_lib, cuda_lib_inited): New variables.
11984         (init_cuda_lib): New function.
11985         (CUDA_CALL_PREFIX): Define.
11986         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11987         (CUDA_CALL): Use FN instead of (FN).
11988         (CUDA_CALL_NOCHECK): Define.
11989         (cuda_error, fini_streams_for_device, select_stream_for_async,
11990         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11991         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11992         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11993         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11994         CUDA_CALL_NOCHECK.
11995         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
11996         CUDA_CALL_NOCHECK.
11997         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11998         Use CUDA_CALL_NOCHECK.
11999         * plugin/cuda/cuda.h: New file.
12000         * config.h.in: Regenerated.
12001         * configure: Regenerated.
12003         PR other/79046
12004         * configure.ac: Add GCC_BASE_VER.
12005         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12006         get version from BASE-VER file.
12007         * testsuite/Makefile.in: Regenerated.
12008         * configure: Regenerated.
12009         * Makefile.in: Regenerated.
12011 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12013         PR libgomp/60670
12014         * Makefile.am: Make fincludedir multilib-aware.
12015         * Makefile.in: Regenerate.
12017 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12019         Update copyright years.
12021         * libgomp.texi: Bump @copying's copyright year.
12023 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12025         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12026         pthread_spinlock_t instead of gomp_mutex_t lock.
12027         (gomp_get_thread_pool): Likewise.
12028         (gomp_release_thread_pool): Likewise.
12029         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12030         Likewise.
12032 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12034         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12035         thread pool in case nthreads == 1.
12037 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12039         * config/nvptx/env.c: Delete.
12040         * icv.c: Move definitions of ICV variables back ...
12041         * env.c: ...here.  Do not compile environment-related functionality if
12042         LIBGOMP_OFFLOADED_ONLY is set.
12044 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12046         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12047         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12048         * configure: Regenerate.
12049         * config.h.in: Likewise.
12051 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12053         * Makefile.in: Regenerate with automake-1.11.6.
12054         * aclocal.m4: Likewise.
12055         * configure: Likewise.
12056         * testsuite/Makefile.in: Likewise.
12058 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12060         * config/nvptx/critical.c: Delete to use generic implementation.
12062 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12064         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12065         ../../affinity.c as fallback.
12066         * config/nvptx/affinity.c: Delete to use fallback implementation.
12068 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12069             Jakub Jelinek  <jakub@redhat.com>
12070             Dmitry Melnik  <dm@ispras.ru>
12072         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12073         * Makefile.in. Regenerate.
12074         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12075         (LIBGOMP_USE_PTHREADS): ...here; new define.
12076         * configure: Regenerate.
12077         * config.h.in: Likewise.
12078         * config/posix/affinity.c: Move to...
12079         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12080         interface by LIBGOMP_USE_PTHREADS. 
12081         * critical.c: Split out GOMP_atomic_{start,end} into...
12082         * atomic.c: ...here (new file).
12083         * env.c: Split out ICV definitions into...
12084         * icv.c: ...here (new file) and...
12085         * icv-device.c: ...here. New file.
12086         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12087         (gomp_destroy_lock_30): Ditto.
12088         (gomp_set_lock_30): Ditto.
12089         (gomp_unset_lock_30): Ditto.
12090         (gomp_test_lock_30): Ditto.
12091         (gomp_init_nest_lock_30): Ditto.
12092         (gomp_destroy_nest_lock_30): Ditto.
12093         (gomp_set_nest_lock_30): Ditto.
12094         (gomp_unset_nest_lock_30): Ditto.
12095         (gomp_test_nest_lock_30): Ditto.
12096         * lock.c: New.
12097         * config/nvptx/lock.c: New.
12098         * config/nvptx/bar.c: New.
12099         * config/nvptx/bar.h: New.
12100         * config/nvptx/doacross.h: New.
12101         * config/nvptx/error.c: New.
12102         * config/nvptx/icv-device.c: New.
12103         * config/nvptx/mutex.h: New.
12104         * config/nvptx/pool.h: New.
12105         * config/nvptx/proc.c: New.
12106         * config/nvptx/ptrlock.h: New.
12107         * config/nvptx/sem.h: New.
12108         * config/nvptx/simple-bar.h: New.
12109         * config/nvptx/target.c: New.
12110         * config/nvptx/task.c: New.
12111         * config/nvptx/team.c: New.
12112         * config/nvptx/time.c: New.
12113         * config/posix/simple-bar.h: New.
12114         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12115         (gomp_num_teams_var): Declare.
12116         (struct gomp_thread_pool): Change threads_dock member to
12117         gomp_simple_barrier_t.
12118         [__nvptx__] (gomp_thread): New implementation.
12119         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12120         (gomp_thread_destructor): Ditto.
12121         (gomp_init_thread_affinity): Ditto.
12122         * team.c: Guard uses of Pthreads-specific interfaces by
12123         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12124         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12125         * config/nvptx/alloc.c: Delete.
12126         * config/nvptx/barrier.c: Ditto.
12127         * config/nvptx/fortran.c: Ditto.
12128         * config/nvptx/iter.c: Ditto.
12129         * config/nvptx/iter_ull.c: Ditto.
12130         * config/nvptx/loop.c: Ditto.
12131         * config/nvptx/loop_ull.c: Ditto.
12132         * config/nvptx/ordered.c: Ditto.
12133         * config/nvptx/parallel.c: Ditto.
12134         * config/nvptx/priority_queue.c: Ditto.
12135         * config/nvptx/sections.c: Ditto.
12136         * config/nvptx/single.c: Ditto.
12137         * config/nvptx/splay-tree.c: Ditto.
12138         * config/nvptx/work.c: Ditto.
12139         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12140         -foffload=-lgfortran in addition to -lgfortran.
12141         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12142         * plugin/plugin-nvptx.c: Include <limits.h>.
12143         (struct targ_fn_descriptor): Add new fields.
12144         (struct ptx_device): Ditto.  Set them...
12145         (nvptx_open_device): ...here.
12146         (nvptx_adjust_launch_bounds): New.
12147         (nvptx_host2dev): Allow NULL 'nvthd'.
12148         (nvptx_dev2host): Ditto.
12149         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12150         (link_ptx): Adjust log sizes.
12151         (nvptx_host2dev): Allow NULL 'nvthd'.
12152         (nvptx_dev2host): Ditto.
12153         (nvptx_set_clocktick): New.  Use it...
12154         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12155         fields.
12156         (GOMP_OFFLOAD_dev2dev): New.
12157         (nvptx_adjust_launch_bounds): New.
12158         (nvptx_stacks_size): New.
12159         (nvptx_stacks_alloc): New.
12160         (nvptx_stacks_free): New.
12161         (GOMP_OFFLOAD_run): New.
12162         (GOMP_OFFLOAD_async_run): New (stub).
12164 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12166         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12167         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12168         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12170 2016-11-23  Martin Liska  <mliska@suse.cz>
12171             Martin Jambor  <mjambor@suse.cz>
12173         * plugin/hsa.h: New file.
12174         * plugin/hsa_ext_finalize.h: New file.
12175         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
12176         header file unistd.h, and functions secure_getenv, __secure_getenv,
12177         getuid, geteuid, getgid and getegid.
12178         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12179         -D_GNU_SOURCE.
12180         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12181         Handle various cases of secure_getenv presence, add an implementation
12182         when we can test effective UID and GID.
12183         (struct hsa_runtime_fn_info): New structure.
12184         (hsa_runtime_fn_info hsa_fns): New variable.
12185         (hsa_runtime_lib): Likewise.
12186         (support_cpu_devices): Likewise.
12187         (init_enviroment_variables): Load newly introduced ENV
12188         variables.
12189         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12190         (hsa_fatal): Likewise.
12191         (DLSYM_FN): New macro.
12192         (init_hsa_runtime_functions): New function.
12193         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12194         structure.  Depending on environment, also allow CPU devices.
12195         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12196         (get_kernarg_memory_region): Likewise.
12197         (GOMP_OFFLOAD_init_device): Likewise.
12198         (destroy_hsa_program): Likewise.
12199         (init_basic_kernel_info): New function.
12200         (GOMP_OFFLOAD_load_image): Use it.
12201         (create_and_finalize_hsa_program): Call hsa run-time functions via
12202         hsa_fns structure.
12203         (create_single_kernel_dispatch): Likewise.
12204         (release_kernel_dispatch): Likewise.
12205         (init_single_kernel): Likewise.
12206         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12207         (get_group_size): New function.
12208         (run_kernel): Likewise.
12209         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12210         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12211         structure.
12212         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12213         * testsuite/libgomp-test-support.exp.in: Likewise.
12214         * Makefile.in: Regenerated.
12215         * aclocal.m4: Likewise.
12216         * config.h.in: Likewise.
12217         * configure: Likewise.
12218         * testsuite/Makefile.in: Likewise.
12220 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12221             Alexander Monakov  <amonakov@ispras.ru>
12223         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12224         mapping clauses to target constructs.
12225         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12227 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12229         * configure: Regenerate.
12231 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12233         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12234         * omp_lib.h.in (openmp_version): Likewise.
12235         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12236         of 201307.
12237         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12239         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12240         (fib_wrapper): Add map(from: x) clause.
12241         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12242         (e_53_2): Likewise.
12243         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12244         (accum): Add map(tmp) clause.
12245         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12246         (accum): Add map(tofrom: tmp) clause.
12247         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12248         (gramSchmidt): Likewise.
12249         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12250         map(tofrom: sum) clause.
12251         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12252         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12253         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12254         only allowed on the loop iterator.
12255         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12256         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12257         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12258         * testsuite/libgomp.fortran/doacross1.f90: New test.
12259         * testsuite/libgomp.fortran/doacross3.f90: New test.
12260         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12261         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12262         * testsuite/libgomp.fortran/doacross2.f90: New test.
12263         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12264         #pragma omp atomic read.
12265         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12266         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12268 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12269             Nathan Sidwell  <nathan@acm.org>
12271         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12272         to determine default geometry.
12273         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12274         dimension.
12276 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12278         * hashtab.h: Use standard GPLv3 with runtime exception
12279         boilerplate.
12281 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12283         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12284         size when allocating new thread.
12286 2016-09-14  Marek Polacek  <polacek@redhat.com>
12288         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12290 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12292         PR fortran/71014
12293         * testsuite/libgomp.fortran/pr71014.f90: New test.
12295 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12297         PR middle-end/70895
12298         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12299         firstprivate clauses.
12300         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12301         copy clauses.
12302         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12303         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12304         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12305         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12306         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12307         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12308         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12309         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12310         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12311         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12312         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12313         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12315 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12317         PR fortran/70598
12318         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12320 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12322         PR c++/58706
12323         * testsuite/libgomp.c++/pr58706.C: New test.
12325 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12327         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12328         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12329         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12330         Likewise.
12331         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12332         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12333         Likewise.
12334         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12336         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12337         test, and don't hardcode -O0.
12339 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12341         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12343 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12345         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12346         test.
12348 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12350         PR middle-end/71734
12351         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12352         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12354 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12356         PR fortran/71717
12357         * testsuite/libgomp.fortran/associate3.f90: New test.
12359 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12361         * testsuite/libgomp.c++/target-21.C: New test.
12363 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12365         * testsuite/libgomp.c++/target-20.C: New test.
12367 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12368             Cesar Philippidis  <cesar@codesourcery.com>
12370         PR middle-end/71373
12371         * libgomp.oacc-c/nested-function-1.c: New file.
12372         * libgomp.oacc-c/nested-function-2.c: Likewise.
12373         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12374         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12375         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12377 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12379         PR c/71381
12380         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12381         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12382         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12384 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
12386         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12387         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12389 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
12391         PR c/70688
12392         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12394 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12396         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12397         instead of invalid schedule(static, 0).
12398         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12400 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12402         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12403         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12404         parameter, use to set async stream around call to gomp_unmap_vars,
12405         call gomp_unmap_vars() with 'do_copyfrom' set to true.
12406         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12407         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12408         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12409         (event_add): Add int parameter, initialize 'val' field when
12410         adding new ptx_event struct.
12411         (nvptx_evec): Adjust event_add() call arguments.
12412         (nvptx_host2dev): Likewise.
12413         (nvptx_dev2host): Likewise.
12414         (nvptx_wait_async): Likewise.
12415         (nvptx_wait_all_async): Likewise.
12416         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12417         pass to event_add() call.
12418         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12419         parameter.
12420         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12421         call openacc.register_async_cleanup_func() hook.
12422         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12423         * target.c (gomp_copy_from_async): Delete function.
12424         (gomp_map_vars): Remove async_refcount.
12425         (gomp_unmap_vars): Likewise.
12426         (gomp_load_image_to_device): Likewise.
12427         (omp_target_associate_ptr): Likewise.
12428         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12429         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12430         (gomp_copy_from_async): Remove.
12432 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12434         * target.c (gomp_device_copy): New function.
12435         (gomp_copy_host2dev): Likewise.
12436         (gomp_copy_dev2host): Likewise.
12437         (gomp_free_device_memory): Likewise.
12438         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12439         (gomp_map_pointer): Likewise.
12440         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12441         NULL value from alloc_func plugin hook.
12442         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12443         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12444         (gomp_unmap_vars): Likewise.
12445         (gomp_update): Adjust to call gomp_copy_dev2host and
12446         gomp_copy_host2dev functions.
12447         (gomp_unload_image_from_device): Handle false value from
12448         unload_image_func plugin hook.
12449         (gomp_init_device): Handle false value from init_device_func
12450         plugin hook.
12451         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12452         (omp_target_free): Adjust to call gomp_free_device_memory.
12453         (omp_target_memcpy): Handle return values from host2dev_func,
12454         dev2host_func, and dev2dev_func plugin hooks.
12455         (omp_target_memcpy_rect_worker): Likewise.
12456         (gomp_target_fini): Handle false value from fini_device_func
12457         plugin hook.
12458         * libgomp.h (struct gomp_device_descr): Adjust return type of
12459         init_device_func, fini_device_func, unload_image_func, free_func,
12460         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12461         * oacc-init.c (acc_shutdown_1): Handle false value from
12462         fini_device_func plugin hook.
12463         * oacc-host.c (host_init_device): Change return type to bool.
12464         (host_fini_device): Likewise.
12465         (host_unload_image): Likewise.
12466         (host_free): Likewise.
12467         (host_dev2host): Likewise.
12468         (host_host2dev): Likewise.
12469         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12470         (acc_memcpy_to_device): Likewise.
12471         (acc_memcpy_from_device): Likewise.
12472         (delete_copyout): Add libfnname parameter, handle free_func
12473         hook fatal error case.
12474         (acc_delete): Adjust delete_copyout call.
12475         (acc_copyout): Likewise.
12476         (update_dev_host): Move gomp_mutex_unlock to after
12477         host2dev/dev2host hook calls.
12479         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12480         to 'hsa_error_msg', for clarity.
12481         (hsa_fatal): Likewise.
12482         (hsa_error): New function.
12483         (init_hsa_context): Change return type to bool, adjust to return
12484         false on error.
12485         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12486         return value.
12487         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12488         return false on error.
12489         (get_agent_info): Adjust to return NULL on error.
12490         (destroy_hsa_program): Change return type to bool, adjust to
12491         return false on error.
12492         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12493         (destroy_module): Change return type to bool, adjust to
12494         return false on error.
12495         (GOMP_OFFLOAD_unload_image): Likewise.
12496         (GOMP_OFFLOAD_fini_device): Likewise.
12497         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12498         (GOMP_OFFLOAD_free): Change to return false when called.
12499         (GOMP_OFFLOAD_dev2host): Likewise.
12500         (GOMP_OFFLOAD_host2dev): Likewise.
12501         (GOMP_OFFLOAD_dev2dev): Likewise.
12503         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12504         (CUDA_CALL): Likewise.
12505         (CUDA_CALL_ASSERT): Likewise.
12506         (map_init): Change return type to bool, use CUDA_CALL* macros.
12507         (map_fini): Likewise.
12508         (init_streams_for_device): Change return type to bool, adjust
12509         call to map_init.
12510         (fini_streams_for_device): Change return type to bool, adjust
12511         call to map_fini.
12512         (select_stream_for_async): Release stream_lock before calls to
12513         GOMP_PLUGIN_fatal, adjust call to map_init.
12514         (nvptx_init): Use CUDA_CALL* macros.
12515         (nvptx_attach_host_thread_to_device): Change return type to bool,
12516         use CUDA_CALL* macros.
12517         (nvptx_open_device): Use CUDA_CALL* macros.
12518         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12519         macros.
12520         (nvptx_get_num_devices): Use CUDA_CALL* macros.
12521         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12522         (nvptx_exec): Use CUDA_CALL* macros.
12523         (nvptx_alloc): Use CUDA_CALL* macros.
12524         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12525         (nvptx_host2dev): Likewise.
12526         (nvptx_dev2host): Likewise.
12527         (nvptx_wait): Use CUDA_CALL* macros.
12528         (nvptx_wait_async): Likewise.
12529         (nvptx_wait_all): Likewise.
12530         (nvptx_wait_all_async): Likewise.
12531         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12532         use CUDA_CALL* macros, adjust call to map_fini.
12533         (GOMP_OFFLOAD_init_device): Change return type to bool,
12534         adjust code accordingly.
12535         (GOMP_OFFLOAD_fini_device): Likewise.
12536         (GOMP_OFFLOAD_load_image): Adjust calls to
12537         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12538         use CUDA_CALL* macros.
12539         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12540         return code.
12541         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12542         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12543         handle error return.
12544         (GOMP_OFFLOAD_dev2host): Likewise.
12545         (GOMP_OFFLOAD_host2dev): Likewise.
12546         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12547         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12549 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12551         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12552         (acc_free): Likewise.
12553         (acc_memcpy_to_device): Likewise.
12554         (acc_memcpy_from_device): Likewise.
12555         (acc_deviceptr): Likewise.
12556         (acc_hostptr): Likewise.
12557         (acc_is_present): Likewise.
12558         (acc_map_data): Likewise.
12559         (acc_unmap_data): Likewise.
12560         (present_create_copy): Likewise.
12561         (delete_copyout): Likewise.
12562         (update_dev_host): Likewise.
12563         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12564         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12565         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12566         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12567         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12568         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12569         it only runs on nvptx targets.
12570         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12571         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12572         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12573         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12574         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12575         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12576         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12577         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12578         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12579         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12580         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12581         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12582         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12583         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12584         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12585         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12586         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12587         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12588         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12589         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12590         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12591         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12592         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12594 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12596         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12598 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
12600         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12601         to gomp_init_targets_once.
12602         (acc_set_device_type): Remove !cached_base_dev condition on call to
12603         gomp_init_targets_once, move call to before acc_device_lock acquire,
12604         to avoid deadlock.
12605         (acc_get_device_num): Remove !cached_base_dev condition on call to
12606         gomp_init_targets_once.
12607         (acc_set_device_num): Likewise.
12609 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12611         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12613 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12615         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12616         expected partitioning.
12618 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
12620         PR middle-end/70626
12621         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12622         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12623         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12625 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
12627         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12628         non-fatal.
12630 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12632         PR middle-end/70680
12633         * testsuite/libgomp.c/pr70680-1.c: New test.
12634         * testsuite/libgomp.c/pr70680-2.c: New test.
12636 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12638         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12639         pass parameter variables to subroutines.
12641 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12643         PR middle-end/70643
12644         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12646 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
12648         PR testsuite/68242
12649         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12650         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12652 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
12654         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12655         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12656         GOACC_declare prototype.
12658         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12659         Merge this file, and...
12660         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12661         ... this file, and...
12662         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12663         ... this file, and...
12664         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12665         ... this file, and...
12666         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12667         ... this file, and...
12668         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12669         ... this file, and...
12670         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12671         ... this file, and...
12672         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12673         ... this file, and...
12674         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12675         ... this file, and...
12676         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12677         ... this file, and...
12678         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12679         ... this file, and...
12680         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12681         ... this file, and...
12682         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12683         ... this file into...
12684         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12685         file.
12687         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12688         Make failure observable.
12690 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12692         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12693         field.
12694         * target.c (gomp_target_fallback_firstprivate,
12695         gomp_target_unshare_firstprivate): Removed.
12696         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12697         before waiting for dependencies.
12698         (gomp_target_task_fn): Don't copy firstprivate vars here.
12699         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12700         firstprivate_copies here.
12701         (gomp_create_target_task): Don't initialize firstprivate_copies field.
12702         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12703         explicit/implicit firstprivate.
12705 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12707         PR lto/70289
12708         PR ipa/70348
12709         PR tree-optimization/70373
12710         PR middle-end/70533
12711         PR middle-end/70534
12712         PR middle-end/70535
12713         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12714         test.
12715         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12716         test.
12717         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12718         test.
12719         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12720         test.
12721         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12722         test.
12723         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12724         test.
12725         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12726         test.
12727         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12728         test.
12729         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12730         test.
12731         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12732         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12733         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12734         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12735         test.
12736         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12737         test.
12738         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12739         test.
12740         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12741         test.
12742         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12743         coverage.
12744         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12745         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12746         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12747         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12748         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12749         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12750         coverage.
12751         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12752         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12753         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12754         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12755         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12756         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12757         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12758         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12759         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12760         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12761         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12762         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12763         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12764         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12765         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12767 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
12768             James Norris  <jnorris@codesourcery.com>
12769             Nathan Sidwell  <nathan@codesourcery.com>
12770             Julian Brown  <julian@codesourcery.com>
12771             Cesar Philippidis  <cesar@codesourcery.com>
12772             Chung-Lin Tang  <cltang@codesourcery.com>
12773             Tom de Vries  <tom@codesourcery.com>
12775         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12776         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12777         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12778         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12779         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12780         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12781         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12782         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12783         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12784         XFAIL.
12785         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12786         Incorporate...
12787         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12788         file.
12789         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12790         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12791         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12792         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12793         Likewise.
12794         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12795         Likewise.
12796         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12797         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12798         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12799         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12800         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12801         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12802         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12803         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12804         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12805         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12806         Likewise.
12807         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12808         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12809         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12810         file...
12811         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12812         file into...
12813         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12814         file.  Update.
12815         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12816         file.
12817         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12818         Likewise.
12819         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12820         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12821         ... this new file.  Update.
12822         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12823         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12824         ... this new file.  Update.
12825         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12826         file.  Incorporate...
12827         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12828         file, and...
12829         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12830         file, and...
12831         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12832         file.
12833         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12835 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12837         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12838         set-torture-options.
12840 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
12842         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12843         gcc-dg-runtest.
12844         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12845         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12846         -fno-builtin-acc_on_device instead of -O0.
12847         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12848         -O0.
12849         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12850         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12851         Likewise.
12852         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12853         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12854         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12855         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12856         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12857         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12858         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12859         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12860         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12861         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12862         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12863         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12864         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12865         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12866         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12867         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12868         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12869         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12870         Don't specify -O2.
12871         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12872         Likewise.
12873         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12874         Likewise.
12876 2016-03-24  Martin Liska  <mliska@suse.cz>
12878         * plugin/plugin-hsa.c (packet_store_release): New function
12879         that is taken from the HSA runtime manual.
12880         (GOMP_OFFLOAD_run): Use the function.
12882 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12884         PR c++/70376
12885         * testsuite/libgomp.c++/pr70376.C: New test.
12887 2016-03-23  Tom de Vries  <tom@codesourcery.com>
12889         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12890         initialization of lresult and lvresult.
12891         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12893 2016-03-23  James Norris  <jnorris@codesourcery.com>
12894             Daichi Fukuoka <dc-fukuoka@sgi.com>
12896         PR libgomp/69414
12897         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12898         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12899         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12900         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12902 2016-03-23  Martin Liska  <mliska@suse.cz>
12904         PR hsa/70337
12905         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12906         argument just in case a dispatched kernel uses that argument.
12908 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
12910         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12911         -ftree-parallelize-loops/-fopenacc changes.
12912         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12913         Likewise.
12914         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12915         Likewise.
12916         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12917         Likewise.
12918         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12919         Likewise.
12920         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12921         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12923 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
12925         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12926         always_ld_library_path the path to libgcc_s.
12928 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
12930         PR testsuite/70009
12931         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12933 2016-03-09  Tom de Vries  <tom@codesourcery.com>
12935         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12936         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12937         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12938         Same.
12939         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12940         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12941         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12942         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12944 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12946         * testsuite/lib/libgomp.exp
12947         (check_effective_target_hsa_offloading_selected_nocache): New.
12948         (check_effective_target_hsa_offloading_selected): Likewise.
12949         * testsuite/libgomp.hsa.c/c.exp: Likewise.
12950         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12951         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12952         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12953         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12954         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12955         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12956         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12957         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12958         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12959         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12960         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12961         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12962         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12963         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12964         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12965         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12967 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12969         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12970         non-shared memory accelerators.
12971         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12972         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12973         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12974         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12975         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12976         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12977         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12978         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12979         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12981 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12983         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12984         ALWAYS_CFLAGS.
12986 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12988         PR libgomp/69555
12989         * testsuite/libgomp.c++/pr69555-1.C: New test.
12990         * testsuite/libgomp.c++/pr69555-2.C: New test.
12992 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
12993             Martin Jambor  <mjambor@suse.cz>
12995         * testsuite/lib/libgomp.exp
12996         (check_effective_target_offload_device_shared_as): New proc.
12997         * testsuite/libgomp.c++/declare_target-1.C: New test.
12999 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13001         PR driver/68463
13002         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13004 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13006         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13007         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13008         dims.
13009         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13010         -ftree-parallelize-loops/-fopenacc changes.
13011         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13012         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13013         Likewise.
13014         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13015         Likewise.
13016         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13017         Likewise.
13018         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13019         Likewise.
13020         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13021         Likewise.
13022         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13023         Likewise.
13024         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13025         Likewise.
13026         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13027         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13028         Likewise.
13029         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13030         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13031         Likewise.
13032         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13033         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13034         Likewise.
13036 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13038         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13040 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13042         PR driver/69805
13043         * testsuite/libgomp.c/pr69805.c: New test.
13045 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13047         PR lto/67709
13048         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13050 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13052         PR tree-optimization/69599
13053         * testsuite/libgomp.c/omp-nested-3.c: New test.
13054         * testsuite/libgomp.c/pr46032-2.c: New test.
13055         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13056         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13058 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13060         PR lto/69707
13061         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13063 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13065         * testsuite/libgomp.c/target-31.c: Fix testcase.
13067 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13069         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13070         clause.
13071         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13072         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13073         reduction and map clauses.
13074         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13076 2016-02-02  James Norris  <jnorris@codesourcery.com>
13078         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13080 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13082         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13083         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13085         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13086         cases.
13088         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13089         variables.
13090         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13091         (hsa_kmt_lib): Set variables.
13092         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13093         always_ld_library_path.
13094         * Makefile.in: Regenerate.
13095         * configure: Likewise.
13096         * testsuite/Makefile.in: Likewise.
13098         * plugin/configfrag.ac (offload_additional_options)
13099         (offload_additional_lib_paths): Don't amend for hsa offloading.
13100         * configure: Regenerate.
13102         * plugin/configfrag.ac: Don't configure for offloading target if
13103         we don't build the corresponding plugin.
13104         * configure: Regenerate.
13106 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13108         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13109         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13111 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13113         PR tree-optimization/69110
13114         * testsuite/libgomp.c/pr69110.c: New test.
13116 2016-01-25  Richard Biener  <rguenther@suse.de>
13118         PR lto/69393
13119         * testsuite/libgomp.c++/pr69393.C: New testcase.
13121 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13123         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13124         function wasn't mapped to the device with non-shared memory.
13126 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13128         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13130 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13131             Martin Liska  <mliska@suse.cz>
13133         * plugin/Makefrag.am: Add HSA plugin requirements.
13134         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13135         (HSA_RUNTIME_LIB): Likewise.
13136         (HSA_RUNTIME_CPPFLAGS): Likewise.
13137         (HSA_RUNTIME_INCLUDE): New substitution.
13138         (HSA_RUNTIME_LIB): Likewise.
13139         (HSA_RUNTIME_LDFLAGS): Likewise.
13140         (hsa-runtime): New configure option.
13141         (hsa-runtime-include): Likewise.
13142         (hsa-runtime-lib): Likewise.
13143         (PLUGIN_HSA): New substitution variable.
13144         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13145         configure options.
13146         (PLUGIN_HSA_CPPFLAGS): Likewise.
13147         (PLUGIN_HSA_LDFLAGS): Likewise.
13148         (PLUGIN_HSA_LIBS): Likewise.
13149         Check that we have access to HSA run-time.
13150         * libgomp-plugin.h (offload_target_type): New element
13151         OFFLOAD_TARGET_TYPE_HSA.
13152         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13153         args.
13154         (bool gomp_create_target_task): Updated.
13155         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13156         new field can_run_func.
13157         * libgomp_g.h (GOMP_target_ext): Update prototype.
13158         * oacc-host.c (host_run): Added a new parameter args.
13159         * target.c (calculate_firstprivate_requirements): New function.
13160         (copy_firstprivate_data): Likewise.
13161         (gomp_target_fallback_firstprivate): Use them.
13162         (gomp_target_unshare_firstprivate): New function.
13163         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13164         devices.
13165         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13166         pass any args to plugins.
13167         (GOMP_target_ext): Introduce device-specific argument parameter args.
13168         Allow host fallback if device shares memory.  Do not remap data if
13169         device has shared memory.
13170         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
13171         like host fallback for mappings.
13172         (GOMP_target_data): Treat shared memory devices like host fallback.
13173         (GOMP_target_data_ext): Likewise.
13174         (GOMP_target_update): Likewise.
13175         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
13176         gomp_create_target_task.
13177         (GOMP_target_enter_exit_data): Likewise.
13178         (omp_target_alloc): Treat shared memory devices like host fallback.
13179         (omp_target_free): Likewise.
13180         (omp_target_is_present): Likewise.
13181         (omp_target_memcpy): Likewise.
13182         (omp_target_memcpy_rect): Likewise.
13183         (omp_target_associate_ptr): Likewise.
13184         (gomp_load_plugin_for_device): Also load can_run.
13185         * task.c (GOMP_PLUGIN_target_task_completion): Free
13186         firstprivate_copies.
13187         (gomp_create_target_task): Accept new argument args and store it to
13188         ttask.
13189         * plugin/plugin-hsa.c: New file.
13191 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13193         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13194         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13195         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13196         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13197         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13198         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13199         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13200         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13201         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13202         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13203         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13204         Same.
13205         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13206         Same.
13207         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13208         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13209         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13210         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13211         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13212         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13213         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13214         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13215         Same.
13216         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13218 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13220         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13222 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13224         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13226 2016-01-12  James Norris  <jnorris@codesourcery.com>
13228         * libgomp.texi: Updates for OpenACC.
13230 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13232         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13234 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13236         PR fortran/66680
13237         * testsuite/libgomp.fortran/pr66680.f90: New test.
13239 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13241         PR middle-end/68960
13242         * testsuite/libgomp.c/pr68960.c: New test.
13244 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13246         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13247         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13249 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13251         Update copyright years.
13253         * libgomp.texi: Bump @copying's copyright year.
13255 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13257         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13258         dg-additional-options syntax.
13259         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13260         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13261         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13262         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13263         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13264         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13265         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13266         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13267         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13268         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13269         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13270         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13271         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13272         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13273         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13274         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13275         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13276         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13278 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13280         * libgomp.h (REFCOUNT_LINK): Define.
13281         (struct splay_tree_key_s): Add link_key.
13282         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13283         Replace target address of the pointer with target address of newly
13284         mapped object in the splay tree.  Set link pointer on target to the
13285         device address of the mapped object.
13286         (gomp_unmap_vars): Restore target address of the pointer in the splay
13287         tree for REFCOUNT_LINK objects after unmapping.
13288         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13289         declare target link" objects.
13290         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13291         "omp declare target link" objects, which were mapped for the image.
13292         (gomp_exit_data): Restore target address of the pointer in the splay
13293         tree for REFCOUNT_LINK objects after unmapping.
13294         * testsuite/libgomp.c/target-link-1.c: New file.
13296 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13298         * libgomp.h (gomp_device_state): New enum.
13299         (struct gomp_device_descr): Replace is_initialized with state.
13300         (gomp_fini_device): Remove declaration.
13301         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13302         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13303         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13304         (acc_set_device_type): Use state instead of is_initialized.
13305         (acc_set_device_num): Likewise.
13306         * target.c (resolve_device): Use state instead of is_initialized.
13307         Do not initialize finalized device.
13308         (gomp_map_vars): Do nothing if device is finalized.
13309         (gomp_unmap_vars): Likewise.
13310         (gomp_update): Likewise.
13311         (GOMP_offload_register_ver): Use state instead of is_initialized.
13312         (GOMP_offload_unregister_ver): Likewise.
13313         (gomp_init_device): Likewise.
13314         (gomp_unload_device): Likewise.
13315         (gomp_fini_device): Remove.
13316         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13317         (GOMP_target): Go to host fallback if device is finalized.
13318         (GOMP_target_ext): Likewise.
13319         (gomp_exit_data): Do nothing if device is finalized.
13320         (gomp_target_task_fn): Go to host fallback if device is finalized.
13321         (gomp_target_fini): New static function.
13322         (gomp_target_init): Use state instead of is_initialized.
13323         Call gomp_target_fini at exit.
13325 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13327         PR tree-optimization/68716
13328         * testsuite/libgomp.c/omp-nested-2.c: New test.
13330 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13332         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13333         target openacc_nvidia_accel_selected.
13334         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13335         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13336         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13337         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13339 2015-12-01  Julian Brown  <julian@codesourcery.com>
13340             James Norris  <James_Norris@mentor.com>
13342         * oacc-parallel.c (GOACC_host_data): New function.
13343         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13344         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13345         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13346         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13347         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13348         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13349         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13351 2015-11-30  James Norris  <jnorris@codesourcery.com>
13352             Cesar Philippidis  <cesar@codesourcery.com>
13354         libgomp/
13355         * libgomp.oacc-fortran/routine-5.f90: New test.
13356         * libgomp.oacc-fortran/routine-7.f90: New test.
13357         * libgomp.oacc-fortran/routine-9.f90: New test.
13359 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13361         PR tree-optimization/46032
13362         * testsuite/libgomp.c/pr46032.c: New test.
13364 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13366         PR libgomp/68579
13367         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13368         (gomp_create_target_task): Call it before freeing
13369         GOMP_TARGET_TASK_DATA tasks.
13371         PR c/63326
13372         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13373         in between case label and OpenMP standalone directives.
13374         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13376 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
13378         * configure: Regenerate.
13380 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
13382         * testsuite/libgomp.c/target-35.c: New test.
13384 2015-11-22  James Norris  <jnorris@codesourcery.com>
13385             Cesar Philippidis  <cesar@codesourcery.com>
13387         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13388         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13389         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13390         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13391         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13393 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
13395         PR middle-end/68221
13396         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13397         * testsuite/libgomp.c/reduction-12.c: Likewise.
13398         * testsuite/libgomp.c++/reduction-11.C: Likewise.
13399         * testsuite/libgomp.c++/reduction-12.C: Likewise.
13401 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
13403         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13404         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13405         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13406         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13407         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13408         and fix.
13409         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13410         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13412 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
13414         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13415         worker & gang cases.
13416         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13418 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
13420         * config/nvptx/priority_queue.c: New file.
13422 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13424         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13425         sections.
13427 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13428             Aldy Hernandez  <aldyh@redhat.com>
13429             Ilya Verbin  <ilya.verbin@intel.com>
13431         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13432         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13433         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13434         iterators or IV by chunk size.
13435         * parallel.c (gomp_resolve_num_threads): Don't assume that
13436         if thr->ts.team is non-NULL, then pool must be non-NULL.
13437         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13438         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13439         GOMP_PLUGIN_target_task_completion.
13440         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13441         * Makefile.in: Regenerate.
13442         * libgomp.h: Shuffle prototypes and forward definitions around so
13443         priority queues can be defined.
13444         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13445         (enum gomp_target_task_state): New enum.
13446         (struct gomp_target_task): Add state, tgt, task and team fields.
13447         (gomp_create_target_task): Change return type to bool, add
13448         state argument.
13449         (gomp_target_task_fn): Change return type to bool.
13450         (struct gomp_device_descr): Add async_run_func.
13451         (struct gomp_task): Remove children, next_child, prev_child,
13452         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13453         Add pnode field.
13454         (struct gomp_taskgroup): Remove children.
13455         Add taskgroup_queue.
13456         (struct gomp_team): Change task_queue type to a priority queue.
13457         (splay_compare): Define inline.
13458         (priority_queue_offset): New.
13459         (priority_node_to_task): New.
13460         (task_to_priority_node): New.
13461         * oacc-mem.c: Do not include splay-tree.h.
13462         * priority_queue.c: New file.
13463         * priority_queue.h: New file.
13464         * splay-tree.c: Do not include splay-tree.h.
13465         (splay_tree_foreach_internal): New.
13466         (splay_tree_foreach): New.
13467         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13468         (splay_tree_callback): Define typedef.
13469         * target.c (splay_compare): Move to libgomp.h.
13470         (GOMP_target): Don't adjust *thr in any way around running offloaded
13471         task.
13472         (GOMP_target_ext): Likewise.  Handle target nowait.
13473         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13474         return value from gomp_create_target_task, if false, fallthrough
13475         as if no dependencies exist.
13476         (gomp_target_task_fn): Change return type to bool, return true
13477         if the task should have another part scheduled later.  Handle
13478         target nowait.
13479         (gomp_load_plugin_for_device): Initialize async_run.
13480         * task.c (gomp_init_task): Initialize children_queue.
13481         (gomp_clear_parent_in_list): New.
13482         (gomp_clear_parent_in_tree): New.
13483         (gomp_clear_parent): Handle priorities.
13484         (GOMP_task): Likewise.
13485         (priority_queue_move_task_first,
13486         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13487         New functions.
13488         (gomp_create_target_task): Use priority queues.  Change return type
13489         to bool, add state argument, return false if for async
13490         {{enter,exit} data,update} constructs no dependencies need to be
13491         waited for, handle target nowait.  Set task->fn to NULL instead of
13492         gomp_target_task_fn.
13493         (verify_children_queue): Remove.
13494         (priority_list_upgrade_task): New.
13495         (priority_queue_upgrade_task): New.
13496         (verify_task_queue): Remove.
13497         (priority_list_downgrade_task): New.
13498         (priority_queue_downgrade_task): New.
13499         (gomp_task_run_pre): Use priority queues.
13500         Abstract code out to priority_queue_downgrade_task.
13501         (gomp_task_run_post_handle_dependers): Use priority queues.
13502         (gomp_task_run_post_remove_parent): Likewise.
13503         (gomp_task_run_post_remove_taskgroup): Likewise.
13504         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
13505         tasks specially.
13506         (GOMP_taskwait): Likewise.
13507         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
13508         priority-queue_upgrade_task.
13509         (GOMP_taskgroup_start): Use priority queues.
13510         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
13511         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
13512         barrier.
13513         * taskloop.c (GOMP_taskloop): Handle priorities.
13514         * team.c (gomp_new_team): Call priority_queue_init.
13515         (free_team): Call priority_queue_free.
13516         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13517         team created for target nowait in implicit parallel region.
13518         (gomp_team_start): For nested check, test thr->ts.level instead of
13519         thr->ts.team != NULL.
13520         * testsuite/libgomp.c/doacross-3.c: New test.
13521         * testsuite/libgomp.c/ordered-5.c: New test.
13522         * testsuite/libgomp.c/priority.c: New test.
13523         * testsuite/libgomp.c/target-31.c: New test.
13524         * testsuite/libgomp.c/target-32.c: New test.
13525         * testsuite/libgomp.c/target-33.c: New test.
13526         * testsuite/libgomp.c/target-34.c: New test.
13528 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13530         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13532         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13533         loop is sequential.
13535 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13537         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13538         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13540 2015-11-12  James Norris  <jnorris@codesourcery.com>
13541             Joseph Myers  <joseph@codesourcery.com>
13543         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13544         * oacc-parallel.c (GOACC_declare): New function.
13545         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13546         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13547         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13548         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13549         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13551 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
13553         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13555 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
13557         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13558         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13560 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13562         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13563         inadvertent commit.
13565 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13567         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13568         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13569         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13570         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13571         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13573 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
13575         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13576         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13578 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
13579             Ilya Verbin  <ilya.verbin@intel.com>
13581         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13582         GOMP_loop_nonmonotonic_dynamic_start,
13583         GOMP_loop_nonmonotonic_guided_next,
13584         GOMP_loop_nonmonotonic_guided_start,
13585         GOMP_loop_ull_nonmonotonic_dynamic_next,
13586         GOMP_loop_ull_nonmonotonic_dynamic_start,
13587         GOMP_loop_ull_nonmonotonic_guided_next,
13588         GOMP_loop_ull_nonmonotonic_guided_start,
13589         GOMP_parallel_loop_nonmonotonic_dynamic,
13590         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13591         (GOMP_target_41): Renamed to ...
13592         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13593         arguments.
13594         (GOMP_target_data_41): Renamed to ...
13595         (GOMP_target_data_ext): ... this.
13596         (GOMP_target_update_41): Renamed to ...
13597         (GOMP_target_update_ext): ... this.
13598         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13599         GOMP_target_data_ext and GOMP_target_update_ext instead of
13600         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13601         Export GOMP_loop_nonmonotonic_dynamic_next,
13602         GOMP_loop_nonmonotonic_dynamic_start,
13603         GOMP_loop_nonmonotonic_guided_next,
13604         GOMP_loop_nonmonotonic_guided_start,
13605         GOMP_loop_ull_nonmonotonic_dynamic_next,
13606         GOMP_loop_ull_nonmonotonic_dynamic_start,
13607         GOMP_loop_ull_nonmonotonic_guided_next,
13608         GOMP_loop_ull_nonmonotonic_guided_start,
13609         GOMP_parallel_loop_nonmonotonic_dynamic and
13610         GOMP_parallel_loop_nonmonotonic_guided.
13611         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13612         GOMP_parallel_loop_nonmonotonic_guided,
13613         GOMP_loop_nonmonotonic_dynamic_start,
13614         GOMP_loop_nonmonotonic_guided_start,
13615         GOMP_loop_nonmonotonic_dynamic_next,
13616         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13617         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13618         GOMP_loop_ull_nonmonotonic_guided_start,
13619         GOMP_loop_ull_nonmonotonic_dynamic_next,
13620         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13621         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13622         functions.
13623         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
13624         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13625         Use gomp_map_val function.
13626         (gomp_target_fallback_firstprivate): New static function.
13627         (GOMP_target_41): Renamed to ...
13628         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13629         arguments.  Move firstprivate fallback handling into a new
13630         function.
13631         (GOMP_target_data_41): Renamed to ...
13632         (GOMP_target_data_ext): ... this.
13633         (GOMP_target_update_41): Renamed to ...
13634         (GOMP_target_update_ext): ... this.
13635         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13636         gomp_map_0len_lookup instead of gomp_map_lookup.
13637         (omp_target_is_present): Use gomp_map_0len_lookup instead of
13638         gomp_map_lookup.
13639         * testsuite/libgomp.c/target-28.c: Likewise.
13640         * testsuite/libgomp.c/monotonic-1.c: New test.
13641         * testsuite/libgomp.c/monotonic-2.c: New test.
13642         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13643         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13644         * testsuite/libgomp.c/pr66199-5.c: New test.
13645         * testsuite/libgomp.c/pr66199-6.c: New test.
13646         * testsuite/libgomp.c/pr66199-7.c: New test.
13647         * testsuite/libgomp.c/pr66199-8.c: New test.
13648         * testsuite/libgomp.c/pr66199-9.c: New test.
13649         * testsuite/libgomp.c/reduction-11.c: New test.
13650         * testsuite/libgomp.c/reduction-12.c: New test.
13651         * testsuite/libgomp.c/reduction-13.c: New test.
13652         * testsuite/libgomp.c/reduction-14.c: New test.
13653         * testsuite/libgomp.c/reduction-15.c: New test.
13654         * testsuite/libgomp.c/target-12.c (main): Adjust for
13655         omp_target_is_present change for one-past-last element.
13656         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13657         the same var is both mapped and privatized.
13658         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13659         handling of zero-length array sections.
13660         * testsuite/libgomp.c/target-28.c: New test.
13661         * testsuite/libgomp.c/target-29.c: New test.
13662         * testsuite/libgomp.c/target-30.c: New test.
13663         * testsuite/libgomp.c/target-teams-1.c: New test.
13664         * testsuite/libgomp.c++/member-6.C: New test.
13665         * testsuite/libgomp.c++/member-7.C: New test.
13666         * testsuite/libgomp.c++/monotonic-1.C: New test.
13667         * testsuite/libgomp.c++/monotonic-2.C: New test.
13668         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13669         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13670         * testsuite/libgomp.c++/pr66199-3.C: New test.
13671         * testsuite/libgomp.c++/pr66199-4.C: New test.
13672         * testsuite/libgomp.c++/pr66199-5.C: New test.
13673         * testsuite/libgomp.c++/pr66199-6.C: New test.
13674         * testsuite/libgomp.c++/pr66199-7.C: New test.
13675         * testsuite/libgomp.c++/pr66199-8.C: New test.
13676         * testsuite/libgomp.c++/pr66199-9.C: New test.
13677         * testsuite/libgomp.c++/reduction-11.C: New test.
13678         * testsuite/libgomp.c++/reduction-12.C: New test.
13679         * testsuite/libgomp.c++/target-13.C: New test.
13680         * testsuite/libgomp.c++/target-14.C: New test.
13681         * testsuite/libgomp.c++/target-15.C: New test.
13682         * testsuite/libgomp.c++/target-16.C: New test.
13683         * testsuite/libgomp.c++/target-17.C: New test.
13684         * testsuite/libgomp.c++/target-18.C: New test.
13685         * testsuite/libgomp.c++/target-19.C: New test.
13687 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13689         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13690         and reduction copy.
13691         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13692         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13693         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13694         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13695         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13696         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13697         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13698         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13699         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13700         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13701         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13702         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13703         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13704         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13706 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13708         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13709         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13710         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13711         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13712         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13713         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13714         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13715         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13717 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
13719         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13720         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13721         (GOMP_OFFLOAD_openacc_parallel): Likewise.
13722         * oacc-host.c (host_openacc_exec): Likewise.
13723         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13725 2015-11-03  Julian Brown  <julian@codesourcery.com>
13726             Thomas Schwinge  <thomas@codesourcery.com>
13728         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13729         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13730         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13731         Likewise.
13732         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13733         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13735 2015-11-03  James Norris  <jnorris@codesourcery.com>
13737         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13738         file.
13739         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13740         Likewise.
13741         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13742         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13743         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13744         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13745         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13747 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
13749         * openacc.h (enum acc_device_t): Reformat. Ensure layout
13750         compatibility.
13751         (enum acc_async_t): Reformat.
13752         (acc_on_device): Declare compatible with builtin and provide C++
13753         wrapper.
13754         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13756 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
13757             Cesar Philippidis  <cesar@codesourcery.com>
13759         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13760         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13761         ... this.  Add a description of the test at the top of the file.
13762         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13763         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13764         ... this.  Add a description of the test at the top of the file.
13766 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
13768         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13769         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13770         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13771         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13772         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13773         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13775 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
13777         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13778         dimensions.
13780 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
13782         PR testsuite/68063
13783         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13785 2015-10-27  James Norris  <jnorris@codesourcery.com>
13787         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13788         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13790 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
13792         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13793         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13795         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13796         acc_device_nvidia usage.
13797         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13798         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13799         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13801         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13802         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13804         PR libgomp/66518
13805         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13807         PR libgomp/65437
13808         PR libgomp/66518
13809         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13810         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13812 2015-10-23  Tom de Vries  <tom@codesourcery.com>
13814         PR testsuite/68063
13815         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13817 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
13819         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13820         vector_length.
13821         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13823 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
13824             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
13826         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13827         to 0 when mapnum is 0.
13829 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13831         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13832         Cast to int from int32_t.
13834 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
13835             Aldy Hernandez  <aldyh@redhat.com>
13836             Ilya Verbin  <ilya.verbin@intel.com>
13838         * config/linux/affinity.c (omp_get_place_num_procs,
13839         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13840         * config/linux/doacross.h: New file.
13841         * config/posix/affinity.c (omp_get_place_num_procs,
13842         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13843         * config/posix/doacross.h: New file.
13844         * env.c: Include gomp-constants.h.
13845         (struct gomp_task_icv): Rename run_sched_modifier to
13846         run_sched_chunk_size.
13847         (gomp_max_task_priority_var): New variable.
13848         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13849         (handle_omp_display_env): Change _OPENMP value from 201307 to
13850         201511.  Print OMP_MAX_TASK_PRIORITY.
13851         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13852         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13853         chunk_size and run_sched_modifier to run_sched_chunk_size.
13854         (omp_get_max_task_priority, omp_get_initial_device,
13855         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13856         omp_get_partition_place_nums): New functions.
13857         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13858         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13859         to chunk_size.
13860         (omp_get_num_places_, omp_get_place_num_procs_,
13861         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13862         omp_get_place_proc_ids_8_, omp_get_place_num_,
13863         omp_get_partition_num_places_, omp_get_partition_place_nums_,
13864         omp_get_partition_place_nums_8_, omp_get_initial_device_,
13865         omp_get_max_task_priority_): New functions.
13866         * libgomp_g.h (GOMP_loop_doacross_static_start,
13867         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13868         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13869         GOMP_loop_ull_doacross_dynamic_start,
13870         GOMP_loop_ull_doacross_guided_start,
13871         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13872         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13873         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13874         GOMP_target_data_41, GOMP_target_update_41,
13875         GOMP_target_enter_exit_data): New prototypes.
13876         (GOMP_task): Add prototype argument.
13877         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13878         (struct gomp_doacross_work_share): New type.
13879         (struct gomp_work_share): Add doacross field.
13880         (struct gomp_task_icv): Rename run_sched_modifier to
13881         run_sched_chunk_size.
13882         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13883         GOMP_TASK_UNDEFERRED.  Add comments.
13884         (struct gomp_task_depend_entry): Add comments.
13885         (struct gomp_task): Likewise.
13886         (struct gomp_taskgroup): Likewise.
13887         (struct gomp_target_task): New type.
13888         (struct gomp_team): Add comment.
13889         (gomp_get_place_proc_ids_8, gomp_doacross_init,
13890         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13891         gomp_create_target_task, gomp_target_task_fn): New prototypes.
13892         (struct target_var_desc): New type.
13893         (struct target_mem_desc): Adjust comment.  Use struct
13894         target_var_desc instead of splay_tree_key for list.
13895         (REFCOUNT_INFINITY): Define.
13896         (struct splay_tree_key_s): Remove copy_from field.
13897         (struct gomp_device_descr): Add dev2dev_func field.
13898         (enum gomp_map_vars_kind): New enum.
13899         (gomp_map_vars): Add one argument.
13900         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13901         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13902         omp_get_place_num_procs, omp_get_place_num_procs_,
13903         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13904         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13905         omp_get_place_num_, omp_get_partition_num_places,
13906         omp_get_partition_num_places_, omp_get_partition_place_nums,
13907         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13908         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13909         omp_target_free, omp_target_is_present, omp_target_memcpy,
13910         omp_target_memcpy_rect, omp_target_associate_ptr and
13911         omp_target_disassociate_ptr.
13912         (GOMP_4.0.2): Renamed to ...
13913         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
13914         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13915         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13916         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13917         GOMP_loop_doacross_static_start, GOMP_doacross_post,
13918         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13919         GOMP_loop_ull_doacross_guided_start,
13920         GOMP_loop_ull_doacross_runtime_start,
13921         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13922         GOMP_doacross_ull_wait.
13923         * libgomp.texi: Document omp_get_max_task_priority.
13924         Rename modifier argument to chunk_size for omp_set_schedule and
13925         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
13926         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13927         to run_sched_chunk_size renaming.
13928         (GOMP_loop_ordered_runtime_start): Likewise.
13929         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13930         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13931         GOMP_parallel_loop_runtime_start): New functions.
13932         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13933         to run_sched_chunk_size renaming.
13934         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13935         GOMP_loop_doacross_guided_start): New functions or aliases.
13936         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13937         run_sched_modifier to run_sched_chunk_size renaming.
13938         (GOMP_loop_ull_ordered_runtime_start): Likewise.
13939         (gomp_loop_ull_doacross_static_start,
13940         gomp_loop_ull_doacross_dynamic_start,
13941         gomp_loop_ull_doacross_guided_start,
13942         GOMP_loop_ull_doacross_runtime_start): New functions.
13943         (GOMP_loop_ull_doacross_static_start,
13944         GOMP_loop_ull_doacross_dynamic_start,
13945         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13946         * oacc-mem.c (acc_map_data, present_create_copy,
13947         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13948         to gomp_map_vars.
13949         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13950         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13951         instead of false to gomp_map_vars.
13952         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
13953         * omp.h.in (omp_lock_hint_t): New type.
13954         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13955         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13956         omp_get_place_num, omp_get_partition_num_places,
13957         omp_get_partition_place_nums, omp_get_initial_device,
13958         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13959         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13960         omp_target_associate_ptr, omp_target_disassociate_ptr): New
13961         prototypes.
13962         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13963         (omp_lock_hint_none, omp_lock_hint_uncontended,
13964         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13965         omp_lock_hint_speculative): New parameters.
13966         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13967         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13968         omp_get_place_num, omp_get_partition_num_places,
13969         omp_get_partition_place_nums, omp_get_initial_device,
13970         omp_get_max_task_priority): New interfaces.
13971         (omp_set_schedule, omp_get_schedule): Rename modifier argument
13972         to chunk_size.
13973         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13974         (omp_lock_hint_none, omp_lock_hint_uncontended,
13975         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13976         omp_lock_hint_speculative): New parameters.
13977         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13978         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13979         omp_get_place_num, omp_get_partition_num_places,
13980         omp_get_partition_place_nums, omp_get_initial_device,
13981         omp_get_max_task_priority): New functions and subroutines.
13982         * ordered.c: Include stdarg.h and string.h.
13983         (MAX_COLLAPSED_BITS): Define.
13984         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13985         gomp_doacross_ull_init, GOMP_doacross_ull_post,
13986         GOMP_doacross_ull_wait): New functions.
13987         * target.c: Include errno.h.
13988         (resolve_device): If device is not initialized, call
13989         gomp_init_device on it.
13990         (gomp_map_lookup): New function.
13991         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13992         Don't bump refcount if REFCOUNT_INFINITY.  Handle
13993         GOMP_MAP_ALWAYS_TO_P.
13994         (get_kind): Rename is_openacc argument to short_mapkind.
13995         (gomp_map_pointer): Use gomp_map_lookup.
13996         (gomp_map_fields_existing): New function.
13997         (gomp_map_vars): Rename is_openacc argument to short_mapkind
13998         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
13999         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14000         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14001         Adjust for tgt->list changed type and copy_from living in there.
14002         (gomp_copy_from_async): Adjust for tgt->list changed type and
14003         copy_from living in there.
14004         (gomp_unmap_vars): Likewise.
14005         (gomp_update): Likewise.  Rename is_openacc argument to
14006         short_mapkind.  Don't fail if object is not mapped.
14007         (gomp_load_image_to_device): Initialize refcount to
14008         REFCOUNT_INFINITY.
14009         (gomp_target_fallback): New function.
14010         (gomp_get_target_fn_addr): Likewise.
14011         (GOMP_target): Adjust gomp_map_vars caller, use
14012         gomp_get_target_fn_addr and gomp_target_fallback.
14013         (GOMP_target_41): New function.
14014         (gomp_target_data_fallback): New function.
14015         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14016         (GOMP_target_data_41): New function.
14017         (GOMP_target_update): Adjust gomp_update caller.
14018         (GOMP_target_update_41): New function.
14019         (gomp_exit_data, GOMP_target_enter_exit_data,
14020         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14021         omp_target_is_present, omp_target_memcpy,
14022         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14023         omp_target_associate_ptr, omp_target_disassociate_ptr,
14024         gomp_load_plugin_for_device): New functions.
14025         * task.c: Include gomp-constants.h.  Include taskloop.c
14026         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14027         (gomp_task_handle_depend): New function.
14028         (GOMP_task): Use it.  Add priority argument.  Use
14029         gomp-constant.h constants instead of hardcoded numbers.
14030         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14031         (gomp_create_target_task): New function.
14032         (verify_children_queue, verify_taskgroup_queue,
14033         verify_task_queue): New functions.
14034         (gomp_task_run_pre): Call verify_*_queue functions.
14035         If an upcoming tied task is about to leave the sibling or
14036         taskgroup queues in an invalid state, adjust appropriately.
14037         Remove taskgroup argument.  Add comments.
14038         (gomp_task_run_post_handle_dependers): Add comments.
14039         (gomp_task_run_post_remove_parent): Likewise.
14040         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14041         (GOMP_taskwait): Likewise.  Add comments.
14042         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14043         problem such that the first non parent_depends_on task does not
14044         end up at the end of the children queue.
14045         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14046         GOMP_TASK_UNDEFERRED.
14047         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14048         * taskloop.c: New file.
14049         * testsuite/lib/libgomp.exp
14050         (check_effective_target_offload_device_nonshared_as): New proc.
14051         * testsuite/libgomp.c/affinity-2.c: New test.
14052         * testsuite/libgomp.c/doacross-1.c: New test.
14053         * testsuite/libgomp.c/doacross-2.c: New test.
14054         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14055         Add map clause to target.
14056         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14057         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14058         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14059         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14060         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14061         Likewise.
14062         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14063         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14064         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14065         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14066         not defined.  Use those where needed.
14067         * testsuite/libgomp.c/for-4.c: New test.
14068         * testsuite/libgomp.c/for-5.c: New test.
14069         * testsuite/libgomp.c/for-6.c: New test.
14070         * testsuite/libgomp.c/linear-1.c: New test.
14071         * testsuite/libgomp.c/ordered-4.c: New test.
14072         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14073         only allowed on the loop iterator.
14074         * testsuite/libgomp.c/pr66199-3.c: New test.
14075         * testsuite/libgomp.c/pr66199-4.c: New test.
14076         * testsuite/libgomp.c/reduction-7.c: New test.
14077         * testsuite/libgomp.c/reduction-8.c: New test.
14078         * testsuite/libgomp.c/reduction-9.c: New test.
14079         * testsuite/libgomp.c/reduction-10.c: New test.
14080         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14081         map(tofrom:s).
14082         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14083         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14084         * testsuite/libgomp.c/target-11.c: New test.
14085         * testsuite/libgomp.c/target-12.c: New test.
14086         * testsuite/libgomp.c/target-13.c: New test.
14087         * testsuite/libgomp.c/target-14.c: New test.
14088         * testsuite/libgomp.c/target-15.c: New test.
14089         * testsuite/libgomp.c/target-16.c: New test.
14090         * testsuite/libgomp.c/target-17.c: New test.
14091         * testsuite/libgomp.c/target-18.c: New test.
14092         * testsuite/libgomp.c/target-19.c: New test.
14093         * testsuite/libgomp.c/target-20.c: New test.
14094         * testsuite/libgomp.c/target-21.c: New test.
14095         * testsuite/libgomp.c/target-22.c: New test.
14096         * testsuite/libgomp.c/target-23.c: New test.
14097         * testsuite/libgomp.c/target-24.c: New test.
14098         * testsuite/libgomp.c/target-25.c: New test.
14099         * testsuite/libgomp.c/target-26.c: New test.
14100         * testsuite/libgomp.c/target-27.c: New test.
14101         * testsuite/libgomp.c/taskloop-1.c: New test.
14102         * testsuite/libgomp.c/taskloop-2.c: New test.
14103         * testsuite/libgomp.c/taskloop-3.c: New test.
14104         * testsuite/libgomp.c/taskloop-4.c: New test.
14105         * testsuite/libgomp.c++/ctor-13.C: New test.
14106         * testsuite/libgomp.c++/doacross-1.C: New test.
14107         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14108         Replace offload_device with offload_device_nonshared_as.
14109         * testsuite/libgomp.c++/for-12.C: New test.
14110         * testsuite/libgomp.c++/for-13.C: New test.
14111         * testsuite/libgomp.c++/for-14.C: New test.
14112         * testsuite/libgomp.c++/linear-1.C: New test.
14113         * testsuite/libgomp.c++/member-1.C: New test.
14114         * testsuite/libgomp.c++/member-2.C: New test.
14115         * testsuite/libgomp.c++/member-3.C: New test.
14116         * testsuite/libgomp.c++/member-4.C: New test.
14117         * testsuite/libgomp.c++/member-5.C: New test.
14118         * testsuite/libgomp.c++/ordered-1.C: New test.
14119         * testsuite/libgomp.c++/reduction-5.C: New test.
14120         * testsuite/libgomp.c++/reduction-6.C: New test.
14121         * testsuite/libgomp.c++/reduction-7.C: New test.
14122         * testsuite/libgomp.c++/reduction-8.C: New test.
14123         * testsuite/libgomp.c++/reduction-9.C: New test.
14124         * testsuite/libgomp.c++/reduction-10.C: New test.
14125         * testsuite/libgomp.c++/reference-1.C: New test.
14126         * testsuite/libgomp.c++/simd14.C: New test.
14127         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14128         * testsuite/libgomp.c++/target-5.C: New test.
14129         * testsuite/libgomp.c++/target-6.C: New test.
14130         * testsuite/libgomp.c++/target-7.C: New test.
14131         * testsuite/libgomp.c++/target-8.C: New test.
14132         * testsuite/libgomp.c++/target-9.C: New test.
14133         * testsuite/libgomp.c++/target-10.C: New test.
14134         * testsuite/libgomp.c++/target-11.C: New test.
14135         * testsuite/libgomp.c++/target-12.C: New test.
14136         * testsuite/libgomp.c++/taskloop-1.C: New test.
14137         * testsuite/libgomp.c++/taskloop-2.C: New test.
14138         * testsuite/libgomp.c++/taskloop-3.C: New test.
14139         * testsuite/libgomp.c++/taskloop-4.C: New test.
14140         * testsuite/libgomp.c++/taskloop-5.C: New test.
14141         * testsuite/libgomp.c++/taskloop-6.C: New test.
14142         * testsuite/libgomp.c++/taskloop-7.C: New test.
14143         * testsuite/libgomp.c++/taskloop-8.C: New test.
14144         * testsuite/libgomp.c++/taskloop-9.C: New test.
14145         * testsuite/libgomp.fortran/affinity1.f90: New test.
14146         * testsuite/libgomp.fortran/affinity2.f90: New test.
14148 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14150         PR tree-optimization/67476
14151         * testsuite/libgomp.c/autopar-3.c: New test.
14152         * testsuite/libgomp.c/autopar-4.c: New test.
14153         * testsuite/libgomp.c/autopar-5.c: New test.
14154         * testsuite/libgomp.c/autopar-6.c: New test.
14155         * testsuite/libgomp.c/autopar-7.c: New test.
14156         * testsuite/libgomp.c/autopar-8.c: New test.
14158 2015-10-12  James Norris  <jnorris@codesourcery.com>
14160         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14161         initializer.
14163 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14165         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14166         using load_gcc_lib.
14168 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
14170         * oacc-ptx.h: Remove file, moving its content into...
14171         * config/nvptx/fortran.c: ... here...
14172         * config/nvptx/oacc-init.c: ..., here...
14173         * config/nvptx/oacc-parallel.c: ..., and here.
14174         * config/nvptx/openacc.f90: New file.
14175         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14176         (link_ptx): Don't link in predefined bits of PTX code.
14178 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
14179             Bernd Schmidt <bernds@codesourcery.com>
14181         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14182         (struct targ_ptx_obj): New.
14183         (nvptx_tdata): Move earlier, change data format.
14184         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
14185         objects.
14186         (GOMP_OFFLOAD_load_image): Adjust.
14188 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14190         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14191         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14192         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14193         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14194         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14195         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14196         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14197         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14198         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14199         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14200         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14201         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14202         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14203         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14204         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14205         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14206         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14207         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14208         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14209         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14210         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14211         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14212         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14213         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14214         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14215         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14216         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14217         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14218         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14219         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14220         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14221         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14222         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14223         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14224         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14225         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14226         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14227         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14228         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14229         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14230         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14231         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14232         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14233         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14234         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14235         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14236         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14237         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14238         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14239         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14240         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14241         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14242         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14243         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14244         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14245         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14246         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14247         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14248         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14249         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14250         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14251         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14252         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14254 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14256         * oacc-init.c (acc_on_device): Force optimization level.
14258 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14260         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14261         (cuda_errlist): Delete.
14262         (cuda_error): Reimplement.
14264 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14266         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14267         array.
14268         * libgomp.map (GOACC_parallel_keyed): New.
14269         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14270         all callers.
14271         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14272         and take keyed varargs list.  Adjust call to exec_func.
14273         (GOACC_parallel): Force host fallback.
14274         * libgomp_g.h (GOACC_parallel): Remove.
14275         (GOACC_parallel_keyed): Declare.
14276         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14277         (struct targ_gn_descriptor): Replace name field with launch field.
14278         (nvptx_exec): Lose separate geometry args, take array.  Process
14279         dynamic dimensions and adjust.
14280         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14281         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14282         data.
14283         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14284         passing.
14285         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14286         passing.
14288 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14290         PR libgomp/67141
14291         * oacc-int.h (goacc_host_init): Add declaration.
14292         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14293         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14295 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14296             Sebastian Pop  <s.pop@samsung.com>
14298         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14299         match o/p.
14300         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14301         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14302         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14303         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14304         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14306 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14308         * configure.tgt: Add missing ;; in between nvptx and rtems
14309         snippets.
14311 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14313         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14314         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14315         (gomp_thread_pool_reservoir): Add priority member.
14316         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14317         priority.
14318         (parse_thread_pools): Likewise.
14319         * team.c (gomp_team_start): Call configuration provided
14320         gomp_adjust_thread_attr(). Destroy thread attributes if
14321         necessary.
14322         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14324 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14326         * config/posix/pool.h: New.
14327         * config/rtems/pool.h: Likewise.
14328         * config/rtems/proc.c: Likewise.
14329         * libgomp.h (gomp_thread_destructor): Declare.
14330         * team.c: Include configuration provided "pool.h".
14331         (gomp_get_thread_pool): Define in configuration.
14332         (gomp_team_end): Call configuration defined
14333         gomp_release_thread_pool().
14335 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14337         * config/rtems/bar.c: New.
14338         * config/rtems/bar.h: Likewise.
14339         * config/rtems/mutex.c: Likewise.
14340         * config/rtems/mutex.h: Likewise.
14341         * config/rtems/sem.c: Likewise.
14342         * config/rtems/sem.h: Likewise.
14343         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14344         <sys/lock.h> header file.
14345         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14346         supported by Newlib.
14347         * configure: Regenerate.
14349 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14351         * team.c (gomp_new_thread_pool): Delete and move content to ...
14352         (gomp_get_thread_pool): ... new function.  Allocate and
14353         initialize thread pool on demand.
14354         (get_last_team): Use gomp_get_thread_pool().
14355         (gomp_team_start): Delete thread pool initialization.
14357 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14359         PR tree-optimization/65637
14360         * testsuite/libgomp.c/autopar-2.c: New test.
14362 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14364         PR tree-optimization/46193
14365         * testsuite/libgomp.c/pr46193.c: New test.
14367 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14369         libgomp/
14370         * libgomp.map: Add 4.0.2 version.
14371         * target.c (offload_image_descr): Add version field.
14372         (gomp_load_image_to_device): Add version argument.  Adjust plugin
14373         call.  Improve load mismatch diagnostic.
14374         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
14375         call.
14376         (GOMP_offload_regster): Make stub function, move bulk to ...
14377         (GOMP_offload_register_ver): ... here.  Process version argument.
14378         (GOMP_offload_unregister): Make stub function, move bulk to ...
14379         (GOMP_offload_unregister_ver): ... here.  Process version argument.
14380         (gomp_init_device): Process version field.
14381         (gomp_unload_device): Process version field.
14382         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14383         macros.  Check plugin version.
14384         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
14385         loader and unloader types.
14386         * oacc-host.c: Include gomp-constants.h.
14387         (host_version): New.
14388         (host_load_image, host_unload_image): Adjust.
14389         (host_dispatch): Add host_version.
14390         * plugin/plugin-nvptx.c: Include gomp-constants.h.
14391         (GOMP_OFFLOAD_version): New.
14392         (GOMP_OFFLOAD_load_image): Add version arg and check it.
14393         (GOMP_OFFLOAD_unload_image): Likewise.
14394         * plugin/plugin-host.c: Include gomp-constants.h.
14395         (GOMP_OFFLOAD_version): New.
14396         (GOMP_OFFLOAD_load_image): Add version arg.
14397         (GOMP_OFFLOAD_unload_image): Likewise.
14399 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14401         PR tree-optimization/65468
14402         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14404 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14406         PR tree-optimization/65468
14407         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14409 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
14411         PR libgomp/66761
14412         PR libgomp/67303
14413         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14414         (gomp_iter_guided_next): Idem.
14415         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14416         (gomp_iter_ull_guided_next): Idem.
14417         * config/linux/wait.h (do_spin): Idem.
14419 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14421         * libgomp-plugin.h (enum offload_target_type): Remove
14422         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14423         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14424         * openacc.h (enum acc_device_t): Likewise.
14425         * openacc_lib.h: Likewise.
14426         * oacc-init.c (name_of_acc_device_t): Don't handle it.
14427         (acc_on_device): Just use __builtin_acc_on_device.
14428         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14429         of acc_on_device builtin.
14430         * plugin/plugin-host.h: Remove file.
14431         * plugin/plugin-host.c: Likewise, but salvage some content into...
14432         * oacc-host.c: ... this file.
14433         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14434         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14435         * Makefile.in: Regenerate.
14436         * configure: Likewise.
14437         * testsuite/lib/libgomp.exp
14438         (check_effective_target_openacc_host_nonshm_selected): Remove.
14439         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14440         ACC_DEVICE_TYPE=host_nonshm.
14441         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14442         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14443         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14444         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14445         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14446         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14448 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14449             Jakub Jelinek  <jakub@redhat.com>
14451         * config/nvptx/affinity.c: New file.
14452         * config/nvptx/alloc.c: Likewise.
14453         * config/nvptx/bar.c: Likewise.
14454         * config/nvptx/barrier.c: Likewise.
14455         * config/nvptx/critical.c: Likewise.
14456         * config/nvptx/env.c: Likewise.
14457         * config/nvptx/error.c: Likewise.
14458         * config/nvptx/fortran.c: Likewise.
14459         * config/nvptx/iter.c: Likewise.
14460         * config/nvptx/iter_ull.c: Likewise.
14461         * config/nvptx/libgomp-plugin.c: Likewise.
14462         * config/nvptx/lock.c: Likewise.
14463         * config/nvptx/loop.c: Likewise.
14464         * config/nvptx/loop_ull.c: Likewise.
14465         * config/nvptx/mutex.c: Likewise.
14466         * config/nvptx/oacc-async.c: Likewise.
14467         * config/nvptx/oacc-cuda.c: Likewise.
14468         * config/nvptx/oacc-host.c: Likewise.
14469         * config/nvptx/oacc-init.c: Likewise.
14470         * config/nvptx/oacc-mem.c: Likewise.
14471         * config/nvptx/oacc-parallel.c: Likewise.
14472         * config/nvptx/oacc-plugin.c: Likewise.
14473         * config/nvptx/omp-lock.h: Likewise.
14474         * config/nvptx/ordered.c: Likewise.
14475         * config/nvptx/parallel.c: Likewise.
14476         * config/nvptx/proc.c: Likewise.
14477         * config/nvptx/ptrlock.c: Likewise.
14478         * config/nvptx/sections.c: Likewise.
14479         * config/nvptx/sem.c: Likewise.
14480         * config/nvptx/single.c: Likewise.
14481         * config/nvptx/splay-tree.c: Likewise.
14482         * config/nvptx/target.c: Likewise.
14483         * config/nvptx/task.c: Likewise.
14484         * config/nvptx/team.c: Likewise.
14485         * config/nvptx/time.c: Likewise.
14486         * config/nvptx/work.c: Likewise.
14487         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14488         * configure: Regenerate.
14489         * configure.tgt (config_path): Set to "nvptx" for target
14490         nvptx*-*-*.
14492 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14494         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14496 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14498         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14499         (cuda_errlist): Constify.
14500         (errmsg):  Move into ...
14501         (cuda_error): ... here.  Make smaller.
14502         (_XSTR, _STR): Delete.
14503         (cuda_synames): Delete.
14504         (verify_device_library): Delete.
14505         (nvptx_init): Don't call it.
14507 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14509         * testsuite/libgomp.c/uns-outer-4.c: New test.
14511 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14513         * testsuite/libgomp.c/pr66714.c: New test.
14515 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14517         PR libgomp/66950
14518         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14519         (fib_ref): New function.
14520         (fib): Correct corner cases in the recursion.
14521         (main): Replace the non-simd loop with fib_ref call.
14522         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14523         subroutine.
14524         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
14525         for the last array element value.  Replace the non-simd loop with
14526         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
14527         of the last array element with according Fibonacci sequence element.
14528         (fib): Correct corner cases in the recursion.
14530 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14532         * target.c (gomp_offload_image_to_device): Rename to ...
14533         (gomp_load_image_to_device): ... here.
14534         (GOMP_offload_register): Adjust call.
14535         (gomp_init_device): Likewise.
14536         (gomp_unload_image_from_device): New.  Broken out of ...
14537         (GOMP_offload_unregister): ... here.  Call it.
14538         (gomp_unload_device): New.
14539         * libgomp.h (gomp_unload_device): Declare.
14540         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14541         mem maps.
14543 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14545         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14546         wait=-specific if.
14547         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14548         !=0 condition.
14549         (goacc_waits): Move !num_waits handling to ...
14550         (GOACC_wait): ... here, the only caller that might have zero waits.
14552         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14553         (struct ptx_image_data): Move earlier, add fns field.
14554         (struct ptx_device): Add images and image_lock fields.
14555         (ptx_images, ptx_image_lock): Delete.
14556         (nvptx_open_device): Initialize images and image_lock fields.
14557         (nvptx_close_device): Destroy image_lock.
14558         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14559         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14560         fields.
14562 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14564         * target.c (GOMP_offload_register): Use int for device type arg.
14565         (GOMP_offload_unregister): Likewise.
14567         * target.c (struct_offload_image_descr): Constify host_table.
14568         (gomp_offload_image_to_device): Likewise.
14569         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14571         * libgomp.h (gomp_device_descr): Constify target data arguments.
14572         * target.c (struct offload_image_descr): Constify target_data.
14573         (gomp_offload_image_to_device): Likewise.
14574         (GOMP_offload_register): Likewise.
14575         (GOMP_offload_unregister): Likewise.
14576         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14577         GOMP_OFFLOAD_unload_image): Constify target data.
14578         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14579         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14581 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14583         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14584         Workaround driver library const error.
14585         (struct nvptx_tdata, nvptx_tdata_t): New.
14586         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14587         type.
14589 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14591         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14592         of EPS parameter from integer to real.
14593         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14594         type of EPS parameter from integer to real.
14596 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14598         * team.c (get_last_team): New.
14599         (gomp_new_team): Recycle last non-nested team if possible.
14600         (gomp_team_end): Move team work share list free lock destruction
14601         to ...
14602         (free_team): ... here.
14604 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14606         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14607         and ref from int to double.  Replaced their comparison with
14608         an inequality of their difference and EPS.
14609         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14610         comparison of pri and a reference number with an inequality of their
14611         difference and EPS.
14612         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14613         the comparison of sum and sum_ref with an inequality of their
14614         difference and EPS.
14615         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14616         the comparison of pri and a reference number with an inequality of
14617         their difference and EPS.
14619 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14621         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14622         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14623         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14624         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14625         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14626         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14627         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14628         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14629         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14630         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14631         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14632         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14633         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14634         variables.
14635         (vec_mult): Likewise.  Add #pragma omp taskwait.
14636         (main): Adjust caller.
14637         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14638         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14639         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14640         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14641         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14642         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14643         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14644         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14645         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14646         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14647         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14648         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14649         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14650         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14651         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14652         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14653         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14654         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14655         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14656         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14657         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14658         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14659         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14660         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14661         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14662         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14663         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14664         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14665         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14666         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14667         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14668         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14669         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14670         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14671         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14672         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14673         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14674         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14675         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14676         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14677         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14678         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14679         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14680         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14681         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14682         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14683         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14684         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14685         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14686         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14687         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14688         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14689         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14690         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14691         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14692         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14693         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14694         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14695         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14696         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14697         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14698         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14699         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14700         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14701         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14702         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14703         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14704         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14705         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14706         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14707         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14708         (vec_mult): Add !$omp taskwait.
14709         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14710         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14711         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14712         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14713         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14714         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14715         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14716         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14717         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14718         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14719         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14720         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14721         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14722         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14723         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14724         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14725         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14726         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14727         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14728         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14729         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14730         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14731         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14732         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14733         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14734         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14735         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14736         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14737         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14738         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14739         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14740         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14741         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14742         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14743         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14744         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14745         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14746         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14747         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14748         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14749         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14750         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14751         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14752         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14753         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14754         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14755         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14756         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14757         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14758         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14759         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14760         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14761         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14762         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14763         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14764         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14765         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14766         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14767         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14768         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14769         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14770         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14771         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14772         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14773         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14774         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14775         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14777 2015-07-10  Tom de Vries  <tom@codesourcery.com>
14779         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14780         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14782 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
14784         PR libgomp/65099
14785         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14786         in a 64-bit configuration.
14787         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14788         offloading testing if no such device is available.
14789         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14790         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14792 2015-07-08  Tom de Vries  <tom@codesourcery.com>
14794         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14795         second call to f.
14796         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14798 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14800         PR tree-optimization/66642
14801         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14802         iteration count case.
14803         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14804         function, factor out of ...
14805         (main): ... here.  Test low iteration count case.
14807 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14809         * libgomp.h (gomp_thread_pool): Comment last_team field.
14811 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
14813         * testsuite/libgomp.c++/pr66702-1.C: Require
14814         vect_simd_clones effective target.
14815         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14817 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14819         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14820         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14821         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14822         "-O2".
14824 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14826         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14827         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14828         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14829         * testsuite/libgomp.c++/pr64824.C: Same.
14830         * testsuite/libgomp.c++/pr64868.C: Same.
14831         * testsuite/libgomp.c++/pr66199-1.C: Same.
14832         * testsuite/libgomp.c++/pr66199-2.C: Same.
14833         * testsuite/libgomp.c++/target-2.C: Same.
14834         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14835         -std=<standard> option.
14836         * testsuite/libgomp.c++/udr-11.C: Same.
14837         * testsuite/libgomp.c++/udr-12.C: Same.
14838         * testsuite/libgomp.c++/udr-13.C: Same.
14839         * testsuite/libgomp.c++/udr-14.C: Same.
14840         * testsuite/libgomp.c++/udr-15.C: Same.
14841         * testsuite/libgomp.c++/udr-16.C: Same.
14842         * testsuite/libgomp.c++/udr-17.C: Same.
14843         * testsuite/libgomp.c++/udr-18.C: Same.
14844         * testsuite/libgomp.c++/udr-19.C: Same.
14845         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14846         * testsuite/libgomp.c++/simd-1.C: Same.
14847         * testsuite/libgomp.c++/simd-2.C: Same.
14848         * testsuite/libgomp.c++/simd-3.C: Same.
14849         * testsuite/libgomp.c++/simd-4.C: Same.
14850         * testsuite/libgomp.c++/simd-5.C: Same.
14851         * testsuite/libgomp.c++/simd-6.C: Same.
14852         * testsuite/libgomp.c++/simd-7.C: Same.
14853         * testsuite/libgomp.c++/simd-8.C: Same.
14854         * testsuite/libgomp.c++/simd-9.C: Same.
14855         * testsuite/libgomp.c++/simd10.C: Same.
14856         * testsuite/libgomp.c++/simd11.C: Same.
14857         * testsuite/libgomp.c++/simd12.C: Same.
14858         * testsuite/libgomp.c++/simd13.C: Same.
14860 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14862         PR middle-end/66702
14863         * testsuite/libgomp.c++/pr66702-1.C: New test.
14864         * testsuite/libgomp.c++/pr66702-2.C: New test.
14866 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14868         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14869         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14870         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14871         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14873 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14875         PR tree-optimization/66652
14876         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14877         using restrict pointers.
14878         (main): Add arguments to calls to f.
14879         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14881 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
14883         * configure.ac: Fix check for header <sys/sysctl.h>.
14884         * configure: Regenerate.
14885         * config.h.in: Likewise.
14887 2015-06-23  Tom de Vries  <tom@codesourcery.com>
14889         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14890         abort.
14891         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14893 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
14895         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14896         acc_device_nvidia.
14898         PR libgomp/66518
14899         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14900         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14902 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14904         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
14905         dg-additional-options for any remaining options.
14906         * testsuite/libgomp.c/atomic-2.c: Same.
14907         * testsuite/libgomp.c/atomic-4.c: Same.
14908         * testsuite/libgomp.c/atomic-5.c: Same.
14909         * testsuite/libgomp.c/atomic-6.c: Same.
14910         * testsuite/libgomp.c/autopar-1.c: Same.
14911         * testsuite/libgomp.c/copyin-1.c: Same.
14912         * testsuite/libgomp.c/copyin-2.c: Same.
14913         * testsuite/libgomp.c/copyin-3.c: Same.
14914         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14915         * testsuite/libgomp.c/nestedfn-5.c: Same.
14916         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14917         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14918         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14919         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14920         * testsuite/libgomp.c/pr32362-1.c: Same.
14921         * testsuite/libgomp.c/pr32362-2.c: Same.
14922         * testsuite/libgomp.c/pr32362-3.c: Same.
14923         * testsuite/libgomp.c/pr39591-1.c: Same.
14924         * testsuite/libgomp.c/pr39591-2.c: Same.
14925         * testsuite/libgomp.c/pr39591-3.c: Same.
14926         * testsuite/libgomp.c/pr58392.c: Same.
14927         * testsuite/libgomp.c/pr58756.c: Same.
14928         * testsuite/libgomp.c/simd-1.c: Same.
14929         * testsuite/libgomp.c/simd-10.c: Same.
14930         * testsuite/libgomp.c/simd-11.c: Same.
14931         * testsuite/libgomp.c/simd-12.c: Same.
14932         * testsuite/libgomp.c/simd-13.c: Same.
14933         * testsuite/libgomp.c/simd-14.c: Same.
14934         * testsuite/libgomp.c/simd-15.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.
14944 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14946         * testsuite/libgomp.c/pr35625.c: Fix typo.
14948 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14950         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14951         in dg-options.
14952         * testsuite/libgomp.c/atomic-3.c: Same.
14953         * testsuite/libgomp.c/debug-1.c: Same.
14954         * testsuite/libgomp.c/nqueens-1.c: Same.
14955         * testsuite/libgomp.c/pr26171.c: Same.
14956         * testsuite/libgomp.c/pr48591.c: Same.
14957         * testsuite/libgomp.c/pr64824.c: Same.
14958         * testsuite/libgomp.c/pr64868.c: Same.
14959         * testsuite/libgomp.c/pr66133.c: Same.
14960         * testsuite/libgomp.c/pr66199-1.c: Same.
14961         * testsuite/libgomp.c/pr66199-2.c: Same.
14962         * testsuite/libgomp.c/target-8.c: Same.
14964 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14966         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14967         -std={gnu99,c99}.
14968         * testsuite/libgomp.c/for-1.c: Same.
14969         * testsuite/libgomp.c/for-2.c: Same.
14970         * testsuite/libgomp.c/for-3.c: Same.
14971         * testsuite/libgomp.c/pr35625.c: Same.
14972         * testsuite/libgomp.c/pr39154.c: Same.
14973         * testsuite/libgomp.c/simd-16.c: Same.
14974         * testsuite/libgomp.c/simd-17.c: Same.
14976 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14978         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14980 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14982         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14983         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14984         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14985         (N): Define.
14986         (main): Use N instead of hardcoded constants.
14988 2015-06-05  Tom de Vries  <tom@codesourcery.com>
14990         merge from gomp4 branch:
14991         2015-05-28  Tom de Vries  <tom@codesourcery.com>
14993         PR tree-optimization/65443
14994         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14995         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14996         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14998 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15000         * testsuite/libgomp.graphite/bounds.c: Adjust for
15001         cleanup-tree-dump removal.
15002         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15003         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15004         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15005         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15006         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15007         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15008         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15009         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15010         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15011         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15013 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15015         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15016         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15017         (futex_wake) [!__x86_64__]: Ditto.
15019 2015-05-28  Julian Brown  <julian@codesourcery.com>
15021         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15022         function comment. Only call gomp_fatal if new argument is true.
15023         (acc_dev_num_out_of_range): New function.
15024         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15025         acc_dev_num_out_of_range as appropriate.
15026         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15027         (acc_get_device_num, acc_set_device_num): Update calls to
15028         resolve_device.
15029         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15030         output.
15032 2015-05-28  Julian Brown  <julian@codesourcery.com>
15034         PR libgomp/65742
15035         * oacc-init.c (plugin/plugin-host.h): Include.
15036         (acc_on_device): Check whether we're in an offloaded region for
15037         host_nonshm
15038         plugin. Don't use __builtin_acc_on_device.
15039         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15040         nonshm_exec flag in thread-local data.
15041         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15042         data for host_nonshm plugin.
15043         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15044         for host_nonshm plugin.
15045         * plugin/plugin-host.h: New.
15047 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15049         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15051 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15053         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15054         Declare as int.
15055         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15056         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15057         Declare as int.
15059 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15061         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15063 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15065         * target.c (gomp_map_pointer): New function abstracting out
15066         GOMP_MAP_POINTER handling.
15067         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15068         gomp_map_pointer().
15070 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15072         PR middle-end/66199
15073         * testsuite/libgomp.c/pr66199-1.c: New test.
15074         * testsuite/libgomp.c/pr66199-2.c: New test.
15075         * testsuite/libgomp.c++/pr66199-1.C: New test.
15076         * testsuite/libgomp.c++/pr66199-2.C: New test.
15077         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15078         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15080 2015-05-19  Julian Brown  <julian@codesourcery.com>
15082         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15083         on cuInit failure.
15085 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15087         PR middle-end/66133
15088         * testsuite/libgomp.c/pr66133.c: New test.
15090 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15092         * Makefile.in: Regenerated with automake-1.11.6.
15093         * aclocal.m4: Likewise.
15094         * config.h.in: Likewise.
15095         * configure: Likewise.
15096         * testsuite/Makefile.in: Likewise.
15098 2015-05-08  Jason Merrill  <jason@redhat.com>
15100         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15101         _Complex.
15103         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15105 2015-05-06  Julian Brown  <julian@codesourcery.com>
15107         * oacc-init.c (acc_device_lock): Add explanatory comment.
15108         (resolve_device): Add comment about locking requirement.
15109         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15110         gomp_init_device and gomp_fini_device calls.
15111         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15112         (acc_get_device_num, acc_set_device_num): Add locking around
15113         resolve_device and gomp_init_device calls.
15115 2015-05-06  Julian Brown  <julian@codesourcery.com>
15117         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15118         goacc_thread_lock on error paths.
15119         * oacc-mem.c (lookup_host): Remove locking from function. Note
15120         locking requirement for caller in function comment.
15121         (lookup_dev): Likewise.
15122         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15123         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15124         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15125         Add locking.
15127 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15129         PR testsuite/65205
15130         PR libgomp/65993
15131         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15132         don't expect "0x" prefix for "%p" format specifier, don't expect
15133         "(nil)" for NULL pointer.
15134         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15135         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15136         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15137         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15138         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15139         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15140         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15141         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15142         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15143         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15144         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15145         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15146         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15147         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15148         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15149         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15150         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15151         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15152         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15153         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15154         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15155         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15156         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15157         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15158         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15159         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15160         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15161         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15162         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15163         accurately specify what we're looking for.
15164         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15165         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15166         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15167         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15168         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15170 2015-04-30  James Norris  <jnorris@codesourcery.com>
15172         PR testsuite/65205
15173         * testsuite/lib/libgomp.exp
15174         (check_effective_target_openacc_host_selected)
15175         (check_effective_target_openacc_host_nonshm_selected): New
15176         procedures.
15177         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15178         dg-shouldfail.
15179         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15180         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15181         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15182         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15183         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15184         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15185         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15186         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15187         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15188         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15189         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15190         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15191         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15192         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15193         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15194         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15195         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15196         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15197         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15198         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15199         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15200         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15201         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15202         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15203         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15204         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15205         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15206         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15207         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15208         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15209         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15210         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15211         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15212         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15213         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15214         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15215         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15216         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15217         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15218         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15219         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15220         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15221         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15223 2015-04-08  Julian Brown  <julian@codesourcery.com>
15225         * libgomp.h (target_mem_desc: Remove mem_map field.
15226         (acc_dispatch_t): Remove open_device_func, close_device_func,
15227         get_device_num_func, set_device_num_func, target_data members.
15228         Change create_thread_data_func argument to device number instead of
15229         generic pointer.
15230         * oacc-async.c (assert.h): Include.
15231         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15232         (acc_wait_all, acc_wait_all_async): Use current host thread's
15233         active device, not base_dev.
15234         * oacc-cuda.c (acc_get_current_cuda_device)
15235         (acc_get_current_cuda_context, acc_get_cuda_stream)
15236         (acc_set_cuda_stream): Likewise.
15237         * oacc-host.c (host_dispatch): Don't set open_device_func,
15238         close_device_func, get_device_num_func or set_device_num_func.
15239         * oacc-init.c (base_dev, init_key): Remove.
15240         (cached_base_dev): New.
15241         (name_of_acc_device_t): New.
15242         (acc_init_1): Initialise default-numbered device, not zeroth.
15243         (acc_shutdown_1): Close all devices of a given type.
15244         (goacc_destroy_thread): Don't use base_dev.
15245         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15246         (goacc_attach_host_thread_to_device): New.
15247         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15248         (acc_get_num_devices): Don't use base_dev.
15249         (acc_set_device_type): Reimplement.
15250         (acc_get_device_type): Don't use base_dev.
15251         (acc_get_device_num): Tweak logic.
15252         (acc_set_device_num): Likewise.
15253         (acc_on_device): Use acc_get_device_type.
15254         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15255         (goacc_lazy_initialize): Reimplement with acc_init and
15256         goacc_attach_host_thread_to_device.
15257         * oacc-int.h (goacc_thread): Add base_dev field.
15258         (base_dev): Remove extern declaration.
15259         (goacc_attach_host_thread_to_device): Add prototype.
15260         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15261         base_dev.
15262         (acc_free): Likewise.
15263         (acc_memcpy_to_device): Likewise.
15264         (acc_memcpy_from_device): Likewise.
15265         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15266         goacc_lazy_initialize (throughout).
15267         (GOACC_parallel): Use tgt_offset to locate target functions.
15268         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15269         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15270         (gomp_load_plugin_for_device): Remove open_device, close_device,
15271         get_device_num, set_device_num openacc hook initialisation. Don't set
15272         openacc.target_data.
15273         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15274         (GOMP_OFFLOAD_openacc_close_device)
15275         (GOMP_OFFLOAD_openacc_get_device_num)
15276         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15277         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15278         to int.
15279         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15280         (instantiated_devices, ptx_dev_lock): New.
15281         (struct ptx_image_data): New.
15282         (ptx_devices, ptx_images, ptx_image_lock): New.
15283         (fini_streams_for_device): Reorder cuStreamDestroy call.
15284         (nvptx_get_num_devices): Remove forward declaration.
15285         (nvptx_init): Change return type to bool.
15286         (nvptx_fini): Remove.
15287         (nvptx_attach_host_thread_to_device): New.
15288         (nvptx_open_device): Return struct ptx_device* instead of void*.
15289         (nvptx_close_device): Change argument type to struct ptx_device*,
15290         return type to void.
15291         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15292         (kernel_target_data, kernel_host_table): Remove static globals.
15293         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15294         (GOMP_OFFLOAD_init_device): Reimplement.
15295         (GOMP_OFFLOAD_fini_device): Likewise.
15296         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15297         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15298         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15299         (GOMP_OFFLOAD_openacc_open_device)
15300         (GOMP_OFFLOAD_openacc_close_device)
15301         (GOMP_OFFLOAD_openacc_set_device_num)
15302         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15303         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15304         (device number).
15306         testsuite/
15307         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15309 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15311         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15312         * libgomp.h (struct gomp_memory_mapping): Remove.
15313         (struct target_mem_desc): Change type of mem_map from
15314         gomp_memory_mapping * to splay_tree_s *.
15315         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15316         Add load_image_func, unload_image_func.
15317         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15318         Remove offload_regions_registered.
15319         (gomp_init_tables): Remove.
15320         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15321         to splay_tree_s *.
15322         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15323         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15324         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15325         offload_regions_registered.
15326         Initialize load_image_func, unload_image_func, mem_map.root.
15327         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15328         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15329         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15330         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15331         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15332         (lookup_dev): Use dev's lock.
15333         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15334         (acc_is_present): Likewise.
15335         (acc_map_data): Likewise.
15336         (acc_unmap_data): Likewise.  Use dev's lock.
15337         (present_create_copy): Likewise.
15338         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15339         (update_dev_host): Likewise.
15340         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15341         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15342         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15343         (GOMP_OFFLOAD_get_table): Remove
15344         (GOMP_OFFLOAD_load_image): New function.
15345         (GOMP_OFFLOAD_unload_image): New function.
15346         * target.c (register_lock): New mutex for offload image registration.
15347         (num_devices): Do not guard with PLUGIN_SUPPORT.
15348         (gomp_realloc_unlock): New static function.
15349         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15350         before gomp_fatal.
15351         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15352         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15353         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15354         mem_map's.
15355         (gomp_unmap_vars): Likewise.
15356         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15357         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15358         (gomp_offload_image_to_device): New static function.
15359         (GOMP_offload_register): Add mutex lock.
15360         Call gomp_offload_image_to_device for all initialized devices.
15361         Replace gomp_realloc with gomp_realloc_unlock.
15362         (GOMP_offload_unregister): New function.
15363         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15364         get_table_func from the plugin with calls to init_device_func and
15365         gomp_offload_image_to_device.
15366         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15367         to splay_tree_s *.
15368         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15369         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15370         (GOMP_target_data): Do not call gomp_init_tables.
15371         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
15372         (gomp_load_plugin_for_device): Replace register_image and get_table
15373         with load_image and unload_image in DLSYM ().
15374         (gomp_register_images_for_device): Remove function.
15375         (gomp_target_init): Do not initialize current_device.mem_map.*,
15376         current_device.offload_regions_registered.
15377         Remove call to gomp_register_images_for_device.
15378         Do not free offload_images and num_offload_images.
15380 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15382         PR fortran/65597
15383         * testsuite/libgomp.fortran/pr65597.f90: New test.
15385 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15387         PR testsuite/65594
15388         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15389         (init, check): New function.
15390         (foo): Change return type to void.
15391         (main): Call init and check.
15393 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15395         PR testsuite/65594
15396         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15397         (foo): Use M for non-inner loops to scale down test-case.
15399 2015-03-25  Kai Tietz  <ktietz@redhat.com>
15401         PR libgomp/64972
15402         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15403         (GOACC_data_start): Likewise.
15404         * target.c (gomp_map_vars): Likewise.
15406 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
15408         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15409         hppa*-*-hpux*.
15411 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15413         * testsuite/libgomp.c/target-10.c: New test.
15414         * testsuite/libgomp.c++/target-4.C: New test.
15416 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15418         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15419         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15421 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15423         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15424         * configure.ac (*-*-rtems*): Assume Pthread is supported.
15425         (pthread.h): Check for this header file.
15426         * configure: Regenerate.
15428 2015-02-25  Tom de Vries  <tom@codesourcery.com>
15430         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15431         (check_reduction_op, check_reduction_macro, max, min):
15432         Declare.
15433         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15434         function.
15435         (main): Use new functions.
15437 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
15439         * target.c (gomp_load_plugin_for_device): Use const char * instead of
15440         char * for variables holding dlerror return values.
15441         (DLSYM_OPT): Ditto.
15443 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15445         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15447 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15448             Cesar Philippidis  <cesar@codesourcery.com>
15450         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15451         GOACC_ctaid, and GOACC_nctaid routines.
15453 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15455         PR c/64824
15456         * testsuite/libgomp.c/atomic-18.c: New test.
15457         * testsuite/libgomp.c++/atomic-16.C: New test.
15459 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15461         PR c/64824
15462         PR c/64868
15463         * testsuite/libgomp.c/pr64824.c: New test.
15464         * testsuite/libgomp.c/pr64868.c: New test.
15465         * testsuite/libgomp.c++/pr64824.C: New test.
15466         * testsuite/libgomp.c++/pr64868.C: New test.
15468 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15470         PR libgomp/64635
15471         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15472         Link with -lpthread.
15473         * config/aix/plugin-suffix.h: Delete.
15475 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
15477         PR libgomp/64635
15478         * configure.tgt (*-*-aix*): Use config_path "aix posix".
15479         (*-*-darwin*): Use config_path "bsd darwin posix".
15480         (*-*-hpux*): Use config_path "hpux posix".
15481         * target.c: Add include of plugin-suffix.h and use
15482         SONAME_SUFFIX macro.
15483         * config/aix/plugin-suffix.h: New file.
15484         * config/darwin/plugin-suffix.h: New file.
15485         * config/hpux/plugin-suffix.h: New file.
15486         * config/posix/plugin-suffix.h: New file.
15488 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15490         PR middle-end/64734
15491         * libgomp.c/pr64734.c: New test.
15493 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15495         PR libgomp/64672
15496         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15498 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15500         PR libgomp/64707
15501         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15502         dg-options.
15504 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15506         PR libgomp/64625
15507         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15508         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15509         formal parameter.  Update all users.
15510         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15511         Document unused formal parameter.
15513 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
15515         * oacc-parallel.c: Don't include <alloca.h>.
15516         (GOACC_parallel): Use gomp_alloca instead of alloca.
15518 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
15520         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15522 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15523             James Norris  <jnorris@codesourcery.com>
15524             Tom de Vries  <tom@codesourcery.com>
15525             Julian Brown  <julian@codesourcery.com>
15526             Cesar Philippidis  <cesar@codesourcery.com>
15527             Nathan Sidwell  <nathan@codesourcery.com>
15528             Tobias Burnus  <burnus@net-b.de>
15530         * Makefile.am (search_path): Add $(top_srcdir)/../include.
15531         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15532         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15533         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15534         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15535         Include $(top_srcdir)/plugin/Makefrag.am.
15536         (nodist_libsubinclude_HEADERS): Add openacc.h.
15537         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15538         openacc.f90, openacc.mod, openacc_kinds.mod.
15539         (omp_lib.mod): Generalize into...
15540         (%.mod): ... this new rule.
15541         (openacc_kinds.mod, openacc.mod): New rules.
15542         * plugin/configfrag.ac: New file.
15543         * configure.ac: Move plugin/offloading support into it.  Include
15544         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
15545         * plugin/Makefrag.am: New file.
15546         * testsuite/Makefile.am (OFFLOAD_TARGETS)
15547         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15548         export.
15549         (libgomp-test-support.exp): New rule.
15550         (all-local): Depend on it.
15551         * Makefile.in: Regenerate.
15552         * testsuite/Makefile.in: Regenerate.
15553         * config.h.in: Likewise.
15554         * configure: Likewise.
15555         * configure.tgt: Harden shell syntax.
15556         * env.c: Include "oacc-int.h".
15557         (parse_acc_device_type): New function.
15558         (gomp_debug_var, goacc_device_type, goacc_device_num): New
15559         variables.
15560         (initialize_env): Initialize those.  Call
15561         goacc_runtime_initialize.
15562         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15563         (gomp_fatal): Call gomp_vfatal.
15564         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15565         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15566         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15567         (splay_tree_node, splay_tree, splay_tree_key)
15568         (struct target_mem_desc, struct splay_tree_key_s)
15569         (struct gomp_memory_mapping, struct acc_dispatch_t)
15570         (struct gomp_device_descr, gomp_acc_insert_pointer)
15571         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15572         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15573         (gomp_free_memmap, gomp_fini_device): New declarations.
15574         (gomp_vdebug, gomp_debug): New macros.
15575         Include "splay-tree.h".
15576         * libgomp.map (OACC_2.0): New symbol version.  Use for
15577         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15578         acc_set_device_type_h_, acc_get_device_type,
15579         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15580         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15581         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15582         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15583         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15584         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15585         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15586         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15587         acc_copyin_array_h_, acc_present_or_copyin,
15588         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15589         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15590         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15591         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15592         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15593         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15594         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15595         acc_update_device, acc_update_device_32_h_,
15596         acc_update_device_64_h_, acc_update_device_array_h_,
15597         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15598         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15599         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15600         acc_is_present_64_h_, acc_is_present_array_h_,
15601         acc_memcpy_to_device, acc_memcpy_from_device,
15602         acc_get_current_cuda_device, acc_get_current_cuda_context,
15603         acc_get_cuda_stream, acc_set_cuda_stream.
15604         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
15605         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15606         GOACC_update, GOACC_wait, GOACC_get_thread_num,
15607         GOACC_get_num_threads.
15608         (GOMP_PLUGIN_1.0): New symbol version.  Use for
15609         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15610         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15611         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15612         GOMP_PLUGIN_acc_thread.
15613         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15614         environment variable.
15615         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15616         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15617         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15618         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15619         (splay_tree_remove): New declarations.
15620         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15621         (splay_tree_remove, splay_tree_lookup): Move into...
15622         * splay-tree.c: ... this new file.
15623         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15624         (splay_tree_node, splay_tree, splay_tree_key)
15625         (struct target_mem_desc, struct splay_tree_key_s)
15626         (struct gomp_device_descr): Don't declare.
15627         (num_devices_openmp): New variable.
15628         (gomp_get_num_devices ): Use it.
15629         (gomp_init_targets_once): New function.
15630         (gomp_get_num_devices ): Use it.
15631         (get_kind, gomp_copy_from_async, gomp_free_memmap)
15632         (gomp_fini_device, gomp_register_image_for_device): New functions.
15633         (gomp_map_vars): Add devaddrs parameter.
15634         (gomp_update): Add mm parameter.
15635         (gomp_init_device): Move most of it into...
15636         (gomp_init_tables): ... this new function.
15637         (gomp_register_images_for_device): Remove function.
15638         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15639         Make them hidden instead of static.
15640         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15641         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15642         (GOMP_target_end_data, GOMP_target_update)
15643         (gomp_load_plugin_for_device, gomp_target_init): Update for
15644         OpenACC changes.
15645         * oacc-async.c: New file.
15646         * oacc-cuda.c: Likewise.
15647         * oacc-host.c: Likewise.
15648         * oacc-init.c: Likewise.
15649         * oacc-int.h: Likewise.
15650         * oacc-mem.c: Likewise.
15651         * oacc-parallel.c: Likewise.
15652         * oacc-plugin.c: Likewise.
15653         * oacc-plugin.h: Likewise.
15654         * oacc-ptx.h: Likewise.
15655         * openacc.f90: Likewise.
15656         * openacc.h: Likewise.
15657         * openacc_lib.h: Likewise.
15658         * plugin/plugin-host.c: Likewise.
15659         * plugin/plugin-nvptx.c: Likewise.
15660         * libgomp-plugin.c: Likewise.
15661         * libgomp-plugin.h: Likewise.
15662         * libgomp_target.h: Remove file after merging content into the
15663         former file.  Update all users.
15664         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15665         (offload_targets_s, offload_targets_s_openacc): New variables.
15666         (check_effective_target_openacc_nvidia_accel_present)
15667         (check_effective_target_openacc_nvidia_accel_selected): New
15668         procedures.
15669         (libgomp_init): Update for OpenACC changes.
15670         * testsuite/libgomp-test-support.exp.in: New file.
15671         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15672         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15673         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15674         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15675         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15676         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15677         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15678         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15679         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15680         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15681         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15682         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15683         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15684         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15685         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15686         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15687         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15688         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15689         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15690         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15691         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15692         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15693         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15694         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15695         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15696         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15697         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15698         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15699         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15700         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15701         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15702         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15703         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15704         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15705         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15706         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15707         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15708         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15709         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15710         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15711         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15712         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15713         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15714         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15715         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15716         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15717         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15718         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15719         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15720         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15721         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15722         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15723         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15724         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15725         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15726         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15727         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15728         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15729         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15730         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15731         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15732         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15733         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15734         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15735         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15736         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15737         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15738         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15739         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15740         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15741         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15742         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15743         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15744         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15745         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15746         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15747         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15748         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15749         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15750         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15751         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15752         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15753         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15754         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15755         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15756         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15757         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15758         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15759         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15760         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15761         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15762         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15763         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15764         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15765         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15766         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15767         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15768         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15769         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15770         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15771         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15772         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15773         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15774         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15775         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15776         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15777         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15778         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15779         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15780         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15781         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15782         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15783         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15784         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15785         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15786         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15787         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15788         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15789         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15790         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15791         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15792         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15793         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15794         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15795         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15796         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15797         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15798         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15799         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15800         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15801         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15802         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15803         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15804         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15805         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15806         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15807         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15808         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15809         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15810         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15811         Likewise.
15812         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15813         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15814         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15815         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15816         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15817         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15818         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15819         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15820         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15821         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15822         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15823         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15824         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15825         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15826         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15827         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15828         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15829         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15830         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15831         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15832         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15833         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15834         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15835         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15836         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15837         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15838         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15839         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15840         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15841         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15842         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15843         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15844         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15845         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15846         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15847         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15848         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15849         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15850         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15851         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15852         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15853         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15854         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15855         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15856         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15857         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15858         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15859         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15860         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15861         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15862         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15863         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15864         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15865         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15866         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15867         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15868         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15869         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15870         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15871         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15873 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15874             Julian Brown  <julian@codesourcery.com>
15875             David Malcolm  <dmalcolm@redhat.com>
15877         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15878         to "GNU Offloading and Multi Processing Runtime Library".  Change
15879         all users.
15880         * configure: Regenerate.
15881         * libgomp.texi: Update.
15883 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15885         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15886         "$tgt_dir/lib32".
15887         * configure: Regenerate.
15889         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15890         "intelmic" in $offload_targets.
15892 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15894         Update copyright years.
15896         * libgomp.texi: Bump @copying's copyright year.
15898 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15900         * testsuite/lib/libgomp.exp: Load target-utils.exp.
15901         Move load of target-supports.exp earlier.
15903 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
15905         * testsuite/libgomp.c/target-9.c: New test.
15907 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
15909         * config.h.in: Regenerate.
15910         * configure: Regenerate.
15911         * configure.ac: Add GCC_CHECK_EMUTLS.
15912         * libgomp.h: Add check for USE_EMUTLS: this case
15913         is equal to HAVE_TLS.
15914         * team.c: Likewise.
15916 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
15918         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15920 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15921             Ilya Verbin  <ilya.verbin@intel.com>
15923         * testsuite/libgomp.c/target-critical-1.c: New test.
15925 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
15927         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15928         to dg-options unless expensive testing is on.
15929         (TESTITERS): Define to N if not defined.
15930         (main): Use TESTITERS instead of N.
15931         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15932         dg-additional-options depending on whether expensive testing is on.
15933         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15934         Decrease N to 100000 and CHUNKSZ to 10000.
15936 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
15938         PR fortran/63938
15939         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15940         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15942 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
15944         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15946 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15948         PR bootstrap/63784
15949         * configure: Regenerated.
15951 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
15953         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15954         vect_simd_clones effective target.
15955         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15957 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
15959         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15960         of 32 as block_size.
15961         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15962         instead of 32 as block_size.
15964 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15965             Ilya Verbin  <ilya.verbin@intel.com>
15967         * Makefile.in: Regenerate.
15968         * configure: Regenerate.
15969         * configure.ac: Set up offload_additional_options,
15970         offload_additional_lib_paths and offload_targets.
15971         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15972         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15973         * testsuite/Makefile.in: Regenerate.
15974         * testsuite/lib/libgomp.exp (libgomp_init): Append
15975         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
15976         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
15977         build directory to LD_LIBRARY_PATH for intelmic offload targets.
15979 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15980             Ilya Verbin  <ilya.verbin@intel.com>
15981             Kirill Yukhin  <kirill.yukhin@intel.com>
15982             Ilya Tocar  <ilya.tocar@intel.com>
15984         * testsuite/lib/libgomp.exp
15985         (check_effective_target_offload_device): New.
15986         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15987         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15988         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15989         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15990         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15991         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15992         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15993         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15994         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15995         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15996         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15997         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15998         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15999         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16000         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16001         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16002         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16003         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16004         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16005         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16006         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16007         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16008         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16009         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16010         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16011         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16012         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16013         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16014         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16015         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16016         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16017         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16018         * testsuite/libgomp.c/target-7.c: Fix test.
16019         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16020         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16021         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16022         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16023         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16024         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16025         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16026         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16027         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16028         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16029         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16030         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16031         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16032         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16033         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16034         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16035         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16036         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16037         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16038         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16039         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16040         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16041         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16042         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16043         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16044         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16045         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16046         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16047         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16048         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16049         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16051 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16052             Ilya Verbin  <ilya.verbin@intel.com>
16053             Thomas Schwinge  <thomas@codesourcery.com>
16054             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16056         * libgomp.map (GOMP_4.0.1): New symbol version.
16057         Add GOMP_offload_register.
16058         * libgomp_target.h: New file.
16059         * splay-tree.h: New file.
16060         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16061         (gomp_target_init): New forward declaration.
16062         (gomp_is_initialized): New static variable.
16063         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16064         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16065         New structures.
16066         (offload_images, num_offload_images, devices, num_devices): New static
16067         variables.
16068         (splay_compare): New static function.
16069         (struct gomp_device_descr): New structure.
16070         (gomp_get_num_devices): Call gomp_target_init.
16071         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16072         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16073         (GOMP_offload_register): New function.
16074         (GOMP_target): Arrange for host callback to be performed in a separate
16075         initial thread and contention group, inheriting ICVs from
16076         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16077         Add device initialization and lookup for target function in splay tree.
16078         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16079         (GOMP_target_end_data): Call gomp_unmap_vars.
16080         (GOMP_target_update): Add device initialization and call gomp_update.
16081         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16082         (gomp_target_init): New static functions.
16084 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16085             Thomas Schwinge  <thomas@codesourcery.com>
16086             Ilya Verbin  <ilya.verbin@intel.com>
16087             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16089         * config.h.in: Regenerate.
16090         * configure: Regenerate.
16091         * configure.ac: Check for libdl, required for plugin support.
16092         (PLUGIN_SUPPORT): Define if plugins are supported.
16093         (enable_offload_targets): Support Intel MIC targets.
16094         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16096 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16098         PR target/63610
16099         * configure: Regenerate.
16101 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16103         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16105 2014-10-06  Marek Polacek  <polacek@redhat.com>
16107         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16108         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16109         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16110         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16112 2014-10-06  Marek Polacek  <polacek@redhat.com>
16114         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16115         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16116         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16117         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16118         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16119         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16120         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16121         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16122         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16123         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16124         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16125         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16126         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16127         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16128         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16129         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16130         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16131         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16132         declarations.
16134 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16136         PR libgomp/61200
16137         * testsuite/libgomp.c/pr61200.c: New test.
16139 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16141         PR c++/63248
16142         * testsuite/libgomp.c++/pr63248.C: New test.
16144 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16146         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16147         is not zero, but taskgroup->children is NULL and there are
16148         any task->children, schedule those instead of waiting.
16149         * testsuite/libgomp.c/depend-6.c: New test.
16150         * testsuite/libgomp.c/depend-7.c: New test.
16151         * testsuite/libgomp.c/depend-8.c: New test.
16152         * testsuite/libgomp.c/depend-9.c: New test.
16153         * testsuite/libgomp.c/depend-10.c: New test.
16155 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16157         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16158         (struct gomp_taskwait): New type.
16159         (struct gomp_task): Add taskwait and parent_depends_on, remove
16160         in_taskwait and taskwait_sem fields.
16161         (gomp_finish_task): Don't destroy taskwait_sem.
16162         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16163         taskwait and parent_depends_on.
16164         (GOMP_task): For if (0) tasks with depend clause that depend on
16165         earlier tasks don't defer them, instead call
16166         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16167         Initialize redundant_out field, for redundant out entries just
16168         move them at the end of linked list instead of removing them
16169         completely, and set redundant_out flag instead of redundant.
16170         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16171         that task.
16172         (gomp_task_run_post_handle_dependers): If parent is in
16173         gomp_task_maybe_wait_for_dependencies and newly runnable task
16174         is not parent_depends_on, queue it in parent->children linked
16175         list after all runnable tasks with parent_depends_on set.
16176         Adjust for addition of taskwait indirection.
16177         (gomp_task_run_post_remove_parent): If parent is in
16178         gomp_task_maybe_wait_for_dependencies and task to be removed
16179         is parent_depends_on, decrement n_depend and if needed awake
16180         parent.  Adjust for addition of taskwait indirection.
16181         (GOMP_taskwait): Adjust for addition of taskwait indirection.
16182         (gomp_task_maybe_wait_for_dependencies): New function.
16183         * testsuite/libgomp.c/depend-5.c: New test.
16185 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16187         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16188         with TS 18508/Fortran 2015.
16190 2014-07-06  Marek Polacek  <polacek@redhat.com>
16192         PR c/6940
16193         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16195 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16197         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16198         matches regex $lang_source_re, add $lang_include_flags to options.
16199         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16200         * testsuite/libgomp.c++/c++.exp: Likewise.
16201         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16202         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16203         ALWAYS_CFLAGS.
16204         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16206 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16208         * testsuite/libgomp.fortran/fortran.exp: Explain
16209         gfortran-dg-runtest usage.
16211 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16213         * testsuite/libgomp.fortran/simd5.f90: New test.
16214         * testsuite/libgomp.fortran/simd6.f90: New test.
16215         * testsuite/libgomp.fortran/simd7.f90: New test.
16217 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16219         * testsuite/libgomp.c/for-2.c: Define SC to static for
16220         #pragma omp for simd testing.
16221         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16222         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16223         SC macro.
16224         * testsuite/libgomp.c/simd-14.c: New test.
16225         * testsuite/libgomp.c/simd-15.c: New test.
16226         * testsuite/libgomp.c/simd-16.c: New test.
16227         * testsuite/libgomp.c/simd-17.c: New test.
16228         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16229         #pragma omp for simd testing.
16230         * testsuite/libgomp.c++/simd10.C: New test.
16231         * testsuite/libgomp.c++/simd11.C: New test.
16232         * testsuite/libgomp.c++/simd12.C: New test.
16233         * testsuite/libgomp.c++/simd13.C: New test.
16235         * testsuite/libgomp.fortran/aligned1.f03: New test.
16236         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16237         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16238         tasks with !$omp parallel !$omp single.
16239         * testsuite/libgomp.fortran/target8.f90: New test.
16240         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16241         not to use trim in the combiner, instead call elemental function.
16242         (fn): New elemental function.
16243         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16244         Make elemental.
16245         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16246         omp_in): Likewise.
16247         * testsuite/libgomp.fortran/udr12.f90: New test.
16248         * testsuite/libgomp.fortran/udr13.f90: New test.
16249         * testsuite/libgomp.fortran/udr14.f90: New test.
16250         * testsuite/libgomp.fortran/udr15.f90: New test.
16252 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16254         * omp_lib.f90.in (openmp_version): Set to 201307.
16255         * omp_lib.h.in (openmp_version): Likewise.
16256         * testsuite/libgomp.c/target-8.c: New test.
16257         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16258         and inbranch clauses.
16259         * testsuite/libgomp.fortran/depend-3.f90: New test.
16260         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16261         openmp_version.
16262         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16263         * testsuite/libgomp.fortran/target1.f90: New test.
16264         * testsuite/libgomp.fortran/target2.f90: New test.
16265         * testsuite/libgomp.fortran/target3.f90: New test.
16266         * testsuite/libgomp.fortran/target4.f90: New test.
16267         * testsuite/libgomp.fortran/target5.f90: New test.
16268         * testsuite/libgomp.fortran/target6.f90: New test.
16269         * testsuite/libgomp.fortran/target7.f90: New test.
16271 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16273         PR fortran/60928
16274         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16275         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16276         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16277         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16278         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16279         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16280         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16281         * testsuite/libgomp.fortran/associate1.f90: New test.
16282         * testsuite/libgomp.fortran/associate2.f90: New test.
16283         * testsuite/libgomp.fortran/procptr1.f90: New test.
16285 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16287         * testsuite/libgomp.fortran/simd1.f90: New test.
16288         * testsuite/libgomp.fortran/udr1.f90: New test.
16289         * testsuite/libgomp.fortran/udr2.f90: New test.
16290         * testsuite/libgomp.fortran/udr3.f90: New test.
16291         * testsuite/libgomp.fortran/udr4.f90: New test.
16292         * testsuite/libgomp.fortran/udr5.f90: New test.
16293         * testsuite/libgomp.fortran/udr6.f90: New test.
16294         * testsuite/libgomp.fortran/udr7.f90: New test.
16295         * testsuite/libgomp.fortran/udr8.f90: New test.
16296         * testsuite/libgomp.fortran/udr9.f90: New test.
16297         * testsuite/libgomp.fortran/udr10.f90: New test.
16298         * testsuite/libgomp.fortran/udr11.f90: New test.
16300 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16302         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16303         vect_simd_clones effective target.
16304         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16306 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16308         PR middle-end/61252
16309         * testsuite/libgomp.c++/simd-9.C: New test.
16311 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16313         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16314         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16315         texts according to their @menu entry positions.
16317 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16319         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16320         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16321         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16322         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16323         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16324         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16325         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16326         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16327         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16328         * testsuite/libgomp.fortran/depend-1.f90: New test.
16329         * testsuite/libgomp.fortran/depend-2.f90: New test.
16330         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16331         * testsuite/libgomp.fortran/simd1.f90: New test.
16332         * testsuite/libgomp.fortran/simd2.f90: New test.
16333         * testsuite/libgomp.fortran/simd3.f90: New test.
16334         * testsuite/libgomp.fortran/simd4.f90: New test.
16335         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16337 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16339         * testsuite/libgomp.c/simd-10.c: New test.
16340         * testsuite/libgomp.c/simd-11.c: New test.
16341         * testsuite/libgomp.c/simd-12.c: New test.
16342         * testsuite/libgomp.c/simd-13.c: New test.
16344 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16346         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16347         atomic type clauses in any order and optional comma in between.
16348         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16349         * testsuite/libgomp.c/atomic-17.c: Likewise.
16351         * testsuite/libgomp.c/simd-7.c: New test.
16352         * testsuite/libgomp.c/simd-8.c: New test.
16353         * testsuite/libgomp.c/simd-9.c: New test.
16354         * testsuite/libgomp.c/loop-16.c: New test.
16356 2014-04-02  Richard Henderson  <rth@redhat.com>
16358         * config/linux/futex.h (futex_wait): Get error value from errno.
16359         (futex_wake): Likewise.
16361 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16363         PR c++/60331
16364         * testsuite/libgomp.c++/udr-11.C: New test.
16365         * testsuite/libgomp.c++/udr-12.C: New test.
16366         * testsuite/libgomp.c++/udr-13.C: New test.
16367         * testsuite/libgomp.c++/udr-14.C: New test.
16368         * testsuite/libgomp.c++/udr-15.C: New test.
16369         * testsuite/libgomp.c++/udr-16.C: New test.
16370         * testsuite/libgomp.c++/udr-17.C: New test.
16371         * testsuite/libgomp.c++/udr-18.C: New test.
16372         * testsuite/libgomp.c++/udr-19.C: New test.
16374 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16376         Update copyright years
16378 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16380         * hashtab.h: Use the standard form for the copyright notice.
16382 2014-01-02  Tobias Burnus  <burnus@net-b.de>
16384         * libgomp.texi: Bump @copying's copyright year.
16386 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
16388         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16389         alloca () with __builtin_alloca ().
16390         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16391         * testsuite/libgomp.c/lock-3.c: Likewise.
16392         * testsuite/libgomp.c/pr48591.c: Likewise.
16394 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
16396         PR testsuite/59534
16397         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16398         comparisons.
16400 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
16402         PR libgomp/58756
16403         * testsuite/libgomp.c/pr58756.c: New test.
16405 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
16407         PR libgomp/59467
16408         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16409         !$omp parallel.
16411 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
16413         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16414         ALWAYS_CFLAGS.
16415         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16416         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16417         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16418         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16419         Likewise.
16421         * libgomp_g.h: Include <stddef.h> for size_t.
16423         * libgomp.spec.in: Update comment about libgomp's dependencies.
16424         * configure.ac: Likewise.
16425         * configure: Regenerate.
16427 2013-10-16  Tobias Burnus  <burnus@net-b.de>
16429         * libgomp.texi: (Runtime Library Routines): Update references for
16430         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16431         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16432         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16433         (Environment Variables): Update references for OpenMP 4.0. Add
16434         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16435         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16436         order.
16438 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
16440         * env.c (parse_bind_var): Initialize value to avoid
16441         (false positive) warning.
16443 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
16445         PR libgomp/58691
16446         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16447         to check variable.
16448         (gomp_init_num_threads): Move i variable declaration into
16449         #ifdef CPU_ALLOC_SIZE block.
16450         * config/linux/affinity.c (gomp_affinity_init_level): Test
16451         gomp_places_list_len == 0 rather than gomp_places_list == 0
16452         when checking for topology reading error.
16453         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16454         * env.c (parse_affinity): Add ignore argument, if true, don't populate
16455         gomp_places_list, only parse env var and always return false.
16456         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
16457         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16458         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16459         and either of these variables were parsed correctly into a places
16460         list.
16462 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16463             Jakub Jelinek  <jakub@redhat.com>
16465         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16466         of 5 loopfn matches.
16467         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16468         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16469         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16470         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16471         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16472         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16473         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16474         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16476 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16478         * Makefile.am (omp_lib.mod): Streamline rule.
16479         * Makefile.in: Regenerate.
16481         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16482         exceptions.
16484         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16485         * testsuite/libgomp.fortran/lib1.f90: Likewise.
16486         * testsuite/libgomp.fortran/lib2.f: Likewise.
16487         * testsuite/libgomp.fortran/lib3.f: Likewise.
16489         * configure.ac: Typo fix.
16490         * configure: Regenerate.
16492         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16493         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16495         * omp.h.in: Don't touch the user's namespace.
16497 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
16498             Tobias Burnus  <burnus@net-b.de>
16499             Richard Henderson  <rth@redhat.com>
16501         * target.c: New file.
16502         * Makefile.am (libgomp_la_SOURCES): Add target.c.
16503         * Makefile.in: Regenerated.
16504         * libgomp_g.h (GOMP_task): Add depend argument.
16505         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16506         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16507         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16508         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16509         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16510         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16511         GOMP_taskgroup_start, GOMP_taskgroup_end,
16512         GOMP_parallel_sections): New prototypes.
16513         * fortran.c (omp_is_initial_device): Add ialias_redirect.
16514         (omp_is_initial_device_): New function.
16515         (ULP, STR1, STR2, ialias_redirect): Removed.
16516         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16517         omp_set_default_device_8_, omp_get_default_device_,
16518         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16519         functions.
16520         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16521         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16522         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16523         @@GOMP_4.0.
16524         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16525         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16526         omp_set_default_device, omp_set_default_device_,
16527         omp_set_default_device_8_, omp_get_default_device,
16528         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16529         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16530         omp_get_team_num_): Export @@OMP_4.0.
16531         * team.c (struct gomp_thread_start_data): Add place field.
16532         (gomp_thread_start): Clear thr->thread_pool and
16533         thr->task before returning.  Use gomp_team_barrier_wait_final
16534         instead of gomp_team_barrier_wait.  Initialize thr->place.
16535         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16536         team_cancelled and task_queued_count fields.
16537         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16538         before calling pthread_exit.
16539         (gomp_free_thread): No longer static.  Use
16540         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16541         (gomp_team_start): Add flags argument.  Set
16542         thr->thread_pool->threads_busy to nthreads immediately after creating
16543         new pool.  Use gomp_managed_threads_lock instead of
16544         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
16545         (gomp_team_end): Use gomp_managed_threads_lock instead of
16546         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
16547         of gomp_team_barrier_wait.  If team->team_cancelled, call
16548         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16549         rather than thr->ts.work_share.
16550         (initialize_team): Don't call gomp_sem_init here.
16551         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16552         caller.
16553         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16554         * env.c (gomp_global_icv): Add default_device_var, target_data and
16555         bind_var initializers.
16556         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16557         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16558         gomp_places_list_len): New variables.
16559         (parse_bind_var, parse_one_place, parse_places_var): New functions.
16560         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16561         sized places.
16562         (gomp_cancel_var): New global variable.
16563         (parse_int): New function.
16564         (handle_omp_display_env): New function.
16565         (initialize_env): Use it.  Initialize default_device_var.
16566         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
16567         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
16568         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
16569         been successfully parsed (and call gomp_init_affinity in that case).
16570         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16571         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16572         omp_get_team_num, omp_is_initial_device): New functions.
16573         * libgomp.h: Include stdlib.h.
16574         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16575         Define.
16576         (struct target_mem_desc): Forward declare.
16577         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16578         and thread_limit_var fields.
16579         (gomp_get_num_devices): New prototype.
16580         (gomp_cancel_var): New extern decl.
16581         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16582         team_cancelled and task_queued_count fields.  Add comments about
16583         task_{,queued_,running_}count.
16584         (gomp_cancel_kind): New enum.
16585         (gomp_work_share_end_cancel): New prototype.
16586         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16587         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16588         and depend fields.
16589         (struct gomp_taskgroup): New type.
16590         (struct gomp_task_depend_entry,
16591         struct gomp_dependers_vec): New types.
16592         (gomp_finish_task): Free depend_hash if non-NULL.
16593         (struct gomp_team_state): Add place_partition_off
16594         and place_partition_len fields.
16595         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16596         gomp_places_list_len): New extern decls.
16597         (struct gomp_thread): Add place field.
16598         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16599         (gomp_init_thread_affinity): Add place argument.
16600         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16601         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16602         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16603         gomp_affinity_init_level, gomp_affinity_print_place): New
16604         prototypes.
16605         (gomp_team_start): Add flags argument.
16606         (gomp_thread_limit_var, gomp_remaining_threads_count,
16607         gomp_remaining_threads_lock): Remove.
16608         (gomp_managed_threads_lock): New variable.
16609         (struct gomp_thread_pool): Add threads_busy field.
16610         (gomp_free_thread): New prototype.
16611         * task.c: Include hashtab.h.
16612         (hash_entry_type): New typedef.
16613         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16614         (gomp_init_task): Clear dependers, depend_hash, depend_count,
16615         copy_ctors_done and taskgroup fields.
16616         (GOMP_task): Add depend argument, handle depend clauses.  If
16617         gomp_team_barrier_cancelled or if it's taskgroup has been
16618         cancelled, don't queue or start new tasks.  Set copy_ctors_done
16619         field if needed.  Initialize taskgroup field.  If copy_ctors_done
16620         and already cancelled, don't discard the task.  If taskgroup is
16621         non-NULL, enqueue the task into taskgroup queue.  Increment
16622         num_children field in taskgroup.  Increment task_queued_count.
16623         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16624         gomp_task_run_post_remove_taskgroup): New inline functions.
16625         (gomp_task_run_post_handle_depend_hash,
16626         gomp_task_run_post_handle_dependers,
16627         gomp_task_run_post_handle_depend): New functions.
16628         (GOMP_taskwait): Use them.  If more than one new tasks
16629         have been queued, wake other threads if needed.
16630         (gomp_barrier_handle_tasks): Likewise.  If
16631         gomp_team_barrier_cancelled, don't start any new tasks, just free
16632         all tasks.
16633         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16634         * omp_lib.f90.in
16635         (omp_proc_bind_kind, omp_proc_bind_false,
16636         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16637         omp_proc_bind_spread): New params.
16638         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16639         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16640         omp_get_team_num, omp_is_initial_device): New interfaces.
16641         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16642         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16643         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16644         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16645         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16646         useless use omp_lib_kinds.
16647         * omp.h.in (omp_proc_bind_t): New typedef.
16648         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16649         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16650         omp_get_team_num, omp_is_initial_device): New prototypes.
16651         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16652         through to gomp_team_start.
16653         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16654         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16655         Adjust gomp_parallel_loop_start callers.
16656         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16657         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16658         GOMP_loop_end_cancel): New functions.
16659         (GOMP_parallel_end): Add ialias_redirect.
16660         * hashtab.h: New file.
16661         * libgomp.texi (Environment Variables): Minor cleanup,
16662         update section refs to OpenMP 4.0rc2.
16663         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16664         environment variables.
16665         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16666         team->work_shares_to_free to thr->ts.work_share before calling
16667         free_work_share.
16668         (gomp_work_share_end_cancel): New function.
16669         * config/linux/proc.c: Include errno.h.
16670         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16671         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16672         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
16673         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
16674         gomp_cpuset_size is sizeof (cpu_set_t).
16675         (gomp_init_num_threads): Initialize gomp_cpuset_size,
16676         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16677         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16678         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
16679         contain any logical CPUs.
16680         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16681         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
16682         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16683         pthread_getaffinity_np.  Check gomp_places_list instead of
16684         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
16685         * config/linux/bar.c (gomp_barrier_wait_end,
16686         gomp_barrier_wait_last): Use BAR_* defines.
16687         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
16688         from state where needed.  Set work_share_cancelled to 0 on last
16689         thread.
16690         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16691         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16692         functions.
16693         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16694         Add cpusetsize argument.
16695         (gomp_cpuset_size, gomp_cpusetp): Declare.
16696         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16697         (affinity_counter): Remove.
16698         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16699         if CPU_ALLOC_SIZE isn't defined.
16700         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16701         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16702         bind current thread to the first place.
16703         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
16704         pthread_setaffinity_np to gomp_places_list[place].
16705         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16706         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16707         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16708         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16709         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16710         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16711         (gomp_barrier_t): Add awaited_final field.
16712         (gomp_barrier_init): Initialize awaited_final field.
16713         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16714         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16715         prototypes.
16716         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
16717         defines.
16718         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16719         gomp_team_barrier_cancelled): New inline functions.
16720         (gomp_barrier_last_thread,
16721         gomp_team_barrier_set_task_pending,
16722         gomp_team_barrier_clear_task_pending,
16723         gomp_team_barrier_set_waiting_for_tasks,
16724         gomp_team_barrier_waiting_for_tasks,
16725         gomp_team_barrier_done): Use BAR_* defines.
16726         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16727         (gomp_barrier_wait_end): Use BAR_* defines.
16728         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16729         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16730         Use BAR_* defines.
16731         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16732         gomp_team_barrier_cancel): New functions.
16733         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16734         argument.
16735         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16736         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16737         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16738         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16739         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16740         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16741         (gomp_barrier_t): Add cancellable field.
16742         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16743         gomp_team_barrier_cancel): New prototypes.
16744         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16745         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16746         gomp_team_barrier_cancelled): New inline functions.
16747         (gomp_barrier_wait_start, gomp_barrier_last_thread,
16748         gomp_team_barrier_set_task_pending,
16749         gomp_team_barrier_clear_task_pending,
16750         gomp_team_barrier_set_waiting_for_tasks,
16751         gomp_team_barrier_waiting_for_tasks,
16752         gomp_team_barrier_done): Use BAR_* defines.
16753         * barrier.c (GOMP_barrier_cancel): New function.
16754         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16755         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16756         omp_proc_bind_spread): New params.
16757         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16758         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16759         omp_get_team_num, omp_is_initial_device): New externals.
16760         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16761         New functions.
16762         (gomp_resolve_num_threads): Adjust for thread_limit now being in
16763         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16764         infinity.  If not nested, just return minimum of max_num_threads
16765         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16766         to the returned value.  Otherwise, don't update atomically
16767         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16768         (GOMP_parallel_end): Adjust for thread_limit now being in
16769         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16770         infinity.  Adjust threads_busy in the pool rather than
16771         gomp_remaining_threads_count.  Remember team->nthreads and call
16772         gomp_team_end before adjusting threads_busy, if not nested
16773         afterwards, just set it to 1 non-atomically.  Add ialias.
16774         (GOMP_parallel_start): Adjust gomp_team_start caller.
16775         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16776         * testsuite/libgomp.c/affinity-1.c: New test.
16777         * testsuite/libgomp.c/atomic-15.c: New test.
16778         * testsuite/libgomp.c/atomic-16.c: New test.
16779         * testsuite/libgomp.c/atomic-17.c: New test.
16780         * testsuite/libgomp.c/cancel-for-1.c: New test.
16781         * testsuite/libgomp.c/cancel-for-2.c: New test.
16782         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16783         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16784         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16785         * testsuite/libgomp.c/cancel-sections-1.c: New test.
16786         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16787         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16788         * testsuite/libgomp.c/depend-1.c: New test.
16789         * testsuite/libgomp.c/depend-2.c: New test.
16790         * testsuite/libgomp.c/depend-3.c: New test.
16791         * testsuite/libgomp.c/depend-4.c: New test.
16792         * testsuite/libgomp.c/for-1.c: New test.
16793         * testsuite/libgomp.c/for-1.h: New file.
16794         * testsuite/libgomp.c/for-2.c: New test.
16795         * testsuite/libgomp.c/for-2.h: New file.
16796         * testsuite/libgomp.c/for-3.c: New test.
16797         * testsuite/libgomp.c/pr58392.c: New test.
16798         * testsuite/libgomp.c/simd-1.c: New test.
16799         * testsuite/libgomp.c/simd-2.c: New test.
16800         * testsuite/libgomp.c/simd-3.c: New test.
16801         * testsuite/libgomp.c/simd-4.c: New test.
16802         * testsuite/libgomp.c/simd-5.c: New test.
16803         * testsuite/libgomp.c/simd-6.c: New test.
16804         * testsuite/libgomp.c/target-1.c: New test.
16805         * testsuite/libgomp.c/target-2.c: New test.
16806         * testsuite/libgomp.c/target-3.c: New test.
16807         * testsuite/libgomp.c/target-4.c: New test.
16808         * testsuite/libgomp.c/target-5.c: New test.
16809         * testsuite/libgomp.c/target-6.c: New test.
16810         * testsuite/libgomp.c/target-7.c: New test.
16811         * testsuite/libgomp.c/taskgroup-1.c: New test.
16812         * testsuite/libgomp.c/thread-limit-1.c: New test.
16813         * testsuite/libgomp.c/thread-limit-2.c: New test.
16814         * testsuite/libgomp.c/thread-limit-3.c: New test.
16815         * testsuite/libgomp.c/udr-1.c: New test.
16816         * testsuite/libgomp.c/udr-2.c: New test.
16817         * testsuite/libgomp.c/udr-3.c: New test.
16818         * testsuite/libgomp.c++/affinity-1.C: New test.
16819         * testsuite/libgomp.c++/atomic-10.C: New test.
16820         * testsuite/libgomp.c++/atomic-11.C: New test.
16821         * testsuite/libgomp.c++/atomic-12.C: New test.
16822         * testsuite/libgomp.c++/atomic-13.C: New test.
16823         * testsuite/libgomp.c++/atomic-14.C: New test.
16824         * testsuite/libgomp.c++/atomic-15.C: New test.
16825         * testsuite/libgomp.c++/cancel-for-1.C: New test.
16826         * testsuite/libgomp.c++/cancel-for-2.C: New test.
16827         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16828         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16829         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16830         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16831         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16832         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16833         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16834         * testsuite/libgomp.c++/cancel-test.h: New file.
16835         * testsuite/libgomp.c++/for-9.C: New test.
16836         * testsuite/libgomp.c++/for-10.C: New test.
16837         * testsuite/libgomp.c++/for-11.C: New test.
16838         * testsuite/libgomp.c++/simd-1.C: New test.
16839         * testsuite/libgomp.c++/simd-2.C: New test.
16840         * testsuite/libgomp.c++/simd-3.C: New test.
16841         * testsuite/libgomp.c++/simd-4.C: New test.
16842         * testsuite/libgomp.c++/simd-5.C: New test.
16843         * testsuite/libgomp.c++/simd-6.C: New test.
16844         * testsuite/libgomp.c++/simd-7.C: New test.
16845         * testsuite/libgomp.c++/simd-8.C: New test.
16846         * testsuite/libgomp.c++/target-1.C: New test.
16847         * testsuite/libgomp.c++/target-2.C: New test.
16848         * testsuite/libgomp.c++/target-2-aux.cc: New file.
16849         * testsuite/libgomp.c++/target-3.C: New test.
16850         * testsuite/libgomp.c++/taskgroup-1.C: New test.
16851         * testsuite/libgomp.c++/udr-1.C: New test.
16852         * testsuite/libgomp.c++/udr-2.C: New test.
16853         * testsuite/libgomp.c++/udr-3.C: New test.
16854         * testsuite/libgomp.c++/udr-4.C: New test.
16855         * testsuite/libgomp.c++/udr-5.C: New test.
16856         * testsuite/libgomp.c++/udr-6.C: New test.
16857         * testsuite/libgomp.c++/udr-7.C: New test.
16858         * testsuite/libgomp.c++/udr-8.C: New test.
16859         * testsuite/libgomp.c++/udr-9.C: New test.
16861 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
16863         PR testsuite/57605
16864         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16865         ALWAYS_CFLAGS.
16867 2013-09-20  Alan Modra  <amodra@gmail.com>
16869         * configure: Regenerate.
16871 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
16873         * testsuite/libgomp.c/sections-2.c: New test.
16875 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16877         * testsuite/libgomp.fortran/strassen.f90:
16878         Add dg-skip-if aarch64_tiny.
16880 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
16881             Cesar Philippidis  <cesar@codesourcery.com>
16883         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16884         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16885         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16886         * testsuite/libgomp.fortran/fortran.exp: Likewise.
16887         * testsuite/libgomp.graphite/graphite.exp: Likewise.
16888         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16889         Use dg-runtest rather than gfortran-dg-runtest.
16891 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16893         * testsuite/libgomp.c/icv-2.c: Extend current handling of
16894         Linux-based x86 systems to cover all GNU systems.
16895         * testsuite/libgomp.c/lock-3.c: Likewise.
16896         * testsuite/libgomp.c/pr48591.c: Likewise.
16898 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
16900         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16901         GNU/Hurd, as done for Linux-based systems.
16903         * config/posix/ptrlock.h: Fix comment.
16905 2013-05-27  Tobias Burnus  <burnus@net-b.de>
16907         PR fortran/57423
16908         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16909         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16910         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16911         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16912         omp_destroy_nest_lock): Correct arguments to match the one in
16913         the OpenMP spec.
16914         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16915         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16916         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16917         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16919 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
16921         * testsuite/libgomp.c/loop-13.c: New test.
16922         * testsuite/libgomp.c/loop-14.c: New test.
16923         * testsuite/libgomp.c/loop-15.c: New test.
16924         * testsuite/libgomp.c++/loop-13.C: New test.
16925         * testsuite/libgomp.c++/loop-14.C: New test.
16926         * testsuite/libgomp.c++/loop-15.C: New test.
16928 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
16930         PR middle-end/56217
16931         * testsuite/libgomp.c++/pr56217.C: New test.
16933 2013-02-01  Alan Modra  <amodra@gmail.com>
16935         * task.c (GOMP_task, GOMP_taskwait): Comment.
16937 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
16938             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
16940         PR libgomp/55561
16941         * config/linux/wait.h (do_spin): Use atomic load for addr.
16942         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16943         for intptr and ptrlock.
16944         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16945         for ptrlock.
16947 2013-01-22  Alan Modra  <amodra@gmail.com>
16949         PR libgomp/51376
16950         PR libgomp/56073
16951         * task.c (GOMP_task): Revert 2011-12-09 change.
16952         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
16953         barrier to read task->children..
16954         (gomp_barrier_handle_tasks): ..and matching atomic store with
16955         release barrier here when setting parent->children to NULL.
16957 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
16958             Tobias Burnus  <burnus@net-b.de>
16960         PR driver/55884
16961         * testsuite/libgomp.fortran/fortran.exp: Use
16962         -fintrinsic-modules-path= instead of
16963         -fintrinsic-modules-path.
16965 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
16967         Update copyright years.
16969 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16971         * testsuite/libgomp.fortran/fortran.exp: Set
16972         -fintrinsic-modules-path.
16974 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16976         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16977         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16979 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
16981         PR libgomp/55411
16982         * team.c (gomp_free_thread): Decrease gomp_managed_threads
16983         if pool had any threads_used.
16985 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
16987         * testsuite/libgomp.c++/pr24455.C: Use
16988         -Wl,-undefined,dynamic_lookup on darwin.
16990 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
16992         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16994 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
16996         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16998 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
16999             Jim MacArthur  <jim.macarthur@arm.com>
17000             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17001             Nigel Stephens  <nigel.stephens@arm.com>
17002             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17003             Richard Earnshaw  <rearnsha@arm.com>
17004             Sofiane Naci  <sofiane.naci@arm.com>
17005             Stephen Thomas  <stephen.thomas@arm.com>
17006             Tejas Belagod  <tejas.belagod@arm.com>
17007             Yufeng Zhang  <yufeng.zhang@arm.com>
17009         * configure.tgt: Add AArch64.
17011 2012-10-04  Jason Merrill  <jason@redhat.com>
17013         * testsuite/libgomp.c++/tls-init1.C: New.
17015 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17017         * configure: Regenerated.
17019 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17021         * config/linux/mips/futex.h (sys_futex0): Change to static
17022         function with noinline, nomips16 attributes under MIPS16. Adjust
17023         asm statement to place 'li v0,SYS_futex' immediately before
17024         syscall insn.
17026 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17028         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17029         conflict with index.html on case-insensitive file systems.
17031 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17033         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17034         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17036 2012-07-02  Richard Guenther  <rguenther@suse.de>
17037             Michael Matz  <matz@suse.de>
17038             Tobias Grosser <tobias@grosser.es>
17039             Sebastian Pop <sebpop@gmail.com>
17041         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17042         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17043         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17044         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17046 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17048         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17050 2012-06-22  Richard Guenther  <rguenther@suse.de>
17052         Merge from graphite branch
17053         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17055         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17056         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17058 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17060         PR middle-end/53580
17061         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17062         use GOMP_barrier () call instead.
17063         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17064         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17065         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17066         call GOMP_barrier instead.
17067         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17069 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17071         PR libgomp/52993
17072         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17073         argument to memset call.
17075 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17077         * configure: Regenerated.
17079 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17081         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17083 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17085         PR bootstrap/52812
17086         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17088 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17090         PR middle-end/52547
17091         * testsuite/libgomp.c/pr52547.c: New test.
17093 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17095         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17097 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17099         * configure.tgt (mips-sgi-irix6*): Remove.
17101 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17103         * configure.tgt (alpha*-dec-osf*): Remove.
17105         * config/osf/sem.h: Remove.
17106         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17108 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17110         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17112 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17114         PR libstdc++/52188
17115         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17116         Remove ENABLE_SYMVERS_SOL2.
17117         * configure: Regenerate.
17118         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17119         (PREPROCESS): New variable.
17120         (libgomp.ver): New target.
17121         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17122         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17123         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17124         Use libgomp.ver.
17125         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17126         * Makefile.in: Regenerate.
17128 2012-02-14  Walter Lee  <walt@tilera.com>
17130         * configure.tgt: Handle tilegx and tilepro.
17131         * config/linux/tile/futex.h: New file.
17133 2012-02-08  Richard Guenther  <rguenther@suse.de>
17135         PR tree-optimization/46886
17136         * testsuite/libgomp.c/pr46886.c: New testcase.
17138 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17140         * config/linux/arm: Remove empty directory.
17141         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17143 2011-12-09  Alan Modra  <amodra@gmail.com>
17145         PR libgomp/51376
17146         * task.c (GOMP_taskwait): Don't access task->children outside of
17147         task_lock mutex region.
17148         (GOMP_task): Likewise.
17150 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17152         PR libgomp/51132
17153         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17154         to file scope.
17155         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17156         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17157         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17158         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17159         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17161 2011-12-02  Alan Modra  <amodra@gmail.com>
17163         * config/linux/affinity.c: Use atomic rather than sync builtin.
17164         * config/linux/lock.c: Likewise.
17165         * config/linux/ptrlock.h: Likewise.
17166         * config/linux/ptrlock.c: Likewise.
17167         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17168         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17169         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17170         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17171         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17172         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17173         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17174         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17175         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17176         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17178 2011-11-30  Alan Modra  <amodra@gmail.com>
17180         PR libgomp/51298
17181         * config/linux/bar.h: Use atomic rather than sync builtins.
17182         * config/linux/bar.c: Likewise.  Add missing acquire
17183         synchronisation on generation field.
17184         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17185         double unlock.
17187 2011-11-30  Alan Modra  <amodra@gmail.com>
17189         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17190         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17191         * config/linux/mutex.h: Use atomic rather than sync builtins.
17192         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17193         * config/linux/omp-lock.h: Comment fix.
17194         * config/linux/arm/mutex.h: Delete.
17195         * config/linux/powerpc/mutex.h: Delete.
17196         * config/linux/ia64/mutex.h: Delete.
17197         * config/linux/mips/mutex.h: Delete.
17199 2011-11-30  Alan Modra  <amodra@gmail.com>
17201         PR libgomp/51249
17202         * config/linux/sem.h: Rewrite.
17203         * config/linux/sem.c: Rewrite.
17205 2011-11-28  Richard Henderson  <rth@redhat.com>
17207         * libgomp.h (enum memmodel): New.
17209 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17211         * configure: Regenerate.
17213 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17215         * config/posix95: Remove empty directory.
17217 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17219         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17221 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17223         PR fortran/49792
17224         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17225         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17227 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17229         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17231 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17233         PR libgomp/49965
17234         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17236 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17238         * config/linux/proc.h: New.
17239         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17240         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17241         (gomp_init_num_threads): Update call to cpuset_popcount.
17242         (get_num_procs): Ditto.
17243         * config/linux/affinity.c (gomp_init_affinity): Call
17244         gomp_cpuset_popcount.
17246 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17248         PR fortran/42041
17249         PR fortran/46752
17250         * omp.h.in (omp_in_final): New prototype.
17251         * omp_lib.f90.in (omp_in_final): New interface.
17252         (omp_integer_kind, omp_logical_kind): Remove
17253         and replace all its uses in the module with 4.
17254         (openmp_version): Change to 201107.
17255         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17256         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17257         kind for the parameters.
17258         (omp_in_final): New external.
17259         (openmp_version): Change to 201107.
17260         * task.c (omp_in_final): New function.
17261         (gomp_init_task): Initialize final_task.
17262         (GOMP_task): Remove unused attribute from flags.  Handle final
17263         tasks.
17264         (GOMP_taskyield): New function.
17265         (omp_in_final): Return true if if (false) or final (true) task
17266         or descendant of final (true).
17267         * fortran.c (omp_in_final_): New function.
17268         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17269         (GOMP_3.0): Export GOMP_taskyield.
17270         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17271         variables.
17272         (parse_unsigned_long_list): New function.
17273         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17274         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17275         even if parse_affinity returned false.
17276         * config/linux/affinity.c (gomp_init_affinity): Handle
17277         gomp_cpu_affinity_len == 0.
17278         * libgomp_g.h (GOMP_taskyield): New prototype.
17279         * libgomp.h (struct gomp_task): Add final_task field.
17280         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17281         * team.c (gomp_team_start): Override new task's nthreads_var icv
17282         if list form OMP_NUM_THREADS has been used and it has value for
17283         the new nesting level.
17285         * testsuite/libgomp.c/atomic-11.c: New test.
17286         * testsuite/libgomp.c/atomic-12.c: New test.
17287         * testsuite/libgomp.c/atomic-13.c: New test.
17288         * testsuite/libgomp.c/atomic-14.c: New test.
17289         * testsuite/libgomp.c/reduction-6.c: New test.
17290         * testsuite/libgomp.c/task-5.c: New test.
17291         * testsuite/libgomp.c++/atomic-2.C: New test.
17292         * testsuite/libgomp.c++/atomic-3.C: New test.
17293         * testsuite/libgomp.c++/atomic-4.C: New test.
17294         * testsuite/libgomp.c++/atomic-5.C: New test.
17295         * testsuite/libgomp.c++/atomic-6.C: New test.
17296         * testsuite/libgomp.c++/atomic-7.C: New test.
17297         * testsuite/libgomp.c++/atomic-8.C: New test.
17298         * testsuite/libgomp.c++/atomic-9.C: New test.
17299         * testsuite/libgomp.c++/task-8.C: New test.
17300         * testsuite/libgomp.c++/reduction-4.C: New test.
17301         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17302         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17303         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17304         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17305         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17306         * testsuite/libgomp.fortran/pointer1.f90: New test.
17307         * testsuite/libgomp.fortran/pointer2.f90: New test.
17308         * testsuite/libgomp.fortran/task4.f90: New test.
17310 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17312         * libgomp.texi: Update OpenMP spec references to 3.1.
17313         (omp_in_final,OMP_PROC_BIND): New sections.
17314         (OMP_NUM_THREADS): Document that the value can be now a list.
17315         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17317 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17319         * config/linux/x86/futex.h: Check __x86_64__ instead of
17320         __LP64__.
17322 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17324         PR middle-end/49897
17325         PR middle-end/49898
17326         * testsuite/libgomp.c/pr49897-1.c: New test.
17327         * testsuite/libgomp.c/pr49897-2.c: New test.
17328         * testsuite/libgomp.c/pr49898-1.c: New test.
17329         * testsuite/libgomp.c/pr49898-2.c: New test.
17331 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17333         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17334         for ia32 instead of ilp32.
17336         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17337         * testsuite/libgomp.c/atomic-6.c: Likewise.
17339 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17341         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17342         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17344 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17346         PR libgomp/45351
17347         * config/osf/sem.h: New file.
17348         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17350 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17352         PR target/49541
17353         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17354         ldflags.
17356 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17358         * config/linux/wait.h (do_spin): New inline, largely copied
17359         from do_wait, just don't do futex_wait here, instead return true if
17360         it should be done.
17361         (do_wait): Implement using do_spin.
17362         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17363         to prototype.
17364         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17365         __sync_bool_compare_and_swap, pass the oldval to
17366         gomp_mutex_lock_slow.
17367         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17368         If all mutex contenders are just spinning and not sleeping, don't
17369         change state to 2 unnecessarily.  Optimize the loop when state has
17370         already become 2 to use just one atomic operation per loop instead
17371         of two.
17372         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17373         to prototype.
17374         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17375         __sync_bool_compare_and_swap, pass the oldval to
17376         gomp_mutex_lock_slow.
17378 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17380         PR libgomp/49490
17381         * iter.c (gomp_iter_static_next): For chunk size 0
17382         only use n ceil/ nthreads size for the first
17383         n % nthreads threads in the team instead of
17384         all threads except for the last few ones which
17385         get less work or none at all.
17386         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17387         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17388         chunk argument, set run_sched_modifier to 0 for static
17389         resp. 1 for other kinds.  If chunk argument is 0
17390         and not static, set value to 1.
17392 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17394         PR c++/49043
17395         * testsuite/libgomp.c++/pr49043.C: New test.
17397         PR c++/48869
17398         * testsuite/libgomp.c++/pr48869.C: New test.
17400 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17402         PR fortran/48894
17403         * fortran.c: Include limits.h.
17404         (TO_INT): Define.
17405         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17406         *set.
17407         (omp_set_num_threads_8_, omp_set_schedule_8_,
17408         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17409         omp_get_team_size_8_): Use TO_INT macro.
17410         * testsuite/libgomp.fortran/pr48894.f90: New test.
17412 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17414         PR middle-end/48591
17415         * testsuite/libgomp.c/pr48591.c: New test.
17417 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17419         PR bootstrap/48135
17420         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17421         * configure: Regenerate.
17423 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
17425         PR fortran/47886
17426         * testsuite/libgomp.fortran/task3.f90: New test.
17428 2011-02-24  Tobias Burnus  <burnus@net-b.de>
17430         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17432 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
17434         PR libgomp/47854
17435         * libgomp.texi (omp_get_wtime): Don't say time in the past
17436         must be Unix Epoch.
17438 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17440         PR libgomp/47804
17441         * testsuite/libgomp.fortran/fortran.exp: Check for both
17442         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
17443         but $blddir != "", still append ${blddir}/${lang_library_path}
17444         to ld_library_path.
17446 2011-02-16  Tobias Burnus  <burnus@net-b.de>
17448         PR libgomp/47758
17449         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17450         of libquadmath.a before adding its libpath to ldflags.
17452 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17454         PR libgomp/47731
17455         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17456         to FUTEX_WAIT futex syscall.
17457         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17459 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17461         * configure: Regenerate.
17463 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
17465         PR libstdc++/36104
17466         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17468 2011-01-16  Gerald Pfeifer
17470         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17472 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
17474         PR fortran/46874
17475         * libgomp.fortran/allocatable6.f90: New test.
17477 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17479         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17480         * configure: Regenerate.
17482 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17484         PR target/40125
17485         PR lto/46695
17486         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17487         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17488         * aclocal.m4: Regenerate.
17489         * configure: Regenerate.
17490         * Makefile.in: Regenerate.
17491         * testsuite/Makefile.in: Regenerate.
17493 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
17495         PR fortran/46753
17496         * libgomp.fortran/pr46753.f90: New test.
17498         PR libgomp/43706
17499         * env.c (initialize_env): Default to spin count 300000
17500         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17501         is specified.
17503         PR libgomp/45240
17504         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17505         at the end if sync builtins aren't supported.
17507 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17509         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17511 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17513         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17515 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
17517         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17519 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17520             Tobias Burnus  <burnus@net-b.de>
17522         PR fortran/32049
17523         * configure.ac:
17524         * configure: Regenerate.
17526 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17528         * config/linux/futex.h: New.
17529         * config/linux/arm/mutex.h: New.
17530         * configure.tgt (arm*-*-linux*): Add config path.
17532 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
17534         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17536 2010-09-23  Tobias Burnus  <burnus@net-b.de>
17538         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17539         Change Fortran datatype to LOGICAL.
17540         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17541         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17543 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17545         * configure: Regenerate.
17547 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
17549         * libgomp.texi: Add function keyword to a couple of Fortran
17550         interfaces, use integer instead of int for Fortran.
17552 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
17554         * libgomp.texi: Fix spelling and pasto problems throughout.
17555         Adjust prototypes to match code.
17557 2010-07-24  Tobias Burnus  <burnus@net-b.de>
17559         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17560         silence -fwhole-file warning.
17562 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17564         * configure.tgt (*-*-solaris2.[56]*): Removed.
17566 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17568         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17569         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17570         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17571         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17572         targetting solaris2*.
17573         * configure: Regenerate.
17574         * config.h.in: Regenerate.
17576         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17577         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17578         Add libgomp_version_dep.
17579         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17580         versioning.
17581         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17582         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17583         * Makefile.in: Regenerate.
17585         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17586         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17587         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17588         to common block, protected by
17589         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17591 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17593         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
17595 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
17597         PR bootstrap/43170
17598         * configure: Regenerate.
17600 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17602         PR other/43620
17603         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17604         * configure: Regenerate.
17605         * Makefile.in: Regenerate.
17606         * testsuite/Makefile.in: Regenerate.
17608 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17610         PR c/43893
17611         * testsuite/libgomp.c/pr43893.c: New test.
17612         * testsuite/libgomp.c++/pr43893.C: New test.
17614 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17616         PR middle-end/43570
17617         * testsuite/libgomp.fortran/vla8.f90: New test.
17619 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17621         PR libgomp/43706
17622         * config/linux/affinity.c (gomp_init_affinity): Decrease
17623         gomp_available_cpus if affinity mask confines the process to fewer
17624         CPUs.
17625         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17626         non-NULL, just return gomp_available_cpus.
17628         PR libgomp/43569
17629         * sections.c (gomp_sections_init): Initialize ws->mode.
17631 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17633         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17634         not unused bar variable.
17635         * configure: Regenerate.
17637 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17639         * Makefile.in: Regenerate.
17640         * aclocal.m4: Regenerate.
17641         * testsuite/Makefile.in: Regenerate.
17643 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17645         PR libgomp/42942
17646         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17647         (initialize_env): Adjust callers.
17648         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17649         when the argument is 0.
17651         * testsuite/libgomp.c/pr42942.c: New test.
17653 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17655         PR middle-end/42644
17656         PR middle-end/42130
17657         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17658         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17660 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17662         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17663         * testsuite/libgomp.c++/task-6.C: Likewise.
17665 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
17667         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17669 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
17671         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17672         * configure: Regenerate.
17674 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17676         PR fortran/42866
17677         * testsuite/libgomp.fortran/allocatable5.f90: New test.
17679 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
17681         * configure.ac: Test for executability of GFORTRAN.
17682         * configure: Regenerate.
17684 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17686         * configure: Regenerate.
17688 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17690         PR libgomp/42602
17691         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17693 2010-01-03  Richard Guenther  <rguenther@suse.de>
17695         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17697 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
17699         * testsuite/libgomp.graphite/pr4118.c: New.
17701 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17703         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17704         for darwin, protect the test with require-effective-target tls_runtime.
17705         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17707 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17709         PR target/41605
17710         * testsuite/lib/libgomp.exp: Provide -B options to allow for
17711         link spec %s substitutions for static libraries.
17713 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
17715         PR testsuite/42135
17716         * libgomp.graphite/force-parallel-2.c: Reduce array size.
17718 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17720         * Makefile.in: Regenerate.
17721         * configure: Regenerate.
17722         * testsuite/Makefile.in: Regenerate.
17724 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17726         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17727         settings for LC_ALL and LANG.
17729 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
17731         PR fortran/42162
17732         * testsuite/libgomp.fortran/pr42162.f90: New test.
17734 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
17736         PR middle-end/42029
17737         * testsuite/libgomp.c/pr42029.c: New test.
17739 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
17741         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17742         *s.  Accept ld version without text in ()s.
17743         * configure: Regenerated.
17745 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
17747         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17749 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17751         PR libgomp/41418
17752         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17753         or a hyphen (happens with fortran language disabled).
17754         * configure: Regenerate.
17756 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17758         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17759         use sed script portable to Solaris /bin/sed for extracting ld
17760         version.
17761         * configure: Regenerate.
17763 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
17765         * testsuite/libgomp.graphite/bounds.c: New test.
17767 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17769         * Makefile.am (libgomp_la_LINK): New.
17770         * Makefile.in: Regenerate.
17772 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17774         * configure.ac (AC_PREREQ): Bump to 2.64.
17776 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17778         * Makefile.am (install-html, install-pdf): Remove.
17779         * Makefile.in: Regenerate.
17781         * Makefile.in: Regenerate.
17782         * aclocal.m4: Regenerate.
17783         * config.h.in: Regenerate.
17784         * configure: Regenerate.
17785         * testsuite/Makefile.in: Regenerate.
17787 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17789         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17790         * Makefile.in: Regenerate.
17792 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
17794         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17795         * Makefile.in: Regenerate.
17797 2009-08-19  Tobias Burnus  <burnus@net-b.de>
17799         PR fortran/41102
17800         omp_lib.h.in: Fix -std=f95 errors.
17802 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
17804         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17805         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17806         * testsuite/libgomp.graphite/graphite.exp: New.
17808 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
17810         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17811         only build.
17813 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
17815         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17816         needed memory barrier semantics.
17817         * config/linux/mips/mutex.h: New file.
17819 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17821         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17823 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
17825         * configure: Regenerate.
17827 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
17829         PR testsuite/40699
17830         PR testsuite/40707
17831         PR testsuite/40709
17832         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17833         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17834         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17836 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17838         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17839         options when choosing a multilib.
17841 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
17843         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17844         ld_library_path.  Use add_path.  Add just find_libgcc_s to
17845         ld_library_path, not every libgcc multilib directory.
17846         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17847         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17848         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17849         Use add_path.
17850         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17852 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
17854         * Makefile.am (LTLDFLAGS): Define.
17855         (LINK): Define.
17856         * Makefile.in: Regenerate.
17858 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
17860         PR fortran/39718
17861         * testsuite/libgomp.fortran/fortran.exp: Don't link with
17862         libgfortranbegin, check existence of libgfortran.a instead of
17863         libgfortranbegin.a.
17865 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
17867         PR libgomp/40174
17868         * team.c (gomp_thread_start): Destroy thr->release semaphore.
17869         (gomp_free_pool_helper): Likewise.
17871 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
17872             Jakub Jelinek  <jakub@redhat.com>
17874         PR fortran/35423
17875         * testsuite/libgomp.fortran/workshare2.f90: New test.
17877 2009-04-09  Nick Clifton  <nickc@redhat.com>
17879         * iter.c: Change copyright header to refer to version 3 of the
17880         GNU General Public License with version 3.1 of the GCC Runtime
17881         Library Exception and to point readers at the COPYING3 and
17882         COPYING3.RUNTIME files and the FSF's license web page.
17883         * alloc.c: Likewise.
17884         * barrier.c: Likewise.
17885         * config/bsd/proc.c: Likewise.
17886         * config/linux/affinity.c: Likewise.
17887         * config/linux/alpha/futex.h: Likewise.
17888         * config/linux/bar.c: Likewise.
17889         * config/linux/bar.h: Likewise.
17890         * config/linux/ia64/futex.h: Likewise.
17891         * config/linux/ia64/mutex.h: Likewise.
17892         * config/linux/lock.c: Likewise.
17893         * config/linux/mips/futex.h: Likewise.
17894         * config/linux/mutex.c: Likewise.
17895         * config/linux/mutex.h: Likewise.
17896         * config/linux/powerpc/futex.h: Likewise.
17897         * config/linux/proc.c: Likewise.
17898         * config/linux/ptrlock.c: Likewise.
17899         * config/linux/ptrlock.h: Likewise.
17900         * config/linux/s390/futex.h: Likewise.
17901         * config/linux/sem.c: Likewise.
17902         * config/linux/sem.h: Likewise.
17903         * config/linux/sparc/futex.h: Likewise.
17904         * config/linux/wait.h: Likewise.
17905         * config/linux/x86/futex.h: Likewise.
17906         * config/mingw32/proc.c: Likewise.
17907         * config/mingw32/time.c: Likewise.
17908         * config/posix/affinity.c: Likewise.
17909         * config/posix/bar.c: Likewise.
17910         * config/posix/bar.h: Likewise.
17911         * config/posix/lock.c: Likewise.
17912         * config/posix/mutex.h: Likewise.
17913         * config/posix/proc.c: Likewise.
17914         * config/posix/ptrlock.h: Likewise.
17915         * config/posix/sem.c: Likewise.
17916         * config/posix/sem.h: Likewise.
17917         * config/posix/time.c: Likewise.
17918         * config/posix95/lock.c: Likewise.
17919         * critical.c: Likewise.
17920         * env.c: Likewise.
17921         * error.c: Likewise.
17922         * fortran.c: Likewise.
17923         * iter_ull.c: Likewise.
17924         * libgomp.h: Likewise.
17925         * libgomp_f.h.in: Likewise.
17926         * libgomp_g.h: Likewise.
17927         * loop.c: Likewise.
17928         * loop_ull.c: Likewise.
17929         * omp.h.in: Likewise.
17930         * omp_lib.f90.in: Likewise.
17931         * omp_lib.h.in: Likewise.
17932         * ordered.c: Likewise.
17933         * parallel.c: Likewise.
17934         * sections.c: Likewise.
17935         * single.c: Likewise.
17936         * task.c: Likewise.
17937         * team.c: Likewise.
17938         * work.c: Likewise.
17940 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
17942         * testsuite/config/default.exp: Change copyright header to refer to
17943         version 3 of the GNU General Public License and to point readers
17944         at the COPYING3 file and the FSF's license web page.
17946 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
17948         PR middle-end/39573
17949         * libgomp.c++/pr39573.C: New test.
17951 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
17953         PR other/39591
17954         * testsuite/libgomp.c/pr39591-1.c: New test.
17955         * testsuite/libgomp.c/pr39591-2.c: New test.
17956         * testsuite/libgomp.c/pr39591-3.c: New test.
17958 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
17960         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17961         * testsuite/libgomp.c/atomic-6.c: Ditto.
17963 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17965         PR c/39495
17966         * testsuite/libgomp.c/loop-12.c: New test.
17967         * testsuite/libgomp.c/loop-11.c: New test.
17968         * testsuite/libgomp.c++/loop-11.C: New test.
17969         * testsuite/libgomp.c++/loop-12.C: New test.
17970         * testsuite/libgomp.c++/for-8.C: New test.
17972 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17974         * configure: Regenerate.
17976 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
17978         PR middle-end/39154
17979         * testsuite/libgomp.c/pr39154.c: New test.
17981 2009-01-30  Ian Lance Taylor  <iant@google.com>
17983         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17984         libgomp_ld_is_gold.  Get gold version number.
17985         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17986         * configure: Rebuild.
17988 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17990         * testsuite/lib/libgomp.exp: Add -B option for targets that
17991         use libgfortran.a%s in their specs.
17993 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
17995         PR libgomp/38086
17996         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17997         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17998         HAVE_AS_SYMVER_DIRECTIVE is not defined.
17999         * configure: Regenerated.
18000         * config.h.in: Likewise.
18002 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18004         PR c++/38650
18005         * testsuite/libgomp.c/pr38650.c: New test.
18006         * testsuite/libgomp.c++/pr38650.C: New test.
18008 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18010         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18012 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18014         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18016 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18018         * configure: Regenerate.
18020 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18022         PR middle-end/36802
18023         * testsuite/libgomp.c/pr36802-1.c: New test.
18024         * testsuite/libgomp.c/pr36802-2.c: New test.
18025         * testsuite/libgomp.c/pr36802-3.c: New test.
18027 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18029         PR libgomp/38270
18030         * config/linux/powerpc/mutex.h: New.
18032 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18034         PR c++/38257
18035         * testsuite/libgomp.c++/for-7.C: New test.
18037         PR c++/38348
18038         * testsuite/libgomp.c++/for-6.C: New test.
18040 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18042         PR testsuite/28870
18043         * testsuite/lib/libgomp.exp: Include new timeout library files.
18044         (libgomp_target_compile): Set timeout value from new proc.
18046 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18048         PR libgomp/37938
18049         * config/linux/ia64/mutex.h: New.
18051 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18053         PR libgomp/37935
18054         * libgomp.texi (Runtime library routines, environment variables):
18055         Update for OpenMP version 3.0.
18057 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18058             Steve Ellcey  <sje@cup.hp.com>
18060         * configure: Regenerate for new libtool.
18061         * Makefile.in: Ditto.
18062         * testsuite/Makefile.in: Ditto.
18064 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18065             Andreas Tobler  <a.tobler@schweiz.org>
18067         * config/bsd/proc.c: New file.
18068         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18069         * configure.ac: Check for header <sys/sysctl.h>
18070         * configure: Regenerate.
18071         * config.h.in: Likewise.
18073 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18075         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18077 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18079         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18080         * Makefile.in: Regenerated.
18081         * testsuite/Makefile.in: Regenerated.
18083 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18085         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18086         depend on blddir if blddir exists.
18087         (libgomp_target_compile): Likewise.
18088         * testsuite/libgomp.c++/c++.exp: Likewise.
18089         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18091 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18093         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18094         Do not list GPL as Invariant Section.
18096 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18097             Chao-ying Fu  <fu@mips.com>
18099         * configure.tgt: Enable futex for MIPS.
18100         * config/linux/mips/futex.h: New file.
18102 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18104         * team.c (gomp_team_end): Free team immediately if it has
18105         just one thread.
18107 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18109         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18110         * testsuite/libgomp.fortran/fortran.exp: Same.
18111         * testsuite/libgomp.c/c.exp: Same.
18112         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18113         directory to library path first.
18115 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18117         * env.c (parse_stacksize): Add cast to avoid warning.
18118         (parse_spincount): Likewise.
18120 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18122         * testsuite/libgomp.c/loop-10.c: New test.
18123         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18124         * libgomp.c++/loop-6.C (main): Likewise.
18126         PR debug/36617
18127         * testsuite/libgomp.c/debug-1.c: New test.
18129 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18131         * testsuite/libgomp.c/nqueens-1.c: New test.
18133         PR c++/36523
18134         * testsuite/libgomp.c++/task-7.C: New function.
18136 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18138         * configure: Regenerate.
18140 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18142         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18143         mutex when HAVE_SYNC_BUILTINS isn't defined.
18145 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18147         * libgomp.texi (omp_test_lock): Fix typo.
18149 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18151         * omp_lib.f90.in: Add "implicit none".
18153 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18155         PR middle-end/36506
18156         * testsuite/libgomp.c/reduction-5.c: New test.
18158 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18160         * libgomp.h (struct gomp_task): Add in_tied_task field.
18161         * task.c (gomp_init_task): Initialize it.
18162         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18163         unconditionally.  Don't call gomp_team_barrier_wake if
18164         current task is implicit or if(0) from implicit and number of
18165         running tasks is equal to nthreads - 1.
18167         PR libgomp/36471
18168         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18169         omp_get_team_size_8): Fix pastos.
18171         PR libgomp/36469
18172         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18173         * configure: Regenerated.
18174         * config.h.in: Regenerated.
18175         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18176         defined.
18178 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
18180         PR bootstrap/36452
18181         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18182         (GOMP_loop_ull_dynamic_start): Likewise.
18183         (GOMP_loop_ull_guided_start): Likewise.
18184         (GOMP_loop_ull_ordered_static_start): Likewise.
18185         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18186         (GOMP_loop_ull_ordered_guided_start): Likewise.
18188 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18189             Richard Henderson  <rth@redhat.com>
18190             Ulrich Drepper  <drepper@redhat.com>
18191             Jakob Blomer  <jakob.blomer@ira.uka.de>
18193         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18194         Substitute also OMP_*LOCK_25*.
18195         * configure: Regenerated.
18196         * config.h.in: Regenerated.
18197         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18198         ptrlock.c and task.c.
18199         * Makefile.in: Regenerated.
18200         * testsuite/Makefile.in: Regenerated.
18201         * task.c: New file.
18202         * loop_ull.c: New file.
18203         * iter_ull.c: New file.
18204         * libgomp.h: Include ptrlock.h.
18205         (enum gomp_task_kind): New type.
18206         (struct gomp_team): Add task_lock, task_queue, task_count,
18207         task_running_count, single_count fields.  Add
18208         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18209         Remove work_share_lock, generation_mask,
18210         oldest_live_gen, num_live_gen and init_work_shares fields, add
18211         work work_share_list_alloc, work_share_list_free and work_share_chunk
18212         fields.  Change work_shares from pointer to pointers into an array.
18213         Change ordered_release field into gomp_sem_t ** from flexible array
18214         member.  Add implicit_task and initial_work_shares fields.
18215         Move close to the end of the struct.
18216         (struct gomp_team_state): Add single_count, last_work_share,
18217         active_level and level fields, remove work_share_generation.
18218         (gomp_barrier_handle_tasks): New prototype.
18219         (gomp_finish_task): New inline function.
18220         (struct gomp_work_share): Move chunk_size, end, incr into
18221         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18222         next_ll fields.  Reshuffle fields.  Add next_alloc,
18223         next_ws, next_free and inline_ordered_team_ids fields, change
18224         ordered_team_ids into pointer from flexible array member.
18225         Add mode field.  Put lock and next into a different cache line
18226         from most of the write-once fields.
18227         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18228         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18229         gomp_iter_ull_guided_next): New prototypes.
18230         (gomp_new_icv): New prototype.
18231         (struct gomp_thread): Add thread_pool and task fields.
18232         (struct gomp_thread_pool): New type.
18233         (gomp_new_team): New prototype.
18234         (gomp_team_start): Change type of last argument.
18235         (gomp_new_work_share): Removed.
18236         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18237         (gomp_work_share_init_done): New static inline.
18238         (gomp_throttled_spin_count_var, gomp_available_cpus,
18239         gomp_managed_threads): New extern decls.
18240         (gomp_init_task): New prototype.
18241         (gomp_spin_count_var): New extern var decl.
18242         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18243         or no alias support, or if not PIC.
18244         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18245         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18246         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18247         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18248         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18249         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18250         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18251         gomp_test_nest_lock_25): New prototypes.
18252         (omp_lock_symver, strong_alias): Define.
18253         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18254         decls.
18255         (gomp_end_task): New.
18256         (struct gomp_task_icv, gomp_global_icv): New.
18257         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18258         (struct gomp_task): New.
18259         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18260         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18261         (gomp_icv): New.
18262         (gomp_schedule_type): Reorder enum to match
18263         omp_sched_t.
18264         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18265         fields.
18266         (gomp_thread_start): Add gomp_team_barrier_wait call.
18267         For non-nested case remove clearing of docked thread thr fields.
18268         Use pool fields instead of global gomp_* variables.  Use
18269         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18270         Create tasks for each member thread.
18271         (free_team): Only destroy team barrier, task_lock here and free it.
18272         (gomp_free_thread): Free last_team if non-NULL.
18273         (gomp_team_end): Call gomp_team_barrier_wait instead of
18274         gomp_barrier_wait.  For nested case call one extra
18275         gomp_barrier_wait.  Move here some destruction from free_team.
18276         Call free_team on pool->last_team if any, rather than freeing
18277         current team.  Destroy work_share_list_free_lock ifndef
18278         HAVE_SYNC_BUILTINS.
18279         (gomp_new_icv): New function.
18280         (gomp_threads, gomp_threads_size, gomp_threads_used,
18281         gomp_threads_dock): Removed.
18282         (gomp_thread_destructor): New variable.
18283         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18284         functions.
18285         (gomp_team_start): Create new pool if current thread doesn't have
18286         one.  Use pool fields instead of global gomp_* variables.
18287         Initialize thread_pool field for new threads.  Clear single_count.
18288         Change last argument from ws to team, don't create
18289         new team, set ts.work_share to &team->work_shares[0] and clear
18290         ts.last_work_share.  Don't clear ts.work_share_generation.
18291         If number of threads changed, adjust atomically gomp_managed_threads.
18292         Use gomp_init_task instead of gomp_new_task,
18293         set thr->task to the corresponding implicit_task array entry.
18294         Create tasks for each member thread.  Initialize ts.level.
18295         (initialize_team): Call pthread_key_create on
18296         gomp_thread_destructor.
18297         (team_destructor): New function.
18298         (new_team): Removed.
18299         (gomp_new_team): New function.
18300         (free_team): Free gomp_work_share blocks chained through next_alloc,
18301         instead of freeing work_shares and destroying work_share_lock.
18302         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18303         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18304         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18305         of gomp_barrier_wait.
18306         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18307         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18308         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18309         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18310         of gomp_barrier_wait.
18311         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18312         gomp_work_share_init_done if gomp_work_share_start returned true.
18313         Don't unlock ws->lock.
18314         * work.c: Include stddef.h.
18315         (free_work_share): Use work_share_list_free_lock instead
18316         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18317         Call gomp_fini_work_share and then either free ws if orphaned, or
18318         put it into work_share_list_free list of the current team.
18319         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18320         functions.
18321         (gomp_work_share_start, gomp_work_share_end,
18322         gomp_work_share_end_nowait): Rewritten.
18323         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18324         (openmp_version): Set to 200805.
18325         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18326         omp_sched_guided, omp_sched_auto): New parameters.
18327         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18328         omp_set_max_active_levels, omp_get_max_active_levels,
18329         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18330         omp_get_active_level): New interfaces.
18331         * omp_lib.h.in (openmp_version): Set to 200805.
18332         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18333         omp_sched_guided, omp_sched_auto): New parameters.
18334         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18335         omp_set_max_active_levels, omp_get_max_active_levels,
18336         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18337         omp_get_active_level): New externals.
18338         * loop.c: Include limits.h.
18339         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18340         GFS_AUTO.
18341         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18342         Likewise.  Use gomp_icv.
18343         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18344         ts.static_trip here.
18345         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18346         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18347         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18348         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18349         don't unlock ws->lock, otherwise lock it.
18350         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18351         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18352         (gomp_parallel_loop_start): Call gomp_new_team instead of
18353         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18354         Adjust gomp_team_start caller.  Pass 0 as second argument to
18355         gomp_resolve_num_threads.
18356         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18357         If adding ws->chunk_size nthreads + 1 times after end won't
18358         overflow, set ws->mode to 1.
18359         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18360         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18361         GOMP_loop_ull_ordered_static_start,
18362         GOMP_loop_ull_ordered_dynamic_start,
18363         GOMP_loop_ull_ordered_guided_start,
18364         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18365         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18366         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18367         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18368         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18369         prototypes.
18370         * libgomp.map: Export lock routines also @@OMP_2.0.
18371         (GOMP_loop_ordered_dynamic_first,
18372         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18373         GOMP_loop_ordered_static_first): Remove.
18374         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18375         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18376         GOMP_loop_ull_ordered_dynamic_next,
18377         GOMP_loop_ull_ordered_dynamic_start,
18378         GOMP_loop_ull_ordered_guided_next,
18379         GOMP_loop_ull_ordered_guided_start,
18380         GOMP_loop_ull_ordered_runtime_next,
18381         GOMP_loop_ull_ordered_runtime_start,
18382         GOMP_loop_ull_ordered_static_next,
18383         GOMP_loop_ull_ordered_static_start,
18384         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18385         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18386         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18387         (omp_set_schedule, omp_get_schedule,
18388         omp_get_thread_limit, omp_set_max_active_levels,
18389         omp_get_max_active_levels, omp_get_level,
18390         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18391         omp_set_schedule_, omp_set_schedule_8_,
18392         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18393         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18394         omp_get_max_active_levels_, omp_get_level_,
18395         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18396         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18397         New exports @@OMP_3.0.
18398         * omp.h.in (omp_sched_t): New type.
18399         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18400         omp_set_max_active_levels, omp_get_max_active_levels,
18401         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18402         omp_get_active_level): New prototypes.
18403         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18404         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18405         gomp_thread_limit_var, gomp_remaining_threads_count,
18406         gomp_remaining_threads_lock): New variables.
18407         (parse_spincount): New function.
18408         (initialize_env): Call gomp_init_num_threads unconditionally.
18409         Initialize gomp_available_cpus.  Call parse_spincount,
18410         initialize gomp_{,throttled_}spin_count_var
18411         depending on presence and value of OMP_WAIT_POLICY and
18412         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
18413         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18414         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
18415         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
18416         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
18417         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18418         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18419         (gomp_global_icv): New.
18420         (parse_schedule): Use it.  Parse "auto".
18421         (omp_set_num_threads): Use gomp_icv.
18422         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18423         Likewise.
18424         (omp_get_max_threads): Move from parallel.c.
18425         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18426         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18427         add ialias.
18428         (parse_stacksize, parse_wait_policy): New functions.
18429         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18430         both wrappers for compatibility and new locks.
18431         (omp_set_schedule, omp_get_schedule,
18432         omp_get_thread_limit, omp_set_max_active_levels,
18433         omp_get_max_active_levels, omp_get_level,
18434         omp_get_ancestor_thread_num, omp_get_team_size,
18435         omp_get_active_level): New ialias_redirect.
18436         (omp_set_schedule_, omp_set_schedule_8_,
18437         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18438         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18439         omp_get_max_active_levels_, omp_get_level_,
18440         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18441         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18442         New functions.
18443         * parallel.c: Include limits.h.
18444         (gomp_resolve_num_threads): Add count argument.  Rewritten.
18445         (GOMP_parallel_start): Call gomp_new_team and pass that as last
18446         argument to gomp_team_start.  Pass 0 as second argument to
18447         gomp_resolve_num_threads.
18448         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18449         if gomp_thread_limit_var != ULONG_MAX.
18450         (omp_in_parallel): Implement using ts.active_level.
18451         (omp_get_max_threads): Move to env.c.
18452         (omp_get_level, omp_get_ancestor_thread_num,
18453         omp_get_team_size, omp_get_active_level): New functions,
18454         add ialias.
18455         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18456         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
18457         gomp_iter_dynamic_next instead of the _locked variant and don't take
18458         lock around it, otherwise acquire it before calling
18459         gomp_iter_dynamic_next_locked.
18460         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18461         gomp_iter_dynamic_next instead of the _locked variant and don't take
18462         lock around it.
18463         (GOMP_parallel_sections_start): Call gomp_new_team instead of
18464         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
18465         Adjust gomp_team_start caller.  Pass count as second argument to
18466         gomp_resolve_num_threads, don't adjust num_threads after the call.
18467         Use gomp_icv.
18468         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18469         ws->chunk_size by incr.
18470         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
18471         code.
18472         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18473         types.
18474         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18475         (omp_check_defines): Check even the compat defines.
18476         * config/linux/ptrlock.c: New file.
18477         * config/linux/ptrlock.h: New file.
18478         * config/linux/wait.h: New file.
18479         * config/posix/ptrlock.c: New file.
18480         * config/posix/ptrlock.h: New file.
18481         * config/linux/bar.h (gomp_team_barrier_wait,
18482         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18483         (gomp_team_barrier_set_task_pending,
18484         gomp_team_barrier_clear_task_pending,
18485         gomp_team_barrier_set_waiting_for_tasks,
18486         gomp_team_barrier_waiting_for_tasks,
18487         gomp_team_barrier_done): New inlines.
18488         (gomp_barrier_t): Rewritten.
18489         (gomp_barrier_state_t): New typedef.
18490         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18491         gomp_barrier_wait_start): Rewritten.
18492         (gomp_barrier_wait_end): Change second argument to
18493         gomp_barrier_state_t.
18494         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18495         inlines.
18496         * config/linux/bar.c: Include wait.h instead of libgomp.h and
18497         futex.h.
18498         (gomp_barrier_wait_end): Rewritten.
18499         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18500         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18501         * config/posix/bar.h (gomp_barrier_t): Add generation field.
18502         (gomp_barrier_state_t): New typedef.
18503         (gomp_team_barrier_wait,
18504         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18505         (gomp_barrier_wait_start): Or all but low 2 bits from generation
18506         into the return value.  Return gomp_barrier_state_t.
18507         (gomp_team_barrier_set_task_pending,
18508         gomp_team_barrier_clear_task_pending,
18509         gomp_team_barrier_set_waiting_for_tasks,
18510         gomp_team_barrier_waiting_for_tasks,
18511         gomp_team_barrier_done): New inlines.
18512         (gomp_barrier_wait_end): Change second argument to
18513         gomp_barrier_state_t.
18514         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18515         inlines.
18516         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18517         (gomp_barrier_wait_end): Change second argument to
18518         gomp_barrier_state_t.
18519         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18520         gomp_team_barrier_wake): New functions.
18521         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18522         futex.h.
18523         (gomp_futex_wake, gomp_futex_wait): New variables.
18524         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18525         * config/linux/lock.c: Rewrite to make locks task owned,
18526         for backwards compatibility provide the old entrypoints
18527         if symbol versioning.  Include wait.h instead of libgomp.h and
18528         futex.h.
18529         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18530         * config/posix95/lock.c: Rewrite to make locks task owned,
18531         for backwards compatibility provide the old entrypoints
18532         if symbol versioning.
18533         * config/posix/lock.c: Rewrite to make locks task owned,
18534         for backwards compatibility provide the old entrypoints
18535         if symbol versioning.
18536         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18537         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18538         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18539         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18540         (sys_futex0): Return error code.
18541         (futex_wake, futex_wait): If ENOSYS was returned, clear
18542         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18543         (cpu_relax, atomic_write_barrier): New static inlines.
18544         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18545         (futex_wake, futex_wait): If ENOSYS was returned, clear
18546         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18547         (cpu_relax, atomic_write_barrier): New static inlines.
18548         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18549         (sys_futex0): Return error code.
18550         (futex_wake, futex_wait): If ENOSYS was returned, clear
18551         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18552         (cpu_relax, atomic_write_barrier): New static inlines.
18553         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18554         (sys_futex0): Return error code.
18555         (futex_wake, futex_wait): If ENOSYS was returned, clear
18556         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18557         (cpu_relax, atomic_write_barrier): New static inlines.
18558         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18559         (sys_futex0): Return error code.
18560         (futex_wake, futex_wait): If ENOSYS was returned, clear
18561         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18562         (cpu_relax, atomic_write_barrier): New static inlines.
18563         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18564         (sys_futex0): Return error code.
18565         (futex_wake, futex_wait): If ENOSYS was returned, clear
18566         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18567         (cpu_relax, atomic_write_barrier): New static inlines.
18568         * config/linux/sem.c: Include wait.h instead of libgomp.h and
18569         futex.h.
18570         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18571         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18572         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18573         types.
18574         (omp_nest_lock_t): Change owner into void *, add lock field.
18575         * config/posix95/omp-lock.h: Include semaphore.h.
18576         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18577         (omp_lock_t): Use sem_t instead of mutex if semaphores
18578         aren't broken.
18579         (omp_nest_lock_t): Likewise.  Change owner to void *.
18580         * config/posix/omp-lock.h: Include semaphore.h.
18581         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18582         (omp_lock_t): Use sem_t instead of mutex if semaphores
18583         aren't broken.
18584         (omp_nest_lock_t): Likewise.  Add owner field.
18586 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18588         * testsuite/libgomp.c/collapse-1.c: New test.
18589         * testsuite/libgomp.c/collapse-2.c: New test.
18590         * testsuite/libgomp.c/collapse-3.c: New test.
18591         * testsuite/libgomp.c/icv-1.c: New test.
18592         * testsuite/libgomp.c/icv-2.c: New test.
18593         * testsuite/libgomp.c/lib-2.c: New test.
18594         * testsuite/libgomp.c/lock-1.c: New test.
18595         * testsuite/libgomp.c/lock-2.c: New test.
18596         * testsuite/libgomp.c/lock-3.c: New test.
18597         * testsuite/libgomp.c/loop-4.c: New test.
18598         * testsuite/libgomp.c/loop-5.c: New test.
18599         * testsuite/libgomp.c/loop-6.c: New test.
18600         * testsuite/libgomp.c/loop-7.c: New test.
18601         * testsuite/libgomp.c/loop-8.c: New test.
18602         * testsuite/libgomp.c/loop-9.c: New test.
18603         * testsuite/libgomp.c/nested-3.c: New test.
18604         * testsuite/libgomp.c/nestedfn-6.c: New test.
18605         * testsuite/libgomp.c/sort-1.c: New test.
18606         * testsuite/libgomp.c/task-1.c: New test.
18607         * testsuite/libgomp.c/task-2.c: New test.
18608         * testsuite/libgomp.c/task-3.c: New test.
18609         * testsuite/libgomp.c/task-4.c: New test.
18610         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18611         to C++ testsuite default compiler options.
18612         * testsuite/libgomp.c++/collapse-1.C: New test.
18613         * testsuite/libgomp.c++/collapse-2.C: New test.
18614         * testsuite/libgomp.c++/ctor-10.C: New test.
18615         * testsuite/libgomp.c++/for-1.C: New test.
18616         * testsuite/libgomp.c++/for-2.C: New test.
18617         * testsuite/libgomp.c++/for-3.C: New test.
18618         * testsuite/libgomp.c++/for-4.C: New test.
18619         * testsuite/libgomp.c++/for-5.C: New test.
18620         * testsuite/libgomp.c++/loop-8.C: New test.
18621         * testsuite/libgomp.c++/loop-9.C: New test.
18622         * testsuite/libgomp.c++/loop-10.C: New test.
18623         * testsuite/libgomp.c++/task-1.C: New test.
18624         * testsuite/libgomp.c++/task-2.C: New test.
18625         * testsuite/libgomp.c++/task-3.C: New test.
18626         * testsuite/libgomp.c++/task-4.C: New test.
18627         * testsuite/libgomp.c++/task-5.C: New test.
18628         * testsuite/libgomp.c++/task-6.C: New test.
18629         * testsuite/libgomp.fortran/allocatable1.f90: New test.
18630         * testsuite/libgomp.fortran/allocatable2.f90: New test.
18631         * testsuite/libgomp.fortran/allocatable3.f90: New test.
18632         * testsuite/libgomp.fortran/allocatable4.f90: New test.
18633         * testsuite/libgomp.fortran/collapse1.f90: New test.
18634         * testsuite/libgomp.fortran/collapse2.f90: New test.
18635         * testsuite/libgomp.fortran/collapse3.f90: New test.
18636         * testsuite/libgomp.fortran/collapse4.f90: New test.
18637         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18638         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18639         * testsuite/libgomp.fortran/lib4.f90: New test.
18640         * testsuite/libgomp.fortran/lock-1.f90: New test.
18641         * testsuite/libgomp.fortran/lock-2.f90: New test.
18642         * testsuite/libgomp.fortran/nested1.f90: New test.
18643         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18644         * testsuite/libgomp.fortran/strassen.f90: New test.
18645         * testsuite/libgomp.fortran/tabs1.f90: New test.
18646         * testsuite/libgomp.fortran/tabs2.f: New test.
18647         * testsuite/libgomp.fortran/task1.f90: New test.
18648         * testsuite/libgomp.fortran/task2.f90: New test.
18649         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18650         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18651         * testsuite/libgomp.c/pr26943-2.c: Likewise.
18652         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18653         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18655 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
18657         PR c++/36308
18658         * testsuite/libgomp.c++/ctor-11.C: New test.
18659         * testsuite/libgomp.c++/ctor-12.C: New test.
18661 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18663         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18665 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
18667         PR middle-end/36106
18668         * testsuite/libgomp.c/atomic-5.c: New test.
18669         * testsuite/libgomp.c/atomic-6.c: New test.
18670         * testsuite/libgomp.c/autopar-1.c: New test.
18672 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18674         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18675         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18676         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18677         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18678         * configure: Regenerate.
18679         * Makefile.in, testsuite/Makefile.in: Likewise.
18681 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18683         PR bootstrap/35457
18684         * aclocal.m4: Regenerate.
18685         * configure: Regenerate.
18687 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18689         PR middle-end/35611
18690         * testsuite/libgomp.c/atomic-4.c: New test.
18692         PR libgomp/35625
18693         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18694         (gomp_iter_guided_next): Likewise.
18695         * testsuite/libgomp.c/pr35625.c: New test.
18697 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18699         * aclocal.m4: Regenerate.
18700         * configure: Likewise.
18701         * Makefile.in: Likewise.
18702         * testsuite/Makefile.in: Likewise.
18704 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18706         PR middle-end/35185
18707         * testsuite/libgomp.c++/pr35185.C: New test.
18709 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18711         PR middle-end/35549
18712         * testsuite/libgomp.c/pr35549.c: New test.
18714 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18716         * testsuite/libgomp.c/atomic-3.c: New test.
18718 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18720         PR fortran/33197
18721         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18722         .F08 file suffixes.
18724 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
18726         PR libgomp/33131
18727         * configure.ac: Add ACX_HEADER_STRING.
18728         * env.c: Include strings.h.
18729         * aclocal.m4: Regenerate.
18730         * config.h.in: Regenerate.
18731         * configure: Regenerate.
18732         * Makefile.in: Regenerate.
18733         * testsuite/Makefile.in: Regenerate.
18735 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
18737         PR middle-end/35196
18738         * testsuite/libgomp.c/pr35196.c: New test.
18740         PR middle-end/35130
18741         * testsuite/libgomp.fortran/pr35130.f90: New test.
18742         * testsuite/libgomp.c/pr35130.c: New test.
18744 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18746         PR middle-end/33880
18747         * testsuite/libgomp.c/pr33880.c: New test.
18748         * testsuite/libgomp.fortran/pr33880.f90: New test.
18750 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
18752         * configure: Regenerate.
18754 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18756         * configure.ac: Move futex checking into ../config/futex.m4.
18757         * configure: Rebuilt.
18758         * aclocal.m4: Rebuilt.
18759         * Makefile.in: Rebuilt.
18761         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18762         2007-10-15 ../config/tls.m4 change.
18764 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
18766         PR c++/34513
18767         * testsuite/libgomp.c/pr34513.c: New test.
18768         * testsuite/libgomp.c++/pr34513.C: New test.
18770 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
18772         PR target/32765
18773         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18775 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
18777         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
18779 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
18781         * testsuite/libgomp.c/private-1.c: New test.
18783 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
18784             Paolo Bonzini  <bonzini@gnu.org>
18786         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
18787         instead of 'VPATH ='.
18788         * Makefile.in: Regenerate.
18790 2007-11-23  Matthias Klose  <doko@ubuntu.com>
18792         * configure.ac: Adjust makeinfo version check.
18793         * configure: Regenerate.
18795 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
18797         PR fortran/34020
18798         * testsuite/libgomp.fortran/pr34020.f90: New test.
18800 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
18802         PR c++/33894
18803         * testsuite/libgomp.c++/atomic-1.C: New test.
18805 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
18807         PR libgomp/33275
18808         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18809         Make x and y integers rather than (implicit) reals.  Add private (j)
18810         clause to the last omp parallel.
18812 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
18814         * configure: Regenerate following changes to ../config/tls.m4.
18816 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
18818         * testsuite/libgomp.fortran/stack.f90: New test.
18820 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
18822         * config/mingw32/proc.c: New file.
18824 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
18826         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18827         (main): Use __get_cpuid to get i386 target fetaures.
18828         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18829         (main): Use __get_cpuid to get x86_64 target fetaures.
18831 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
18833         PR target/32765
18834         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18835         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18837 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
18839         PR fortran/32550
18840         * testsuite/libgomp.fortran/pr32550.f90: New test.
18841         * testsuite/libgomp.fortran/crayptr2.f90: New test.
18843 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
18845         * aclocal.m4: Regenerated.
18847 2007-07-05  Tobias Burnus  <burnus@net-b.de>
18849         PR fortran/32359
18850         * testsuite/libgomp.fortran/pr32359.f90: New.
18852 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
18854         PR libgomp/32468
18855         * sections.c (GOMP_parallel_sections_start): Only decrease
18856         number of threads to COUNT if dyn_var is true.
18857         * testsuite/libgomp.c/pr32468.c: New test.
18859 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18861         PR libgomp/26308
18862         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18864 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
18866         PR middle-end/32362
18867         * testsuite/libgomp.c/pr32362-1.c: New test.
18868         * testsuite/libgomp.c/pr32362-2.c: New test.
18869         * testsuite/libgomp.c/pr32362-3.c: New test.
18871 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
18873         * team.c (gomp_team_start): Fix setting up thread_attr
18874         stack size.
18876 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
18878         * configure: Regenerate.
18880 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
18882         * Makefile.in: Regenerate.
18883         * configure: Regenerate.
18884         * aclocal.m4: Regenerate.
18885         * testsuite/Makefile.in: Regenerate.
18887 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
18889         * config/linux/proc.c: New file.
18891         PR libgomp/28482
18892         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18894 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
18896         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18898 2007-04-16  Matthias Klose  <doko@debian.org>
18900         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18901         flags if not building with -m64.
18902         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18903         flag for i?86-*-* targets, if current target matches -m64.
18905 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
18907         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18908         * Makefile.in: Regenerate.
18910 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18912         PR testsuite/31369
18913         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18914         ld_library_path.
18915         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18917 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
18919         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18920         decls.
18921         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18922         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18923         (parse_affinity): New function.
18924         (initialize_env): Call it and gomp_init_affinity.
18925         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18926         create new pthread_attr_t and call gomp_init_thread_affinity
18927         on it for each thread before passing the attribute to pthread_create.
18928         * config/linux/affinity.c: New file.
18929         * config/posix/affinity.c: New file.
18930         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18931         * configure: Rebuilt.
18932         * config.h.in: Rebuilt.
18933         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18934         * Makefile.in: Rebuilt.
18936 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
18938         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18939         *-*-darwin*.
18940         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18941         and use it if found.
18943 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
18945         * testsuite/config/default.exp: New file.
18946         * testsuite/lib/libgomp.exp: New file.
18947         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18948         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18949         load_lib *, load_gcc_lib *): Move to libgomp.exp.
18950         (libgomp_load): Remove.
18951         * testsuite/lib/libgomp.exp (libgomp_init): Compute
18952         always_ld_library_path, not ld_library_path.  Set additional_flags
18953         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18954         (target_compile): Do not call libgomp_init.  Append lang_library_path
18955         and lang_link_flags to options.
18956         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
18957         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
18958         here.
18959         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18960         always_ld_library_path.  Set LD_LIBRARY_PATH here.
18961         * testsuite/libgomp.fortran/fortran.exp: Ditto.
18962         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18963         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18964         CX8 flag.
18965         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18966         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18967         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18968         * testsuite/libgomp.c/pr29947-1.c: Ditto.
18969         * testsuite/libgomp.c/atomic-10.c: Ditto.
18971 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
18973         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18974         dg-final cleanup-modules line.
18975         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18976         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18977         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18978         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18979         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18980         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18981         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18983 2007-03-18  Andreas Schwab  <schwab@suse.de>
18985         * acinclude.m4: Adjust regular expression for ld version
18986         extraction.
18987         * configure: Regenerate.
18989 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
18991         * Makefile.am: Add install-pdf target as copied from
18992         automake v1.10 rules.
18993         * Makefile.in: Regenerate
18995 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
18997         PR libgomp/28486
18998         * configure: Regenerate.
19000         PR c++/30703
19001         * testsuite/libgomp.c++/pr30703.C: New test.
19003 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19005         Revert:
19006         2006-07-05  Eric Christopher  <echristo@apple.com>
19007         * configure.ac: Depend addition of -pthread on host OS.
19008         * configure: Regenerate.
19010 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19012         * libgomp.texi: Fix spacing after abbreviations.
19014 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19016         PR libgomp/30546
19017         * configure.ac: Add check for makeinfo
19018         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19019         if an appropriate version of makeinfo is found.
19020         * aclocal.m4: Regenerated.
19021         * configure: Regenerated.
19022         * Makefile.in: Regenerated.
19023         * testsuite/Makefile.in: Regenerated.
19025 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19027         PR libgomp/30540
19028         * libgomp.texi: More about implementation-dependent settings.
19030 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19032         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19034 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19036         PR middle-end/30494
19037         * testsuite/libgomp.c/pr30494.c: New test.
19039 2007-01-15  Tom Tromey  <tromey@redhat.com>
19041         * configure: Rebuilt.
19042         * configure.ac: Fixed comment.
19044 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19046         * libgomp.texi: Document implementation specific default values of
19047         environment variables.
19049 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19051         PR libgomp/28209
19052         * libgomp.texi: New file.
19053         * configure.ac: Add --enable-generated-files-in-srcdir option.
19054         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19055         files to srcdir.
19056         * Makefile.in: Regenerated.
19057         * config.h.in: Regenerated.
19058         * testsuite/Makefile.in: Regenerated.
19059         * NOTES: Removed.
19061 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19063         PR libgomp/29949
19064         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19066 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19068         * configure: Regenerate.
19070 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19072         PR libgomp/29947
19073         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19074         start if there shouldn't be any loop iterations.
19075         (gomp_loop_ordered_static_start): Remove start == end test.
19076         * testsuite/libgomp.c/pr29947-1.c: New test.
19077         * testsuite/libgomp.c/pr29947-2.c: New test.
19079 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19081         * configure.tgt: Force initial-exec TLS model on Linux only.
19083 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19085         * configure: Regenerated.
19087 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19089         * env.c (parse_schedule): Reject out of range values.
19090         (parse_unsigned_long): Reject out of range, negative or zero values.
19092 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19094         PR fortran/29629
19095         * testsuite/libgomp.fortran/pr29629.f90: New test.
19097 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19099         PR libgomp/29494
19100         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19101         * config/posix95: New directory.
19102         * config/posix95/omp-lock.h: New file.
19103         * config/posix95/lock.c: Likewise.
19105 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19107         * aclocal.m4: Regenerate.
19108         * configure: Regenerate.
19110 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19112         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19113         '<' to '<='.
19115 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19117         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19118         test.
19119         * configure: Regenerate.
19120         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19122 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19124         PR middle-end/25261
19125         PR middle-end/28790
19126         * testsuite/libgomp.c/nestedfn-4.c: New test.
19127         * testsuite/libgomp.c/nestedfn-5.c: New test.
19128         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19130         PR fortran/29097
19131         * testsuite/libgomp.fortran/condinc1.f: New test.
19132         * testsuite/libgomp.fortran/condinc2.f: New test.
19133         * testsuite/libgomp.fortran/condinc3.f90: New test.
19134         * testsuite/libgomp.fortran/condinc4.f90: New test.
19135         * testsuite/libgomp.fortran/condinc1.inc: New file.
19137 2006-09-18  Tom Tromey  <tromey@redhat.com>
19139         * configure: Rebuilt.
19141 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19143         PR c/28768
19144         PR preprocessor/14634
19145         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19146         to AC_DEFINE.
19147         * configure: Regenerate.
19149 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19151         * testsuite/libgomp.fortran/reduction3.f90: Change
19152         -2147483648 to -huge(i)-1 to avoid overflow.
19153         * testsuite/libgomp.fortran/reduction4.f90: Change
19154         Z'ffffffff' to not(0) to avoid overflow.
19156 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19158         PR libgomp/25938
19159         * Makefile.am (libsubincludedir): New.
19160         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19161         * Makefile.in: Regenerate.
19163 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19165         PR libgomp/28725
19166         * env.c: Include ctype.h.
19167         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19168         leading and/or trailing whitespace and compare strings case
19169         insensitively.
19171 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
19173         PR fortran/28390
19174         * testsuite/libgomp.fortran/pr28390.f: New test.
19176 2006-07-05  Eric Christopher  <echristo@apple.com>
19178         * configure.ac: Depend addition of -pthread on host OS.
19179         * configure: Regenerate.
19181 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
19183         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19184         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19185         defined.
19187 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19189         PR libgomp/26175
19190         PR libgomp/26477
19191         * configure.ac: If neither --enable-linux-futex nor
19192         --disable-linux-futex is passed, determine the default by checking
19193         for compiling and/or running against NPTL.  With --enable-linux-futex,
19194         check if SYS_gettid and SYS_futex are defined.
19195         * configure: Rebuilt.
19197 2006-06-14  Richard Henderson  <rth@redhat.com>
19199         PR libgomp/28008
19200         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19201         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19203 2006-06-09  Richard Henderson  <rth@redhat.com>
19205         * env.c (gomp_nthreads_var): Change to unsigned long.
19206         (gomp_run_sched_chunk): Likewise.
19207         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19208         (initialize_env): Initialize gomp_thread_attr.
19209         * libgomp.h (gomp_nthreads_var): Update decl.
19210         (gomp_run_sched_chunk): Likewise.
19211         (gomp_thread_attr): Declare.
19212         * team.c (gomp_thread_attr): Export.
19213         (initialize_team): Don't initialize it.
19215 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19217         PR fortran/27916
19218         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19219         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19221 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19223         * config/mingw32/time.c: New file.
19224         * configure.tgt: Use it.
19226 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19228         * Makefile.am: Add install-html target. Add install-html to .PHONY
19229         * Makefile.in: Regenerate.
19231 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19233         PR libgomp/27612
19234         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19235         * testsuite/libgomp.c/critical-1.c: Likewise.
19236         * testsuite/libgomp.c/loop-1.c: Likewise.
19237         * testsuite/libgomp.c/loop-2.c: Likewise.
19238         * testsuite/libgomp.c/single-1.c: Likewise.
19239         * testsuite/libgomp.c/ordered-1.c: Likewise.
19240         * testsuite/libgomp.c/ordered-2.c: Likewise.
19242 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19244         PR middle-end/27416
19245         * libgomp.fortran/pr27416-1.f90: New test.
19247 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19249         PR fortran/27395
19250         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19251         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19253 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19255         PR c++/26943
19256         * testsuite/libgomp.c/pr26943-1.c: New test.
19257         * testsuite/libgomp.c/pr26943-2.c: New test.
19258         * testsuite/libgomp.c/pr26943-3.c: New test.
19259         * testsuite/libgomp.c/pr26943-4.c: New test.
19260         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19261         * testsuite/libgomp.c++/pr26943.C: New test.
19263 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19265         PR middle-end/27337
19266         * testsuite/libgomp.c++/pr27337.C: New test.
19268 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19270         PR c/26171
19271         * testsuite/libgomp.c/pr26171.c: New test.
19273 2006-04-25  Richard Henderson  <rth@redhat.com>
19275         PR libgomp/25865
19276         * configure.ac: Use GCC_CHECK_TLS.
19277         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19278         * Makefile.in, aclocal.m4, configure: Regenerate.
19280 2006-04-10  Matthias Klose  <doko@debian.org>
19282         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19283         directory names containing underscores.
19285 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19287         PR c++/26691
19288         * testsuite/libgomp.c++/pr26691.C: New test.
19290 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19292         * testsuite/libgomp.fortran/retval2.f90: New test.
19294 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19296         * testsuite/libgomp.c++: New directory.
19298 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19300         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19301         * config/posix/sem.c: Implement the above.
19303 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19305         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19306         define HAVE_BROKEN_POSIX_SEMAPHORES.
19307         * configure: Rebuilt.
19308         * config.h.in: Rebuilt.
19310 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19312         PR bootstrap/26161
19313         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19314         for the other pthread check.
19315         * configure: Regenerate.
19316         * config.h.in: Regenerate.
19318 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19320         PR libgomp/25938
19321         PR libgomp/25984
19322         * Makefile.am (fincludedir): New variable.
19323         (nodist_include_HEADERS): Remove Fortran files.
19324         (nodist_finclude_HEADERS): New variable.
19325         * Makefile.in: Regenerated.
19327 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19329         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19330         Remove tests for returning assumed character length arrays.
19332 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19333             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19335         PR libgomp/25936
19336         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19338 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19340         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19342 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19344         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19345         part of LD_LIBRARY_PATH manually.
19347 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19349         PR libgomp/25852
19350         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19351         libgomp_init.
19353 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19355         PR libgomp/25884
19356         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19357         * configure.ac (PERL): Don't set.
19358         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19359         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19360         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19361         * omp.h.in: Wrap the new configure substitutions with @ characters.
19362         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19363         * aclocal.m4, configure, Makefile.in: Regenerate.
19364         * mkomp_h.pl: Delete.
19366 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19368         PR libgomp/25259
19369         * configure.ac: Use GCC_HEADER_STDINT.
19370         * libgomp.h: Include gstdint.h.
19371         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19372         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19374 2006-01-24  Richard Henderson  <rth@redhat.com>
19376         PR libgomp/25942
19377         * configure.ac: Add AM_MAINTAINER_MODE.
19378         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19380 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
19382         * Makefile.in: Regenerate.
19383         * testsuite/Makefile.in: Regenerate.
19384         * aclocal.m4: Regenerate.
19386 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
19388         * config/posix/proc.c: Conditional include of sys/loadavg.h for
19389         Solaris.
19390         * configure.ac: Add check for loadavg.h.
19391         (link_gomp): Adjust comment.
19392         * configure: Regenerate.
19393         * config.h.in: Regenerate.
19395 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
19397         PR libgomp/25877
19398         * configure.ac: Remove check for alloca.h.
19399         * configure: Regenerate.
19400         * config.h.in: Regenerate.
19401         * libgomp.h: define gomp_alloca to be __builtin_alloca.
19402         * team.c: Remove use of alloca.h.
19403         Call gomp_alloca instead of alloca.
19405 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
19407         PR libgomp/25877
19408         * team.c: Add include of alloca.h.
19409         * configure.ac: Add check for alloca.h.
19410         * configure: Regenerate.
19411         * config.h.in: Regenerate.
19413 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
19415         PR fortran/25219
19416         * testsuite/libgomp.fortran/pr25219.f90: New test.
19418 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
19420         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19421         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19422         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19423         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19424         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19425         testsuite/libgomp.fortran/threadprivate1.f90,
19426         testsuite/libgomp.fortran/threadprivate2.f90,
19427         testsuite/libgomp.fortran/threadprivate3.f90,
19428         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19429         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19430         testsuite/libgomp.fortran/omp_parse3.f90: Change required
19431         effective-target to TLS runtime.
19433         * testsuite/libgomp.fortran/pr25162.f: Require
19434         effective-target TLS runtime.
19436 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
19438         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19439         * testsuite/libgomp.c/nestedfn-3.c: New test.
19441 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
19443         PR fortran/25162
19444         * testsuite/libgomp.fortran/pr25162.f: New test.
19446 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
19448         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19449         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19451 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
19453         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19454         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19455         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19456         single.c, team.c, work.c, config/linux/alpha/futex.h,
19457         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19458         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19459         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19460         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19461         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19462         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19463         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19464         FSF address.
19466 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19468         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19469         to nodist_noinst_HEADERS.
19470         * Makefile.in: Rebuilt.
19472         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19473         add integer count field.
19474         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19475         omp_nest_lock_t type change.
19476         (omp_init_nest_lock): Likewise.  Initialize count to 0.
19477         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19478         Increment count.
19479         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19480         Decrement count.
19481         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19482         Increment count if successful and return the new nesting level.
19483         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19484         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19485         * testsuite/libgomp.c/lib-1.c: New test.
19486         * testsuite/libgomp.fortran/lib1.f90: New test.
19487         * testsuite/libgomp.fortran/lib2.f: New test.
19488         * testsuite/libgomp.fortran/lib3.f: New test.
19490 2005-11-17  Richard Henderson  <rth@redhat.com>
19492         PR 24845
19493         * Makefile.am (nodist_toolexeclib_HEADERS): New.
19494         * configure.ac (link_gomp): New.  Substitute it.
19495         (AC_CONFIG_FILES): Add libgomp.spec.
19496         * libgomp.spec.in: New file.
19497         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19498         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19500 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19502         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19503         reduction(-:var) behaving the same as reduction(+:var).
19504         * testsuite/libgomp.c/reduction-4.c: New test.
19506 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
19508         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19509         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19510         testsuite/libgomp.c/copyin-3.c,
19511         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19512         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19513         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19514         testsuite/libgomp.c++/pr24455.C,
19515         testsuite/libgomp.fortran/threadprivate1.f90,
19516         testsuite/libgomp.fortran/threadprivate2.f90,
19517         testsuite/libgomp.fortran/threadprivate3.f90,
19518         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19519         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19520         testsuite/libgomp.fortran/omp_parse3.f90: Require
19521         effective-target TLS.
19523 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
19525         * HEADER: Remove.
19527 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
19529         PR libgomp/24797
19530         * team.c (initialize_team): Pass NULL rather than free as
19531         pthread_key_create destructor.  Initialize thread specific data
19532         pointer in initial thread to a static local variable rather than
19533         malloced memory.
19535 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
19537         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19538         its location to ld_library_path.
19540 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19542         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19544 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19546         * testsuite/libgomp.c: Rename from libgomp.dg.
19548 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
19550         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19551         threadprivate variable 'i'.
19553 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
19555         * config/linux/s390/futex.h: New file.
19556         * configure.tgt: Use it.
19558         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19559         before the parallel.
19561 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
19563         PR c++/24734
19564         * testsuite/libgomp.c++/master-1.C: New test.
19566 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19568         * testsuite/libgomp.dg/copyin-3.c: New test.
19570 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19572         * testsuite/libgomp.fortran/retval1.f90: New test.
19573         * testsuite/libgomp.fortran/vla7.f90: New test.
19575 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
19577         * testsuite/libgomp.fortran/vla2.f90: New test.
19578         * testsuite/libgomp.fortran/vla3.f90: New test.
19579         * testsuite/libgomp.fortran/vla4.f90: New test.
19580         * testsuite/libgomp.fortran/vla5.f90: New test.
19581         * testsuite/libgomp.fortran/vla6.f90: New test.
19583 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
19585         * config/linux/sparc/futex.h: New file.
19586         * configure.tgt: Use it.
19587         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19589         * critical.c: Include stdlib.h.
19590         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19591         ignoring return value.
19592         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19593         LIBGOMP_CHECK_SYNC_BUILTINS check.
19594         * configure: Rebuilt.
19596 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19598         * testsuite/libgomp.fortran/vla1.f90: New test.
19600 2005-10-31  Richard Henderson  <rth@redhat.com>
19602         * testsuite/libgomp.fortran/character2.f90: Fix race condition
19603         setting 's' in different threads.
19605 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19607         * libgomp.h (attribute_hidden, ialias): Define.
19608         * config/posix/proc.c (omp_get_num_procs): Add ialias.
19609         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19610         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19611         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19612         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19613         omp_test_lock, omp_test_nest_lock): Likewise.
19614         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19615         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19616         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19617         omp_test_lock, omp_test_nest_lock): Likewise.
19618         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19619         omp_get_dynamic, omp_get_nested): Likewise.
19620         * parallel.c (omp_get_num_threads, omp_get_max_threads,
19621         omp_get_thread_num, omp_in_parallel): Likewise.
19622         * fortran.c (ialias_redirect): Define.
19623         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19624         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19625         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19626         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19627         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19628         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19629         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19630         omp_get_wtime): Add ialias_redirect.
19632 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
19634         * fortran.c: Include stdlib.h.
19636 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
19638         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19639         * Makefile.in: Regenerated.
19641 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
19643         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19644         * libgomp_f.h.in (omp_check_defines): New function.
19645         * env.c: Include libgomp_f.h.
19646         (initialize_env): Call omp_check_defines.
19648         * testsuite/libgomp.dg/copyin-2.c: New test.
19649         * testsuite/libgomp.c++/copyin-2.C: New test.
19650         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19652         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19653         * testsuite/libgomp.fortran/sharing2.f90: New test.
19655         * testsuite/libgomp.dg/copyin-1.c: New test.
19656         * testsuite/libgomp.c++/copyin-1.C: New test.
19658 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
19660         * testsuite/libgomp.fortran/crayptr1.f90: New test.
19662         * testsuite/libgomp.fortran/workshare1.f90: New test.
19664         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19665         only test.
19666         * libgomp.fortran/sharing1.f90: New test.
19668 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
19670         PR c++/24502
19671         * testsuite/libgomp.c++/loop-7.C: New test.
19673         * testsuite/libgomp.dg/nestedfn-2.c: New test.
19675         * testsuite/libgomp.dg/nestedfn-1.c: New test.
19676         * testsuite/libgomp.fortran/reduction6.f90: New test.
19677         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19679 2005-10-23  Richard Henderson  <rth@redhat.com>
19681         * testsuite/libgomp.c++/ctor-1.C: New.
19682         * testsuite/libgomp.c++/ctor-2.C: New.
19683         * testsuite/libgomp.c++/ctor-3.C: New.
19684         * testsuite/libgomp.c++/ctor-4.C: New.
19685         * testsuite/libgomp.c++/ctor-5.C: New.
19686         * testsuite/libgomp.c++/ctor-6.C: New.
19687         * testsuite/libgomp.c++/ctor-7.C: New.
19688         * testsuite/libgomp.c++/ctor-8.C: New.
19689         * testsuite/libgomp.c++/ctor-9.C: New.
19691 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
19693         PR 24455
19694         * testsuite/libgomp.c++/pr24455-1.C: New test.
19695         * testsuite/libgomp.c++/pr24455.C: New test.
19696         * testsuite/libgomp.dg/pr24455-1.c: New test.
19697         * testsuite/libgomp.dg/pr24455.c: New test.
19699 2005-10-20  Richard Henderson  <rth@redhat.com>
19701         * testsuite/libgomp.c++/loop-6.C: New.
19702         * testsuite/libgomp.dg/loop-3.c: New.
19704 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
19706         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19707         explicitly private.
19708         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19709         explicitly shared.
19711 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
19713         * testsuite/libgomp.fortran/jacobi.f: New test.
19715 2005-10-19  Richard Henderson  <rth@redhat.com>
19717         * configure.tgt (i?86-linux): Default to with_arch instead of
19718         CFLAGS.  Add -mtune to match target_cpu.
19719         (x86_64-linux): Tune to i686.
19721         * fortran.c (omp_test_nest_lock_): Fix typo.
19723 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
19725         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19726         gomp_ordered_sync): Do nothing if team->nthreads == 1.
19727         * testsuite/libgomp.dg/ordered-3.c: New test.
19729         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19730         Remove volatile keyword.
19732         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19733         in COMMON block to avoid warnings on 64-bit targets.
19735 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
19737         * testsuite/libgomp.dg/shared-3.c: New test.
19739 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19741         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19742         * testsuite/libgomp.fortran/reduction5.f90: New test.
19744 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19746         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19747         dg-options.
19748         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
19749         flush loop now that __sync_synchronize has proper memory barrier.
19750         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19751         Add -ffixed-form to dg-options.
19753 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19755         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19756         from subdirectories.
19757         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19758         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19759         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19760         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19761         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19762         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19763         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19764         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19765         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19766         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19767         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19768         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19769         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19770         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19771         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19772         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19773         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19774         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19775         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19776         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19777         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19778         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19779         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19780         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19781         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19783 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
19785         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19786         lang_library_path exists.  Use find instead of glob to gather tests.
19787         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19789 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19791         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19792         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19793         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19794         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19795         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19796         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19797         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19798         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19799         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19800         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19801         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19802         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19803         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19805 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
19807         * testsuite/libgomp.dg/vla-1.c: New test.
19809         * testsuite/libgomp.fortran/reference2.f90: New test.
19811         * testsuite/libgomp.fortran/character2.f90: Remove explicit
19812         declaration of omp_get_thread_num.
19813         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
19814         use omp_lib.
19816         * testsuite/libgomp.fortran/reduction1.f90: New test.
19817         * testsuite/libgomp.fortran/reduction2.f90: New test.
19818         * testsuite/libgomp.fortran/reduction3.f90: New test.
19819         * testsuite/libgomp.fortran/reduction4.f90: New test.
19821 2005-10-13  Richard Henderson  <rth@redhat.com>
19823         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19824         * Makefile.in: Regenerate.
19825         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19826         * libgomp.h: Include bar.h.
19827         (struct gomp_barrier): Remove.
19828         (struct gomp_team): Add barrier.  Replace master_barrier with
19829         master_release.  Replace threads with ordered_release.
19830         (struct gomp_thread): Replace barrier with release.
19831         * ordered.c (gomp_ordered_first): Update for ordered_release change.
19832         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19833         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19834         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19835         (GOMP_single_copy_end): Likewise.
19836         * team.c (gomp_threads_dock): New.
19837         (gomp_barrier_init, gomp_barrier_destroy): Remove.
19838         (gomp_thread_start): Use gomp_barrier_wait.
19839         (new_team, free_team): Update for gomp_team changes.
19840         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19841         (gomp_team_end): Use gomp_barrier_wait.
19842         (initialize_team): Update for gomp_thread changes.
19843         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19844         (gomp_work_share_end_nowait): Use atomic ops when available.
19845         * config/linux/bar.c, config/linux/bar.h: New files.
19846         * config/posix/bar.c, config/posix/bar.h: New files.
19848 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
19850         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19851         * testsuite/libgomp.dg/single-2.c: New test.
19853         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19854         lang_link_flags): Unset, so that they aren't inherited from previously
19855         sourced *.exp.
19857         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19859 2005-10-12  Richard Henderson  <rth@redhat.com>
19861         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19862         (libgomp_init): Use lang_test_file, lang_library_path, and
19863         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
19865         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19866         (lang_test_file, lang_link_flags): New.
19867         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19869         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19870         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19871         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19872         testsuite/libgomp.c++/parallel-1.C,
19873         testsuite/libgomp.c++/reduction-1.C,
19874         testsuite/libgomp.c++/reduction-2.C,
19875         testsuite/libgomp.c++/reduction-3.C,
19876         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19877         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19878         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19879         New files, largely cribbed from the C testsuite.
19881 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
19883         * testsuite/libgomp.fortran/character1.f90: New test.
19884         * testsuite/libgomp.fortran/character2.f90: New test.
19886         * testsuite/libgomp.dg/nested-1.c: New test.
19887         * testsuite/libgomp.dg/nested-2.c: New test.
19888         * testsuite/libgomp.fortran/do1.f90: New test.
19889         * testsuite/libgomp.fortran/do2.f90: New test.
19891         * testsuite/libgomp.fortran/reference1.f90: New test.
19893 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
19895         * testsuite/libgomp.dg/reduction-1.c: New test.
19896         * testsuite/libgomp.dg/reduction-2.c: New test.
19897         * testsuite/libgomp.dg/reduction-3.c: New test.
19899 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
19901         * testsuite/libgomp.dg/atomic-1.c: New test.
19902         * testsuite/libgomp.dg/atomic-2.c: New test.
19904 2005-10-09  Richard Henderson  <rth@redhat.com>
19906         * critical.c (atomic_lock): New.
19907         (initialize_critical): Initialize it.
19908         (GOMP_atomic_start, GOMP_atomic_end): New.
19909         * libgomp.map: Export them.
19910         * libgomp_g.h: Declare them.
19912         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19914 2005-10-02  Richard Henderson  <rth@redhat.com>
19916         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
19917         to XCFLAGS instead of CFLAGS.
19919 2005-09-30  Richard Henderson  <rth@redhat.com>
19921         * configure.ac: Determine whether -pthread or -lpthread is needed.
19922         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19923         * Makefile.in, configure: Rebuild.
19925 2005-09-28  Richard Henderson  <rth@redhat.com>
19927         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19928         * testsuite/libgomp.dg/omp-single-3.c: New test.
19930 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
19932         * testsuite/libgomp.dg/omp-single-2.c: New test.
19933         * testsuite/libgomp.dg/shared-2.c: Fix return code.
19935 2005-09-27  Richard Henderson  <rth@redhat.com>
19937         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19938         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19940 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
19942         * testsuite/libgomp.dg/omp-loop03.c: New test.
19944 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19946         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19948 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19950         * testsuite/libgomp.dg/omp-single-1.c: New test.
19951         * testsuite/libgomp.dg/shared-1.c: Return 0.
19952         Add prototype for abort.
19953         * testsuite/libgomp.dg/shared-2.c: Likewise.
19955 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
19957         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19958         constructs.
19960 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
19962         * testsuite/libgomp.dg/shared-1.c: New test.
19963         * testsuite/libgomp.dg/shared-2.c: New test.
19965 2005-09-24  Richard Henderson  <rth@redhat.com>
19967         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19969 2005-09-24  Richard Henderson  <rth@redhat.com>
19971         * iter.c (gomp_iter_static_next): Round up when computing number
19972         of iterations.  Don't bother distributing a remainder equally.
19974         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19975         Don't call srand.  Zero b before testing.
19976         (main): New.
19978 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
19980         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19981         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19983 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
19985         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19986         without !$omp end do, followed immediately by subroutine end.
19988 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
19990         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19992 2005-09-22  Richard Henderson  <rth@redhat.com>
19994         * critical.c (GOMP_critical_name_start): Change argument to void**.
19995         Reuse the pointer space if the mutex fits.
19996         (GOMP_critical_name_end): Likewise.
19997         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19998         * libgomp_g.h (GOMP_critical_name_start): Update decl.
19999         (GOMP_critical_name_end): Likewise.
20000         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20001         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20003 2005-09-20  Richard Henderson  <rth@redhat.com>
20005         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20006         (create_lock_lock): New.
20007         (initialize_critical): Initialize it.
20008         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20009         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20011 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20013         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20015 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20017         * testsuite/libgomp.dg/omp-loop01.c: New test.
20018         * testsuite/libgomp.dg/omp-loop02.c: New test.
20020 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20022         * configure.ac (AC_PROG_FC): Add.
20023         (USE_FORTRAN): New automake conditional.
20024         * configure: Rebuilt.
20025         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20026         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20027         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20028         Add rules to build them.
20029         * Makefile.in: Rebuilt.
20030         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20031         OMP_NEST_LOCK_KIND.
20032         * libgomp.map: Add Fortran wrappers.
20033         * libgomp_f.h.in: New file.
20034         * omp_lib.h.in: New file.
20035         * omp_lib.f90.in: New file.
20036         * fortran.c: New file.
20037         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20038         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20039         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20040         libgfortran has been built.
20041         * testsuite/libgomp.fortran/fortran.exp: New file.
20042         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20043         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20044         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20045         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20046         * testsuite/libgomp.fortran/omp_hello.f: New test.
20047         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20048         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20049         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20050         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20051         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20052         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20053         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20054         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20056 2005-08-30  Richard Henderson  <rth@redhat.com>
20058         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20059         function for when aliases are not usable.
20060         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20061         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20062         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20063         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20064         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20065         GOMP_loop_ordered_guided_next): Likewise.
20066         * ordered.c (GOMP_ordered_start): Likewise.
20068 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20070         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20071         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20072         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20073         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20074         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20075         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20076         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20077         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20078         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20080 2005-07-07  Eric Christopher  <echristo@redhat.com>
20081             Diego Novillo  <dnovillo@redhat.com>
20083         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20084         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20085         up code.
20086         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20087         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20088         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20089         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20090         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20091         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20092         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20094 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20096         * TOPLEVEL.patch: Remove.
20098 2005-05-16  Richard Henderson  <rth@redhat.com>
20100         * configure.ac: Test for clock_gettime.
20101         * config.h.in, configure: Rebuild.
20102         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20103         (omp_get_wtime): Use clock_gettime if available.
20104         (omp_get_wtick): Use clock_getres if available.
20106 2005-05-11  Richard Henderson  <rth@redhat.com>
20108         * config/linux/ia64/futex.h: New file.
20109         * configure.tgt: Use it.
20111         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20113 2005-05-07  Richard Henderson  <rth@redhat.com>
20115         * config/linux/powerpc/futex.h: New file.
20116         * configure.tgt: Use it.
20118         * config/linux/i486/futex.h: Merge ...
20119         * config/linux/x86_64/futex.h: ... into ...
20120         * config/linux/x86/futex.h: ... here.
20121         * configure.tgt: Update to match.
20123 2005-05-06  Richard Henderson  <rth@redhat.com>
20125         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20126         * config/linux/i486/futex.h: Likewise.
20127         * config/linux/x86_64/futex.h: Likewise.
20129         * config/linux/lock.c: New file.
20130         * config/linux/omp-lock.h: New file.
20132         * critical.c, env.h: Don't include omp.h
20133         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20134         * config/posix/time.c: Likewise.
20135         * config/posix/omp-lock.h: New file.
20136         * libgomp.h: Include omp-lock.h and omp.h.
20137         * Makefile.am (nodist_include_HEADERS): New.
20138         (omp.h): New rule.
20139         * configure.ac (PERL): New.
20140         * mkomp_h.pl: New file.
20141         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20142         with templates.
20143         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20145         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20146         build directory.  Re-add -march=i486 hack.
20148         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20149         (libgomp_link_flags): Remove.
20150         (libgomp_initialized): Remove.
20151         (libgomp_init): Don't protect from reinitialization.  Copy code
20152         from libstdc++ for getting the multilib set correctly.
20154 2005-05-05  Richard Henderson  <rth@redhat.com>
20156         * config/linux/alpha/futex.h: New file.
20157         * configure.tgt (alpha*-*-linux*): Use it.
20159         * config/posix/mutex.c: New file.
20160         * config/posix/sem.c: Use libgomp.h.
20162         * configure.tgt (x86_64-linux): Also test CC for -m32.
20163         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20165         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20166         after $gccpath.
20168         * Makefile.am (SUBDIRS): New.
20169         (libgomp_la_LDFLAGS): Add -lpthread.
20170         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20171         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20173         * libgomp_g.h: New file.
20174         * libgomp.h: Split out all public declarations to libgomp_g.h.
20175         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20176         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20177         * config/linux/sem.h: Likewise.
20178         * config/posix/sem.h: Likewise.
20180         * Makefile.am (AM_LDFLAGS): New.
20181         (libgomp_version_script): Split out from ...
20182         (libgomp_la_LDFLAGS): ... here.
20183         (libgomp_version_info): New.
20184         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20185         (LIBGOMP_ENABLE): New.
20186         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20187         (LIBGOMP_ENABLE_SYMVERS): New.
20188         * configure.ac (AC_INIT): Version 1.0.
20189         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20190         (enable-linux-futex): Likewise.  Rename from enable-futex.
20191         (libtool_VERSION): New.
20192         (LIBGOMP_ENABLE_SYMVERS): Use it.
20193         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20194         * Makefile.in, aclocal.m4, configure: Rebuild.
20196         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20197         (gomp_mutex_unlock_slow): Fix typo.
20198         * config/linux/sem.c: Similarly.
20199         (gomp_sem_post_slow): Fix typo.
20200         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20201         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20202         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20204         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20205         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20206         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20207         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20208         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20209         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20210         LDFLAGS.  Pull enable_futex check to top-level.
20211         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20212         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20214         First attempt at real configury.
20215         * Makefile, config.h: Remove file.
20216         * Makefile.am, Makefile.in: New file.
20217         * acinclude.m4 aclocal.m4: New file.
20218         * configure.ac, configure.tgt, configure: New file.
20220         * config/posix/lock.c: Rename from sys-lock.c.
20221         * config/posix/mutex.h: Rename from sys-mutex.h.
20222         * config/posix/sem.c: Rename from sys-sem.c.
20223         * config/posix/sem.h: Rename from sys-sem.h.
20224         * config/posix/proc.c: Rename from sys-proc.c.
20225         * config/posix/time.c: Rename from sys-proc.c.
20227         * config/linux/mutex.c: New file.
20228         * config/linux/mutex.h: New file.
20229         * config/linux/sem.c: New file.
20230         * config/linux/sem.h: New file.
20231         * config/linux/i486/futex.h: New file.
20232         * config/linux/x86_64/futex.h: New file.
20234 2005-05-04  Richard Henderson  <rth@redhat.com>
20236         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20237         * libgomp.h: Declare them.
20238         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20239         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20241 2005-05-04  Richard Henderson  <rth@redhat.com>
20243         * libgomp-1 code drop
20245 2005-05-04  Richard Henderson  <rth@redhat.com>
20247         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20248         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20249         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20250         (gomp_iter_static_next): Update.
20251         (gomp_ordered_static_next): Update.
20252         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20253         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20254         totally empty range.
20255         (gomp_loop_ordered_static_next): Refine test for calling
20256         gomp_ordered_static_next.
20257         * testsuite/ordered-1.c: Add case for more threads than iterations.
20259         * iter.c (gomp_iter_runtime_next_locked): Remove.
20260         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20261         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20262         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20263         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20264         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20265         gomp_loop_ordered_guided_next): Downcase name, make static, add
20266         an external alias with the old name.
20267         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20268         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20269         switch and call one of the above static functions.
20270         * libgomp.h: Update.
20272         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20273         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20274         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20275         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20276         GOMP_loop_ordered_guided_start): Update to match.
20277         * sections.c (GOMP_sections_start): Likewise.
20278         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20280         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20281         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20282         Use bounds check instead of modulus.
20283         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20284         (gomp_ordered_last): Don't sync with ordered_owner here.
20285         (gomp_ordered_next): Likewise.
20286         (gomp_ordered_static_loop_next): Likewise.
20287         * loop.c, libgomp.h: Update to match.
20289         * libgomp.h (GOMP_barrier): Declare.
20291         * testsuite/barrier-1.c: New file.
20292         * testsuite/critical-1.c: New file.
20293         * testsuite/ordered-2.c: New file.
20294         * testsuite/ordered-1.c: New file.
20295         * testsuite/sections-1.c: New file.
20296         * testsuite/single-1.c: New file.
20297         * testsuite/Makefile (TESTS): Add them.
20299 2005-05-04  Richard Henderson  <rth@redhat.com>
20301         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20302         * loop.c (GOMP_loop_static_start): If not the startup thread,
20303         acquire the mutex to wait for initialization complete.
20304         (GOMP_loop_ordered_static_start): Likewise.
20305         (GOMP_loop_ordered_runtime_start): Likewise.
20306         (GOMP_loop_ordered_static_first): Remove.
20307         (GOMP_loop_ordered_dynamic_first): Remove.
20308         (GOMP_loop_ordered_guided_first): Remove.
20309         (GOMP_loop_ordered_runtime_first): Remove.
20310         * ordered.c (gomp_ordered_loop_first): Post to own release when
20311         we're the first thread.
20312         (gomp_ordered_loop_last): Wait on release if not owner.
20313         (gomp_ordered_loop_next): Likewise.
20314         (gomp_ordered_static_loop_init): New.
20315         (gomp_ordered_static_loop_next): Use ordered_owner.
20316         (GOMP_ordered_start): Likewise.
20317         * work.c (gomp_new_work_share): Initialize ordered_owner.
20319 2005-05-03  Richard Henderson  <rth@redhat.com>
20321         * Makefile (OPT): New.
20322         (CFLAGS): Use it.
20324         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20325         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20326         * libgomp.h, libgomp.map, NOTES: Update to match.
20328         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20329         Add initialized and thr members.
20330         (gomp_thread_start): Pause when initially spawned to wait for
20331         the whole team to be created.
20332         (gomp_team_start): Release team members at the end.
20334         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20335         (f_foo_1): Use GOMP_loop_end.
20336         (f_foo_2): Use GOMP_loop_end_nowait.
20338         * testsuite/loop-2.c: New file.
20339         * testsuite/Makefile (TESTS): Add it.
20341 2005-05-03  Richard Henderson  <rth@redhat.com>
20343         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20344         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20345         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20346         initial work_share.
20348         * testsuite/Makefile: New file.
20349         * testsuite/loop-1.c: New file.
20351 2005-05-03  Richard Henderson  <rth@redhat.com>
20353         Initial implementation and checkin.
20355 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20357 Copying and distribution of this file, with or without modification,
20358 are permitted in any medium without royalty provided the copyright
20359 notice and this notice are preserved.