gcc.dg/Wmissing-parameter-type*: Test the intended warning
[official-gcc.git] / libgomp / ChangeLog
blobbcd5fa325878061025329ca52ad9baef163acbf3
1 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
3         * config/linux/target-indirect.c: Move to...
4         * target-indirect.c: ...here.
6 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
8         * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
9         * Makefile.in: Regenerate.
10         * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
11         (GOMP_OFFLOAD_load_image): Add extra argument.
12         * libgomp.h (struct indirect_splay_tree_key_s): New.
13         (indirect_splay_tree_node, indirect_splay_tree,
14         indirect_splay_tree_key): New.
15         (indirect_splay_compare): New.
16         * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
17         * libgomp.texi (OpenMP 5.1): Update documentation on indirect
18         calls in target region and on indirect clause.
19         (Other new OpenMP 5.2 features): Add entry for virtual function calls.
20         * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
21         * oacc-host.c (host_load_image): Add extra argument.
22         * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
23         enough, read host indirect functions table and pass to
24         load_image_func.
25         * config/accel/target-indirect.c: New.
26         * config/linux/target-indirect.c: New.
27         * config/gcn/team.c (build_indirect_map): Add prototype.
28         (gomp_gcn_enter_kernel): Initialize support for indirect
29         function calls on GCN target.
30         * config/nvptx/team.c (build_indirect_map): Add prototype.
31         (gomp_nvptx_main): Initialize support for indirect function
32         calls on NVPTX target.
33         * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
34         indirect functions count.
35         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
36         is high enough, build address translation table and copy it to target
37         memory.
38         * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
39         functions count.
40         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
41         is high enough, Build address translation table and copy it to target
42         memory.
43         * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
44         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
45         * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
47 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
49         * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
50         supported also in C.
52 2023-10-31  Thomas Schwinge  <thomas@codesourcery.com>
54         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
55         'acc_map_data' variant.
57 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
59         * oacc-parallel.c (GOACC_data_start): Handle
60         'GOACC_FLAG_LOCAL_DEVICE'.
61         (GOACC_parallel_keyed): Simplify accordingly.
62         * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
64 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
66         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
67         * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
68         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
69         * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
70         * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
72 2023-10-25  Chung-Lin Tang  <cltang@codesourcery.com>
74         * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
75         GOACC_FLAG_LOCAL_DEVICE case.
76         * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
78 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
80         * Makefile.am: Handle Darwin rpaths.
81         * Makefile.in: Regenerate.
82         * configure: Regenerate.
83         * configure.ac: Handle Darwin rpaths
85 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
87         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
88         (isa_hsa_name): Recognise gfx1030.
89         (isa_code): Likewise.
90         * team.c (defined): Remove s_endpgm.
92 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
94         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
95         _OPENMP >= 201811.
97 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
99         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
100         improve wording especially for Fortran; mention -fopenmp-simd.
101         (Enabling OpenACC): Minor cleanup; remove conditional compilation
102         sentinel.
104 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
106         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
107         Actually document what the function does.
108         (GCC_ACC_NOTIFY): Remove unused env var.
110 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
112         * libgomp.texi: Replace most future tense by present tense.
114 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
116         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
117         dg-additional-options "-fdump-tree-gimple"; fix scan.
119 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
121         * libgomp.texi: Fix some typos.
122         (Memory Management Routines): Document remaining 5.x routines.
123         (Memory allocation): Make clear when the section applies.
125 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
127         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
128         supports the allocate directive for stack variables.
129         * testsuite/libgomp.fortran/allocate-5.f90: New test.
130         * testsuite/libgomp.fortran/allocate-6.f90: New test.
131         * testsuite/libgomp.fortran/allocate-7.f90: New test.
132         * testsuite/libgomp.fortran/allocate-8.f90: New test.
134 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
136         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
137         OMP_TARGET_OFFLOAD.
138         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
139         clarify MANDATORY behavior.
141 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
143         * env.c (initialize_env): Use do_adjust_default_spincount.
144         * config/linux/x86/spincount.h: New file.
146 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
148         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
150 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
152         * libgomp.texi (Device Memory Routines): New.
154 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
156         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
157         and that other target archs have no 'arch'/'isa' traits implemented.
159 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
161         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
162         implemented for C only.
163         * testsuite/libgomp.c/allocate-4.c: New test.
164         * testsuite/libgomp.c/allocate-5.c: New test.
165         * testsuite/libgomp.c/allocate-6.c: New test.
167 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
169         PR c++/111392
170         * libgomp.texi: Mark decl attribute was added to the C++ attribute
171         syntax as implemented.
173 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
175         PR libgomp/111413
176         * env.c (initialize_env): Don't dereference environ if it is NULL.
177         Reindent.
179 2023-09-18  Richard Biener  <rguenther@suse.de>
181         PR tree-optimization/111294
182         * team.c (gomp_team_start): Assert alloca size to avoid false
183         positive alloc-size diagnostic.
185 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
186             Chung-Lin Tang  <cltang@codesourcery.com>
188         PR testsuite/91884
189         PR testsuite/109951
190         * configure.ac: Revert earlier changes, instead
191         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
192         * Makefile.in: Regenerate.
193         * configure: Likewise.
194         * testsuite/Makefile.in: Likewise.
195         * testsuite/lib/libgomp.exp (libgomp_init): Remove
196         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
197         If '--with-build-sysroot=[...]' was specified, use it for
198         build-tree testing.
199         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
200         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
201         (SYSROOT_CFLAGS_FOR_TARGET): Set.
202         * testsuite/libgomp.c++/c++.exp (lang_source_re)
203         (lang_include_flags): Set for build-tree testing.
204         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
205         (lang_include_flags): Likewise.
207 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
209         * libgomp.texi (Memory Management Routines): New; add documentation for
210         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
211         omp_get_default_allocator.
212         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
214 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
216         * target.c (gomp_unload_device): Remove tailing whitespace.
218 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
219             Thomas Schwinge  <thomas@codesourcery.com>
221         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
223 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
225         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
227 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
229         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
230         * testsuite/libgomp.fortran/imperfect1.f90: New.
231         * testsuite/libgomp.fortran/imperfect2.f90: New.
232         * testsuite/libgomp.fortran/imperfect3.f90: New.
233         * testsuite/libgomp.fortran/imperfect4.f90: New.
234         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
235         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
236         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
237         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
239 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
241         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
242         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
243         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
244         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
245         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
246         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
247         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
248         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
249         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
250         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
252 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
254         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
255         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
256         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
257         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
258         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
259         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
260         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
261         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
262         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
263         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
264         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
265         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
266         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
268 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
270         * testsuite/lib/libgomp.exp: Add effective target.
271         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
272         functions.
274 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
276         * libgomp.texi (OpenMP 5.2 status): Add depobj with
277         destroy-var argument as 'N'. Mark defaultmap with
278         'all' category as 'Y'.
280 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
282         PR middle-end/111017
283         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
285 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
287         PR libgomp/111024
288         * allocator.c (gomp_init_libnuma): Call numa_available; if
289         not available or not returning 0, disable libnuma usage.
291 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
293         * configure: Regenerate.
295 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
297         * configure: Regenerate.
299 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
301         * configure: Regenerate.
303 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
305         * configure: Regenerate.
307 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
309         * configure: Regenerate.
311 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
313         * configure: Regenerate.
315 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
317         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
318         GOMP_OFFLOAD_CAP_SHARED_MEM.
319         (omp_target_memcpy_rect_copy): Likewise for lock condition.
320         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
321         memcpy3d/memcpy2d.
322         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
323         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
324         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
326 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
328         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
329         GOMP_OFFLOAD_memcpy3d): New prototypes.
330         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
331         and memcpy3d_func.
332         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
333         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
334         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
335         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
336         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
337         GOMP_OFFLOAD_memcpy3d): New.
338         * target.c (omp_target_memcpy_rect_worker):
339         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
340         Permit all device-to-device copyies; invoke new plugins for
341         2D and 3D copying when available.
342         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
343         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
344         * testsuite/libgomp.fortran/target-12.f90: Likewise.
345         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
347 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
349         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
350         (Tasking Routines): Document omp_in_explicit_task.
351         (Implementation-defined ICV Initialization): Use @ref not @code.
353 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
355         * libgomp.texi (OpenMP Runtime Library Routines):
356         Split long list by adding sections and moving routines there.
357         (OMP_ALLOCATORS): Fix typo.
359 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
361         PR fortran/107424
362         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
363         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
364         commented tests.
365         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
366         test file; tests are in non-rectangular-loop-1.f90.
367         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
368         testcase to use a non-constant step to retain the 'sorry' test.
369         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
371 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
372             Chung-Lin Tang  <cltang@codesourcery.com>
374         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
375         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
377 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
379         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
380         the traits. Add crossref to 'Memory allocation'.
381         (Memory allocation): Refer to OMP_ALLOCATOR for the available
382         traits and allocators/mem spaces; document the default value
383         for the pool_size trait.
385 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
387         * allocator.c (omp_init_allocator): Check whether symbol from
388         dlopened libnuma is available before using libnuma for
389         allocations.
391 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
393         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
394         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
395         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
397 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
399         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
400         'Memory allocation' section which contains the full status.
401         (TR11): Remove differently worded duplicated entry.
403 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
405         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
406         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
407         add GOMP_MEMKIND_LIBNUMA.
408         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
409         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
410         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
411         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
412         needed.
413         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
414         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
415         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
416         updated for libnuma usage.
417         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
418         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
420 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
422         * allocator.c (omp_init_allocator): Use malloc for
423         omp_high_bw_mem_space when the memkind lib is unavailable
424         instead of returning omp_null_allocator.
425         * libgomp.texi (OpenMP 5.0): Fix typo.
426         (Memory allocation with libmemkind): Document implementation
427         in more detail.
429 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
431         * libgomp.texi: Use @var for ICV vars.
432         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
433         document which ICV is set and which scope the ICV has; extend/cleanup
434         some @ref.
435         (Implementation-defined ICV Initialization): New.
436         (nvptx): Document the implementation-defined used per-warp stack size.
438 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
440         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
441         error.
443 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
445         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
446         as expected dg-output.
448 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
450         PR middle-end/110270
451         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
452         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
453         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
454         * testsuite/libgomp.c/target-19.c: Update expected value.
455         * testsuite/libgomp.c++/target-18.C: Likewise.
456         * testsuite/libgomp.c++/target-19.C: Likewise.
457         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
458         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
459         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
461 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
463         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
464         gomp_init_targets_once was called before using default-device-var.
465         * testsuite/libgomp.c/target-55.c: New test.
466         * testsuite/libgomp.c/target-55a.c: New test.
468 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
470         * env.c (gomp_def_allocator_envvar): New var.
471         (parse_allocator): Handle OpenMP 5.1 syntax.
472         (cleanup_env): New.
473         (omp_display_env): Output gomp_def_allocator_envvar
474         for an allocator with traits.
475         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
476         OMP_DISPLAY_AFFINITY): New.
477         * testsuite/libgomp.c/allocator-1.c: New test.
478         * testsuite/libgomp.c/allocator-2.c: New test.
479         * testsuite/libgomp.c/allocator-3.c: New test.
480         * testsuite/libgomp.c/allocator-4.c: New test.
481         * testsuite/libgomp.c/allocator-5.c: New test.
482         * testsuite/libgomp.c/allocator-6.c: New test.
484 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
486         * target.c (resolve_device): Align a
487         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
488         * testsuite/libgomp.c/target-51.c: Adjust.
490 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
492         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
493         set.
494         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
495         Likewise.
496         * testsuite/libgomp.c/simd-math-1.c: Remove
497         '-foffload-options=-lm'.
498         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
499         Likewise.
500         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
501         Likewise.
503 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
505         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
506         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
507         Likewise.
509 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
511         * testsuite/libgomp.c/target-51.c: Fix typo.
513 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
515         * env.c (gomp_default_icv_values): Init default_device_var to
516         an nonconforming value - INT_MIN.
517         (initialize_env): After env-var parsing, set default_device_var to
518         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
519         (omp_display_env): If default_device_var is INT_MIN, call
520         gomp_init_targets_once.
521         * icv-device.c (omp_get_default_device): Likewise.
522         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
523         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
524         * target.c (resolve_device): Improve error message device-num < 0
525         with 'mandatory' and no no-host devices available.
526         (gomp_target_init): Set default-device-var if INT_MIN.
527         * testsuite/libgomp.c/target-48.c: New test.
528         * testsuite/libgomp.c/target-49.c: New test.
529         * testsuite/libgomp.c/target-50.c: New test.
530         * testsuite/libgomp.c/target-50a.c: New test.
531         * testsuite/libgomp.c/target-51.c: New test.
532         * testsuite/libgomp.c/target-52.c: New test.
533         * testsuite/libgomp.c/target-53.c: New test.
534         * testsuite/libgomp.c/target-54.c: New test.
536 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
538         PR libgomp/109837
539         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
540         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
542 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
544         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
545         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
546         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
547         error message.
548         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
549         changed error message.
550         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
551         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
552         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
553         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
554         extend testcase to check that data is copied when needed.
555         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
556         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
558 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
559             Tobias Burnus  <tobias@codesourcery.com>
561         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
562         also for non-offload_device targets; check that it runs
563         successfully for those and for all until a checkpoint for all
564         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
565         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
566         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
567         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
568         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
569         add missing vars to map clause.
571 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
573         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
574         unified_address requirement as supported.
575         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
576         'unified_address' from the not-supported requirements.
578 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
579             Tobias Burnus  <tobias@codesourcery.com>
581         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
582         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
583         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
584         modifier.
585         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
586         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
587         Emit runtime error if memory region not present.
588         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
589         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
590         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
591         * testsuite/libgomp.fortran/target-present-1.f90: New test.
592         * testsuite/libgomp.fortran/target-present-2.f90: New test.
593         * testsuite/libgomp.fortran/target-present-3.f90: New test.
595 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
597         PR testsuite/66005
598         * testsuite/lib/libgomp.exp: 'flock' through stdout.
599         * testsuite/flock: New.
600         * configure.ac (FLOCK): Point to that if no 'flock' available, but
601         'perl' is.
602         * configure: Regenerate.
604 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
606         * configure.ac (PERL): Remove.
607         * configure: Regenerate.
608         * Makefile.in: Likewise.
609         * testsuite/Makefile.in: Likewise.
611 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
613         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
615 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
617         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
619 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
621         PR libgomp/109875
622         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
623         * config/nvptx/target.c (GOMP_teams4): Likewise.
624         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
625         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
626         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
627         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
629 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
631         PR libgomp/109904
632         * configure.ac (link_gomp): Include also $DL_LIBS.
633         * configure: Regenerated.
635 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
637         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
638         'target exit data'.
639         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
640         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
641         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
642         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
644 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
646         PR testsuite/66005
647         * configure.ac: Look for 'flock'.
648         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
649         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
650         * testsuite/lib/libgomp.exp: ... but here, instead.
651         (libgomp_load): Override for parallel testing.
652         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
653         * configure: Regenerate.
654         * Makefile.in: Regenerate.
655         * testsuite/Makefile.in: Regenerate.
657 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
658             Thomas Schwinge  <thomas@codesourcery.com>
660         PR testsuite/66005
661         * testsuite/Makefile.am (PWD_COMMAND): New variable.
662         (%/site.exp): New target.
663         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
664         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
665         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
666         (check_p_subdirs)
667         (check_DEJAGNU_libgomp_targets): New variables.
668         ($(check_DEJAGNU_libgomp_targets)): New target.
669         ($(check_DEJAGNU_libgomp_targets)): New dependency.
670         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
671         * testsuite/Makefile.in: Regenerate.
672         * testsuite/lib/libgomp.exp: For parallel testing,
673         'load_file ../libgomp-test-support.exp'.
675 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
677         PR testsuite/91884
678         * configure.ac: 'AC_SUBST(CXX)'.
679         * configure: Regenerate.
680         * Makefile.in: Likewise.
681         * testsuite/Makefile.in: Likewise.
682         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
683         (GFORTRAN_UNDER_TEST): Set.
684         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
685         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
686         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
687         * testsuite/libgomp.fortran/fortran.exp: Use
688         'GFORTRAN_UNDER_TEST'.
689         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
691 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
693         PR testsuite/91884
694         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
695         specify compiler.
696         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
697         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
698         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
699         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
700         Likewise.
701         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
702         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
703         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
704         Likewise.
706 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
708         PR libstdc++/109816
709         * testsuite/libgomp.c++/target-map-class-1.C: New test.
710         * testsuite/libgomp.c++/target-map-class-2.C: New test.
712 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
714         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
715         'lang_library_path' into a list of 'lang_library_paths'.
716         * testsuite/libgomp.c++/c++.exp: Adjust.
717         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
718         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
719         libquadmath, too.
720         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
722 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
724         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
725         at 'lang_test_file_found'.
726         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
727         'return' early if not able to test.  Simplify 'ld_library_path' setup.
728         * testsuite/libgomp.fortran/fortran.exp: Likewise.
729         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
730         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
732 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
734         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
735         first.
736         * testsuite/libgomp.fortran/fortran.exp: Likewise.
737         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
738         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
740 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
742         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
743         * testsuite/libgomp.c/c.exp: Likewise.
744         * testsuite/libgomp.fortran/fortran.exp: Likewise.
745         * testsuite/libgomp.graphite/graphite.exp: Likewise.
746         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
747         * testsuite/libgomp.oacc-c/c.exp: Likewise.
748         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
750 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
752         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
753         * testsuite/libgomp.fortran/fortran.exp: Likewise.
754         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
755         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
756         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
757         'lang_test_file'.
758         * testsuite/libgomp.oacc-c/c.exp: Likewise.
759         * testsuite/libgomp.graphite/graphite.exp: Likewise.
760         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
761         'lang_test_file_found' instead of 'lang_test_file'.
763 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
765         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
766         set.
767         * testsuite/libgomp.c++/c++.exp: Likewise.
768         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
770 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
772         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
773         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
775 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
777         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
778         of 'libstdcxx_includes'.
779         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
781 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
783         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
784         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
785         * libgomp.h (gomp_target_rev): Adjust.
786         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
787         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
788         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
789         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
790         (rev_off_host_to_dev_cpy): Remove.
791         (GOMP_OFFLOAD_run): Adjust.
793 2023-05-04  Julian Brown  <julian@codesourcery.com>
795         PR fortran/109622
796         * testsuite/libgomp.fortran/pr109622.f90: Move test...
797         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
798         vector length warning.
799         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
800         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
801         missing copyin/copyout variable. Ignore vector length warnings.
802         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
803         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
804         vector length warnings.
805         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
807 2023-04-28  Julian Brown  <julian@codesourcery.com>
809         PR fortran/109622
810         * testsuite/libgomp.fortran/pr109622.f90: New test.
811         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
812         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
814 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
816         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
817         * testsuite/libgomp.c/scan-23.c: New test.
818         * testsuite/libgomp.fortran/scan-2.f90: New test.
820 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
822         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
823         weak_undefined options.
825 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
827         * libgomp.texi (Offload-Target Specifics): Grammar fix.
829 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
831         PR fortran/104949
832         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
833         caveat/safeguard.
835 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
837         PR libgomp/90596
838         * target.c (gomp_map_vars_internal): Allow for
839         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
840         * oacc-parallel.c (GOACC_parallel_keyed): Pass
841         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
842         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
843         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
844         Adjust, simplify.
845         (gomp_offload_free): Remove.
846         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
847         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
848         (cuda_free_argmem): Remove.
849         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
850         Adjust.
852 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
854         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
855         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
856         data.
858 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
860         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
861         'GOMP_MAP_IF_PRESENT'.
862         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
863         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
864         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
865         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
866         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
867         testing.
868         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
870 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
872         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
873         shortcut.
875 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
877         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
878         another aspect of OpenACC 'async' semantics.
880 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
882         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
883         position.
884         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
885         Verify 'acc_ev_alloc', 'acc_ev_free'.
887 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
889         PR libgomp/109062
890         * env.c (wait_policy): Initialize to -1.
891         (initialize_icvs): Initialize icvs->wait_policy to -1.
892         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
894 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
896         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
898 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
899             Paul-Antoine Arras  <pa@codesourcery.com>
901         * testsuite/libgomp.c/simd-math-1.c: New testcase.
903 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
905         PR middle-end/108546
906         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
907         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
909 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
911         * testsuite/libgomp.fortran/alloc-10.f90: Use
912         '-Wno-complain-wrong-lang'.
913         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
914         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
915         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
916         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
917         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
918         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
919         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
920         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
921         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
922         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
923         Likewise.
924         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
925         Likewise.
926         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
927         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
928         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
929         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
930         'dg-prune-output'.
932 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
934         * libgomp.texi: Fix typos - theads -> threads.
936 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
938         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
939         comment typo and improve its wording.
941 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
943         * target.c (gomp_target_rev): Dereference ptr
944         to get device address.
945         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
946         for unallocated allocatable.
948 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
950         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
951         kind check.
952         (GOMP_target_enter_exit_data): If the next map item is
953         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
954         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
956 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
958         PR fortran/107424
959         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
960         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
961         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
962         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
963         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
964         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
966 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
968         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
969         offloading compilation.
971 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
973         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
974         freeing not allocated memory.
975         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
977 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
979         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
980         reverse offload.
981         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
982         reverse-offload requirement.
984 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
986         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
987         (DEFAULT_TEAM_ARENA_SIZE): New define.
988         (struct heap): Move to this file.
989         (struct kernargs_abi): Likewise.
990         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
991         the kernargs.
992         * libgomp.h: Include libgomp-gcn.h.
993         (TEAM_ARENA_SIZE): Remove.
994         (team_malloc): Update the error message.
995         * plugin/plugin-gcn.c (struct kernargs): Move common content to
996         struct kernargs_abi.
997         (struct agent_info): Rename team arenas to ephemeral memories.
998         (struct team_arena_list): Rename ....
999         (struct ephemeral_memories_list): to this.
1000         (struct heap): Delete.
1001         (team_arena_size): New variable.
1002         (stack_size): New variable.
1003         (print_kernel_dispatch): Update debug messages.
1004         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1005         Read GCN_STACK_SIZE.
1006         (get_team_arena): Rename ...
1007         (configure_ephemeral_memories): ... to this, and set up stacks.
1008         (release_team_arena): Rename ...
1009         (release_ephemeral_memories): ... to this.
1010         (destroy_team_arenas): Rename ...
1011         (destroy_ephemeral_memories): ... to this.
1012         (create_kernel_dispatch): Add num_threads parameter.
1013         Adjust for kernargs_abi refactor and ephemeral memories.
1014         (release_kernel_dispatch): Adjust for ephemeral memories.
1015         (run_kernel): Pass thread-count to create_kernel_dispatch.
1016         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1017         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1019 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
1021         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1023 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1025         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1026         usage, remove unused -fdump-tree-original.
1027         * testsuite/libgomp.fortran/allocate-4.f90: New.
1029 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1031         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1032         (GCN): Add item about 'omp requires'.
1033         (nvptx): Likewise; add item about reverse offload.
1035 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
1037         PR fortran/108558
1038         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1040 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
1042         * libgomp.texi (OpenMP 5.0): Set non-rectangular
1043         loop nest back to 'P' as Fortran support is incomplete.
1045 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
1047         PR middle-end/108459
1048         * testsuite/libgomp.c/pr108459.c: New test.
1050 2023-01-17  Martin Liska  <mliska@suse.cz>
1052         * Makefile.in: Regenerate.
1053         * configure: Regenerate.
1055 2023-01-07  LIU Hao  <lh_mouse@126.com>
1057         PR middle-end/108300
1058         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1059         <windows.h>.
1061 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
1063         PR c++/108286
1064         * testsuite/libgomp.c++/pr108286.C: New test.
1066 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
1068         * libgomp.texi: Bump @copying's copyright year.
1070 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
1072         PR target/99555
1073         * config/nvptx/bar.c (generation_to_barrier): Remove.
1074         (futex_wait,futex_wake,do_spin,do_wait): Remove.
1075         (GOMP_WAIT_H): Remove.
1076         (#include "../linux/bar.c"): Remove.
1077         (gomp_barrier_wait_end): New function.
1078         (gomp_barrier_wait): Likewise.
1079         (gomp_barrier_wait_last): Likewise.
1080         (gomp_team_barrier_wait_end): Likewise.
1081         (gomp_team_barrier_wait): Likewise.
1082         (gomp_team_barrier_wait_final): Likewise.
1083         (gomp_team_barrier_wait_cancel_end): Likewise.
1084         (gomp_team_barrier_wait_cancel): Likewise.
1085         (gomp_team_barrier_cancel): Likewise.
1086         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1087         (gomp_barrier_init): Remove init of waiters, lock fields.
1088         (gomp_team_barrier_wake): Remove prototype, add new static inline
1089         function.
1091 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
1093         PR c++/108180
1094         * testsuite/libgomp.c++/pr108180.C: New test.
1096 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
1098         PR libfortran/108056
1099         * testsuite/libgomp.fortran/allocate-4.f90: Remove
1100         accidentally added file.
1102 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
1104         PR libfortran/108056
1105         * testsuite/libgomp.fortran/allocate-4.f90: New file.
1107 2022-12-14  Julian Brown  <julian@codesourcery.com>
1109         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1110         test.
1112 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
1114         * libgomp.h (struct target_mem_desc): Predeclare; move
1115         below after 'reverse_splay_tree_node' and add rev_array
1116         member.
1117         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1118         (reverse_splay_tree_node, reverse_splay_tree,
1119         reverse_splay_tree_key): New typedef.
1120         (struct gomp_device_descr): Add mem_map_rev member.
1121         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1122         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1123         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1124         * splay-tree.h (splay_tree_callback_stop): New typedef; like
1125         splay_tree_callback but returning int not void.
1126         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1127         taking splay_tree_callback_stop as argument.
1128         * splay-tree.c (splay_tree_foreach_internal_lazy,
1129         splay_tree_foreach_lazy): New; but early exit if callback returns
1130         nonzero.
1131         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1132         (gomp_map_lookup_rev): New.
1133         (gomp_load_image_to_device): Handle reverse-offload function
1134         lookup table.
1135         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1136         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1137         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1138         gomp_map_cdata_lookup): New auxiliary structs and functions for
1139         gomp_target_rev.
1140         (gomp_target_rev): Implement reverse offloading and its mapping.
1141         (gomp_target_init): Init current_device.mem_map_rev.root.
1142         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1143         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1144         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1145         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1146         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1147         mapping of on-device allocated variables.
1149 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
1151         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1152         item about 'align'; mark clause as 'Y' and directive as 'N'.
1153         * testsuite/libgomp.fortran/allocate-2.f90: New test.
1154         * testsuite/libgomp.fortran/allocate-3.f90: New test.
1156 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
1158         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1159         allow processing of device-specific values.
1160         (omp_set_teams_thread_limit): Likewise.
1161         (ialias): Likewise.
1162         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1163         (omp_set_teams_thread_limit): Likewise.
1164         (ialias): Likewise.
1165         * icv-device.c (omp_get_teams_thread_limit): Likewise.
1166         (ialias): Likewise.
1167         (omp_set_teams_thread_limit): Likewise.
1168         * icv.c (omp_set_teams_thread_limit): Removed.
1169         (omp_get_teams_thread_limit): Likewise.
1170         (ialias): Likewise.
1171         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1172         to the limitation of the number of teams.
1173         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1174         the number of teams by twice the number of compute units.
1175         (parse_target_attributes): Limit the number of teams on gcn offload
1176         devices.
1177         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1178         handling.
1179         (gomp_load_image_to_device): Added a size check for the ICVs struct
1180         variable.
1181         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1182         copy back the ICV values from device to host.
1183         (GOMP_target_ext): Update the number of teams and threads in the kernel
1184         args also considering device-specific values.
1185         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1186         of OMP_TEAMS_THREAD_LIMIT from the environment.
1187         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1188         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1189         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1190         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1191         * testsuite/libgomp.fortran/icv-5.f90: New test.
1192         * testsuite/libgomp.fortran/icv-6.f90: New test.
1194 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1196         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1197         (TR11): Add missing '@tab N @tab'.
1199 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1201         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1203 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1205         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1206         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1207         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1208         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1209         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1210         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1211         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1213 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1215         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1217 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1219         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1220         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1221         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1222         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1224 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1226         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1227         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1228         as valid and the code having no reverse-offload code.
1229         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1231 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1233         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1234         and status for Technical Report (TR) 11.
1236 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1238         * config/gcn/libgomp-gcn.h (struct output):
1239         Remove 'msg_u64' from the union, change
1240         value_u64[2] to value_u64[6].
1241         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1242         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1243         Likewise.
1245 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1247         * config/gcn/libgomp-gcn.h: New file; contains
1248         struct output, declared previously in plugin-gcn.c.
1249         * config/gcn/target.c: Include it.
1250         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1251         (GOMP_target_ext): Handle reverse offload.
1252         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1253         (struct kernargs): Replace struct def by the one
1254         from libgomp-gcn.h for output_data.
1255         (process_reverse_offload): New.
1256         (console_output): Call it.
1258 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1259             Andrew Stubbs  <ams@codesourcery.com>
1261         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1262         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1264 2022-11-14  Martin Liska  <mliska@suse.cz>
1266         Revert:
1267         2022-11-14  Martin Liska  <mliska@suse.cz>
1269         * doc/amd-radeon-gcn.rst: New file.
1270         * doc/conf.py: New file.
1271         * doc/copyright.rst: New file.
1272         * doc/cuda-streams-usage.rst: New file.
1273         * doc/enabling-openacc.rst: New file.
1274         * doc/enabling-openmp.rst: New file.
1275         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1276         * doc/first-invocation-openacc-library-api.rst: New file.
1277         * doc/funding.rst: New file.
1278         * doc/general-public-license-3.rst: New file.
1279         * doc/gnu-free-documentation-license.rst: New file.
1280         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1281         * doc/index.rst: New file.
1282         * doc/indices-and-tables.rst: New file.
1283         * doc/introduction.rst: New file.
1284         * doc/memory-allocation-with-libmemkind.rst: New file.
1285         * doc/nvptx.rst: New file.
1286         * doc/offload-target-specifics.rst: New file.
1287         * doc/openacc-environment-variables.rst: New file.
1288         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1289         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1290         * doc/openacc-environment-variables/accproflib.rst: New file.
1291         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1292         * doc/openacc-introduction.rst: New file.
1293         * doc/openacc-library-and-environment-variables.rst: New file.
1294         * doc/openacc-library-interoperability.rst: New file.
1295         * doc/openacc-profiling-interface.rst: New file.
1296         * doc/openacc-runtime-library-routines.rst: New file.
1297         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1298         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1299         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1300         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1301         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1302         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1303         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1304         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1305         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1306         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1307         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1308         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1309         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1310         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1311         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1312         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1313         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1314         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1315         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1316         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1317         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1318         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1319         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1320         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1321         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1322         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1323         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1324         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1325         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1326         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1327         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1328         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1329         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1330         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1331         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1332         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1333         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1334         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1335         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1336         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1337         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1338         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1339         * doc/openmp-context-selectors.rst: New file.
1340         * doc/openmp-environment-variables.rst: New file.
1341         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1342         * doc/openmp-environment-variables/gompdebug.rst: New file.
1343         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1344         * doc/openmp-environment-variables/gompspincount.rst: New file.
1345         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1346         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1347         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1348         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1349         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1350         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1351         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1352         * doc/openmp-environment-variables/ompnested.rst: New file.
1353         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1354         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1355         * doc/openmp-environment-variables/ompplaces.rst: New file.
1356         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1357         * doc/openmp-environment-variables/ompschedule.rst: New file.
1358         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1359         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1360         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1361         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1362         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1363         * doc/openmp-implementation-specifics.rst: New file.
1364         * doc/openmp-implementation-status.rst: New file.
1365         * doc/openmp-implementation-status/openmp-45.rst: New file.
1366         * doc/openmp-implementation-status/openmp-50.rst: New file.
1367         * doc/openmp-implementation-status/openmp-51.rst: New file.
1368         * doc/openmp-implementation-status/openmp-52.rst: New file.
1369         * doc/openmp-runtime-library-routines.rst: New file.
1370         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1371         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1372         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1373         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1374         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1375         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1376         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1377         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1378         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1379         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1380         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1381         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1382         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1383         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1384         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1385         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1386         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1387         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1388         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1389         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1390         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1391         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1392         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1393         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1394         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1395         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1396         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1397         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1398         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1399         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1400         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1401         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1402         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1403         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1404         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1405         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1406         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1407         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1408         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1409         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1410         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1411         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1412         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1413         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1414         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1415         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1416         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1417         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1418         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1419         * doc/reporting-bugs.rst: New file.
1420         * doc/the-libgomp-abi.rst: New file.
1421         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1422         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1423         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1424         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1425         New file.
1426         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1427         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1428         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1429         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1430         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1431         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1432         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1433         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1434         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1435         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1436         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1438 2022-11-14  Martin Liska  <mliska@suse.cz>
1440         Revert:
1441         2022-11-14  Martin Liska  <mliska@suse.cz>
1443         * Makefile.in: Support Sphinx based documentation.
1445 2022-11-14  Martin Liska  <mliska@suse.cz>
1447         Revert:
1448         2022-11-14  Martin Liska  <mliska@suse.cz>
1450         * libgomp.texi: Removed.
1452 2022-11-14  Martin Liska  <mliska@suse.cz>
1454         Revert:
1455         2022-11-14  Martin Liska  <mliska@suse.cz>
1457         * Makefile.in: Support --with-sphinx-build.
1458         * configure.ac: Likewise..
1459         * configure: Regenerate.
1461 2022-11-14  Martin Liska  <mliska@suse.cz>
1463         Revert:
1464         2022-11-09  Martin Liska  <mliska@suse.cz>
1466         * Makefile.in: Build info pages conditionally.
1468 2022-11-14  Martin Liska  <mliska@suse.cz>
1470         Revert:
1471         2022-11-14  Martin Liska  <mliska@suse.cz>
1473         * doc/amd-radeon-gcn.rst:
1474         Add trailing newline.
1475         * doc/copyright.rst:
1476         Add trailing newline.
1477         * doc/cuda-streams-usage.rst:
1478         Add trailing newline.
1479         * doc/enabling-openacc.rst:
1480         Add trailing newline.
1481         * doc/enabling-openmp.rst:
1482         Add trailing newline.
1483         * doc/first-invocation-nvidia-cublas-library-api.rst:
1484         Add trailing newline.
1485         * doc/first-invocation-openacc-library-api.rst:
1486         Add trailing newline.
1487         * doc/funding.rst:
1488         Add trailing newline.
1489         * doc/general-public-license-3.rst:
1490         Add trailing newline.
1491         * doc/gnu-free-documentation-license.rst:
1492         Add trailing newline.
1493         * doc/implementation-status-and-implementation-defined-behavior.rst:
1494         Add trailing newline.
1495         * doc/index.rst:
1496         Add trailing newline.
1497         * doc/indices-and-tables.rst:
1498         Add trailing newline.
1499         * doc/introduction.rst:
1500         Add trailing newline.
1501         * doc/memory-allocation-with-libmemkind.rst:
1502         Add trailing newline.
1503         * doc/nvptx.rst:
1504         Add trailing newline.
1505         * doc/offload-target-specifics.rst:
1506         Add trailing newline.
1507         * doc/openacc-environment-variables.rst:
1508         Add trailing newline.
1509         * doc/openacc-environment-variables/accdevicenum.rst:
1510         Add trailing newline.
1511         * doc/openacc-environment-variables/accdevicetype.rst:
1512         Add trailing newline.
1513         * doc/openacc-environment-variables/accproflib.rst:
1514         Add trailing newline.
1515         * doc/openacc-environment-variables/gccaccnotify.rst:
1516         Add trailing newline.
1517         * doc/openacc-introduction.rst:
1518         Add trailing newline.
1519         * doc/openacc-library-and-environment-variables.rst:
1520         Add trailing newline.
1521         * doc/openacc-library-interoperability.rst:
1522         Add trailing newline.
1523         * doc/openacc-profiling-interface.rst:
1524         Add trailing newline.
1525         * doc/openacc-runtime-library-routines.rst:
1526         Add trailing newline.
1527         * doc/openacc-runtime-library-routines/accasynctest.rst:
1528         Add trailing newline.
1529         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1530         Add trailing newline.
1531         * doc/openacc-runtime-library-routines/accattach.rst:
1532         Add trailing newline.
1533         * doc/openacc-runtime-library-routines/acccopyin.rst:
1534         Add trailing newline.
1535         * doc/openacc-runtime-library-routines/acccopyout.rst:
1536         Add trailing newline.
1537         * doc/openacc-runtime-library-routines/acccreate.rst:
1538         Add trailing newline.
1539         * doc/openacc-runtime-library-routines/accdelete.rst:
1540         Add trailing newline.
1541         * doc/openacc-runtime-library-routines/accdetach.rst:
1542         Add trailing newline.
1543         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1544         Add trailing newline.
1545         * doc/openacc-runtime-library-routines/accfree.rst:
1546         Add trailing newline.
1547         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1548         Add trailing newline.
1549         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1550         Add trailing newline.
1551         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1552         Add trailing newline.
1553         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1554         Add trailing newline.
1555         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1556         Add trailing newline.
1557         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1558         Add trailing newline.
1559         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1560         Add trailing newline.
1561         * doc/openacc-runtime-library-routines/acchostptr.rst:
1562         Add trailing newline.
1563         * doc/openacc-runtime-library-routines/accinit.rst:
1564         Add trailing newline.
1565         * doc/openacc-runtime-library-routines/accispresent.rst:
1566         Add trailing newline.
1567         * doc/openacc-runtime-library-routines/accmalloc.rst:
1568         Add trailing newline.
1569         * doc/openacc-runtime-library-routines/accmapdata.rst:
1570         Add trailing newline.
1571         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1572         Add trailing newline.
1573         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1574         Add trailing newline.
1575         * doc/openacc-runtime-library-routines/accondevice.rst:
1576         Add trailing newline.
1577         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1578         Add trailing newline.
1579         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1580         Add trailing newline.
1581         * doc/openacc-runtime-library-routines/accproflookup.rst:
1582         Add trailing newline.
1583         * doc/openacc-runtime-library-routines/accprofregister.rst:
1584         Add trailing newline.
1585         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1586         Add trailing newline.
1587         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1588         Add trailing newline.
1589         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1590         Add trailing newline.
1591         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1592         Add trailing newline.
1593         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1594         Add trailing newline.
1595         * doc/openacc-runtime-library-routines/accshutdown.rst:
1596         Add trailing newline.
1597         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1598         Add trailing newline.
1599         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1600         Add trailing newline.
1601         * doc/openacc-runtime-library-routines/accupdateself.rst:
1602         Add trailing newline.
1603         * doc/openacc-runtime-library-routines/accwait.rst:
1604         Add trailing newline.
1605         * doc/openacc-runtime-library-routines/accwaitall.rst:
1606         Add trailing newline.
1607         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1608         Add trailing newline.
1609         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1610         Add trailing newline.
1611         * doc/openmp-context-selectors.rst:
1612         Add trailing newline.
1613         * doc/openmp-environment-variables.rst:
1614         Add trailing newline.
1615         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1616         Add trailing newline.
1617         * doc/openmp-environment-variables/gompdebug.rst:
1618         Add trailing newline.
1619         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1620         Add trailing newline.
1621         * doc/openmp-environment-variables/gompspincount.rst:
1622         Add trailing newline.
1623         * doc/openmp-environment-variables/gompstacksize.rst:
1624         Add trailing newline.
1625         * doc/openmp-environment-variables/ompcancellation.rst:
1626         Add trailing newline.
1627         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1628         Add trailing newline.
1629         * doc/openmp-environment-variables/ompdisplayenv.rst:
1630         Add trailing newline.
1631         * doc/openmp-environment-variables/ompdynamic.rst:
1632         Add trailing newline.
1633         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1634         Add trailing newline.
1635         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1636         Add trailing newline.
1637         * doc/openmp-environment-variables/ompnested.rst:
1638         Add trailing newline.
1639         * doc/openmp-environment-variables/ompnumteams.rst:
1640         Add trailing newline.
1641         * doc/openmp-environment-variables/ompnumthreads.rst:
1642         Add trailing newline.
1643         * doc/openmp-environment-variables/ompplaces.rst:
1644         Add trailing newline.
1645         * doc/openmp-environment-variables/ompprocbind.rst:
1646         Add trailing newline.
1647         * doc/openmp-environment-variables/ompschedule.rst:
1648         Add trailing newline.
1649         * doc/openmp-environment-variables/ompstacksize.rst:
1650         Add trailing newline.
1651         * doc/openmp-environment-variables/omptargetoffload.rst:
1652         Add trailing newline.
1653         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1654         Add trailing newline.
1655         * doc/openmp-environment-variables/ompthreadlimit.rst:
1656         Add trailing newline.
1657         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1658         Add trailing newline.
1659         * doc/openmp-implementation-specifics.rst:
1660         Add trailing newline.
1661         * doc/openmp-implementation-status.rst:
1662         Add trailing newline.
1663         * doc/openmp-implementation-status/openmp-45.rst:
1664         Add trailing newline.
1665         * doc/openmp-implementation-status/openmp-50.rst:
1666         Add trailing newline.
1667         * doc/openmp-implementation-status/openmp-51.rst:
1668         Add trailing newline.
1669         * doc/openmp-implementation-status/openmp-52.rst:
1670         Add trailing newline.
1671         * doc/openmp-runtime-library-routines.rst:
1672         Add trailing newline.
1673         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1674         Add trailing newline.
1675         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1676         Add trailing newline.
1677         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1678         Add trailing newline.
1679         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1680         Add trailing newline.
1681         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1682         Add trailing newline.
1683         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1684         Add trailing newline.
1685         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1686         Add trailing newline.
1687         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1688         Add trailing newline.
1689         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1690         Add trailing newline.
1691         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1692         Add trailing newline.
1693         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1694         Add trailing newline.
1695         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1696         Add trailing newline.
1697         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1698         Add trailing newline.
1699         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1700         Add trailing newline.
1701         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1702         Add trailing newline.
1703         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1704         Add trailing newline.
1705         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1706         Add trailing newline.
1707         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1708         Add trailing newline.
1709         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1710         Add trailing newline.
1711         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1712         Add trailing newline.
1713         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1714         Add trailing newline.
1715         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1716         Add trailing newline.
1717         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1718         Add trailing newline.
1719         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1720         Add trailing newline.
1721         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1722         Add trailing newline.
1723         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1724         Add trailing newline.
1725         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1726         Add trailing newline.
1727         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1728         Add trailing newline.
1729         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1730         Add trailing newline.
1731         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1732         Add trailing newline.
1733         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1734         Add trailing newline.
1735         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1736         Add trailing newline.
1737         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1738         Add trailing newline.
1739         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1740         Add trailing newline.
1741         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1742         Add trailing newline.
1743         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1744         Add trailing newline.
1745         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1746         Add trailing newline.
1747         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1748         Add trailing newline.
1749         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1750         Add trailing newline.
1751         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1752         Add trailing newline.
1753         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1754         Add trailing newline.
1755         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1756         Add trailing newline.
1757         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1758         Add trailing newline.
1759         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1760         Add trailing newline.
1761         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1762         Add trailing newline.
1763         * doc/openmp-runtime-library-routines/omptestlock.rst:
1764         Add trailing newline.
1765         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1766         Add trailing newline.
1767         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1768         Add trailing newline.
1769         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1770         Add trailing newline.
1771         * doc/reporting-bugs.rst:
1772         Add trailing newline.
1773         * doc/the-libgomp-abi.rst:
1774         Add trailing newline.
1775         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1776         Add trailing newline.
1777         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1778         Add trailing newline.
1779         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1780         Add trailing newline.
1781         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1782         Add trailing newline.
1783         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1784         Add trailing newline.
1785         * doc/the-libgomp-abi/implementing-for-construct.rst:
1786         Add trailing newline.
1787         * doc/the-libgomp-abi/implementing-master-construct.rst:
1788         Add trailing newline.
1789         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1790         Add trailing newline.
1791         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1792         Add trailing newline.
1793         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1794         Add trailing newline.
1795         * doc/the-libgomp-abi/implementing-private-clause.rst:
1796         Add trailing newline.
1797         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1798         Add trailing newline.
1799         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1800         Add trailing newline.
1801         * doc/the-libgomp-abi/implementing-single-construct.rst:
1802         Add trailing newline.
1803         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1804         Add trailing newline.
1806 2022-11-14  Martin Liska  <mliska@suse.cz>
1808         Revert:
1809         2022-11-09  Martin Liska  <mliska@suse.cz>
1811         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1813 2022-11-14  Martin Liska  <mliska@suse.cz>
1815         Revert:
1816         2022-11-14  Martin Liska  <mliska@suse.cz>
1818         * doc/conf.py: Add newline at last line.
1820 2022-11-14  Martin Liska  <mliska@suse.cz>
1822         Revert:
1823         2022-11-14  Martin Liska  <mliska@suse.cz>
1825         PR other/107620
1826         * configure: Regenerate.
1827         * configure.ac: Always set sphinx-build.
1829 2022-11-13  Martin Liska  <mliska@suse.cz>
1831         PR other/107620
1832         * configure: Regenerate.
1833         * configure.ac: Always set sphinx-build.
1835 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
1837         PR libgomp/107641
1838         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1839         unsigned long.  Change type of upper from unsigned to unsigned long.
1841 2022-11-10  Martin Liska  <mliska@suse.cz>
1843         * doc/conf.py: Add newline at last line.
1845 2022-11-09  Martin Liska  <mliska@suse.cz>
1847         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1849 2022-11-09  Martin Liska  <mliska@suse.cz>
1851         * doc/amd-radeon-gcn.rst:
1852         Add trailing newline.
1853         * doc/copyright.rst:
1854         Add trailing newline.
1855         * doc/cuda-streams-usage.rst:
1856         Add trailing newline.
1857         * doc/enabling-openacc.rst:
1858         Add trailing newline.
1859         * doc/enabling-openmp.rst:
1860         Add trailing newline.
1861         * doc/first-invocation-nvidia-cublas-library-api.rst:
1862         Add trailing newline.
1863         * doc/first-invocation-openacc-library-api.rst:
1864         Add trailing newline.
1865         * doc/funding.rst:
1866         Add trailing newline.
1867         * doc/general-public-license-3.rst:
1868         Add trailing newline.
1869         * doc/gnu-free-documentation-license.rst:
1870         Add trailing newline.
1871         * doc/implementation-status-and-implementation-defined-behavior.rst:
1872         Add trailing newline.
1873         * doc/index.rst:
1874         Add trailing newline.
1875         * doc/indices-and-tables.rst:
1876         Add trailing newline.
1877         * doc/introduction.rst:
1878         Add trailing newline.
1879         * doc/memory-allocation-with-libmemkind.rst:
1880         Add trailing newline.
1881         * doc/nvptx.rst:
1882         Add trailing newline.
1883         * doc/offload-target-specifics.rst:
1884         Add trailing newline.
1885         * doc/openacc-environment-variables.rst:
1886         Add trailing newline.
1887         * doc/openacc-environment-variables/accdevicenum.rst:
1888         Add trailing newline.
1889         * doc/openacc-environment-variables/accdevicetype.rst:
1890         Add trailing newline.
1891         * doc/openacc-environment-variables/accproflib.rst:
1892         Add trailing newline.
1893         * doc/openacc-environment-variables/gccaccnotify.rst:
1894         Add trailing newline.
1895         * doc/openacc-introduction.rst:
1896         Add trailing newline.
1897         * doc/openacc-library-and-environment-variables.rst:
1898         Add trailing newline.
1899         * doc/openacc-library-interoperability.rst:
1900         Add trailing newline.
1901         * doc/openacc-profiling-interface.rst:
1902         Add trailing newline.
1903         * doc/openacc-runtime-library-routines.rst:
1904         Add trailing newline.
1905         * doc/openacc-runtime-library-routines/accasynctest.rst:
1906         Add trailing newline.
1907         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1908         Add trailing newline.
1909         * doc/openacc-runtime-library-routines/accattach.rst:
1910         Add trailing newline.
1911         * doc/openacc-runtime-library-routines/acccopyin.rst:
1912         Add trailing newline.
1913         * doc/openacc-runtime-library-routines/acccopyout.rst:
1914         Add trailing newline.
1915         * doc/openacc-runtime-library-routines/acccreate.rst:
1916         Add trailing newline.
1917         * doc/openacc-runtime-library-routines/accdelete.rst:
1918         Add trailing newline.
1919         * doc/openacc-runtime-library-routines/accdetach.rst:
1920         Add trailing newline.
1921         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1922         Add trailing newline.
1923         * doc/openacc-runtime-library-routines/accfree.rst:
1924         Add trailing newline.
1925         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1926         Add trailing newline.
1927         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1928         Add trailing newline.
1929         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1930         Add trailing newline.
1931         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1932         Add trailing newline.
1933         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1934         Add trailing newline.
1935         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1936         Add trailing newline.
1937         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1938         Add trailing newline.
1939         * doc/openacc-runtime-library-routines/acchostptr.rst:
1940         Add trailing newline.
1941         * doc/openacc-runtime-library-routines/accinit.rst:
1942         Add trailing newline.
1943         * doc/openacc-runtime-library-routines/accispresent.rst:
1944         Add trailing newline.
1945         * doc/openacc-runtime-library-routines/accmalloc.rst:
1946         Add trailing newline.
1947         * doc/openacc-runtime-library-routines/accmapdata.rst:
1948         Add trailing newline.
1949         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1950         Add trailing newline.
1951         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1952         Add trailing newline.
1953         * doc/openacc-runtime-library-routines/accondevice.rst:
1954         Add trailing newline.
1955         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1956         Add trailing newline.
1957         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1958         Add trailing newline.
1959         * doc/openacc-runtime-library-routines/accproflookup.rst:
1960         Add trailing newline.
1961         * doc/openacc-runtime-library-routines/accprofregister.rst:
1962         Add trailing newline.
1963         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1964         Add trailing newline.
1965         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1966         Add trailing newline.
1967         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1968         Add trailing newline.
1969         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1970         Add trailing newline.
1971         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1972         Add trailing newline.
1973         * doc/openacc-runtime-library-routines/accshutdown.rst:
1974         Add trailing newline.
1975         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1976         Add trailing newline.
1977         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1978         Add trailing newline.
1979         * doc/openacc-runtime-library-routines/accupdateself.rst:
1980         Add trailing newline.
1981         * doc/openacc-runtime-library-routines/accwait.rst:
1982         Add trailing newline.
1983         * doc/openacc-runtime-library-routines/accwaitall.rst:
1984         Add trailing newline.
1985         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1986         Add trailing newline.
1987         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1988         Add trailing newline.
1989         * doc/openmp-context-selectors.rst:
1990         Add trailing newline.
1991         * doc/openmp-environment-variables.rst:
1992         Add trailing newline.
1993         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1994         Add trailing newline.
1995         * doc/openmp-environment-variables/gompdebug.rst:
1996         Add trailing newline.
1997         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1998         Add trailing newline.
1999         * doc/openmp-environment-variables/gompspincount.rst:
2000         Add trailing newline.
2001         * doc/openmp-environment-variables/gompstacksize.rst:
2002         Add trailing newline.
2003         * doc/openmp-environment-variables/ompcancellation.rst:
2004         Add trailing newline.
2005         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2006         Add trailing newline.
2007         * doc/openmp-environment-variables/ompdisplayenv.rst:
2008         Add trailing newline.
2009         * doc/openmp-environment-variables/ompdynamic.rst:
2010         Add trailing newline.
2011         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2012         Add trailing newline.
2013         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2014         Add trailing newline.
2015         * doc/openmp-environment-variables/ompnested.rst:
2016         Add trailing newline.
2017         * doc/openmp-environment-variables/ompnumteams.rst:
2018         Add trailing newline.
2019         * doc/openmp-environment-variables/ompnumthreads.rst:
2020         Add trailing newline.
2021         * doc/openmp-environment-variables/ompplaces.rst:
2022         Add trailing newline.
2023         * doc/openmp-environment-variables/ompprocbind.rst:
2024         Add trailing newline.
2025         * doc/openmp-environment-variables/ompschedule.rst:
2026         Add trailing newline.
2027         * doc/openmp-environment-variables/ompstacksize.rst:
2028         Add trailing newline.
2029         * doc/openmp-environment-variables/omptargetoffload.rst:
2030         Add trailing newline.
2031         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2032         Add trailing newline.
2033         * doc/openmp-environment-variables/ompthreadlimit.rst:
2034         Add trailing newline.
2035         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2036         Add trailing newline.
2037         * doc/openmp-implementation-specifics.rst:
2038         Add trailing newline.
2039         * doc/openmp-implementation-status.rst:
2040         Add trailing newline.
2041         * doc/openmp-implementation-status/openmp-45.rst:
2042         Add trailing newline.
2043         * doc/openmp-implementation-status/openmp-50.rst:
2044         Add trailing newline.
2045         * doc/openmp-implementation-status/openmp-51.rst:
2046         Add trailing newline.
2047         * doc/openmp-implementation-status/openmp-52.rst:
2048         Add trailing newline.
2049         * doc/openmp-runtime-library-routines.rst:
2050         Add trailing newline.
2051         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2052         Add trailing newline.
2053         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2054         Add trailing newline.
2055         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2056         Add trailing newline.
2057         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2058         Add trailing newline.
2059         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2060         Add trailing newline.
2061         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2062         Add trailing newline.
2063         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2064         Add trailing newline.
2065         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2066         Add trailing newline.
2067         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2068         Add trailing newline.
2069         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2070         Add trailing newline.
2071         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2072         Add trailing newline.
2073         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2074         Add trailing newline.
2075         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2076         Add trailing newline.
2077         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2078         Add trailing newline.
2079         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2080         Add trailing newline.
2081         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2082         Add trailing newline.
2083         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2084         Add trailing newline.
2085         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2086         Add trailing newline.
2087         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2088         Add trailing newline.
2089         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2090         Add trailing newline.
2091         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2092         Add trailing newline.
2093         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2094         Add trailing newline.
2095         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2096         Add trailing newline.
2097         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2098         Add trailing newline.
2099         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2100         Add trailing newline.
2101         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2102         Add trailing newline.
2103         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2104         Add trailing newline.
2105         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2106         Add trailing newline.
2107         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2108         Add trailing newline.
2109         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2110         Add trailing newline.
2111         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2112         Add trailing newline.
2113         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2114         Add trailing newline.
2115         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2116         Add trailing newline.
2117         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2118         Add trailing newline.
2119         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2120         Add trailing newline.
2121         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2122         Add trailing newline.
2123         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2124         Add trailing newline.
2125         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2126         Add trailing newline.
2127         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2128         Add trailing newline.
2129         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2130         Add trailing newline.
2131         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2132         Add trailing newline.
2133         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2134         Add trailing newline.
2135         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2136         Add trailing newline.
2137         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2138         Add trailing newline.
2139         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2140         Add trailing newline.
2141         * doc/openmp-runtime-library-routines/omptestlock.rst:
2142         Add trailing newline.
2143         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2144         Add trailing newline.
2145         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2146         Add trailing newline.
2147         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2148         Add trailing newline.
2149         * doc/reporting-bugs.rst:
2150         Add trailing newline.
2151         * doc/the-libgomp-abi.rst:
2152         Add trailing newline.
2153         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2154         Add trailing newline.
2155         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2156         Add trailing newline.
2157         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2158         Add trailing newline.
2159         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2160         Add trailing newline.
2161         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2162         Add trailing newline.
2163         * doc/the-libgomp-abi/implementing-for-construct.rst:
2164         Add trailing newline.
2165         * doc/the-libgomp-abi/implementing-master-construct.rst:
2166         Add trailing newline.
2167         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2168         Add trailing newline.
2169         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2170         Add trailing newline.
2171         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2172         Add trailing newline.
2173         * doc/the-libgomp-abi/implementing-private-clause.rst:
2174         Add trailing newline.
2175         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2176         Add trailing newline.
2177         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2178         Add trailing newline.
2179         * doc/the-libgomp-abi/implementing-single-construct.rst:
2180         Add trailing newline.
2181         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2182         Add trailing newline.
2184 2022-11-09  Martin Liska  <mliska@suse.cz>
2186         * Makefile.in: Build info pages conditionally.
2188 2022-11-09  Martin Liska  <mliska@suse.cz>
2190         * Makefile.in: Support --with-sphinx-build.
2191         * configure.ac: Likewise..
2192         * configure: Regenerate.
2194 2022-11-09  Martin Liska  <mliska@suse.cz>
2196         * libgomp.texi: Removed.
2198 2022-11-09  Martin Liska  <mliska@suse.cz>
2200         * Makefile.in: Support Sphinx based documentation.
2202 2022-11-09  Martin Liska  <mliska@suse.cz>
2204         * doc/amd-radeon-gcn.rst: New file.
2205         * doc/conf.py: New file.
2206         * doc/copyright.rst: New file.
2207         * doc/cuda-streams-usage.rst: New file.
2208         * doc/enabling-openacc.rst: New file.
2209         * doc/enabling-openmp.rst: New file.
2210         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2211         * doc/first-invocation-openacc-library-api.rst: New file.
2212         * doc/funding.rst: New file.
2213         * doc/general-public-license-3.rst: New file.
2214         * doc/gnu-free-documentation-license.rst: New file.
2215         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2216         * doc/index.rst: New file.
2217         * doc/indices-and-tables.rst: New file.
2218         * doc/introduction.rst: New file.
2219         * doc/memory-allocation-with-libmemkind.rst: New file.
2220         * doc/nvptx.rst: New file.
2221         * doc/offload-target-specifics.rst: New file.
2222         * doc/openacc-environment-variables.rst: New file.
2223         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2224         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2225         * doc/openacc-environment-variables/accproflib.rst: New file.
2226         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2227         * doc/openacc-introduction.rst: New file.
2228         * doc/openacc-library-and-environment-variables.rst: New file.
2229         * doc/openacc-library-interoperability.rst: New file.
2230         * doc/openacc-profiling-interface.rst: New file.
2231         * doc/openacc-runtime-library-routines.rst: New file.
2232         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2233         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2234         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2235         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2236         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2237         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2238         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2239         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2240         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2241         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2242         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2243         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2244         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2245         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2246         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2247         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2248         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2249         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2250         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2251         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2252         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2253         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2254         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2255         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2256         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2257         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2258         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2259         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2260         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2261         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2262         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2263         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2264         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2265         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2266         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2267         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2268         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2269         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2270         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2271         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2272         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2273         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2274         * doc/openmp-context-selectors.rst: New file.
2275         * doc/openmp-environment-variables.rst: New file.
2276         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2277         * doc/openmp-environment-variables/gompdebug.rst: New file.
2278         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2279         * doc/openmp-environment-variables/gompspincount.rst: New file.
2280         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2281         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2282         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2283         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2284         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2285         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2286         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2287         * doc/openmp-environment-variables/ompnested.rst: New file.
2288         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2289         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2290         * doc/openmp-environment-variables/ompplaces.rst: New file.
2291         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2292         * doc/openmp-environment-variables/ompschedule.rst: New file.
2293         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2294         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2295         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2296         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2297         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2298         * doc/openmp-implementation-specifics.rst: New file.
2299         * doc/openmp-implementation-status.rst: New file.
2300         * doc/openmp-implementation-status/openmp-45.rst: New file.
2301         * doc/openmp-implementation-status/openmp-50.rst: New file.
2302         * doc/openmp-implementation-status/openmp-51.rst: New file.
2303         * doc/openmp-implementation-status/openmp-52.rst: New file.
2304         * doc/openmp-runtime-library-routines.rst: New file.
2305         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2306         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2307         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2308         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2309         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2310         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2311         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2312         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2313         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2314         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2315         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2316         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2317         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2318         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2319         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2320         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2321         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2322         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2323         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2324         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2325         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2326         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2327         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2328         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2329         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2330         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2331         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2332         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2333         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2334         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2335         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2336         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2337         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2338         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2339         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2340         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2341         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2342         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2343         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2344         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2345         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2346         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2347         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2348         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2349         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2350         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2351         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2352         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2353         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2354         * doc/reporting-bugs.rst: New file.
2355         * doc/the-libgomp-abi.rst: New file.
2356         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2357         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2358         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2359         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2360         New file.
2361         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2362         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2363         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2364         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2365         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2366         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2367         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2368         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2369         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2370         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2371         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2373 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2375         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2376         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2377         documentation.
2378         * plugin/configfrag.ac <enable_offload_targets>
2379         [*-intelmic-* | *-intelmicemul-*]: Remove.
2380         * configure: Regenerate.
2381         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2382         handling.
2383         (offload_target_to_openacc_device_type)
2384         [$offload_target = *-intelmic*]: Remove.
2385         (check_effective_target_offload_device_intel_mic)
2386         (check_effective_target_offload_device_any_intel_mic): Remove.
2387         * testsuite/libgomp.c-c++-common/on_device_arch.h
2388         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2389         (any_device_arch_intel_mic): Remove.
2390         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2391         'offload_device_any_intel_mic' XFAIL.
2392         * testsuite/libgomp.fortran/target10.f90: Likewise.
2394 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2396         * testsuite/libgomp.fortran/target-11.f90: New test.
2397         * testsuite/libgomp.fortran/target-13.f90: New test.
2399 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2401         PR libgomp/106643
2402         PR fortran/96668
2403         * oacc-mem.c (goacc_enter_data_internal): Support
2404         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2405         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2406         Adjust.
2407         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2409 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2411         PR libgomp/106643
2412         * oacc-mem.c (goacc_enter_data_internal): Support
2413         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2414         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2415         New.
2416         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2417         New.
2419 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2421         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2422         New.
2424 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2426         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2427         New.
2429 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2430             Thomas Schwinge  <thomas@codesourcery.com>
2432         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2434 2022-10-28  Julian Brown  <julian@codesourcery.com>
2435             Thomas Schwinge  <thomas@codesourcery.com>
2437         PR middle-end/90115
2438         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2439         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2440         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2441         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2442         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2444 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2446         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2447         'ptx_dev->rev_data'.
2449 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2451         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2452         'static' for this variable.
2453         * config/nvptx/libgomp-nvptx.h: New file.
2454         * config/nvptx/target.c: Include it.
2455         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2456         (GOMP_REV_OFFLOAD_VAR): Declare var.
2457         (GOMP_target_ext): Handle reverse offload.
2458         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2459         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2460         * target.c (gomp_target_rev): ... this new stub function.
2461         * libgomp.h (gomp_target_rev): Declare.
2462         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2463         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2464         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2465         (struct ptx_device): Add rev_data member.
2466         (nvptx_open_device): Remove async_engines query, last used in
2467         r10-304-g1f4c5b9b; add unified-address assert check.
2468         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2469         support.
2470         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2471         offload functions exist. Make offload var available
2472         on host and device.
2473         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2474         (GOMP_OFFLOAD_run): Handle reverse offload.
2476 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2478         PR tree-optimization/107195
2479         PR target/107344
2480         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2481         regions checking.
2483 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2485         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2486         New.
2487         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2488         on_device_arch_gcn): New.
2489         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2490         requires-4.c but using heap-allocated memory.
2492 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2494         PR target/105421
2495         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2497 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2499         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2500         '-foffload-options' syntax.
2502 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2504         * testsuite/libgomp.fortran/task-7.f90: New test.
2505         * testsuite/libgomp.fortran/task-8.f90: New test.
2506         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2507         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2508         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2509         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2510         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2512 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2514         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2515         in deprecation bullet.
2517 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2519         * omp.h.in (omp_in_explicit_task): Declare.
2520         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2521         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2522         * libgomp.map (OMP_5.2): New symbol version, export
2523         omp_in_explicit_task and omp_in_explicit_task_.
2524         * task.c (omp_in_explicit_task): New function.
2525         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2526         (omp_in_explicit_task_): New function.
2527         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2528         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2529         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2530         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2532 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2534         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2535         from within explicit task.
2536         * target.c (GOMP_target_ext): Likewise.
2537         * testsuite/libgomp.c/task-7.c: New test.
2538         * testsuite/libgomp.c/task-8.c: New test.
2539         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2540         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2542 2022-10-12  Martin Liska  <mliska@suse.cz>
2544         * configure: Regenerate.
2546 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2547             Olivier Hainque  <hainque@adacore.com>
2549         * configure: Regenerate.
2551 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2553         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2555 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
2557         * libgomp.texi (Support begin/end declare target syntax in C/C++):
2558         Mark as implemented.
2560 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
2562         PR fortran/105318
2563         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2565 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
2567         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2568         for C/C++. Remove duplicated 'begin declare target' entry.
2570 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
2572         PR c/106981
2573         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2575 2022-09-14  Julian Brown  <julian@codesourcery.com>
2577         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2578         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2579         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2580         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2581         test to here, make "run" test.
2583 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
2585         PR libgomp/106906
2586         * env.c (get_icv_member_addr): Cast false to void * before assigning
2587         it to icv_addr[1], and comment the whole assignment out.
2589 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
2591         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2592         (nvptx): ... here.
2594 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2596         * libgomp.texi (Offload-Target Specifics: nvptx): Document
2597         that reverse offload requires >= -march=sm_35.
2598         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2599         with -misa=sm_35.
2600         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2601         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2602         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2603         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2604         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2606 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2608         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2609         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2611 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
2613         PR libgomp/106894
2614         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2615         (main): Avoid tests for which corresponding non-_ALL suffixed variable
2616         is in the environment, or for OMP_NUM_TEAMS on the device
2617         OMP_NUM_TEAMS_DEV_?.
2619 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
2621         * env.c (initialize_env): Include libiberty environ.h.
2623 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2625         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2626         function address table '$offload_func_table' if rev_fn_table
2627         is not NULL.
2629 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2631         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2632         .offload_func_table to populate rev_fn_table when requested.
2634 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2636         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2637         'uint64_t **rev_fn_table' argument.
2638         * oacc-host.c (host_load_image): Likewise.
2639         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2640         currently unused.
2641         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2642         * target.c (gomp_load_image_to_device): Update call but pass
2643         NULL for now.
2645 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
2647         PR libgomp/106894
2648         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2649         char * for dest[1] initialization from params[1].  Formatting fixes.
2651 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2653         PR fortran/106670
2654         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2656 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2658         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2659         section; move OpenMP Context Selectors from ...
2660         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2661         'nvptx' sections.
2663 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
2665         * config/gcn/icv-device.c (omp_get_default_device): Return device-
2666         specific ICV.
2667         (omp_get_max_teams): Added for GCN devices.
2668         (omp_set_num_teams): Likewise.
2669         (ialias): Likewise.
2670         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2671         specific ICV.
2672         (omp_get_max_teams): Added for NVPTX devices.
2673         (omp_set_num_teams): Likewise.
2674         (ialias): Likewise.
2675         * env.c (struct gomp_icv_list): New struct to store entries of initial
2676         ICV values.
2677         (struct gomp_offload_icv_list): New struct to store entries of device-
2678         specific ICV values that are copied to the device and back.
2679         (struct gomp_default_icv_values): New struct to store default values of
2680         ICVs according to the OpenMP standard.
2681         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2682         (print_env_var_error): Function that prints an error for invalid values
2683         for ICVs.
2684         (parse_unsigned_long_1): Removed getenv.  Generalized.
2685         (parse_unsigned_long): Likewise.
2686         (parse_int_1): Likewise.
2687         (parse_int): Likewise.
2688         (parse_int_secure): Likewise.
2689         (parse_unsigned_long_list): Likewise.
2690         (parse_target_offload): Likewise.
2691         (parse_bind_var): Likewise.
2692         (parse_stacksize): Likewise.
2693         (parse_boolean): Likewise.
2694         (parse_wait_policy): Likewise.
2695         (parse_allocator): Likewise.
2696         (omp_display_env): Extended to output different variants of environment
2697         variables.
2698         (print_schedule): New helper function for omp_display_env which prints
2699         the values of run_sched_var.
2700         (print_proc_bind): New helper function for omp_display_env which prints
2701         the values of proc_bind_var.
2702         (enum gomp_parse_type): Collection of types used for parsing environment
2703         variables.
2704         (ENTRY): Preprocess string lengths of environment variables.
2705         (OMP_VAR_CNT): Preprocess table size.
2706         (OMP_HOST_VAR_CNT): Likewise.
2707         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2708         number.
2709         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2710         (gomp_set_icv_flag): Sets a flag for a particular ICV.
2711         (print_device_specific_icvs): New helper function for omp_display_env to
2712         print device specific ICV values.
2713         (get_device_num): New helper function for parse_device_specific.
2714         Extracts the device number from an environment variable name.
2715         (get_icv_member_addr): Gets the memory address for a particular member
2716         of an ICV struct.
2717         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2718         (initialize_icvs): New function to initialize a gomp_initial_icvs
2719         struct.
2720         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2721         (startswith): Checks if a string starts with a given prefix.
2722         (initialize_env): Extended to parse the new syntax of environment
2723         variables.
2724         * icv-device.c (omp_get_max_teams): Added.
2725         (ialias): Likewise.
2726         (omp_set_num_teams): Likewise.
2727         * icv.c (omp_set_num_teams): Moved to icv-device.c.
2728         (omp_get_max_teams): Likewise.
2729         (ialias): Likewise.
2730         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2731         (GOMP_ADDITIONAL_ICVS): New target-side struct that
2732         holds the designated ICVs of the target device.
2733         * libgomp.h (enum gomp_icvs): Collection of ICVs.
2734         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2735         no suffix.
2736         (enum gomp_env_suffix): Collection of possible suffixes of environment
2737         variables.
2738         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2739         initial values.
2740         (struct gomp_default_icv):New struct to hold ICVs for which we need
2741         to store initial values.
2742         (struct gomp_icv_list): Definition of a linked list that is used for
2743         storing ICVs for the devices and also for _DEV, _ALL, and without
2744         suffix.
2745         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2746         a device.
2747         (struct gomp_offload_icv_list): Definition of a linked list that holds
2748         device-specific ICVs that are copied to devices.
2749         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2750         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2751         * libgomp.texi: Updated.
2752         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2753         further ICVs from the offload image.
2754         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2755         * target.c (gomp_get_offload_icv_item): Get a list item of
2756         gomp_offload_icv_list.
2757         (get_gomp_offload_icvs): New. Returns the ICV values
2758         depending on the device num and the variable hierarchy.
2759         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2760         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2761         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2762         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2763         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2764         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2765         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2767 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
2769         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2770         fully supported.
2771         * testsuite/libgomp.c/doacross-4.c: New test.
2772         * testsuite/libgomp.c/doacross-5.c: New test.
2773         * testsuite/libgomp.c/doacross-6.c: New test.
2774         * testsuite/libgomp.c/doacross-7.c: New test.
2776 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
2778         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2780 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
2782         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2783         refer to 'requires'.
2784         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2785         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2786         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2787         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2789 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2791         PR middle-end/106548
2792         * testsuite/libgomp.c/linear-2.c: New test.
2794 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2796         * splay-tree.h: Fix splay_* macro unsetting if
2797         splay_tree_prefix is defined.
2799 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
2801         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2803 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
2805         PR middle-end/106449
2806         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2808 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
2810         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2812 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
2814         PR middle-end/101551
2815         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2816         'offloading_enabled' diagnostics issue.
2818 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
2820         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2821         '_Pragma' diagnostics verification.
2823 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
2825         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2826         improved warning locations.
2827         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2829 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2831         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2832         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2833         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2834         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2835         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2837 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2839         * target.c (GOMP_offload_register, GOMP_offload_unregister):
2840         Denote as legacy entry points.
2841         * testsuite/lib/libgomp.exp
2842         (check_effective_target_offload_target_any): New proc.
2843         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2844         'offload_target_any'.
2845         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2846         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2847         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2849 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2851         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2852         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2854 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2856         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2858 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
2860         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2861         'data'.
2862         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
2864 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2865             Jakub Jelinek  <jakub@redhat.com>
2867         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2869 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2870             Chung-Lin Tang  <cltang@codesourcery.com>
2871             Thomas Schwinge  <thomas@codesourcery.com>
2873         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2874         omp_requires_mask arg.
2875         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2876         return -1 when device available but omp_requires_mask != 0.
2877         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2878         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2879         Update call.
2880         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2881         goacc_attach_host_thread_to_device, acc_get_num_devices,
2882         acc_set_device_num, get_property_any): Likewise.
2883         * target.c (omp_requires_mask): New global var.
2884         (gomp_requires_to_name): New.
2885         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2886         (gomp_target_init): Handle omp_requires_mask.
2887         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2888         (OpenMP 5.1): Add a missed item.
2889         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2890         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2891         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2892         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2893         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2894         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2895         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2896         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2897         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2898         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2899         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2900         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2901         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2902         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2903         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2904         * testsuite/libgomp.fortran/requires-1.f90: New test.
2906 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
2908         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2909         with fromto as implemented.
2911 2022-06-28  Martin Liska  <mliska@suse.cz>
2913         * acinclude.m4: Fix typo in mold linker detection.
2914         * Makefile.in: Regenerate.
2915         * configure: Regenerate.
2917 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
2918             Paul Iannetta  <piannetta@kalrayinc.com>
2920         PR libgomp/106045
2921         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2923 2022-06-17  Martin Liska  <mliska@suse.cz>
2925         * libgomp.texi: Add table header for new features of
2926         OpenMP 5.2.
2928 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
2930         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2931         q to ddress of an automatic variable.  Use -5 instead of -1 in
2932         omp_get_mapped_ptr call.  Add test with omp_initial_device.
2933         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2934         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
2935         Renumber stop arguments afterwards.
2937 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
2939         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2940         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2941         parameters.
2942         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2943         * target.c (resolve_device): Add remapped argument, handle
2944         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2945         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2946         if remapped, otherwise treat omp_initial_device that way.  For
2947         omp_invalid_device, always emit gomp_fatal, even when
2948         OMP_TARGET_OFFLOAD isn't mandatory.
2949         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2950         GOMP_target_update, GOMP_target_update_ext,
2951         GOMP_target_enter_exit_data): Pass true as remapped argument to
2952         resolve_device.
2953         (omp_target_alloc, omp_target_free, omp_target_is_present,
2954         omp_target_memcpy_check, omp_target_associate_ptr,
2955         omp_target_disassociate_ptr, omp_get_mapped_ptr,
2956         omp_target_is_accessible): Pass false as remapped argument to
2957         resolve_device.  Treat omp_initial_device the same as
2958         gomp_get_num_devices ().  Don't bypass resolve_device calls if
2959         device_num is negative.
2960         (omp_pause_resource): Treat omp_initial_device the same as
2961         gomp_get_num_devices ().  Call resolve_device.
2962         * icv-device.c (omp_set_default_device): Always set to device_num
2963         even when it is negative.
2964         * libgomp.texi: Document that Conforming device numbers,
2965         omp_initial_device and omp_invalid_device is implemented.
2966         * testsuite/libgomp.c/target-41.c (main): Add test with
2967         omp_initial_device.
2968         * testsuite/libgomp.c/target-45.c: New test.
2969         * testsuite/libgomp.c/target-46.c: New test.
2970         * testsuite/libgomp.c/target-47.c: New test.
2971         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2972         test with omp_initial_device.  Use -5 instead of -1 for negative value
2973         test.
2974         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2975         Likewise.  Reorder stop numbers.
2977 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
2979         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2980         rather than "libmemkind.so".
2982 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2984         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2985         * plugin/configfrag.ac (--with-cuda-driver)
2986         (--with-cuda-driver-include, --with-cuda-driver-lib)
2987         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2988         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2989         Remove.
2990         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2991         (cuda_driver_lib): Remove.
2992         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2993         * Makefile.in: Regenerate.
2994         * configure: Likewise.
2995         * testsuite/Makefile.in: Likewise.
2997 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2999         * config/linux/allocator.c: Fix up #include directive.
3001 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3003         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3004         (enum gomp_memkind_kind): New type.
3005         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3006         is defined.
3007         (struct gomp_memkind_data): New type.
3008         (memkind_data, memkind_data_once): New variables.
3009         (gomp_init_memkind, gomp_get_memkind): New functions.
3010         (omp_init_allocator): Initialize data.memkind, don't fail for
3011         omp_high_bw_mem_space if libmemkind supports it.
3012         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3013         memkind support of LIBGOMP_USE_MEMKIND is defined.
3014         * config/linux/allocator.c: New file.
3016 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
3018         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3019         * testsuite/libgomp.fortran/scope-2.f90: New test.
3021 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
3023         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3025 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
3027         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3028         scope construct with allocate clause.
3029         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3030         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3032 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
3034         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3035         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3036         explicit 'to' and 'enter' clause.
3037         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3039 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
3041         PR libgomp/105745
3042         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3043         defined(HAVE__ALIGNED_MALLOC) case.
3044         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3045         handling as last option before fallback instead of first.
3046         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3047         _aligned_free.
3049 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
3051         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3052         clauses to enter.
3053         * testsuite/libgomp.c/target-41.c: Likewise.
3055 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
3057         * libgomp.texi (Other new OpenMP 5.1 features): Add
3058         'begin declare target'.
3059         (Other new OpenMP 5.2 features): New.
3061 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
3063         * task.c (gomp_task_run_post_handle_dependers): If empty_task
3064         is the last task taskwait depend depends on, wake it up.
3065         Similarly if it is the last child of a taskgroup, use atomic
3066         store instead of decrement and awak taskgroup wait if any.
3067         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3069 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
3071         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3072         EF_AMDGPU_MACH_AMDGCN_GFX90a.
3073         (gcn_gfx90a_s): New.
3074         (isa_hsa_name): Support gfx90a.
3075         (isa_code): Likewise.
3077 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
3079         PR c/105378
3080         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3081         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3083 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
3085         PR c/105378
3086         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3087         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3088         * task.c (empty_task): New function.
3089         (gomp_task_run_post_handle_depend_hash): Declare earlier.
3090         (gomp_task_run_post_handle_depend): Declare.
3091         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3092         for.
3093         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3094         (GOMP_taskwait_depend_nowait): New function.
3095         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3097 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
3099         PR fortran/104949
3100         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3101         Support attach for GOMP_MAP_FIRSTPRIVATE.
3102         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3103         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3104         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3106 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
3108         * libgomp.map: Added omp_target_memcpy_async and
3109         omp_target_memcpy_rect_async.
3110         * libgomp.texi: Both functions are now supported.
3111         * omp.h.in: Added omp_target_memcpy_async and
3112         omp_target_memcpy_rect_async.
3113         * omp_lib.f90.in: Added interfaces for both new functions.
3114         * omp_lib.h.in: Likewise.
3115         * target.c (ialias_redirect): Added for GOMP_task.
3116         (omp_target_memcpy): Restructured into check and copy part.
3117         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3118         omp_target_memcpy_async that checks requirements.
3119         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3120         omp_target_memcpy_async that performs the memcpy.
3121         (omp_target_memcpy_async_helper): New helper function that is used in
3122         omp_target_memcpy_async for the asynchronous task.
3123         (omp_target_memcpy_async): Added.
3124         (omp_target_memcpy_rect): Restructured into check and copy part.
3125         (omp_target_memcpy_rect_check): New helper function for
3126         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3127         requirements.
3128         (omp_target_memcpy_rect_copy): New helper function for
3129         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3130         the memcpy.
3131         (omp_target_memcpy_rect_async_helper): New helper function that is used
3132         in omp_target_memcpy_rect_async for the asynchronous task.
3133         (omp_target_memcpy_rect_async): Added.
3134         * task.c (ialias): Added for GOMP_task.
3135         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3136         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3137         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3138         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3139         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3140         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3141         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3142         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3144 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
3146         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3147         (OpenMP Context Selectors): Add missing comma.
3148         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3149         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3150         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3151         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3153 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3155         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3156         comment for omp_display_env feature.
3158 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3160         * libgomp.texi (Offload-Target Specifics): New chapter; add section
3161         to document OpenMP context selectors.
3163 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3165         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3166         from bool to unsigned char.
3167         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3168         Ignore dependencies where
3169         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3170         rather than just task->depend[i].is_in && ent->is_in.  Remember
3171         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3172         conditional.
3173         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3174         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3175         rather than just elem.is_in && ent->is_in.
3176         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3177         inoutset depend-kind.
3178         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3179         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3180         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3182 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3184         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3186 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3188         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3189         * testsuite/libgomp.fortran/depend-5.f90: New test.
3190         * testsuite/libgomp.fortran/depend-6.f90: New test.
3191         * testsuite/libgomp.fortran/depend-7.f90: New test.
3193 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3195         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3196         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3197         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3199 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3201         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3203 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3205         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3207 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3209         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3210         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3211         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3212         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3213         * Makefile.in: Regenerate.
3215 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3217         * Makefile.am (libgomp_la_LIBADD): Initialize.
3218         * plugin/configfrag.ac (DL_LIBS): New.
3219         (PLUGIN_GCN_LIBS): Remove.
3220         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3221         * plugin/Makefrag.am (libgomp_la_LIBADD)
3222         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3223         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3224         * Makefile.in: Regenerate.
3225         * config.h.in: Likewise.
3226         * configure: Likewise.
3227         * testsuite/Makefile.in: Likewise.
3229 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3231         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3232         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3233         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3234         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3235         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3236         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3237         * Makefile.in: Regenerate.
3238         * config.h.in: Likewise.
3239         * configure: Likewise.
3241 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3243         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3244         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3245         * Makefile.in: Regenerate.
3246         * config.h.in: Likewise.
3247         * configure: Likewise.
3248         * testsuite/Makefile.in: Likewise.
3250 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3252         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3253         * task.c (gomp_init_task): Initialize depend_all_memory.
3254         (gomp_task_handle_depend): Handle omp_all_memory.
3255         (gomp_task_run_post_handle_depend_hash): Clear
3256         parent->depend_all_memory if equal to current task.
3257         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3258         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3259         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3260         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3262 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3264         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3265         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3266         * Makefile.in: Regenerate.
3267         * configure: Likewise.
3268         * testsuite/Makefile.in: Likewise.
3270 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3272         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3273         consider 'PLUGIN_GCN_CPPFLAGS'.
3274         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3275         'PLUGIN_GCN_LDFLAGS'.
3276         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3277         Remove.
3278         * Makefile.in: Regenerate.
3279         * configure: Likewise.
3280         * testsuite/Makefile.in: Likewise.
3282 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3284         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3285         (HSA_RUNTIME_LDFLAGS): Remove.
3286         * configure: Regenerate.
3288 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3290         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3291         'append always_ld_library_path ":$hsa_runtime_lib"'.
3292         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3294 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3296         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3297         multi-device testing.
3299 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3301         * libgomp.map: Added omp_target_is_accessible.
3302         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3303         * omp.h.in: Added omp_target_is_accessible.
3304         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3305         * omp_lib.h.in: Likewise.
3306         * target.c (omp_target_is_accessible): Added implementation of
3307         omp_target_is_accessible.
3308         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3309         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3311 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3313         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3315 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3317         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3319 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3321         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3323 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3325         * libgomp.map: Added omp_get_mapped_ptr.
3326         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3327         * omp.h.in: Added omp_get_mapped_ptr.
3328         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3329         * omp_lib.h.in: Likewise.
3330         * target.c (omp_get_mapped_ptr): Added implementation of
3331         omp_get_mapped_ptr.
3332         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3333         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3334         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3335         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3336         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3337         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3338         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3339         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3341 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3343         PR fortran/104717
3344         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3345         privatization scanning.  For GCN offloading compilation, raise
3346         '-mgang-private-size'.
3348 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3350         PR libgomp/105358
3351         * work.c (gomp_init_work_share): Don't mask of adjustment for
3352         dynamic long long realignment if struct gomp_work_share has smaller
3353         alignof than long long.
3354         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3355         struct gomp_work_share has smaller alignof than long long or if
3356         sizeof (struct gomp_work_share) is smaller than
3357         INLINE_ORDERED_TEAM_IDS_OFF.
3358         * loop_ull.c (GOMP_loop_ull_start): Likewise.
3359         * sections.c (GOMP_sections2_start): Likewise.
3361 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
3362             Thomas Schwinge  <thomas@codesourcery.com>
3364         PR fortran/104717
3365         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3367 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
3369         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3371 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3373         * plugin/cuda/cuda.h: Remove file.
3374         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3375         "cuda/cuda.h" instead of <cuda.h>.
3376         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3377         'PLUGIN_NVPTX_CPPFLAGS'.
3378         * configure: Regenerate.
3380 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3382         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3384 2022-04-04  Tom de Vries  <tdevries@suse.de>
3386         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3387         on_device_arch_nvptx instead of offload_target_nvptx.
3388         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3390 2022-04-01  Tom de Vries  <tdevries@suse.de>
3392         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3393         and use REC_DEPTH.
3394         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3396 2022-04-01  Tom de Vries  <tdevries@suse.de>
3398         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3399         num_workers check.
3401 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3402             Lulu Cheng  <chenglulu@loongson.cn>
3404         * configure.tgt: Add LoongArch triplet.
3406 2022-03-28  Tom de Vries  <tdevries@suse.de>
3408         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3409         instead of /libexec/.
3410         * configure: Regenerate.
3412 2022-03-25  Tom de Vries  <tdevries@suse.de>
3414         PR libgomp/105042
3415         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3416         execution time.
3417         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3418         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3420 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3422         PR middle-end/104285
3423         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3424         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3425         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3426         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3427         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3428         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3430 2022-03-22  Tom de Vries  <tdevries@suse.de>
3432         PR target/104916
3433         PR target/104783
3434         * testsuite/libgomp.c/pr104783-2.c: New test.
3436 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3438         PR fortran/103039
3439         * testsuite/libgomp.fortran/associate4.f90: New test.
3441 2022-03-18  Tom de Vries  <tdevries@suse.de>
3443         PR target/104952
3444         * testsuite/libgomp.c/pr104952-1.c: New test.
3445         * testsuite/libgomp.c/pr104952-2.c: New test.
3447 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3449         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3450         variable next to pl variable.
3452 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3454         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3455         Enhance.
3456         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3457         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3459 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3461         PR middle-end/90115
3462         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3463         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3465 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3467         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3468         omp_set_max_active_levels.
3469         * testsuite/libgomp.fortran/icv-8.f90: New test.
3471 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3473         PR testsuite/102841
3474         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3476 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3478         * libgomp.texi: Fix typo.
3480 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3482         PR middle-end/100280
3483         PR middle-end/104892
3484         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3485         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3486         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3487         Likewise.
3488         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3489         Likewise.
3490         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3491         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3492         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3493         Likewise.
3495 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3497         PR middle-end/104892
3498         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3499         to PR104892.
3500         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3501         enable '--param=openacc-kernels=decompose' and adjust.
3502         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3503         Likewise.
3504         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3505         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3506         Likewise.
3508 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3510         PR middle-end/90115
3511         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3512         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3513         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3514         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3516 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3518         PR middle-end/100280
3519         PR middle-end/104086
3520         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3521         Merge this...
3522         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3523         ..., and this...
3524         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3525         this, and adjust.
3526         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3527         Extend.
3529 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3531         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3532         trait.  Test last index in w and v array.  Remove redundant
3533         assignment to V(1).  Move alignment checks at the end of
3534         parallel region.
3536 2022-03-10  Tom de Vries  <tdevries@suse.de>
3538         * testsuite/libgomp.c/pr104783.c: New test.
3540 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3542         PR middle-end/90115
3543         PR middle-end/102330
3544         PR middle-end/104774
3545         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3546         Enhance.
3547         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3548         Adjust.
3549         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3550         Likewise.
3551         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3552         Likewise.
3553         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3554         Likewise.
3555         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3556         Likewise.
3557         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3558         Likewise.
3559         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3560         Likewise.
3561         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3562         Likewise.
3563         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3564         Likewise.
3565         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3566         Likewise.
3567         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3568         Likewise.
3569         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3570         Likewise.
3571         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3572         Likewise.
3573         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3574         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3575         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3577 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3579         PR middle-end/90115
3580         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3581         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3582         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3583         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3585 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3587         PR testsuite/104791
3588         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3589         expected diagnostics.
3591 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3593         PR middle-end/104784
3594         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3595         Test with '--param=openacc-kernels=decompose'.
3596         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3597         Likewise.
3598         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3599         Likewise.
3600         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3601         Likewise.
3602         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3603         Likewise.
3604         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3605         Likewise.
3606         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3607         Likewise.
3608         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3609         Likewise.
3610         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3611         Likewise.
3612         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3613         Likewise.
3614         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3615         Likewise.
3616         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3617         Likewise.
3618         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3619         Likewise.
3620         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3621         Likewise.
3622         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3623         Likewise.
3624         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3625         Likewise.
3626         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3627         Likewise.
3628         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3629         Likewise.
3630         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3631         Likewise.
3632         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3633         Likewise.
3634         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3635         Likewise.
3636         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3637         Likewise.
3638         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3639         Likewise.
3640         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3641         Likewise.
3642         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3643         Likewise.
3644         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3645         Likewise.
3646         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3647         Likewise.
3648         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3649         Likewise.
3650         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3651         Likewise.
3652         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3653         Likewise.
3654         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3655         Likewise.
3656         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3657         Likewise.
3658         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3659         Likewise.
3661 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3663         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3664         Test '-fopt-info-omp-all'.
3665         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3666         Likewise.
3667         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3668         Likewise.
3669         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3670         Likewise.
3671         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3672         Likewise.
3673         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3674         Likewise.
3675         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3676         Likewise.
3677         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3678         Likewise.
3679         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3680         Likewise.
3681         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3682         Likewise.
3683         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3684         Likewise.
3685         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3686         Likewise.
3687         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3688         Likewise.
3689         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3690         Likewise.
3691         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3692         Likewise.
3693         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3694         Likewise.
3695         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3696         Likewise.
3697         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3698         Likewise.
3699         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3700         Likewise.
3701         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3702         Likewise.
3703         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3704         Likewise.
3705         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3706         Likewise.
3707         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3708         Likewise.
3709         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3710         Likewise.
3711         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3712         Likewise.
3713         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3714         Likewise.
3715         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3716         Likewise.
3717         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3718         Likewise.
3719         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3720         Likewise.
3721         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3722         Likewise.
3723         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3724         Likewise.
3725         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3726         Likewise.
3727         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3728         Likewise.
3730 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3732         PR middle-end/100280
3733         PR middle-end/104132
3734         PR middle-end/104133
3735         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3736         Extend.
3738 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3740         PR middle-end/100280
3741         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3742         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3743         Likewise.
3745 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3747         PR middle-end/100280
3748         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3749         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3750         Likewise.
3752 2022-02-28  Tom de Vries  <tdevries@suse.de>
3754         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3755         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3756         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3757         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3758         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3759         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3761 2022-02-24  Tom de Vries  <tdevries@suse.de>
3763         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3764         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3765         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3766         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3767         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3768         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3769         * testsuite/libgomp.c/declare-variant-3.h: New header file.
3771 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3773         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3774         gang-redundant execution.
3776 2022-02-22  Tom de Vries  <tdevries@suse.de>
3778         PR target/99555
3779         * config/nvptx/bar.c (generation_to_barrier): New function, copied
3780         from config/rtems/bar.c.
3781         (futex_wait, futex_wake): New function.
3782         (do_spin, do_wait): New function, copied from config/linux/wait.h.
3783         (gomp_barrier_wait_end, gomp_barrier_wait_last)
3784         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3785         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3786         and replace with include of config/linux/bar.c.
3787         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3788         (gomp_barrier_init): Init new fields.
3789         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3790         workarounds.
3791         * testsuite/libgomp.c/pr99555-1.c: Same.
3792         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3794 2022-02-22  Tom de Vries  <tdevries@suse.de>
3796         PR testsuite/104146
3797         * testsuite/libgomp.c++/pr96390.C: Add additional-option
3798         -foffload=-Wa,--verify for nvptx.
3799         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3801 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
3803         * testsuite/libgomp.fortran/depend-4.f90: New test.
3805 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
3807         PR c++/102204
3808         * testsuite/libgomp.c++/target-virtual-1.C: New test.
3810 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
3812         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3813         * target.c (copy_firstprivate_data): Copy only if host address is not
3814         NULL.
3815         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3816         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3817         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3818         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3819         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3820         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3821         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3822         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3823         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3824         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3826 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
3828         PR libgomp/104385
3829         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3830         clear task->parent.
3831         * testsuite/libgomp.c/pr104385.c: New test.
3833 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3835         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3836         STOP of previous commit.
3838 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3840         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3841         from is_64bit_aligned_.
3842         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3843         and use it, more implicit none, remove unused argument.
3845 2022-02-03  David Seifert  <soap@gentoo.org>
3846             Jakub Jelinek  <jakub@redhat.com>
3848         * configure.ac: Support --disable-werror.
3849         * configure: Regenerate.
3851 2022-02-01  Tom de Vries  <tdevries@suse.de>
3853         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3854         PR83812 workaround.
3855         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3856         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3858 2022-02-01  Tom de Vries  <tdevries@suse.de>
3860         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3861         num_workers for nvidia accelerator to fix libgomp error 'insufficient
3862         resources'.
3863         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3864         Same.
3865         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3867 2022-02-01  Tom de Vries  <tdevries@suse.de>
3869         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3870         recursion depth.
3871         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3873 2022-01-31  Martin Liska  <mliska@suse.cz>
3875         * acinclude.m4: Detect *_ld_is_mold and use it.
3876         * configure: Regenerate.
3878 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
3880         * libgomp.texi (OpenMP 5.0): Update implementation status.
3882 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
3884         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3885         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3886         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3887         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3888         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3889         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3890         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3891         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3892         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3893         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3894         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3895         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3896         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3897         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3898         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3900 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
3902         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3903         "static") to make the device num available in the offload image.
3905 2022-01-19  Martin Liska  <mliska@suse.cz>
3906             Thomas Schwinge  <thomas@codesourcery.com>
3908         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3909         patterns.
3910         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3911         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3912         Likewise.
3913         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3914         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3915         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3916         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3917         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3918         Likewise.
3919         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3920         Likewise.
3921         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3922         Likewise.
3923         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3924         Likewise.
3925         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3926         Likewise.
3927         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3928         Likewise.
3929         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3930         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3931         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3933 2022-01-18  Martin Liska  <mliska@suse.cz>
3935         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3936         in dg-warning.
3937         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3938         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3939         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3940         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3941         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3942         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3943         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3944         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3945         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3946         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3947         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3948         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3949         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3950         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3951         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3953 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
3955         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3956         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3957         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3959 2022-01-17  Julian Brown  <julian@codesourcery.com>
3960             Thomas Schwinge  <thomas@codesourcery.com>
3962         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3963         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3964         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3966 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3967             Andrew Stubbs   <ams@codesourcery.com>
3969         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3970         the number of teams and threads if necessary.
3971         (gcn_exec): Automatically set the number of gangs and workers if
3972         necessary.
3974 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3976         * testsuite/libgomp.fortran/allocate-1.c: New test.
3977         * testsuite/libgomp.fortran/allocate-1.f90: New test.
3978         * libgomp.texi: Remove string that says that allocate clause
3979         support is for C/C++ only.
3981 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3983         * testsuite/libgomp.c-c++-common/on_device_arch.h
3984         (any_device_arch, any_device_arch_intel_mic): New.
3985         * testsuite/lib/libgomp.exp
3986         (check_effective_target_offload_device_any_intel_mic): New.
3987         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3988         * testsuite/libgomp.fortran/target10.f90: Likewise.
3990 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3992         PR tree-optimization/102192
3993         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3994         '-Wuninitialized' diagnostics.
3996 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3998         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3999         current '-Wuninitialized' diagnostics.
4000         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4001         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4002         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4003         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4004         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4005         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4006         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4007         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4008         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4009         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4010         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4011         Likewise.
4013 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4015         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4016         for 'offload_device_intel_mic'.
4018 2022-01-13  Julian Brown  <julian@codesourcery.com>
4019             Thomas Schwinge  <thomas@codesourcery.com>
4021         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4022         offloading execution XFAIL.
4024 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4026         PR middle-end/100280
4027         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4028         Update.
4029         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4030         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4031         Likewise.
4033 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4035         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4036         Enhance.
4037         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4038         Likewise.
4039         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4040         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4041         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4042         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4043         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4044         Likewise.
4045         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4046         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4047         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4048         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4050 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
4052         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4053         * testsuite/libgomp.fortran/target10.f90: Likewise.
4055 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
4057         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4058         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4059         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4061 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
4063         * libgomp.texi: Bump @copying's copyright year.
4065 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
4067         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4068         * testsuite/libgomp.fortran/atomic-19.f90: New test.
4070 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
4072         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4073         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4074         table, not individual symbols.
4076 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
4078         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4079         "target offload_device_nonshared_as"
4080         * testsuite/libgomp.c++/target-this-3.C: Likewise.
4081         * testsuite/libgomp.c++/target-this-4.C: Likewise.
4083 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4085         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4086         not overwritten during cross-host/device copying.
4087         (gomp_update): Likewise.
4088         (gomp_exit_data): Likewise.
4089         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4090         * testsuite/libgomp.c++/target-12.C: Likewise.
4091         * testsuite/libgomp.c++/target-15.C: Likewise.
4092         * testsuite/libgomp.c++/target-16.C: Likewise.
4093         * testsuite/libgomp.c++/target-17.C: Likewise.
4094         * testsuite/libgomp.c++/target-21.C: Likewise.
4095         * testsuite/libgomp.c++/target-23.C: Likewise.
4096         * testsuite/libgomp.c/target-23.c: Likewise.
4097         * testsuite/libgomp.c/target-29.c: Likewise.
4098         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4100 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4102         PR middle-end/92120
4103         * libgomp.h (gomp_attach_pointer): Add bool parameter.
4104         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4105         (goacc_enter_data_internal): Likewise.
4106         * target.c (gomp_map_vars_existing): Update assert condition to
4107         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4108         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4109         parameter, add support for mapping a pointer with NULL target.
4110         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4111         parameter, add support for attaching a pointer with NULL target.
4112         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4113         gomp_attach_pointer, add handling for
4114         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4115         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4116         * testsuite/libgomp.c++/target-23.C: New testcase.
4117         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4118         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4119         * testsuite/libgomp.c++/target-this-1.C: New testcase.
4120         * testsuite/libgomp.c++/target-this-2.C: New testcase.
4121         * testsuite/libgomp.c++/target-this-3.C: New testcase.
4122         * testsuite/libgomp.c++/target-this-4.C: New testcase.
4123         * testsuite/libgomp.c++/target-this-5.C: New testcase.
4125 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4127         * libgomp.texi (OpenMP 5.1): Update status.
4129 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4131         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4133 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
4135         PR fortran/90030
4136         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4137         * testsuite/libgomp.fortran/pr90030.f90: New test.
4139 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4140             Thomas Schwinge  <thomas@codesourcery.com>
4142         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4143         temporary skip.
4145 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4146             Thomas Schwinge  <thomas@codesourcery.com>
4148         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4149         skip.
4151 2021-11-29  Richard Biener  <rguenther@suse.de>
4153         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4154         return.
4156 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
4158         PR middle-end/103384
4159         * testsuite/libgomp.c/declare-variant-2.c: New test.
4161 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
4163         * alloc.c (gomp_aligned_alloc): Fix typo.
4165 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4167         PR libgomp/102838
4168         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4169         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4170         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4171         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4172         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4173         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4174         gomp_aligned_alloc instead of team_malloc.
4176 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4178         PR libgomp/102838
4179         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4180         memalign over posix_memalign over aligned_alloc over fallback
4181         with malloc instead of aligned_alloc over _aligned_alloc over
4182         posix_memalign over memalign over fallback with malloc.  For
4183         aligned_alloc, round up size up to multiple of al.
4185 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4187         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4188         construct as implemented.
4190 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4192         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4194 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4196         * task.c (gomp_create_target_task): Copy args array as well.
4197         * target.c (gomp_target_fallback): Add args argument.
4198         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4199         (GOMP_target): Adjust gomp_target_fallback caller.
4200         (GOMP_target_ext): Likewise.
4201         (gomp_target_task_fn): Likewise.
4202         * config/nvptx/team.c (gomp_nvptx_main): Set
4203         gomp_global_icv.thread_limit_var.
4204         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4206 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4208         * config/nvptx/team.c (__gomp_team_num): Define as
4209         __attribute__((shared)) var.
4210         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4211         * config/nvptx/target.c (__gomp_team_num): Declare as
4212         extern __attribute__((shared)) var.
4213         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4214         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4215         is bigger than num_blocks, use num_teams_lower teams and arrange for
4216         bumping of __gomp_team_num if !first and returning false once we run
4217         out of teams.
4218         * config/nvptx/teams.c (__gomp_team_num): Declare as
4219         extern __attribute__((shared)) var.
4220         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4222 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4224         * testsuite/libgomp.c/teams-5.c: New test.
4226 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4228         PR target/103201
4229         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4230         to ...
4231         * config/gcn/teams.c: ... here.  New file.
4233 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4235         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4236         implicit map handling to allow a "superset" existing map as valid case.
4237         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4238         (get_implicit): New function to extract implicit status.
4239         (gomp_map_fields_existing): Adjust arguments in calls to
4240         gomp_map_vars_existing, and add uses of get_implicit.
4241         (gomp_map_vars_internal): Likewise.
4242         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4244 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4246         * libgomp_g.h (GOMP_teams4): Declare.
4247         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4248         * target.c (GOMP_teams4): New function.
4249         * config/nvptx/target.c (GOMP_teams): Remove.
4250         (GOMP_teams4): New function.
4251         * config/gcn/target.c (GOMP_teams): Remove.
4252         (GOMP_teams4): New function.
4253         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4254         teams instead of <= 2.
4255         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4257 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4259         * testsuite/libgomp.fortran/teams-1.f90: New test.
4261 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4263         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4264         * team.c (struct gomp_thread_start_data): Likewise.
4265         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4266         (gomp_team_start): Initialize start_data->num_teams and
4267         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4268         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4269         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4270         instead of gomp_num_teams and gomp_team_num.
4271         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4272         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4273         * testsuite/libgomp.c/teams-4.c: New test.
4275 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4277         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4279 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4281         * env.c (parse_gomp_openacc_dim): Restore parsing.
4283 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4285         PR middle-end/102972
4286         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4287         parallel construct.
4288         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4289         * testsuite/libgomp.c/target-3.c: Likewise.
4290         * testsuite/libgomp.c/target-5.c: Likewise.
4291         * testsuite/libgomp.c/target-6.c: Likewise.
4292         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4293         * testsuite/libgomp.c/teams-1.c: Likewise.
4294         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4295         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4296         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4297         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4298         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4299         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4300         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4302 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4304         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4305         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4307 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4309         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4310         aren't implemented for Fortran yet.
4312 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4314         * testsuite/libgomp.c/loop-26.c: New test.
4315         * testsuite/libgomp.c/loop-27.c: New test.
4317 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4319         PR testsuite/102910
4320         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4321         instead of #include <alloca.h> + alloca.
4323 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4325         * libgomp.texi (Support of strictly structured blocks in Fortran):
4326         Adjust to 'Y'.
4327         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4329 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4331         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4332         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4334 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4336         PR libgomp/102838
4337         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4338         (struct gomp_work_share): Only use aligned(64) attribute if
4339         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4340         add padding before lock to ensure lock is at offset 64 bytes
4341         into the structure.
4342         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4343         New poor man's static assertions.
4344         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4345         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4347 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4348             Richard Biener  <rguenther@suse.de>
4350         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4352 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
4354         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4355         && gomp_places_list_len < count after nfirst <= nlast loop condition.
4357 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
4359         PR fortran/102086
4360         PR fortran/92189
4361         PR fortran/92621
4362         PR fortran/101308
4363         PR fortran/101309
4364         PR fortran/101635
4365         PR fortran/92482
4366         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4368 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4370         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4371         type from char [50] to const char *.
4372         (places_array): Add a testcase for simplified syntax place followed
4373         by length or length and stride.
4375 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4377         * env.c (parse_one_place): Handle non-negative-number the same
4378         as { non-negative-number }.  Reject even !number:1 and
4379         !number:1:stride or !place:1 or !place:1:stride instead of just
4380         length other than 1.
4381         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4382         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4383         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4384         as implemented.
4385         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4386         simplified syntax.
4388 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4390         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4391         clearly reject return value 0 as invalid handle the case where end
4392         pointer is the same as first argument as invalid.
4393         (parse_unsigned_long_1): Likewise.
4394         (parse_one_place): Likewise.
4395         (parse_places_var): Likewise.
4396         (parse_stacksize): Likewise.
4397         (parse_spincount): Likewise.
4398         (parse_affinity): Likewise.
4399         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4400         Make code valid C89.
4401         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4402         For strtoul calls which don't clearly reject return value 0 as
4403         invalid handle the case where end pointer is the same as first
4404         argument as invalid.
4405         (gomp_affinity_init_level_1): Likewise.
4406         (gomp_affinity_init_numa_domains): Likewise.
4407         * config/rtems/proc.c (parse_thread_pools): Likewise.
4409 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4411         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4412         after creating count places clean up and return immediately.
4413         * testsuite/libgomp.c/places-6.c: New test.
4414         * testsuite/libgomp.c/places-7.c: New test.
4415         * testsuite/libgomp.c/places-8.c: New test.
4416         * testsuite/libgomp.c/places-9.c: New test.
4417         * testsuite/libgomp.c/places-10.c: New test.
4419 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4421         * env.c (parse_places_var): Handle numa_domains as level 5.
4422         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4423         function.
4424         (gomp_affinity_init_level): Use it instead of
4425         gomp_affinity_init_level_1 for level == 5.
4426         * testsuite/libgomp.c/places-5.c: New test.
4428 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4430         * env.c (parse_places_var): Handle ll_caches as level 4.
4431         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4432         function.
4433         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4434         last level cache.
4435         (gomp_affinity_init_level): Likewise.
4436         * testsuite/libgomp.c/places-1.c: New test.
4437         * testsuite/libgomp.c/places-2.c: New test.
4438         * testsuite/libgomp.c/places-3.c: New test.
4439         * testsuite/libgomp.c/places-4.c: New test.
4441 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4443         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4444         directive.
4446 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4448         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4450 2021-10-12  Julian Brown  <julian@codesourcery.com>
4452         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4453         error path.
4455 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4457         * testsuite/libgomp.fortran/icv-3.f90: New.
4458         * testsuite/libgomp.fortran/icv-4.f90: New.
4460 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4462         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4463         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4464         OMP_TEAMS_THREAD_LIMIT): Document.
4466 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4468         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4469         to avoid makeinfo warnings.
4471 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4473         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4474         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4476 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4478         PR libgomp/102628
4479         PR libgomp/102668
4480         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4481         allocation sizes from 420 to 320 and from 768 to 568.
4482         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4483         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4484         for cr from 16 to 4.
4486 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4488         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4489         * testsuite/libgomp.c/scan-12.c: Likewise.
4490         * testsuite/libgomp.c/scan-13.c: Likewise.
4491         * testsuite/libgomp.c/scan-14.c: Likewise.
4492         * testsuite/libgomp.c/scan-15.c: Likewise.
4493         * testsuite/libgomp.c/scan-16.c: Likewise.
4494         * testsuite/libgomp.c/scan-17.c: Likewise.
4495         * testsuite/libgomp.c/scan-18.c: Likewise.
4496         * testsuite/libgomp.c/scan-19.c: Likewise.
4497         * testsuite/libgomp.c/scan-20.c: Likewise.
4498         * testsuite/libgomp.c/scan-21.c: Likewise.
4499         * testsuite/libgomp.c/scan-22.c: Likewise.
4500         * testsuite/libgomp.c++/scan-9.C: Likewise.
4501         * testsuite/libgomp.c++/scan-10.C: Likewise.
4502         * testsuite/libgomp.c++/scan-11.C: Likewise.
4503         * testsuite/libgomp.c++/scan-12.C: Likewise.
4504         * testsuite/libgomp.c++/scan-13.C: Likewise.
4505         * testsuite/libgomp.c++/scan-14.C: Likewise.
4506         * testsuite/libgomp.c++/scan-15.C: Likewise.
4507         * testsuite/libgomp.c++/scan-16.C: Likewise.
4509 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4511         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4513 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4515         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4516         omp_atv_serialized.
4517         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4518         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4519         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4520         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4522 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4524         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4525         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4526         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4527         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4528         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4529         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4530         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4531         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4532         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4533         omp_set_teams_thread_limit{,_,_8_}.
4534         * icv.c (omp_set_num_teams, omp_get_max_teams,
4535         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4536         functions.
4537         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4538         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4539         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4540         vars.
4541         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4542         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4543         is not specified, use gomp_nteams_var.
4544         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4545         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4546         ialias_redirect.
4547         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4548         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4549         omp_get_teams_thread_limit_): New functions.
4551 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4553         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4554         * testsuite/libgomp.c++/scan-11.C: Ditto.
4555         * testsuite/libgomp.c++/scan-12.C: Ditto.
4556         * testsuite/libgomp.c++/scan-13.C: Ditto.
4557         * testsuite/libgomp.c++/scan-14.C: Ditto.
4558         * testsuite/libgomp.c++/scan-15.C: Ditto.
4559         * testsuite/libgomp.c++/scan-16.C: Ditto.
4560         * testsuite/libgomp.c++/scan-9.C: Ditto.
4561         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4562         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4563         * testsuite/libgomp.c/scan-11.c: Ditto.
4564         * testsuite/libgomp.c/scan-12.c: Ditto.
4565         * testsuite/libgomp.c/scan-13.c: Ditto.
4566         * testsuite/libgomp.c/scan-14.c: Ditto.
4567         * testsuite/libgomp.c/scan-15.c: Ditto.
4568         * testsuite/libgomp.c/scan-16.c: Ditto.
4569         * testsuite/libgomp.c/scan-17.c: Ditto.
4570         * testsuite/libgomp.c/scan-18.c: Ditto.
4571         * testsuite/libgomp.c/scan-19.c: Ditto.
4572         * testsuite/libgomp.c/scan-20.c: Ditto.
4573         * testsuite/libgomp.c/scan-21.c: Ditto.
4574         * testsuite/libgomp.c/scan-22.c: Ditto.
4576 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
4578         * libgomp.texi (OpenMP 5.1): Mention implemented support for
4579         structured block sequences in C/C++.  Mention support for
4580         unconstrained/reproducible modifiers on order clause.
4581         Mention partial (C/C++ only) support of extentensions to atomics
4582         construct.  Mention partial (C/C++ on clause only) support of
4583         align/allocator modifiers on allocate clause.
4585 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
4587         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4588         based on libgomp.c-c++-common/order-reproducible-1.c.
4589         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4590         * testsuite/libgomp.fortran/my-usleep.c: New test.
4592 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
4594         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4595         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4596         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4597         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4598         based on libgomp.c-c++-common/alloc-9.c.
4600 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4602         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4603         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4605 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4607         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4608         ialias_redirect.
4609         * env.c (handle_omp_display_env): Use ialias_call.
4610         * icv-device.c: Move ialias right below each function.
4611         (omp_get_device_num): Use ialias_call.
4612         * fortran.c (omp_fulfill_event): Add ialias_redirect.
4613         * icv.c (omp_get_active_level): Add ialias_redirect.
4615 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4617         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4618         __alloc_align__ (1) attribute.
4619         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4621 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4623         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4624         for -fintrinsic-modules-path= warning of the C compiler.
4625         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4626         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4628 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4630         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4631         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4632         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4633         omp_realloc): Add.
4634         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4635         omp_realloc): Add.
4636         * testsuite/libgomp.fortran/alloc-10.f90: New test.
4637         * testsuite/libgomp.fortran/alloc-6.f90: New test.
4638         * testsuite/libgomp.fortran/alloc-7.c: New test.
4639         * testsuite/libgomp.fortran/alloc-7.f90: New test.
4640         * testsuite/libgomp.fortran/alloc-8.f90: New test.
4641         * testsuite/libgomp.fortran/alloc-9.f90: New test.
4643 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
4645         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4646         omp_realloc): New prototypes.
4647         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4648         attribute.
4649         * allocator.c: Include string.h.
4650         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
4651         variable and use it instead of alignment so that when retrying the old
4652         alignment is used again.  Don't retry if new alignment is the same
4653         as old alignment, unless allocator had pool size.
4654         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4655         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4656         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4657         omp_aligned_calloc and omp_realloc.
4658         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4659         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4660         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4661         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4662         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4663         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4665 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
4667         PR libgomp/96661
4668         * configure.ac: Only check for int-type = 2*size_t support when
4669         building with Fortran support.
4670         * configure: Regenerate.
4672 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
4674         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4675         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4677 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
4679         * team.c: Initialize start_data.
4680         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4681         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4683 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4685         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4686         dg-message back to dg-note.
4688 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4690         PR fortran/94070
4691         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4692         expected dg-note output.
4694 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
4696         PR fortran/55534
4697         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4698         r12-3722 by removing -Wno-missing-include-dirs.
4699         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4701 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
4703         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4704         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4706 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
4708         PR fortran/55534
4709         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4710         to ALWAYS_CFLAGS.
4711         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4713 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
4715         * testsuite/libgomp.c++/default-1.C: New test.
4716         * testsuite/libgomp.c-c++-common/default-1.c: New test.
4717         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4718         to default clause in C and C++" as implemented.
4720 2021-09-17  Julian Brown  <julian@codesourcery.com>
4722         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4724 2021-09-17  Julian Brown  <julian@codesourcery.com>
4726         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4728 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4730         * libgomp.texi (OpenMP 5.1): Spelling fix,
4731         declare variante -> declare variant.
4733 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4735         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4736         Use /* */ comments instead of //.
4737         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4738         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4739         * testsuite/libgomp.c++/atomic-16.C: New test.
4740         * testsuite/libgomp.c++/atomic-17.C: New test.
4742 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
4744         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4745         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4746         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4748 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4750         * libgomp.texi (OpenMP Implementation Status): Extend
4751         OpenMP 5.0 section.
4752         (OpenACC Profiling Interface): Fix typo.
4754 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4756         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4757         not to 4.5; link to new section.
4758         (OpenMP Implementation Status): New.
4760 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
4762         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4764 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
4766         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4767         dg-output.
4768         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4770 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4771             Jakub Jelinek  <jakub@redhat.com>
4773         * testsuite/libgomp.c/address-space-1.c: New file.
4775 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4777         * testsuite/lib/libgomp.exp
4778         (check_effective_target_offload_target_intelmic): Remove 'proc'.
4779         (check_effective_target_offload_device_intel_mic): New 'proc'.
4780         * testsuite/libgomp.c-c++-common/on_device_arch.h
4781         (device_arch_intel_mic, on_device_arch_intel_mic): New.
4782         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4783         'dg-xfail-run-if'.
4784         * testsuite/libgomp.fortran/target10.f90: Likewise.
4786 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
4788         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4789         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4790         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4791         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4793 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
4795         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4796         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4797         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4799 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
4801         * config/nvptx/error.c (fwrite, exit): Override, too.
4802         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4803         of offloading testing.
4804         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4806 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
4808         * testsuite/libgomp.fortran/error-1.f90: New test.
4810 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
4812         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4813         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4814         * error.c (GOMP_warning, GOMP_error): New functions.
4815         * testsuite/libgomp.c-c++-common/error-1.c: New test.
4817 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
4819         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4820         omp_target_free. omp_target_is_present, omp_target_memcpy,
4821         omp_target_memcpy_rect, omp_target_associate_ptr,
4822         omp_target_disassociate_ptr): Add interface.
4823         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4824         omp_target_free. omp_target_is_present, omp_target_memcpy,
4825         omp_target_memcpy_rect, omp_target_associate_ptr,
4826         omp_target_disassociate_ptr): Add interface.
4827         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4828         interface block for omp_alloc + omp_free.
4829         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4830         * testsuite/libgomp.fortran/refcount-1.f90: New test.
4831         * testsuite/libgomp.fortran/target-12.f90: New test.
4833 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
4835         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4837 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
4839         * testsuite/libgomp.fortran/scope-1.f90: New test.
4840         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4842 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
4844         * Makefile.am (libgomp_la_SOURCES): Add scope.c
4845         * Makefile.in: Regenerated.
4846         * libgomp_g.h (GOMP_scope_start): Declare.
4847         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4848         * scope.c: New file.
4849         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4850         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4852 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
4854         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4855         '?:' issues.
4857 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
4859         * testsuite/libgomp.fortran/masked-1.f90: New test.
4861 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
4863         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4865 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
4867         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4869 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
4871         * env.c (parse_bind_var): Accept 'primary' as alias for
4872         'master'.
4873         (omp_display_env): Add TODO comment to
4874         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4875         * libgomp.texi: Change 'master thread' to 'primary thread'
4876         in line with OpenMP 5.1.
4877         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4878         omp_proc_bind_master is an alias of it.
4879         (OMP_PROC_BIND): Mention 'PRIMARY'.
4880         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4881         (omp_proc_bind_primary): Add.
4882         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4883         * omp_lib.f90.in (omp_proc_bind_primary): Add.
4884         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4885         * omp_lib.h.in (omp_proc_bind_primary): Add.
4886         * testsuite/libgomp.c/affinity-1.c: Check that
4887         'primary' works and is identical to 'master'.
4889 2021-08-09  Julian Brown  <julian@codesourcery.com>
4890             Kwok Cheung Yeung  <kcy@codesourcery.com>
4891             Thomas Schwinge  <thomas@codesourcery.com>
4893         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4894         16.
4895         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4896         [acc_device_radeon]: Update.
4897         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4898         [ACC_DEVICE_TYPE_radeon]: Likewise.
4899         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4900         [acc_device_radeon]: Likewise.
4901         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4902         [ACC_DEVICE_TYPE_radeon]: Likewise.
4903         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4904         'openacc_radeon_accel_selected' and '-O0'.
4905         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4907 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
4909         * icv-device.c (omp_get_device_num): New API function, host side.
4910         * fortran.c (omp_get_device_num_): New interface function.
4911         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4912         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4913         omp_get_device_num_.
4914         * libgomp.texi (omp_get_device_num): Add documentation for new API
4915         function.
4916         * omp.h.in (omp_get_device_num): Add declaration.
4917         * omp_lib.f90.in (omp_get_device_num): Likewise.
4918         * omp_lib.h.in (omp_get_device_num): Likewise.
4919         * target.c (gomp_load_image_to_device): If additional entry for device
4920         number exists at end of returned entries from 'load_image_func' hook,
4921         copy the assigned device number over to the device variable.
4922         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4923         (omp_get_device_num): New API function, device side.
4924         * plugin/plugin-gcn.c ("symcat.h"): Add include.
4925         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4926         at end of returned 'target_table' entries.
4927         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4928         (omp_get_device_num): New API function, device side.
4929         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4930         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4931         at end of returned 'target_table' entries.
4932         * testsuite/lib/libgomp.exp
4933         (check_effective_target_offload_target_intelmic): New function for
4934         testing for intelmic offloading.
4935         * testsuite/libgomp.c-c++-common/target-45.c: New test.
4936         * testsuite/libgomp.fortran/target10.f90: New test.
4938 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
4939             Ulrich Drepper  <drepper@redhat.com>
4941         * fortran.c (omp_display_env_, omp_display_env_8_): Only
4942         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4944 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
4945             Julian Brown  <julian@codesourcery.com>
4946             Kwok Cheung Yeung  <kcy@codesourcery.com>
4948         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4949         's%oaccdevlow%oaccloops%g'.
4950         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4951         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4952         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4953         Likewise.
4954         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4955         Likewise.
4956         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4957         Likewise.
4958         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4959         Likewise.
4960         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4961         Likewise.
4962         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4963         Likewise.
4964         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4965         Likewise.
4966         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4967         Likewise.
4968         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4970 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
4972         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4973         threader.
4974         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4976 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
4978         * env.c (wait_policy, stacksize): New static variables,
4979         move out of handle_omp_display_env.
4980         (omp_display_env): New function.  The meat of the old
4981         handle_omp_display_env function.
4982         (handle_omp_display_env): Change to not take parameters
4983         and instead use the global variables.  Only perform
4984         parsing, defer to omp_display_env for the implementation.
4985         (initialize_env): Remove local variables wait_policy and
4986         stacksize.  Don't pass parameters to handle_omp_display_env.
4987         * fortran.c: Add ialias_redirect for omp_display_env.
4988         (omp_display_env_, omp_display_env_8_): New functions.
4989         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
4990         omp_display_env_, and omp_display_env_8_.
4991         * omp.h.in: Declare omp_display_env.
4992         * omp_lib.f90.in: Likewise.
4993         * omp_lib.h.in: Likewise.
4995 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4996             Julian Brown  <julian@codesourcery.com>
4998         * target.c (gomp_coalesce_buf_add): Update comment.
4999         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5000         'aq && cbuf'.
5001         (gomp_map_vars_internal): Only 'if (!aq)', do
5002         'gomp_coalesce_buf_add'.
5003         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5004         XFAIL.
5006 2021-07-27  Julian Brown  <julian@codesourcery.com>
5007             Thomas Schwinge  <thomas@codesourcery.com>
5009         * libgomp.h (gomp_copy_host2dev): Update prototype.
5010         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5011         argument to gomp_copy_host2dev (false).
5012         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5013         (copy_data): Don't free src.
5014         (queue_push_copy): Remove free_src handling.
5015         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5016         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5017         snapshotting.
5018         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5019         queue_push_copy.
5020         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5021         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
5022         data when true, and set up deferred freeing of temporary buffer.
5023         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5024         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5025         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5026         calls to gomp_copy_host2dev with appropriate ephemeral argument.
5027         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5028         XFAIL.
5030 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5031             Tom de Vries  <tom@codesourcery.com>
5033         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5034         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5036 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5038         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5039         sequencing of 'async' data copying vs. profiling events.
5040         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5041         Likewise.
5043 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5044             Julian Brown  <julian@codesourcery.com>
5046         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5047         'async'/'wait' issue.
5048         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5049         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5050         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5052 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
5053             Joseph Myers  <joseph@codesourcery.com>
5054             Cesar Philippidis  <cesar@codesourcery.com>
5056         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5057         file.
5058         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5059         Likewise.
5060         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5061         Likewise.
5062         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5064 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
5066         PR target/101484
5067         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5068         '-Wno-error=array-bounds'.
5069         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5070         * libgomp.h [__AMDGCN__]: Likewise.
5072 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
5074         PR target/101484
5075         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5076         * libgomp.h [__AMDGCN__]: Likewise.
5078 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
5079             Florian Weimer  <fweimer@redhat.com>
5081         * config/linux/sem.h: Don't include limits.h.
5082         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5083         * config/linux/affinity.c: Include limits.h.
5085 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5087         PR middle-end/94366
5088         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5090 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5092         PR other/67300
5093         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5094         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5095         avoid disabling other offload targets.
5096         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5097         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5098         * testsuite/libgomp.c/target-44.c: Likewise.
5100 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5102         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5103         target has shared memory and disable some scalar pointer/allocatable
5104         checks if not as firstprivate does not work.
5106 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
5108         PR testsuite/101114
5109         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5110         Add "target offload_device_nonshared_as" condition for enabling test.
5112 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5114         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5115         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5116         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5117         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5119 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5121         PR middle-end/101167
5122         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5124 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
5126         * hashtab.h (htab_clear): New function with initialization code
5127         factored out from...
5128         (htab_create): ...here, adjust to use htab_clear function.
5129         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5130         special refcount values, add comments.
5131         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5132         (REFCOUNT_LINK): Likewise.
5133         (REFCOUNT_STRUCTELEM): New special refcount range for structure
5134         element siblings.
5135         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5136         sibling maps.
5137         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5138         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
5139         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5140         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5141         (struct splay_tree_key_s): Add structelem_refcount and
5142         structelem_refcount_ptr fields into a union with dynamic_refcount.
5143         Add comments.
5144         (gomp_map_vars): Delete declaration.
5145         (gomp_map_vars_async): Likewise.
5146         (gomp_unmap_vars): Likewise.
5147         (gomp_unmap_vars_async): Likewise.
5148         (goacc_map_vars): New declaration.
5149         (goacc_unmap_vars): Likewise.
5150         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5151         (goacc_enter_datum): Likewise.
5152         (goacc_enter_data_internal): Likewise.
5153         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5154         and goacc_unmap_vars.
5155         (GOACC_data_start): Adjust to use goacc_map_vars.
5156         (GOACC_data_end): Adjust to use goacc_unmap_vars.
5157         * target.c (hash_entry_type): New typedef.
5158         (htab_alloc): New function hook for hashtab.h.
5159         (htab_free): Likewise.
5160         (htab_hash): Likewise.
5161         (htab_eq): Likewise.
5162         (hashtab.h): Add file include.
5163         (gomp_increment_refcount): New function.
5164         (gomp_decrement_refcount): Likewise.
5165         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5166         gomp_increment_refcount.
5167         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5168         to gomp_map_vars_existing.
5169         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5170         variable to guard OpenMP specific paths, adjust calls to
5171         gomp_map_vars_existing, add structure element sibling splay_tree_key
5172         sequence creation code, adjust Fortran map case to avoid increment
5173         under OpenMP.
5174         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5175         local refcount_set if caller passed in NULL, adjust call to
5176         gomp_map_vars_internal.
5177         (gomp_map_vars_async): Adjust and rename into...
5178         (goacc_map_vars): ...this new function, adjust call to
5179         gomp_map_vars_internal.
5180         (gomp_remove_splay_tree_key): New function with code factored out from
5181         gomp_remove_var_internal.
5182         (gomp_remove_var_internal): Add code to handle removing multiple
5183         splay_tree_key sequence for structure elements, adjust code to use
5184         gomp_remove_splay_tree_key for splay-tree key removal.
5185         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5186         gomp_decrement_refcount.
5187         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5188         local refcount_set if caller passed in NULL, adjust call to
5189         gomp_unmap_vars_internal.
5190         (gomp_unmap_vars_async): Adjust and rename into...
5191         (goacc_unmap_vars): ...this new function, adjust call to
5192         gomp_unmap_vars_internal.
5193         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5194         gomp_unmap_vars.
5195         (GOMP_target_ext): Likewise.
5196         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5197         (GOMP_target_data): Likewise.
5198         (GOMP_target_data_ext): Likewise.
5199         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5200         (gomp_exit_data): Add refcount_set parameter, adjust to use
5201         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5202         after main loop.
5203         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5204         gomp_map_vars and gomp_exit_data.
5205         (gomp_target_task_fn): Likewise.
5206         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5207         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5208         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5209         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5210         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5211         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5213 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5215         PR fortran/92568
5216         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5218 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5219             Thomas Schwinge  <thomas@codesourcery.com>
5221         * libgomp.map (GOACC_2.0.2): New symbol version.
5222         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5223         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5225 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5226             Andrew Stubbs  <ams@codesourcery.com>
5228         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5229         extracted from...
5230         (GOACC_enter_exit_data): ... here.
5231         (GOACC_declare): Use it.
5233 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5235         * oacc-parallel.c (GOACC_declare): Move...
5236         * oacc-mem.c: ... here.
5237         * libgomp_g.h: Adjust.
5239 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5240             Thomas Schwinge  <thomas@codesourcery.com>
5242         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5243         handling.
5245 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5247         PR tree-optimization/100981
5248         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5249         dsdotr and dsdoti to 0.
5251 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5253         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5254         if atomic compare-and-swap is supported on 'int'.
5256 2021-06-09  Richard Biener  <rguenther@suse.de>
5258         PR tree-optimization/100981
5259         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5261 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5263         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5264         unconditionally.
5265         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5266         Update.
5267         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5268         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5270 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5272         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5273         '-DACC_MEM_SHARED=0'.
5274         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5275         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5276         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5277         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5278         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5279         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5280         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5281         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5282         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5283         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5284         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5285         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5286         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5287         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5288         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5289         'acc_device_radeon' testing.
5290         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5291         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5292         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5293         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5294         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5295         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5296         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5297         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5298         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5299         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5300         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5301         for non-'openacc_nvidia_accel_selected'.
5302         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5303         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5304         all implement this checking".
5305         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5306         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5307         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5308         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5309         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5311 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5313         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5314         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5316 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5318         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5319         for 'acc_device_radeon'.
5321 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5323         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5324         for non-'acc_device_nvidia'.
5326 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5328         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5329         'acc_device_radeon' testing.
5330         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5331         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5332         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5334 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5336         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5337         require 'openacc_nvidia_accel_selected'.  Fix up for
5338         'ACC_DEVICE_TYPE_radeon'.
5340 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5342         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5343         'openacc_nvidia_accel_selected'.
5344         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5346 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5348         * testsuite/lib/libgomp.exp
5349         (check_effective_target_openacc_radeon_accel_selected):
5350         Streamline.
5352 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5354         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5355         PR80547 workaround.
5357 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5359         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5360         <acc_device_nvidia>: Update comment.
5362 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5364         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5366 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
5368         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5369         check_effective_target_openacc_cublas,
5370         check_effective_target_openacc_cudart): New.
5371         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5372         target openacc_cublas.
5373         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5374         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5375         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5376         target openacc_cuda.
5377         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5378         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5379         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5380         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5381         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5382         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5383         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5384         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5385         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5386         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5387         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5388         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5389         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5390         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5391         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5392         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5393         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5394         targets openacc_cublas and openacc_cudart.
5395         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5396         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5397         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5398         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5399         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5400         Require effective target openacc_cudart.
5401         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5402         for effective target openacc_cuda and add && defined USE_CUDA_H to
5403         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5404         effective target.
5406 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5408         PR libgomp/100573
5409         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5410         GOMP_target_end_data, GOMP_target_update_ext,
5411         GOMP_target_enter_exit_data): New dummy entrypoints.
5412         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5413         GOMP_target_end_data, GOMP_target_update_ext,
5414         GOMP_target_enter_exit_data): Likewise.
5415         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5416         OMPFROM, OMPTO): Define.
5417         (main): Remove #pragma omp target teams around all the tests.
5418         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5419         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5421 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5423         PR middle-end/99928
5424         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5426 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5428         PR fortran/86470
5429         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5430         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5431         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5433 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5435         PR testsuite/90115
5436         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5437         uninteresting/varying diagnostics.
5439 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5441         PR middle-end/90115
5442         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5443         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5445 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5447         PR middle-end/90115
5448         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5449         file.
5450         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5451         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5452         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5453         Likewise.
5454         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5455         Likewise.
5456         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5457         Likewise.
5458         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5459         Likewise.
5460         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5461         Likewise.
5462         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5463         Likewise.
5464         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5465         Likewise.
5466         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5467         Likewise.
5468         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5469         Likewise.
5470         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5471         Likewise.
5472         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5473         Likewise.
5474         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5475         Likewise.
5476         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5477         Likewise.
5478         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5479         Likewise.
5480         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5481         Likewise.
5482         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5483         Likewise.
5484         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5485         Likewise.
5486         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5487         Likewise.
5488         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5489         Likewise.
5490         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5491         Likewise.
5492         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5493         Likewise.
5494         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5495         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5496         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5497         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5498         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5499         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5500         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5501         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5502         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5503         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5504         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5505         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5506         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5507         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5508         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5509         Likewise.
5510         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5511         Likewise.
5512         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5513         Likewise.
5514         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5515         Likewise.
5516         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5517         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5518         Likewise.
5519         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5520         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5521         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5522         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5523         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5524         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5525         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5526         Likewise.
5527         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5528         Likewise.
5529         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5530         Likewise.
5531         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5532         Likewise.
5533         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5534         Likewise.
5535         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5536         Likewise.
5537         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5538         Likewise.
5539         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5540         Likewise.
5541         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5542         Likewise.
5543         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5544         Likewise.
5545         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5546         Likewise.
5547         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5548         Likewise.
5549         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5550         Likewise.
5551         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5552         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5553         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5554         Likewise.
5555         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5556         Likewise.
5557         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5558         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5559         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5561 2021-05-21  Julian Brown  <julian@codesourcery.com>
5562             Chung-Lin Tang  <cltang@codesourcery.com>
5563             Thomas Schwinge  <thomas@codesourcery.com>
5565         PR middle-end/90115
5566         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5567         test.
5568         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5569         Likewise.
5570         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5571         Likewise.
5573 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5575         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5576         for nvptx offloading.
5578 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
5580         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5582 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5584         PR target/83812
5585         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5587 2021-05-19  Julian Brown  <julian@codesourcery.com>
5589         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5591 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5593         * testsuite/lib/libgomp.exp
5594         (check_effective_target_offload_target_nvptx): Don't shadow global
5595         'offload_targets' variable.
5597 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5599         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5600         '-latomic' to nvptx offloading compilation.
5601         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5603 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5605         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5606         offloading compilation.
5608 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5610         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5611         if new tasks generated.
5612         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5614 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
5616         * testsuite/libgomp.fortran/parallel-master.f90: New test.
5618 2021-05-13  Martin Liska  <mliska@suse.cz>
5620         PR testsuite/100569
5621         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5622         * testsuite/libgomp.c/pr46032-2.c: Likewise.
5623         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5624         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5626 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
5628         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5629         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5631 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
5633         PR middle-end/100471
5634         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5635         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5636         reduction pointer.
5637         * testsuite/libgomp.c/task-reduction-4.c: New test.
5639 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
5640             Tom de Vries  <tdevries@suse.de>
5642         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5643         complex/floating-point || + && reduction with 'omp target'.
5644         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5646 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5648         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5649         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5650         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5651         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5653 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5655         PR testsuite/100397
5656         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5657         declaration to scope of non-'depend'-guarded assignment to avoid races.
5659 2021-05-03  Tom de Vries  <tdevries@suse.de>
5661         PR target/100321
5662         * testsuite/libgomp.c/target-44.c: New test.
5664 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
5666         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5668 2021-04-29  Tom de Vries  <tdevries@suse.de>
5670         * testsuite/libgomp.c/pr81778.c: New test.
5672 2021-04-29  Tom de Vries  <tdevries@suse.de>
5674         PR target/100232
5675         * testsuite/libgomp.c/target-43.c: New file.
5677 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
5678             Tobias Burnus  <tobias@codesourcery.com>
5680         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5681         * target.c (gomp_load_plugin_for_device): If set and if a plugin
5682         can't be dlopened, silently assume it has no devices.
5683         * Makefile.in: Regenerate.
5684         * config.h.in: Regenerate.
5685         * configure: Regenerate.
5687 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5689         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5690         Use [Ww]arning in dg-bogus as FE diagnostic and default
5691         diagnostic differ and the result depends on ENABLE_OFFLOAD.
5692         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5693         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5694         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5696 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5698         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5699         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5700         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5701         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5702         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5704 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5705             Nathan Sidwell  <nathan@codesourcery.com>
5706             Tom de Vries  <vries@codesourcery.com>
5707             Julian Brown  <julian@codesourcery.com>
5708             Kwok Cheung Yeung  <kcy@codesourcery.com>
5710         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5711         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5712         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5713         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5714         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5715         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5716         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5717         Likewise.
5718         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5719         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5720         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5721         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5722         Likewise.
5723         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5724         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5725         Likewise.
5726         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5727         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5728         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5729         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5730         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5731         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5732         Likewise.
5733         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5734         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5735         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5736         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5737         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5738         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5739         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5740         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5741         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5742         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5743         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5745 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5747         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5748         compile with '-w'.
5749         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5750         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5751         Likewise.
5752         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5753         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5754         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5755         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5756         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5757         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5758         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5760 2021-04-22  Richard Biener  <rguenther@suse.de>
5762         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5763         only on nvptx-none.
5765 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5767         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5768         omp_depend_kind instead of defining it as 16.
5770 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5772         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5773         New, based on check_effective_target_offload_target_nvptx.
5774         (check_effective_target_offload_target_nvptx): Call it.
5775         (check_effective_target_offload_target_amdgcn): New.
5776         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5777         Require target offload_target_nvptx || offload_target_amdgcn.
5778         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5779         * testsuite/libgomp.c/pr86416-1.c: Likewise.
5780         * testsuite/libgomp.c/pr86416-2.c: Likewise.
5782 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5784         * testsuite/libgomp.fortran/depobj-1.f90: New test.
5786 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5788         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5789         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5790         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5791         Likewise.
5792         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5793         Likewise.
5794         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5796 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5798         PR target/99555
5799         * testsuite/lib/libgomp.exp
5800         (check_effective_target_offload_device_nvptx): New.
5801         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5802         resolved, make sure that we exit quickly, with error status,
5803         XFAILed.
5804         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5805         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5807 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
5809         PR testsuite/100071
5810         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5811         cp = omp_alloc with cp, p arguments instead of cq, q and call
5812         c_f_pointer after last cq = omp_alloc with cq, q.
5814 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5816         PR middle-end/98088
5817         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5818         for loop with GT/GE condition.
5819         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5821 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
5823         PR middle-end/84991
5824         PR middle-end/84992
5825         PR middle-end/90779
5826         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5828 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
5830         PR libgomp/99984
5831         * team.c (gomp_thread_start): Call pthread_setspecific for
5832         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5833         has been initialized to avoid false positive warning.
5835 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
5837         PR target/99555
5838         * testsuite/lib/on_device_arch.c: Move to ...
5839         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5840         * testsuite/libgomp.fortran/on_device_arch.c: New file;
5841         #include on_device_arch.h.
5842         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5843         on_device_arch.h instead of using dg-additional-source.
5844         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5845         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5846         on_device_arch.c without relative paths.
5848 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5850         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5851         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5852         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5853         * config.h.in: Regenerate.
5854         * configure: Likewise.
5856 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5858         PR target/99555
5859         * testsuite/lib/on_device_arch.c: New file.
5860         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5861         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5862         skip for nvptx offloading, with error status.
5863         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5865 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5867         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5868         OpenACC 'serial' construct diagnostic for nvptx offloading.
5870 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
5872         PR c++/99509
5873         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5875 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
5877         PR fortran/98858
5878         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5880 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
5882         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5883         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5884         checking of -m32 or -mx32 options on the command line.
5885         * config.h.in: Regenerated.
5886         * configure: Regenerated.
5888 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
5890         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5891         support from the target.
5893 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5894             Jakub Jelinek  <jakub@redhat.com>
5896         PR libgomp/98738
5897         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5898         (struct gomp_task): Replace detach and completion_sem fields with
5899         union containing completion_sem and detach_team.  Add deferred_p
5900         field.
5901         (struct gomp_team): Remove task_detach_queue.
5902         * task.c: Include assert.h.
5903         (gomp_init_task): Initialize deferred_p and completion_sem fields.
5904         Rearrange initialization order of fields.
5905         (task_fulfilled_p): Delete.
5906         (GOMP_task): Use address of task as the event handle.  Remove
5907         initialization of detach field.  Initialize deferred_p field.
5908         Use automatic local for completion_sem.  Initialize detach_team field
5909         for deferred tasks.
5910         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5911         Set kind of suspended detach task to GOMP_TASK_DETACHED and
5912         decrement task_running_count.  Move finish_cancelled block out of
5913         else branch.  Relocate call to gomp_team_barrier_done.
5914         (GOMP_taskwait): Handle tasks with completion events that have not
5915         been fulfilled.
5916         (GOMP_taskgroup_end): Likewise.
5917         (omp_fulfill_event): Use address of task as event handle.  Post to
5918         completion_sem for undeferred tasks.  Clear detach_team if task
5919         has not finished.  For finished tasks, handle post-execution tasks,
5920         call gomp_team_barrier_wake if necessary, and free task.
5921         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5922         (free_team): Remove free of task_detach_queue.
5923         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5924         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5925         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5926         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5927         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5928         Change data-sharing of detach events on enclosing parallel to private.
5929         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
5930         taskwait directive.
5931         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5932         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5933         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5934         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5935         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5936         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5937         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5938         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5939         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5940         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5941         Change data-sharing of detach events on enclosing parallel to private.
5942         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
5943         taskwait directive.
5944         * testsuite/libgomp.fortran/task-detach-7.f90: New.
5945         * testsuite/libgomp.fortran/task-detach-8.f90: New.
5946         * testsuite/libgomp.fortran/task-detach-9.f90: New.
5947         * testsuite/libgomp.fortran/task-detach-10.f90: New.
5948         * testsuite/libgomp.fortran/task-detach-11.f90: New.
5950 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
5952         PR fortran/99171
5953         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5955 2021-02-17  Julian Brown  <julian@codesourcery.com>
5957         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5958         expected errors.
5960 2021-02-17  Julian Brown  <julian@codesourcery.com>
5962         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5963         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5965 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5967         * config/linux/x86/futex.h (__futex_wait):
5968         Revert output type back to long.
5969         (__futex_wake): Ditto.
5970         (futex_wait): Update for revert.
5971         (futex_wake): Ditto.
5973 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5975         * config/linux/x86/futex.h (__futex_wait): New static inline
5976         wrapper function.  Correct output type to int and
5977         timeout type to void *.
5978         (__futex_wake): New static inline wrapper function.
5979         Correct output type to int.
5980         (futex_wait): Use __futex_wait.
5981         (futex_wake): Use __futex_wake.
5983 2021-02-10  Julian Brown  <julian@codesourcery.com>
5985         PR fortran/98979
5986         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5987         errors.
5989 2021-02-04  Julian Brown  <julian@codesourcery.com>
5991         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5993 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
5995         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5996         EF_AMDGPU_MACH_AMDGCN_GFX908.
5997         (gcn_gfx908_s): New constant string.
5998         (isa_hsa_name): Add gfx908.
5999         (isa_code): Add gfx908.
6001 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6003         * libgomp.texi (omp_fulfill_event): New entry.
6005 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
6007         * task.c (GOMP_task): Rename priority argument to priority_arg,
6008         add priority automatic variable and modify that variable.  Instead of
6009         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6010         check flags for that bit.
6012 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
6014         PR fortran/98476
6015         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6017 2021-01-18  Andreas Schwab  <schwab@suse.de>
6019         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6021 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6023         * config/rtems/sem.h (gomp_sem_getcount): New function.
6025 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
6027         * config/linux/sem.h (gomp_sem_getcount): New function.
6028         * config/posix/sem.h (gomp_sem_getcount): New function.
6029         * config/posix/sem.c (gomp_sem_getcount): New function.
6030         * config/accel/sem.h (gomp_sem_getcount): New function.
6031         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6032         (omp_fulfill_event): Likewise.
6034 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
6036         * fortran.c (omp_fulfill_event_): New.
6037         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6038         (struct gomp_team): Add task_detach_queue and task_detach_count
6039         fields.
6040         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6041         * libgomp_g.h (GOMP_task): Add extra argument.
6042         * omp.h.in (enum omp_event_handle_t): New.
6043         (omp_fulfill_event): New.
6044         * omp_lib.f90.in (omp_event_handle_kind): New.
6045         (omp_fulfill_event): New.
6046         * omp_lib.h.in (omp_event_handle_kind): New.
6047         (omp_fulfill_event): Declare.
6048         * priority_queue.c (priority_tree_find): New.
6049         (priority_list_find): New.
6050         (priority_queue_find): New.
6051         * priority_queue.h (priority_queue_predicate): New.
6052         (priority_queue_find): New.
6053         * task.c (gomp_init_task): Initialize detach field.
6054         (task_fulfilled_p): New.
6055         (GOMP_task): Add detach argument.  Ignore detach argument if
6056         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
6057         field.  Copy address of completion_sem into detach argument and
6058         into the start of the data record.  Wait for detach event if task
6059         not deferred.
6060         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6061         Remove completed tasks and requeue dependent tasks.
6062         (omp_fulfill_event): New.
6063         * team.c (gomp_new_team): Initialize task_detach_queue and
6064         task_detach_count fields.
6065         (free_team): Free task_detach_queue field.
6066         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6067         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6068         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6069         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6070         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6071         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6072         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6073         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6074         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6075         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6076         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6077         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6079 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
6081         PR target/70454
6082         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6083         be added through preprocessor check on
6084         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6086 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
6088         PR libgomp/65099
6089         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6090         configurations.
6091         * configure: Regenerate.
6092         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6093         check.
6095 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6097         * configure: Re-generate.
6099 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6101         * configure: Re-generate.
6103 2021-01-05  Julian Brown  <julian@codesourcery.com>
6105         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6106         (struct ptx_device): Add omp_stacks struct.
6107         (nvptx_open_device): Initialise cached-stacks housekeeping info.
6108         (nvptx_close_device): Free cached stacks block and mutex.
6109         (nvptx_stacks_free): New function.
6110         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6111         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6112         (nvptx_stacks_alloc): Rename to...
6113         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
6114         size or smaller is required.
6115         (nvptx_stacks_free): Remove.
6116         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6117         during kernel execution.
6119 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
6121         * libgomp.texi: Bump @copying's copyright year.
6123 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
6125         * libgomp.texi (Top): Avoid bad "up" link.
6127 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
6129         * testsuite/libgomp.c/task-6.c: New test.
6131 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
6133         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6134         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6136 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
6138         * testsuite/libgomp.fortran/scan-1.f90: New test.
6140 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
6142         PR target/97865
6143         * configure: Regenerate.
6145 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
6147         * configure: Regenerate.
6149 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
6151         * testsuite/libgomp.oacc-c++/cache-1.C: New.
6152         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6154 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
6156         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6157         expected results.
6159 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
6161         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6162         (reserved): Delete unused define.
6164 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
6166         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6167         Tcl 8.5-specific behavior.
6168         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6170 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6172         * env.c (gomp_global_icv): Remove nest_var field.  Add
6173         max_active_levels_var field.
6174         (gomp_max_active_levels_var): Remove.
6175         (parse_boolean): Return true on success.
6176         (handle_omp_display_env): Express OMP_NESTED in terms of
6177         max_active_levels_var.  Change format specifier for
6178         max_active_levels_var.
6179         (initialize_env): Set max_active_levels_var from
6180         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6181         OMP_PROC_BIND.
6182         * icv.c (omp_set_nested): Express in terms of
6183         max_active_levels_var.
6184         (omp_get_nested): Likewise.
6185         (omp_set_max_active_levels): Use max_active_levels_var field instead
6186         of gomp_max_active_levels_var.
6187         (omp_get_max_active_levels): Likewise.
6188         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6189         max_active_levels_var field.
6190         (gomp_supported_active_levels): Set to UCHAR_MAX.
6191         (gomp_max_active_levels_var): Delete.
6192         * libgomp.texi (omp_get_nested): Update documentation.
6193         (omp_set_nested): Likewise.
6194         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6195         (OMP_NESTED): Likewise.
6196         (OMP_NUM_THREADS): Likewise.
6197         (OMP_PROC_BIND): Likewise.
6198         * parallel.c (gomp_resolve_num_threads): Replace reference
6199         to nest_var with max_active_levels_var.  Use max_active_levels_var
6200         field instead of gomp_max_active_levels_var.
6202 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6204         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6205         nvptx_usleep; use also for device={arch(gcn)}.
6207 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6209         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6210         (foo): Add tests for non-VLA private and firstprivate clauses on
6211         omp task.
6212         (bar): Likewise.  Remove taking of address from private/firstprivate
6213         variables.
6214         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6215         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6216         and for non-VLA private and firstprivate clauses on omp task.
6217         (bar): Removed.
6218         (main): Adjust foo caller.  Don't call bar.
6220 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6221             Thomas Schwinge  <thomas@codesourcery.com>
6223         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6224         New.
6225         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6226         Likewise.
6227         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6228         Likewise.
6229         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6230         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6232 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6233             Thomas Schwinge  <thomas@codesourcery.com>
6235         PR fortran/94358
6236         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6238 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6240         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6241         for array reductions.
6242         (main): Adjust foo callers.
6244 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6246         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6247         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6248         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6249         * allocator.c (omp_aligned_alloc): New for now static function,
6250         add alignment argument and handle it.
6251         (omp_alloc): Reimplement using omp_aligned_alloc.
6252         (GOMP_alloc, GOMP_free): New functions.
6253         (omp_free): Add ialias.
6254         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6255         * testsuite/libgomp.c++/allocate-1.C: New test.
6257 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6259         PR fortran/97782
6260         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6262 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6264         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6265         usable.
6266         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6267         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6268         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6269         (goacc_enter_data_internal): Likewise.
6270         * target.c (gomp_map_vars_internal):
6271         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6272         of gomp_attach_pointer for OpenMP cases.
6273         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6274         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6275         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6277 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6278             Kwok Cheung Yeung  <kcy@codesourcery.com>
6280         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6281         * Makefile.in: Regenerate.
6282         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6283         pragmas to ignore -Wdeprecated-declarations warnings.
6284         * icv.c: Likewise.
6285         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6286         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6287         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6288         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6289         deprecated.
6290         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6291         to test options.
6292         * testsuite/libgomp.c/affinity-1.c: Likewise.
6293         * testsuite/libgomp.c/affinity-2.c: Likewise.
6294         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6295         * testsuite/libgomp.c/lib-1.c: Likewise.
6296         * testsuite/libgomp.c/nested-1.c: Likewise.
6297         * testsuite/libgomp.c/nested-2.c: Likewise.
6298         * testsuite/libgomp.c/nested-3.c: Likewise.
6299         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6300         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6301         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6302         * testsuite/libgomp.c/pr35549.c: Likewise.
6303         * testsuite/libgomp.c/pr42942.c: Likewise.
6304         * testsuite/libgomp.c/pr61200.c: Likewise.
6305         * testsuite/libgomp.c/sort-1.c: Likewise.
6306         * testsuite/libgomp.c/target-5.c: Likewise.
6307         * testsuite/libgomp.c/target-6.c: Likewise.
6308         * testsuite/libgomp.c/teams-1.c: Likewise.
6309         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6310         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6311         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6312         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6313         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6314         * testsuite/libgomp.fortran/lib2.f: Likewise.
6315         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6316         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6318 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6320         PR target/85486
6321         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6322         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6323         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6325 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6327         PR testsuite/80219
6328         PR testsuite/85303
6329         * testsuite/lib/libgomp.exp (libgomp_init): Set
6330         'gcc_warning_prefix', 'gcc_error_prefix'.
6332 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6334         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6335         even in field_tgt_clear initializer.
6337 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6339         * testsuite/libgomp.c/target-42.c: New test.
6341 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6342             Tom de Vries  <tdevries@suse.de>
6344         PR testsuite/81690
6345         * testsuite/libgomp.c/usleep.h: New file.
6346         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6347         (main): Use tgt_usleep instead of usleep.
6348         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6349         (main): Use tgt_usleep instead of usleep.
6351 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6353         PR lto/96680
6354         * testsuite/libgomp.c/declare-variant-1.c: New test.
6356 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6358         * testsuite/libgomp.c/target-41.c: New test.
6360 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6362         * icv.c (omp_get_initial_device): Remove including corresponding
6363         ialias.
6364         * icv-device.c (omp_get_initial_device): New function.  Return
6365         gomp_get_num_devices ().  Add ialias.
6366         * target.c (resolve_device): Don't fail with
6367         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6368         gomp_get_num_devices ().
6369         (omp_target_alloc, omp_target_free, omp_target_is_present,
6370         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6371         omp_target_disassociate_ptr, omp_pause_resource): Use
6372         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6373         first use in the functions, in uses dominated by the
6374         gomp_get_num_devices call use num_devices_openmp instead.
6375         * libgomp.texi (omp_get_initial_device): Document.
6376         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6377         Add ialias.
6378         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6379         * testsuite/libgomp.c/target-40.c: New test.
6381 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6383         * env.c (parse_target_offload): Change new_offload var type to int,
6384         preinitialize to -1, remove found var and test new_offload != -1
6385         instead of found.
6387 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6389         * target.c (gomp_target_init): Inside of the function, use automatic
6390         variables corresponding to num_devices, num_devices_openmp and devices
6391         global variables and update the globals only at the end of the
6392         function.
6394 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6396         * env.c (gomp_target_offload_var): New.
6397         (parse_target_offload): New.
6398         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6399         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6400         * libgomp.h (gomp_target_offload_t): New.
6401         (gomp_target_offload_var): New.
6402         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6403         * target.c (resolve_device): Generate error if device not found and
6404         offloading is mandatory.
6405         (gomp_target_fallback): Generate error if offloading is mandatory.
6406         (GOMP_target): Add argument in call to gomp_target_fallback.
6407         (GOMP_target_ext): Likewise.
6408         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6409         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6410         (GOMP_target_data_ext): Likewise.
6411         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6412         (gomp_target_init): Return early if offloading is disabled.
6414 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6416         * libgomp.texi (omp_get_max_active_levels): Modify description.
6417         (omp_get_supported_active_levels): Make descriptions consistent.
6419 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6421         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6423 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6425         * env.c (gomp_max_active_levels_var): Initialize to
6426         gomp_supported_active_levels.
6427         (initialize_env): Limit gomp_max_active_levels_var to be at most
6428         equal to gomp_supported_active_levels.
6429         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6430         (omp_get_supported_active_levels_): New.
6431         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6432         to at most equal to gomp_supported_active_levels.
6433         (omp_get_supported_active_levels): New.
6434         * libgomp.h (gomp_supported_active_levels): New.
6435         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6436         omp_get_supported_active_levels_.
6437         * libgomp.texi (omp_get_supported_active_levels): New.
6438         (omp_set_max_active_levels): Update.  Add reference to
6439         omp_get_supported_active_levels.
6440         * omp.h.in (omp_get_supported_active_levels): New.
6441         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6442         * omp_lib.h.in (omp_get_supported_active_levels): New.
6443         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6444         against omp_get_supported_active_levels.
6445         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6447 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6449         * config/t-aix: Delete and recreate libgomp before creating
6450         FAT library.
6452 2020-10-08  Tom de Vries  <tdevries@suse.de>
6454         PR libgomp/81802
6455         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6456         dimensions.
6458 2020-10-06  Tom de Vries  <tdevries@suse.de>
6460         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6462 2020-10-06  Tom de Vries  <tdevries@suse.de>
6464         PR middle-end/90861
6465         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6467 2020-10-05  Tom de Vries  <tdevries@suse.de>
6469         PR fortran/95654
6470         * testsuite/libgomp.fortran/pr95654.f90: New test.
6472 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6474         * Makefile.in: Regenerate with automake 1.15.1.
6475         * aclocal.m4: Likewise.
6476         * configure: Likewise.
6477         * testsuite/Makefile.in: Likewise.
6479 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6481         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6482         and amdgcn targets.
6484 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6486         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6488 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6490         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6491         total number of threads is one.
6492         (gomp_team_barrier_wake): Likewise.
6493         (gomp_team_barrier_wait_end): Likewise.
6494         (gomp_team_barrier_wait_cancel_end): Likewise.
6495         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6496         (gomp_team_barrier_wake): Likewise.
6497         (gomp_team_barrier_wait_end): Likewise.
6498         (gomp_team_barrier_wait_cancel_end): Likewise.
6499         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6501 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6503         PR middle-end/96390
6504         * testsuite/libgomp.c++/pr96390.C: New test.
6505         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6507 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6509         * config/t-aix: Use $(AR) without -X32_64.
6511 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6513         * testsuite/libgomp.c/loop-25.c: New test.
6515 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6517         PR fortran/95654
6518         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6520 2020-09-22  Tom de Vries  <tdevries@suse.de>
6522         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6523         fails.
6525 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6527         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6529 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6531         PR fortran/96668
6532         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6534 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6536         PR fortran/96668
6537         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6538         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6539         (gomp_map_vars_existing): Update call to it.
6540         (gomp_map_fields_existing): Likewise
6541         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6542         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6543         remapped.
6544         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6545         GOMP_MAP_POINTER.
6546         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6547         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6549 2020-09-14  Tom de Vries  <tdevries@suse.de>
6551         * config/nvptx/atomic.c: New file.  Add
6552         __sync_val_compare_and_swap_16.
6553         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6554         target offload_target_nvptx.
6556 2020-09-08  Julian Brown  <julian@codesourcery.com>
6558         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6559         iteration-ordering assumptions.
6561 2020-09-08  Julian Brown  <julian@codesourcery.com>
6563         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6564         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6566 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
6568         * plugin/plugin-nvptx.c (nvptx_free):
6569         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6570         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6571         comments.
6573 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
6575         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6577 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6579         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6581 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
6583         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6584         * testsuite/libgomp.c/loop-23.c (main): Likewise.
6585         * testsuite/libgomp.c/loop-24.c: New test.
6587 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
6588             Tobias Burnus  <tobias@codesourcery.com>
6590         PR fortran/93553
6591         * testsuite/libgomp.fortran/pr93553.f90: New test.
6593 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6595         * testsuite/libgomp.c/loop-22.c: New test.
6596         * testsuite/libgomp.c/loop-23.c: New test.
6598 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6600         PR middle-end/96459
6601         * testsuite/libgomp.c/teams-3.c: New test.
6602         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6603         if not defined yet.
6604         (N(test)): Use it before all N(f*) calls.
6605         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6606         (main): Don't call all test_* functions from within
6607         #pragma omp teams reduction(|:err), call them directly.
6609 2020-08-04  Tom de Vries  <tdevries@suse.de>
6611         PR target/96428
6612         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6613         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6615 2020-08-03  Julian Brown  <julian@codesourcery.com>
6616             Thomas Schwinge  <thomas@codesourcery.com>
6618         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6619         shared-memory devices.  Extend with further checking.
6621 2020-08-03  Martin Jambor  <mjambor@suse.cz>
6623         * plugin/Makefrag.am: Remove configuration of HSA plugin.
6624         * aclocal.m4: Regenerated.
6625         * Makefile.in: Regenerated.
6626         * config.h.in: Regenerated.
6627         * configure: Regenerated.
6628         * plugin/configfrag.ac: Likewise.
6629         * plugin/hsa_ext_finalize.h: Removed.
6630         * plugin/plugin-hsa.c: Likewise.
6631         * testsuite/Makefile.in: Regenerated.
6632         * testsuite/lib/libgomp.exp
6633         (offload_target_to_openacc_device_type): Remove hsa case.
6634         (check_effective_target_hsa_offloading_selected_nocache): Removed
6635         (check_effective_target_hsa_offloading_selected): Likewise.
6636         (libgomp_init): Do not add -Wno-hsa to additional_flags.
6637         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6638         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6639         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6640         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6641         * testsuite/libgomp.hsa.c/c.exp: Likewise.
6642         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6643         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6644         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6645         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6646         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6647         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6648         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6649         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6650         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6651         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6652         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6653         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6654         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6655         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6656         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6657         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6658         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6659         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6660         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6662 2020-07-27  Julian Brown  <julian@codesourcery.com>
6663             Thomas Schwinge  <thomas@codesourcery.com>
6665         * libgomp.h (struct target_var_desc): Rename do_detach field to
6666         is_attach.
6667         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
6668         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6669         (goacc_enter_data_internal): Don't affect reference counts
6670         for attach mappings.
6671         (goacc_exit_data_internal): Don't affect reference counts for detach
6672         mappings.
6673         * target.c (gomp_map_vars_existing): Don't affect reference counts for
6674         attach mappings.
6675         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6676         mark attach mappings.
6677         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6678         reference count for attach mappings.
6679         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6680         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6681         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6682         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6683         test as shouldfail.
6684         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6685         gracefully in no-finalize mode.
6686         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6688 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
6690         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6691         use.
6692         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6693         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6695 2020-07-23  Julian Brown  <julian@codesourcery.com>
6696             Thomas Schwinge  <thomas@codesourcery.com>
6698         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6699         finalization for detach operation.
6700         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6701         New test.
6703 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
6705         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6706         * libgomp_f.h.in (omp_check_defines): Check whether
6707         sizeof of determined Fortran kind and C typedef match.
6708         * omp_lib.f90.in: Add omp_depened_kind.
6709         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6710         * configure: Regenerate.
6711         * Makefile.in: Regenerate.
6712         * testsuite/Makefile.in: Regenerate.
6714 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6716         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6717         gcc/testsuite/c-c++-common/gomp/.
6718         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6719         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6720         from gcc/testsuite/gfortran.dg/gomp/.
6721         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6723 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6725         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6726         * omp_lib.h.in: Likewise.
6728 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
6730         PR target/95620
6731         * testsuite/libgomp.c/pr95620.c: New test.
6733 2020-07-16  Julian Brown  <julian@codesourcery.com>
6734             Thomas Schwinge  <thomas@codesourcery.com>
6736         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6737         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6739 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6741         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6742         avoid conversion on 32bit systems from 32bit to 64bit due
6743         to -fdefault-integer-8.
6745 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6747         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6748         variables; add character(kind=4) tests; update TODO comment.
6750 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6752         * allocator.c: Add ialias for omp_init_allocator and
6753         omp_destroy_allocator.
6754         * configure.ac: Set INTPTR_T_KIND.
6755         * configure: Regenerate.
6756         * Makefile.in: Regenerate.
6757         * testsuite/Makefile.in: Regenerate.
6758         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6759         omp_set_default_allocator_, omp_get_default_allocator_): New
6760         functions and ialias_redirect.
6761         * icv.c: Add ialias for omp_set_default_allocator and
6762         omp_get_default_allocator.
6763         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6764         omp_destroy_allocator_, omp_set_default_allocator_ and
6765         omp_get_default_allocator_.
6766         * omp_lib.f90.in: Add allocator traits parameters, declare
6767         allocator routines and add related kind parameters.
6768         * omp_lib.h.in: Likewise.
6769         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6770         * testsuite/libgomp.fortran/alloc-1.F90: New test.
6771         * testsuite/libgomp.fortran/alloc-2.F90: New test.
6772         * testsuite/libgomp.fortran/alloc-3.F: New test.
6773         * testsuite/libgomp.fortran/alloc-4.f90: New test.
6774         * testsuite/libgomp.fortran/alloc-5.f90: New test.
6776 2020-07-14  Tom de Vries  <tom@codesourcery.com>
6777             Cesar Philippidis  <cesar@codesourcery.com>
6778             Thomas Schwinge  <thomas@codesourcery.com>
6779             Kwok Cheung Yeung  <kcy@codesourcery.com>
6781         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6782         New variable.
6783         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
6784         acc_init_state to initializing at the start, and to initialized at the
6785         end.
6786         (self_initializing_p): New function.
6787         (acc_get_device_type): Return acc_device_none if called by thread that
6788         is currently executing acc_init_1.
6789         * libgomp.texi (acc_get_device_type): Update documentation.
6790         (Implementation Status and Implementation-Defined Behavior): Likewise.
6791         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6793 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
6795         * config/t-aix: Set BITS from compiler cpp macro.
6797 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6799         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6801 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6803         PR fortran/67311
6804         * testsuite/libgomp.fortran/target-map-1.f90: New test.
6806 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
6808         * testsuite/libgomp.c/loop-21.c: New test.
6810 2020-07-13  Julian Brown  <julian@codesourcery.com>
6811             Thomas Schwinge  <thomas@codesourcery.com>
6813         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6815 2020-07-10  Julian Brown  <julian@codesourcery.com>
6816             Thomas Schwinge  <thomas@codesourcery.com>
6818         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6819         dynamic_refcount.
6820         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6821         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6822         dynamic_refcount.
6823         (acc_unmap_data): Update comment.
6824         (goacc_map_var_existing, goacc_enter_datum): Adjust for
6825         dynamic_refcount semantics.
6826         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6827         Adjust for dynamic_refcount semantics.
6828         (goacc_enter_data_internal): Implement "present" case of dynamic
6829         memory-map handling here.  Update "non-present" case for
6830         dynamic_refcount semantics.
6831         (goacc_exit_data_internal): Use goacc_exit_datum_1.
6832         * target.c (gomp_map_vars_internal): Remove
6833         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
6834         handling.
6835         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6836         (gomp_load_image_to_device): Substitute dynamic_refcount for
6837         virtual_refcount.
6838         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6839         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6840         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6841         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6842         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6843         trace output.
6844         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6845         trace output.
6846         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6847         test.
6848         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6849         Remove stale comment.
6850         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6851         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6852         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6853         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6854         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6855         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6857 2020-07-10  Julian Brown  <julian@codesourcery.com>
6858             Thomas Schwinge  <thomas@codesourcery.com>
6860         * oacc-mem.c (goacc_map_var_existing): New function.
6861         (goacc_enter_datum): Use above function.
6862         (goacc_exit_datum_1): New function.
6863         (goacc_exit_datum): Use above function.
6865 2020-07-09  Julian Brown  <julian@codesourcery.com>
6866             Thomas Schwinge  <thomas@codesourcery.com>
6868         PR middle-end/95270
6869         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6870         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6872 2020-07-09  Julian Brown  <julian@codesourcery.com>
6874         * oacc-mem.c (find_group_last): Group data-movement clauses
6875         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6876         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
6878 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6880         * testsuite/libgomp.c/loop-19.c: New test.
6881         * testsuite/libgomp.c/loop-20.c: New test.
6883 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6885         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6886         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
6887         it.  Remove __omp_alloctrait_value_max__.
6888         * allocator.c (omp_init_allocator): Handle omp_atv_default for
6889         omp_atk_alignment and omp_atk_pool_size.
6891 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6893         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6894         behavior for 'GOMP_MAP_FORCE_FROM'.
6895         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6897 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6899         * oacc-mem.c (goacc_exit_data_internal): Remove
6900         'GOMP_MAP_ALWAYS_FROM' handling.
6902 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6904         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6905         'scan-assembler' with 'scan-offload-rtl'.
6906         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6907         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6908         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6909         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6911 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6913         * target.c (gomp_map_vars_existing): Assert 'kind !=
6914         GOMP_MAP_ATTACH'.
6915         (gomp_map_vars_internal): Clean up.
6917 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
6919         * testsuite/libgomp.c/loop-17.c: New test.
6920         * testsuite/libgomp.c/loop-18.c: New test.
6922 2020-06-26  Marek Polacek  <polacek@redhat.com>
6924         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6926 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
6928         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6929         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6931 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
6933         * Makefile.am: Use -include.
6934         * Makefile.in: Regenerate.
6936 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
6938         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6939         * Makefile.in: Regenerate
6940         * configure.ac (tmake_file): Substitute.
6941         * configure: Regenerate.
6942         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6943         * config/t-aix: New file.
6945 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
6947         PR lto/94848
6948         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6949         'dg-do run'.
6951 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
6953         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6954         variant for HSA_RUNTIME_LIB name.
6955         (find_executable_symbol_1): Delete.
6956         (find_executable_symbol): Delete.
6957         (init_kernel_properties): Add ".kd" suffix to symbol names.
6958         (find_load_offset): Delete.
6959         (create_and_finalize_hsa_program): Remove relocation handling.
6961 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
6963         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6965 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
6967         PR lto/94848
6968         PR middle-end/95551
6969         * testsuite/libgomp.fortran/target-var.f90: New test.
6971 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6972             Julian Brown  <julian@codesourcery.com>
6974         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6975         special handling.
6977 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6978             Julian Brown  <julian@codesourcery.com>
6980         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6981         Simplify.
6983 2020-06-05  Julian Brown  <julian@codesourcery.com>
6985         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6986         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6988 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6990         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6991         Evaluate 'copyfrom' individually for each entry.
6992         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6994 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6996         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6997         Evaluate 'finalize' individually for each entry.
6998         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6999         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7000         file.
7002 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7004         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7005         usage.
7006         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7008 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7009             Julian Brown  <julian@codesourcery.com>
7011         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7012         checking.
7013         (acc_unmap_data, goacc_exit_data_internal): Restore
7014         'is_tgt_unmapped' checking.
7015         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7016         file.
7017         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7018         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7019         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7020         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7021         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7022         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7024 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7025             Julian Brown  <julian@codesourcery.com>
7027         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7029 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7031         PR libgomp/92854
7032         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7034 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7036         PR libgomp/92854
7037         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7038         more.
7040 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7041             Julian Brown  <julian@codesourcery.com>
7043         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7044         'gomp_map_vars'.
7045         (acc_map_data): Clean up accordingly.
7047 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7049         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7050         of over-eager 'finalize' clause.
7051         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7052         file.
7053         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7054         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7055         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7056         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7057         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7058         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7059         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7060         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7062 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7064         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7066 2020-06-04  Julian Brown  <julian@codesourcery.com>
7068         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7069         error path.
7070         (goacc_detach_internal): Likewise.
7072 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7074         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7075         the checkpoint.
7076         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7077         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7078         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7079         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7080         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7082 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
7084         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7085         defined.
7087 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7089         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7091 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7093         * allocator.c (omp_alloc): For size == 0, return NULL early.
7095 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
7097         PR bootstrap/95413
7098         * configure: Regenerated.
7100 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
7102         PR libfortran/95191
7103         * testsuite/libgomp.fortran/async_io_9.f90: New test.
7105 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
7107         * omp.h.in (omp_uintptr_t): New typedef.
7108         (__GOMP_UINTPTR_T_ENUM): Define.
7109         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7110         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7111         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7112         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7113         omp_get_default_allocator, omp_alloc, omp_free): Declare.
7114         * libgomp.h (struct gomp_team_state): Add def_allocator field.
7115         (gomp_def_allocator): Declare.
7116         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7117         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7118         omp_alloc and omp_free.
7119         * team.c (gomp_team_start): Copy over ts.def_allocator.
7120         * env.c (gomp_def_allocator): New variable.
7121         (parse_wait_policy): Adjust function comment.
7122         (parse_allocator): New function.
7123         (handle_omp_display_env): Print OMP_ALLOCATOR.
7124         (initialize_env): Call parse_allocator.
7125         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7126         * allocator.c: New file.
7127         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7128         functions.
7129         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7130         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7131         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7132         * Makefile.in: Regenerated.
7134 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7136         PR bootstrap/95147
7137         * configure: Regenerated.
7139 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
7141         PR libfortran/95119
7142         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7144 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7146         * configure: Regenerated.
7148 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
7150         * testsuite/libgomp.c-c++-common/target-40.c: New test.
7152 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
7154         PR fortran/94690
7155         * testsuite/libgomp.fortran/pr66199-3.f90: New.
7156         * testsuite/libgomp.fortran/pr66199-4.f90: New.
7157         * testsuite/libgomp.fortran/pr66199-5.f90: New.
7158         * testsuite/libgomp.fortran/pr66199-6.f90: New.
7159         * testsuite/libgomp.fortran/pr66199-7.f90: New.
7160         * testsuite/libgomp.fortran/pr66199-8.f90: New.
7161         * testsuite/libgomp.fortran/pr66199-9.f90: New.
7163 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
7165         * testsuite/libgomp.c/target-39.c: New test.
7167 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7169         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7170         * openacc.f90 (acc_device_current): Likewise.
7171         * openacc.h (acc_device_current): Likewise.
7172         * openacc_lib.h (acc_device_current): Likewise.
7174         PR target/94282
7175         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7176         'dg-allow-blank-lines-in-output'.
7178         * oacc-init.c (get_openacc_name): Handle 'gcn'.
7179         * testsuite/lib/libgomp.exp
7180         (offload_target_to_openacc_device_type) [amdgcn*]: Return
7181         'radeon'.  Adjust all users.
7182         (check_effective_target_openacc_amdgcn_accel_present): Rename
7183         to...
7184         (check_effective_target_openacc_radeon_accel_present): ... this.
7185         Adjust all users.
7186         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7187         (check_effective_target_openacc_radeon_accel_selected): ... this.
7188         Adjust all users.
7190         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7191         'dg-do run'.
7193 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7195         PR other/94629
7197         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7198         hsa_iterate_agents.
7199         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7200         hsa_agent_iterate_regions.
7202 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7204         PR middle-end/94635
7205         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7206         run'.
7208 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7210         PR middle-end/94120
7211         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7212         test case.
7214 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7216         PR middle-end/94635
7217         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7219 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7221         PR libgomp/92843
7222         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7223         Rename to...
7224         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7225         ... this.
7226         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7227         Rename to...
7228         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7229         ... this.
7230         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7231         Rename to...
7232         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7233         ... this.
7234         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7235         Rename to...
7236         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7237         ... this.
7238         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7239         Rename to...
7240         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7241         ... this.
7242         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7243         Rename to...
7244         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7245         ... this.
7246         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7247         Rename to...
7248         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7249         ... this.
7250         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7251         Rename to...
7252         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7253         ... this.
7254         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7255         Rename to...
7256         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7257         ... this.
7258         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7259         Rename to...
7260         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7261         ... this.
7262         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7263         Rename to...
7264         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7265         ... this.
7266         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7267         Rename to...
7268         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7269         ... this.
7270         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7271         Rename to...
7272         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7273         ... this.
7274         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7275         Rename to...
7276         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7277         ... this.
7278         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7279         Rename to...
7280         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7281         ... this.
7282         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7283         Rename to...
7284         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7285         ... this.
7287 2020-04-10  Julian Brown  <julian@codesourcery.com>
7288             Thomas Schwinge  <thomas@codesourcery.com>
7290         PR libgomp/92843
7291         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7292         New file.
7293         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7294         Likewise.
7295         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7296         Likewise.
7297         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7298         Likewise.
7299         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7300         Likewise.
7301         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7302         Likewise.
7303         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7304         Likewise.
7305         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7306         Likewise.
7307         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7308         Likewise.
7309         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7310         Likewise.
7311         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7312         Likewise.
7313         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7314         Likewise.
7315         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7316         Likewise.
7317         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7318         Likewise.
7319         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7320         Likewise.
7321         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7322         Likewise.
7324 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7326         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7327         run'.
7329 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7331         PR middle-end/94120
7332         * libgomp.oacc-c++/declare-pr94120.C: New.
7334 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7336         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7337         files.
7338         * configure: Regenerate.
7339         * testsuite/libgomp-site-extra.exp.in: New file.
7340         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7341         variable.
7342         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7343         variable.
7344         * testsuite/Makefile.in: Regenerate.
7346 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7348         PR tree-optimization/89713
7349         PR c/94392
7350         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7351         'bar.sync'.
7352         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7354 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
7356         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7357         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7359 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
7361         PR libgomp/81689
7362         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7364 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
7366         PR libgomp/94251
7367         * target.c (gomp_load_image_to_device): Fix link
7368         variable handling.
7370 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7372         PR c++/93931
7373         * testsuite/libgomp.c++/pr93931.C: New test.
7375 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7377         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7378         dg-allow-blank-lines-in-output.
7380 2020-03-18  Julian Brown <julian@codesourcery.com>
7381             Tobias Burnus  <tobias@codesourcery.com>
7383         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7384         it work concurrently.
7386 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7388         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7389         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7390         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7392 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7394         PR middle-end/93566
7395         * testsuite/libgomp.c/pr93566.c: New test.
7397 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7399         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7400         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7401         integer(acc_device_property) for the type of the return value of
7402         acc_get_property.
7404 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7406         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7407         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7408         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7409         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7410         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7411         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7412         corrections; add note about the previous interface and named constant.
7413         (OpenACC library and environment variables): Fix two typos.
7414         * openacc.f90: Use for all procedures the argument names from the spec
7415         as for â€¦_h they are user visible.
7416         (openacc_kinds): Rename acc_device_property to
7417         acc_device_property_kinds and change value to int32 ; and update users.
7418         Re-add acc_device_property for for backward compatibility.
7419         (acc_get_property_string_h): Clean up as acc_device_property_kind
7420         changed.
7421         (acc_get_property_h): Likewise and return c_size_t instead of
7422         acc_device_property.
7423         (openacc): Also export acc_device_property_kinds.
7424         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7425         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7426         handling; check against /= 0 instead of == 1 to match C.
7427         * openacc_lib.h: Use for all procedures the argument names from the spec
7428         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7429         be active also for fixed-form souce form.
7430         (acc_device_current, acc_device_property_kind, acc_device_property,
7431         acc_property_memory, acc_property_free_memory, acc_property_name,
7432         acc_property_vendor, acc_property_driver): New named constants.
7433         (acc_get_property, acc_get_property_string): New generic interface.
7435 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7437         PR libgomp/93481
7438         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7439         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7440         optional.
7441         (gomp_target_task_fn): Assert "devicep->async_run_func".
7442         (clear_unsupported_flags): New function to remove unsupported flags
7443         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7444         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7445         * testsuite/libgomp.c/target-33.c:
7446         Remove xfail for offload_target_nvptx.
7447         * testsuite/libgomp.c/target-34.c: Likewise.
7449 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7451         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7452         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7453         * testsuite/libgomp.c/target-34.c: Likewise.
7454         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7455         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7457 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7459         * testsuite/libgomp.c/target-38.c: New test.
7461 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7463         PR libgomp/93515
7464         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7466 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7468         * testsuite/lib/libgomp.exp
7469         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7470         and not as 'source' argument to libgomp_target_compile.
7472 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7474         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7475         (gcn_gfx801_s): Remove.
7476         (isa_hsa_name): Remove gfx801.
7477         (isa_gcc_name): Remove gfx801/carizzo.
7478         (isa_code): Remove gfx801.
7480 2020-02-03  Julian Brown  <julian@codesourcery.com>
7481             Tobias Burnus  <tobias@codesourcery.com>
7483         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7484         and *_finalize variants; document acc_attach and acc_detach; update
7485         references from OpenACC 2.0 to 2.6.
7486         * openacc.f90 (openacc_version): Update to 201711.
7487         * openacc_lib.h (openacc_version): Update to 201711.
7488         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7489         openacc_version to 201711.
7490         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7492 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7494         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7495         and vgpr_count fields.
7496         (struct kernel_info): Add a field for a hsa_kernel_description.
7497         (run_kernel): Reduce the number of threads/workers if the requested
7498         number would require too many VGPRs.
7499         (init_basic_kernel_info): Initialize description field with
7500         the hsa_kernel_description entry for the kernel.
7502 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7504         PR bootstrap/93409
7505         * plugin/configfrag.ac (enable_offload_targets): Skip
7506         HSA and GCN plugin besides -m32 also for -mx32.
7507         * configure: Regenerate.
7509 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7511         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7513 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7515         * plugin-gcn.c (struct agent_info): Add fields "name" and
7516         "vendor_name" ...
7517         (GOMP_OFFLOAD_init_device): ... and init from here.
7518         (struct hsa_context_info): Add field "driver_version_s" ...
7519         (init_hsa_contest): ... and init from here.
7520         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7521         implementation.
7522         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7523         Enable test execution for amdgcn and host offloading targets.
7524         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7525         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7526         (expect_device_properties): Split function into ...
7527         (expect_device_string_properties): ... this new function ...
7528         (expect_device_memory): ... and this new function.
7529         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7530         Add test.
7532 2020-01-28  Julian Brown  <julian@codesourcery.com>
7534         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7535         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7536         component/non-component variable refs in a single directive.
7537         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7539 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7541         * configure.ac: Handle `--with-toolexeclibdir='.
7542         * Makefile.in: Regenerate.
7543         * aclocal.m4: Regenerate.
7544         * configure: Regenerate.
7545         * testsuite/Makefile.in: Regenerate.
7547 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7549         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7550         (expect_device_properties): Remove "expected_free_mem" argument,
7551         change "expected_total_mem" argument type to size_t;
7552         change types of acc_get_property results to size_t,
7553         adapt format strings.
7554         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7555         Use %zu instead of %zd to print size_t values.
7556         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7557         rename to ...
7558         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7559         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7560         rename to ...
7561         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7563 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
7565         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7566         the device id.
7568 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
7570         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7571         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7572         Adjust test dimensions for amdgcn.
7573         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7574         gang/worker/vector expectations dynamically.
7575         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7576         (main): Likewise.
7577         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7578         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7579         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7580         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7581         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7582         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7583         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7584         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7585         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7586         (acc_gang): Recognise acc_device_radeon.
7587         (acc_worker): Likewise.
7588         (acc_vector): Likewise.
7589         (main): Set expectations for amdgcn.
7590         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7591         (main): Adjust gang/worker/vector expectations dynamically.
7592         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7593         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7594         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7595         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7596         for amdgcn.
7598 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
7600         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7601         acc_device_radeon.
7602         (openacc): Likewise.
7603         * openacc.f90 (openacc_kinds): Likewise.
7604         (openacc): Likewise.
7605         * openacc.h (acc_device_t): Likewise.
7606         * openacc_lib.h: Likewise.
7607         * testsuite/lib/libgomp.exp
7608         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7609         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7610         (cb_compute_construct_end): Likewise.
7611         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7612         (cb_enqueue_launch_start): Likewise.
7613         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7614         (cb_enter_data_end): Likewise.
7615         (cb_exit_data_start): Likewise.
7616         (cb_exit_data_end): Likewise.
7617         (cb_compute_construct_end): Likewise.
7618         (cb_enqueue_launch_start): Likewise.
7619         (cb_enqueue_launch_end): Likewise.
7620         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7621         (main): Likewise.
7623 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7625         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
7626         to use this instead of 'enum gomp_device_property'.
7627         (GOMP_OFFLOAD_get_property): Rename to...
7628         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
7629         * libgomp.h (struct gomp_device_descr): Move
7630         'GOMP_OFFLOAD_openacc_get_property'...
7631         (struct acc_dispatch_t): ... here.  Adjust all users.
7632         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7634         * target.c (gomp_map_vars_internal)
7635         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7636         paths.
7638 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
7640         PR libgomp/93219
7641         * libgomp.h (gomp_print_string): Change return type from void to int.
7642         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
7643         not all characters have been written.
7645 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
7647         * libgomp.texi: Fix typos, use https.
7649 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
7651         * testsuite/libgomp.fortran/optional-map.f90: Add test for
7652         unallocated/disassociated actual arguments to nonallocatable/nonpointer
7653         dummy arguments; those are/shall be regarded as absent arguments.
7654         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7655         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7657 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
7659         Update copyright years.
7661         * libgomp.texi: Bump @copying's copyright year.
7663 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
7665         PR libgomp/93065
7666         * oacc-init.c (goacc_runtime_deinitialize): New function.
7668 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
7670         PR bootstrap/93074
7671         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7672         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
7674 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
7675             Frederik Harwath  <frederik@codesourcery.com>
7676             Thomas Schwinge  <tschwinge@codesourcery.com>
7678         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7679         * libgomp-plugin.h (gomp_device_property_value): New union.
7680         (gomp_device_property_value): New prototype.
7681         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7682         constant.
7683         (acc_device_property_t): New enum.
7684         (acc_get_property, acc_get_property_string): New prototypes.
7685         * oacc-init.c (acc_get_device_type): Also assert that result
7686         is not `acc_device_current'.
7687         (get_property_any, acc_get_property, acc_get_property_string):
7688         New functions.
7689         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7690         `acc_property_memory', `acc_property_free_memory',
7691         `acc_property_name', `acc_property_vendor' and
7692         `acc_property_driver' constants.  Add `acc_device_property' data
7693         type.
7694         (openacc_internal): Add `acc_get_property' and
7695         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
7696         `acc_get_property_string_h', `acc_get_property_l' and
7697         `acc_get_property_string_l'.
7698         * oacc-host.c (host_get_property): New function.
7699         (host_dispatch): Wire it.
7700         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7701         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7702         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7703         * libgomp.texi (OpenACC Runtime Library Routines): Add
7704         `acc_get_property'.
7705         (acc_get_property): New node.
7706         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7707         function (stub).
7708         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7709         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7710         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7711         calls.
7712         (GOMP_OFFLOAD_get_property): New function.
7713         (struct ptx_device): Add new field "name".
7714         (cuda_driver_version_s): Add new static variable ...
7715         (nvptx_init): ... and init from here.
7717         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7718         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7719         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7720         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7721         with test helper functions.
7723         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7725 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
7727         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7728         variable.
7730 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
7732         * target.c (gomp_map_vars_internal): Restore 'omp declare target
7733         link' handling.
7735 2019-12-19  Julian Brown  <julian@codesourcery.com>
7737         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7738         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7739         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7741 2019-12-19  Julian Brown  <julian@codesourcery.com>
7742             Cesar Philippidis  <cesar@codesourcery.com>
7744         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7745         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7746         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7747         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7748         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7749         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7750         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7751         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7752         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7753         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7754         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7755         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7756         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7758 2019-12-19  Julian Brown  <julian@codesourcery.com>
7760         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7761         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7762         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7763         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7764         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7765         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7766         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7767         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7768         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7769         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7770         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7771         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7773 2019-12-19  Julian Brown  <julian@codesourcery.com>
7775         * libgomp.h (struct target_var_desc): Add do_detach flag.
7776         * oacc-init.c (acc_shutdown_1): Free aux block if present.
7777         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7778         struct components.  Tidy up and add some new checks.
7779         (goacc_enter_data_internal): Update call to find_group_last.
7780         (goacc_exit_data_internal): Support detach operations and
7781         GOMP_MAP_STRUCT.
7782         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7783         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
7784         attach/detach in enter/exit data detection code.
7785         * target.c (gomp_map_vars_existing): Initialise do_detach field of
7786         tgt_var_desc.
7787         (gomp_map_vars_internal): Support attach.
7788         (gomp_unmap_vars_internal): Support detach.
7790 2019-12-19  Julian Brown  <julian@codesourcery.com>
7791             Thomas Schwinge  <thomas@codesourcery.com>
7793         * libgomp.h (struct splay_tree_aux): Add attach_count field.
7794         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7795         * libgomp.map (OACC_2.6): New section. Add acc_attach,
7796         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7797         acc_detach_finalize_async.
7798         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7799         acc_detach, acc_detach_async, acc_detach_finalize,
7800         acc_detach_finalize_async): New functions.
7801         * openacc.h (acc_attach, acc_attach_async, acc_detach,
7802         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7803         prototypes.
7804         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7805         (gomp_remove_var_internal): Free attachment counts if present.
7806         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7807         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7809 2019-12-19  Julian Brown  <julian@codesourcery.com>
7810             Cesar Philippidis  <cesar@codesourcery.com>
7812         * libgomp.h (gomp_map_val): Add prototype.
7813         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7814         open-coding device-address calculation.
7815         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7816         non-present case.
7818 2019-12-19  Julian Brown  <julian@codesourcery.com>
7820         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7821         field for virtual_refcount.
7822         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7823         (gomp_free_memmap): Remove prototype.
7824         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7825         instead of calling gomp_free_memmap.
7826         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7827         dynamic_refcount.
7828         (acc_unmap_data): Open code instead of forcing target_mem_desc's
7829         to_free field to NULL then calling gomp_unmap_vars.  Handle
7830         REFCOUNT_INFINITY on target blocks.
7831         (goacc_enter_data): Rename to...
7832         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
7833         handling for mapping groups.  Use virtual_refcount instead of
7834         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7835         map_map_vars_async call.  Re-do lookup for target pointer return value.
7836         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7837         renamed goacc_enter_datum function.
7838         (goacc_exit_data): Rename to...
7839         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
7840         (acc_delete, acc_delete_async, acc_delete_finalize,
7841         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7842         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7843         goacc_exit_datum function.
7844         (gomp_acc_remove_pointer, find_pointer): Remove functions.
7845         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7846         New functions.
7847         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7848         goacc_exit_data_internal helper functions.
7849         * target.c (gomp_map_vars_internal): Handle
7850         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
7851         semantics.
7852         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7853         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7854         virtual_refcount field instead of dynamic_refcount.
7855         (gomp_free_memmap): Remove function.
7856         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7857         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7858         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7860 2019-12-19  Julian Brown  <julian@codesourcery.com>
7861             Thomas Schwinge  <thomas@codesourcery.com>
7863         * libgomp.h (struct splay_tree_aux): New.
7864         (struct splay_tree_key_s): Replace link_key field with aux pointer.
7865         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7866         to aux struct.
7867         (gomp_remove_var_internal): Free aux block if present.
7868         (gomp_load_image_to_device): Zero-initialise aux field instead of
7869         link_key field.
7870         (omp_target_associate_pointer): Zero-initialise aux field.
7872 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
7874         PR middle-end/86416
7875         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7876         q or none.
7877         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7878         L or none.
7880 2019-12-19  Julian Brown  <julian@codesourcery.com>
7881             Maciej W. Rozycki  <macro@codesourcery.com>
7882             Tobias Burnus  <tobias@codesourcery.com>
7883             Thomas Schwinge  <thomas@codesourcery.com>
7885         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7886         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7887         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7888         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7889         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7890         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7891         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7892         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7893         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7895 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
7897         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7898         called...
7899         (goacc_insert_pointer): ... from here, "present" case.
7900         (goacc_insert_pointer): Inline function into...
7901         (GOACC_enter_exit_data): ... here, and simplify.
7903         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7904         called...
7905         (goacc_insert_pointer): ... from here, "not present" case.
7907         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
7908         all users.
7910         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7911         'goacc_enter_data', 'goacc_exit_data'.
7913         * oacc-mem.c (delete_copyout): Refactor into...
7914         (goacc_exit_data): ... this.  Adjust all users.
7916         * oacc-mem.c (present_create_copy): Refactor into...
7917         (goacc_enter_data): ... this.  Adjust all users.
7919         * target.c (gomp_unmap_vars_internal): Add a safeguard to
7920         'gomp_remove_var'.
7922         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7923         like 'GOMP_MAP_FROM'.
7925         PR libgomp/92726
7926         PR libgomp/92970
7927         PR libgomp/92984
7928         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7929         fails.
7930         (GOACC_enter_exit_data): Simplify accordingly.
7931         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7932         subsuming...
7933         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7934         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7935         file.
7936         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7937         subsuming...
7938         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7939         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7940         file.
7941         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7942         subsuming...
7943         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7945         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7946         'finalize' handling.
7948         PR libgomp/92848
7949         * oacc-mem.c (acc_map_data, present_create_copy)
7950         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7951         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7952         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7953         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7954         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7955         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7956         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7957         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7958         Remove "XFAIL"s.
7960         * target.c (gomp_unmap_tgt): Make it 'static'.
7961         * libgomp.h (gomp_unmap_tgt): Remove.
7963 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
7965         PR middle-end/86416
7966         * testsuite/libgomp.c/pr86416-1.c: New.
7967         * testsuite/libgomp.c/pr86416-2.c: New.
7969 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
7971         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7972         all symbols as public except for the 'use â€¦, only' imported symbol,
7973         which is private.
7974         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7975         all symbols from module openacc_kinds as PUBLIC
7976         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7977         fix comment typo.
7978         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7980 2019-12-13  Julian Brown  <julian@codesourcery.com>
7982         PR libgomp/92881
7984         * libgomp.h (gomp_remove_var_async): Add prototype.
7985         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7986         gomp_remove_var.
7987         * target.c (gomp_unref_tgt): Change return type to bool, indicating
7988         whether target_mem_desc was unmapped.
7989         (gomp_unref_tgt_void): New.
7990         (gomp_remove_var): Reimplement in terms of...
7991         (gomp_remove_var_internal): ...this new helper function.
7992         (gomp_remove_var_async): New, implemented using above helper function.
7993         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7994         gomp_unref_tgt.
7996 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
7998         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7999         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8000         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8001         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8002         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8003         Likewise.
8004         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8005         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8007 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
8009         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8010         as public except for the 'use â€¦, only' imported symbol, which is
8011         private.
8012         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8013         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8014         attributes for acc_copyout_finalize and acc_delete_finalize.
8016 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
8018         PR fortran/92899
8019         * testsuite/libgomp.fortran/atomic1.f90: New test.
8021 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8023         PR libgomp/92843
8024         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8025         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
8026         assertions.
8027         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8028         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8029         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8030         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8031         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8033         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8034         * oacc-mem.c: ... here.
8035         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8036         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8037         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8038         Remove.
8039         * libgomp_g.h: Update.
8041         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8042         * oacc-async.c: ... here.
8043         * oacc-int.h (goacc_wait): Declare.
8044         * libgomp_g.h: Update
8046         PR libgomp/92854
8047         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8048         New file.
8049         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8050         Likewise.
8051         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8052         Likewise.
8053         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8054         Likewise.
8055         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8056         Likewise.
8057         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8058         Likewise.
8060 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8061             Julian Brown  <julian@codesourcery.com>
8063         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8064         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8066 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8068         * omp_lib.h.in: Fix spelling of function declaration
8069         omp_get_cancell(l)ation.
8070         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8071         Fix typos.
8072         * env.c: Fix comment typos.
8073         * oacc-host.c: Likewise.
8074         * ordered.c: Likewise.
8075         * task.c: Likewise.
8076         * team.c: Likewise.
8077         * config/gcn/task.c: Likewise.
8078         * config/gcn/team.c: Likewise.
8079         * config/nvptx/task.c: Likewise.
8080         * config/nvptx/team.c: Likewise.
8081         * plugin/plugin-gcn.c: Likewise.
8082         * testsuite/libgomp.fortran/jacobi.f: Likewise.
8083         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8084         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8086 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8088         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8089         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8090         unnecessary 'dg-additional-options "-w"'.
8092 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8093             Julian Brown  <julian@codesourcery.com>
8095         PR libgomp/92116
8096         PR libgomp/92877
8098         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
8099         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8100         Adjust all users.
8101         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8102         Remove XFAIL.
8103         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8104         Likewise.
8105         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8107 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8109         PR libgomp/92503
8110         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8111         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8112         file.
8113         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8114         Likewise.
8115         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8116         Likewise.
8117         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8118         Likewise.
8119         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8120         Likewise.
8121         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8122         Likewise.
8123         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8124         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8125         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8126         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8127         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8128         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8129         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8130         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8131         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8132         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8134         PR libgomp/92840
8135         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8136         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8137         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8138         New file.
8139         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8140         Likewise.
8141         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8142         Likewise.
8143         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8144         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8146         PR libgomp/92511
8147         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8148         this file...
8149         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8150         this file...
8151         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8152         file...
8153         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8154         file...
8155         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8156         ... with their content moved into, and extended in this new file.
8157         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8158         New file.
8159         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8160         Likewise.
8161         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8162         Likewise.
8163         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8164         Likewise.
8166         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8168         PR libgomp/92854
8169         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8171         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8173         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8175 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
8177         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8178         unique.
8179         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8180         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8181         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8182         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8183         Ditto.
8184         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8185         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8187 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8189         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8191 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8192             Kwok Cheung Yeung <kcy@codesourcery.com>
8194         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8195         if input it a NULL pointer.
8196         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8197         diagnostic of NULL pointer.
8198         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8199         * testsuite/libgomp.fortran/optional-map.f90: New.
8200         * testsuite/libgomp.fortran/use_device_addr-1.f90
8201         (test_dummy_opt_callee_1_absent): New.
8202         (test_dummy_opt_call_1): Call it.
8203         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8204         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8205         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8206         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8207         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8208         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8209         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8210         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8211         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8212         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8213         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8214         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8215         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8216         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8217         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8218         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8220 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8222         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8223         expect dg-output of 'Error termination.' for GCN.
8224         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8225         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8227 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8229         PR fortran/92756
8230         * testsuite/libgomp.fortran/teams1.f90: New test.
8231         * testsuite/libgomp.fortran/teams2.f90: New test.
8233 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8235         * oacc-init.c (acc_known_device_type): Add function.
8236         (unknown_device_type_error): Add function.
8237         (name_of_acc_device_t): Change to call unknown_device_type_error
8238         on unknown type.
8239         (resolve_device): Use acc_known_device_type.
8240         (acc_init): Fail if acc_device_t argument is not valid.
8241         (acc_shutdown): Likewise.
8242         (acc_get_num_devices): Likewise.
8243         (acc_set_device_type): Likewise.
8244         (acc_get_device_num): Likewise.
8245         (acc_set_device_num): Likewise.
8246         (acc_on_device): Add comment that argument validity is not checked.
8248 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8250         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8251         Recognize amdgcn.
8252         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8253         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8254         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8255         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8256         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8258 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8260         PR libgomp/91938
8261         * configure.tgt: Avoid IE tls on *-*-musl*.
8263 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8265         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8266         adding a common-block test case.
8268 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8270         PR c++/60228
8271         * testsuite/libgomp.c++/udr-20.C: New test.
8272         * testsuite/libgomp.c++/udr-21.C: New test.
8274 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8276         * testsuite/lib/libgomp.exp
8277         (check_effective_target_offload_target_nvptx): New proc.
8278         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8279         'dg-skip-if'.
8280         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8281         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8282         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8284 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8286         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8287         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8288         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8289         * testsuite/libgomp.c/private-1.c: Likewise.
8290         * testsuite/libgomp.c/task-1.c: Likewise.
8291         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8293 2019-11-20  Julian Brown  <julian@codesourcery.com>
8295         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8296         aq->mutex here.
8297         (queue_push_launch): Lock aq->mutex before calling
8298         wait_for_queue_nonfull.
8299         (queue_push_callback): Likewise.
8300         (queue_push_asyncwait): Likewise.
8301         (queue_push_placeholder): Likewise.
8303 2019-11-20  Julian Brown  <julian@codesourcery.com>
8305         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8306         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8307         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8308         return code.
8310 2019-11-20  Julian Brown  <julian@codesourcery.com>
8312         PR libgomp/92511
8314         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8315         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8316         in non-present/create case.
8317         (delete_copyout): Change error condition to fail only on copies outside
8318         of mapped block.  Adjust error message accordingly.
8319         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8320         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8321         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8322         message.
8323         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8324         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8325         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8327 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8329         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8330         libatomic in build-tree testing.
8332 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8334         * testsuite/Makefile.in: Regenerate.
8336 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8338         * testsuite/libgomp.c/target-print-1.c: New file.
8339         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8340         * testsuite/libgomp.oacc-c/print-1.c: New file.
8341         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8343 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8344             Kwok Cheung Yeung  <kcy@codesourcery.com>
8345             Julian Brown  <julian@codesourcery.com>
8346             Tom de Vries  <tom@codesourcery.com>
8348         * plugin/Makefrag.am: Add amdgcn plugin support.
8349         * plugin/configfrag.ac: Likewise.
8350         * plugin/plugin-gcn.c: New file.
8351         * configure: Regenerate.
8352         * Makefile.in: Regenerate.
8353         * testsuite/Makefile.in: Regenerate.
8355 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8357         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8358         and use team_malloc variants.
8359         (gomp_gcn_exit_kernel): Use team_free.
8360         * libgomp.h (TEAM_ARENA_SIZE): Define.
8361         (TEAM_ARENA_START): Define.
8362         (TEAM_ARENA_FREE): Define.
8363         (TEAM_ARENA_END): Define.
8364         (team_malloc): New function.
8365         (team_malloc_cleared): New function.
8366         (team_free): New function.
8367         * team.c (gomp_new_team): Initialize and use team_malloc.
8368         (free_team): Use team_free.
8369         (gomp_free_thread): Use team_free.
8370         (gomp_pause_host): Use team_free.
8371         * work.c (gomp_init_work_share): Use team_malloc.
8372         (gomp_fini_work_share): Use team_free.
8374 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8375             Kwok Cheung Yeung  <kcy@codesourcery.com>
8376             Julian Brown  <julian@codesourcery.com>
8377             Tom de Vries  <tom@codesourcery.com>
8379         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8380         * Makefile.in: Regenerate.
8381         * config.h.in (PLUGIN_GCN): Add new undef.
8382         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8383         * config/gcn/affinity-fmt.c: New file.
8384         * config/gcn/bar.c: New file.
8385         * config/gcn/bar.h: New file.
8386         * config/gcn/doacross.h: New file.
8387         * config/gcn/icv-device.c: New file.
8388         * config/gcn/oacc-target.c: New file.
8389         * config/gcn/simple-bar.h: New file.
8390         * config/gcn/target.c: New file.
8391         * config/gcn/task.c: New file.
8392         * config/gcn/team.c: New file.
8393         * config/gcn/time.c: New file.
8394         * configure.ac: Add amdgcn*-*-*.
8395         * configure: Regenerate.
8396         * configure.tgt: Add amdgcn*-*-*.
8397         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8398         * libgomp.h (gcn_thrs): Add amdgcn variant.
8399         (set_gcn_thrs): Likewise.
8400         (gomp_thread): Likewise.
8401         * oacc-int.h (goacc_thread): Likewise.
8402         * oacc-target.c: New file.
8403         * openacc.f90 (acc_device_gcn): New parameter.
8404         * openacc.h (acc_device_t): Add acc_device_gcn.
8405         * team.c (gomp_free_pool_helper): Add amdgcn support.
8407 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8408             Julian Brown  <julian@codesourcery.com>
8410         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8411         parameter.
8412         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8413         queue constructor.
8414         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8415         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8416         device parameter.
8418 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8420         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8421         * config/nvptx/libgomp-plugin.c: Move ...
8422         * config/accel/libgomp-plugin.c: ... to here.
8423         * config/nvptx/lock.c: Move ...
8424         * config/accel/lock.c: ... to here.
8425         * config/nvptx/mutex.c: Move ...
8426         * config/accel/mutex.c: ... to here.
8427         * config/nvptx/mutex.h: Move ...
8428         * config/accel/mutex.h: ... to here.
8429         * config/nvptx/oacc-async.c: Move ...
8430         * config/accel/oacc-async.c: ... to here.
8431         * config/nvptx/oacc-cuda.c: Move ...
8432         * config/accel/oacc-cuda.c: ... to here.
8433         * config/nvptx/oacc-host.c: Move ...
8434         * config/accel/oacc-host.c: ... to here.
8435         * config/nvptx/oacc-init.c: Move ...
8436         * config/accel/oacc-init.c: ... to here.
8437         * config/nvptx/oacc-mem.c: Move ...
8438         * config/accel/oacc-mem.c: ... to here.
8439         * config/nvptx/oacc-plugin.c: Move ...
8440         * config/accel/oacc-plugin.c: ... to here.
8441         * config/nvptx/omp-lock.h: Move ...
8442         * config/accel/omp-lock.h: ... to here.
8443         * config/nvptx/openacc.f90: Move ...
8444         * config/accel/openacc.f90: ... to here.
8445         * config/nvptx/pool.h: Move ...
8446         * config/accel/pool.h: ... to here.
8447         * config/nvptx/proc.c: Move ...
8448         * config/accel/proc.c: ... to here.
8449         * config/nvptx/ptrlock.c: Move ...
8450         * config/accel/ptrlock.c: ... to here.
8451         * config/nvptx/ptrlock.h: Move ...
8452         * config/accel/ptrlock.h: ... to here.
8453         * config/nvptx/sem.c: Move ...
8454         * config/accel/sem.c: ... to here.
8455         * config/nvptx/sem.h: Move ...
8456         * config/accel/sem.h: ... to here.
8457         * config/nvptx/thread-stacksize.h: Move ...
8458         * config/accel/thread-stacksize.h: ... to here.
8460 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8461             Tobias Burnus  <tobias@codesourcery.com>
8462             Frederik Harwath  <frederik@codesourcery.com>
8463             Thomas Schwinge  <thomas@codesourcery.com>
8465         libgomp/
8466         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8467         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8468         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8470 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8471             Kwok Cheung Yeung  <kcy@codesourcery.com>
8473         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8474         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8476 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8478         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8480         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8481         run'.
8482         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8483         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8485 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8487         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8488         Add expected warnings about missing reduction clauses.
8489         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8490         Likewise.
8491         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8492         Likewise.
8493         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8494         Likewise.
8496 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8498         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8499         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8500         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8501         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8502         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8503         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8505 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8507         PR fortran/92305
8508         * testsuite/libgomp.fortran/allocatable2.f90: Use
8509         unique numbers with 'stop'.
8510         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8511         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8512         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8513         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8514         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8516 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8518         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8519         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8520         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8521         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8522         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8523         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8525 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8527         * testsuite/libgomp.fortran/target9.f90: New.
8529 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8531         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8532         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8533         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8534         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8535         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8536         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8537         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8538         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8539         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8540         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8541         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8542         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8543         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8544         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8545         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8546         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8547         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8548         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8549         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8550         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8551         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8552         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8553         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8554         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8555         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8556         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8557         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8558         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8559         * testsuite/libgomp.fortran/character1.f90: Ditto.
8560         * testsuite/libgomp.fortran/character2.f90: Ditto.
8561         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8562         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8563         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8564         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8565         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8566         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8567         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8568         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8569         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8570         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8571         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8572         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8573         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8574         * testsuite/libgomp.fortran/do1.f90: Ditto.
8575         * testsuite/libgomp.fortran/do2.f90: Ditto.
8576         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8577         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8578         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8579         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8580         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8581         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8582         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8583         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8584         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8585         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8586         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8587         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8588         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8589         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8590         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8591         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8592         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8593         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8594         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8595         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8596         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8597         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8598         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8599         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8600         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8601         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8602         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8603         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8604         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8605         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8606         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8607         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8608         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8609         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8610         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8611         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8612         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8613         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8614         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8615         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8616         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8617         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8618         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8619         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8620         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8621         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8622         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8623         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8624         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8625         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8626         * testsuite/libgomp.fortran/lib1.f90: Ditto.
8627         * testsuite/libgomp.fortran/lib4.f90: Ditto.
8628         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8629         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8630         * testsuite/libgomp.fortran/nested1.f90: Ditto.
8631         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8632         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8633         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8634         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8635         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8636         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8637         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8638         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8639         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8640         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8641         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8642         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8643         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8644         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8645         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8646         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8647         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8648         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8649         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8650         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8651         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8652         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8653         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8654         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8655         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8656         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8657         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8658         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8659         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8660         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8661         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8662         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8663         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8664         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8665         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8666         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8667         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8668         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8669         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8670         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8671         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8672         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8673         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8674         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8675         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8676         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8677         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8678         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8679         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8680         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8681         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8682         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8683         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8684         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8685         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8686         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8687         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8688         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8689         * testsuite/libgomp.fortran/reference1.f90: Ditto.
8690         * testsuite/libgomp.fortran/reference2.f90: Ditto.
8691         * testsuite/libgomp.fortran/retval1.f90: Ditto.
8692         * testsuite/libgomp.fortran/retval2.f90: Ditto.
8693         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8694         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8695         * testsuite/libgomp.fortran/simd1.f90: Ditto.
8696         * testsuite/libgomp.fortran/simd2.f90: Ditto.
8697         * testsuite/libgomp.fortran/simd3.f90: Ditto.
8698         * testsuite/libgomp.fortran/simd4.f90: Ditto.
8699         * testsuite/libgomp.fortran/simd5.f90: Ditto.
8700         * testsuite/libgomp.fortran/simd6.f90: Ditto.
8701         * testsuite/libgomp.fortran/simd7.f90: Ditto.
8702         * testsuite/libgomp.fortran/stack.f90: Ditto.
8703         * testsuite/libgomp.fortran/strassen.f90: Ditto.
8704         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8705         * testsuite/libgomp.fortran/tabs2.f: Ditto.
8706         * testsuite/libgomp.fortran/target1.f90: Ditto.
8707         * testsuite/libgomp.fortran/target2.f90: Ditto.
8708         * testsuite/libgomp.fortran/target3.f90: Ditto.
8709         * testsuite/libgomp.fortran/target4.f90: Ditto.
8710         * testsuite/libgomp.fortran/target5.f90: Ditto.
8711         * testsuite/libgomp.fortran/target6.f90: Ditto.
8712         * testsuite/libgomp.fortran/target7.f90: Ditto.
8713         * testsuite/libgomp.fortran/target8.f90: Ditto.
8714         * testsuite/libgomp.fortran/task1.f90: Ditto.
8715         * testsuite/libgomp.fortran/task2.f90: Ditto.
8716         * testsuite/libgomp.fortran/task3.f90: Ditto.
8717         * testsuite/libgomp.fortran/task4.f90: Ditto.
8718         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8719         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8720         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8721         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8722         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8723         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8724         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8725         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8726         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8727         * testsuite/libgomp.fortran/udr1.f90: Ditto.
8728         * testsuite/libgomp.fortran/udr10.f90: Ditto.
8729         * testsuite/libgomp.fortran/udr11.f90: Ditto.
8730         * testsuite/libgomp.fortran/udr12.f90: Ditto.
8731         * testsuite/libgomp.fortran/udr13.f90: Ditto.
8732         * testsuite/libgomp.fortran/udr14.f90: Ditto.
8733         * testsuite/libgomp.fortran/udr15.f90: Ditto.
8734         * testsuite/libgomp.fortran/udr2.f90: Ditto.
8735         * testsuite/libgomp.fortran/udr3.f90: Ditto.
8736         * testsuite/libgomp.fortran/udr4.f90: Ditto.
8737         * testsuite/libgomp.fortran/udr5.f90: Ditto.
8738         * testsuite/libgomp.fortran/udr6.f90: Ditto.
8739         * testsuite/libgomp.fortran/udr7.f90: Ditto.
8740         * testsuite/libgomp.fortran/udr8.f90: Ditto.
8741         * testsuite/libgomp.fortran/udr9.f90: Ditto.
8742         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8743         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8744         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8745         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8746         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8747         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8748         * testsuite/libgomp.fortran/vla7.f90: Ditto.
8749         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8750         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8751         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8753 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8755         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8756         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8757         Ditto; add 'dg-do run' for torture testing.
8758         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
8759         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8760         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8761         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8762         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8763         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8764         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8765         * testsuite/libgomp.fortran/task2.f90: Ditto.
8766         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8767         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8768         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8769         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8770         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8771         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8773 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
8775         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8776         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8777         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8778         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8779         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8780         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8781         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8782         Use 'stop' not abort().
8783         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8784         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8785         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8786         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8787         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8788         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8789         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8790         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8791         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8792         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8793         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8794         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8795         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8796         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8797         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8798         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8799         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8800         Ditto.
8801         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8802         Ditto.
8803         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8804         Ditto.
8805         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8806         Ditto.
8807         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8808         Ditto.
8809         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8810         Ditto.
8811         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8812         Ditto.
8813         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8814         Ditto.
8815         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8816         Ditto.
8817         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8818         Ditto.
8819         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8820         Ditto.
8821         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8822         Ditto.
8823         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8824         Ditto.
8825         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8826         Ditto.
8827         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8828         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8829         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8830         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8831         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8832         Likewise and also add 'dg-do run'.
8833         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8834         Ditto.
8836 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8837             Tobias Burnus  <tobias@codesourcery.com>
8839         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8840         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8841         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8843 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
8845         PR libgomp/92081
8846         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8847         than 0.
8849 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8851         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8852         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8854 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
8856         PR middle-end/92036
8857         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8858         file.
8860 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
8862         PR testsuite/91884
8863         * testsuite/libgomp.fortran/fortran.exp: Conditionally
8864         add -lquadmath.
8865         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8867 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
8869         PR libgomp/92028
8870         * target.c (gomp_map_vars_internal): Readd the previous
8871         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8872         though do that just in the !not_found_cnt case.
8874 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
8876         * gfortran.dg/gomp/target-simd.f90: New.
8878 2019-10-02  Julian Brown  <julian@codesourcery.com>
8879             Cesar Philippidis  <cesar@codesourcery.com>
8881         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8882         * target.c (FIELD_TGT_EMPTY): Define.
8883         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
8884         as switch instead of list of ifs.
8885         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8887 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
8889         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8890         include. Replace alloca () with __builtin_alloca ().
8891         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8893 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
8895         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8896         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8897         * oacc-parallel.c: Don't include "libgomp_g.h".
8898         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8899         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8900         * aclocal.m4: Regenerated.
8901         * config.h.in: Regenerated.
8902         * configure: Regenerated.
8903         * Makefile.in: Regenerated.
8905 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
8907         * libgomp_g.h: Include stdint.h instead of gstdint.h.
8909 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
8911         * configure: Regenerate.
8913 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
8915         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8916         string is initialized.
8918 2019-09-06  Florian Weimer  <fweimer@redhat.com>
8920         * configure: Regenerate.
8922 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
8924         PR other/79543
8925         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8926         scanning to conform to the GNU Coding Standards.
8927         * configure: Regenerate.
8929 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
8931         PR libgomp/91530
8932         * testsuite/libgomp.c/scan-21.c: New test.
8933         * testsuite/libgomp.c/scan-22.c: New test.
8935 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
8937         PR libgomp/91530
8938         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8939         targets.
8940         * testsuite/libgomp.c/scan-12.c: Likewise.
8941         * testsuite/libgomp.c/scan-13.c: Likewise.
8942         * testsuite/libgomp.c/scan-14.c: Likewise.
8943         * testsuite/libgomp.c/scan-15.c: Likewise.
8944         * testsuite/libgomp.c/scan-16.c: Likewise.
8945         * testsuite/libgomp.c/scan-17.c: Likewise.
8946         * testsuite/libgomp.c/scan-18.c: Likewise.
8947         * testsuite/libgomp.c/scan-19.c: Likewise.
8948         * testsuite/libgomp.c/scan-20.c: Likewise.
8949         * testsuite/libgomp.c++/scan-9.C: Likewise.
8950         * testsuite/libgomp.c++/scan-10.C: Likewise.
8951         * testsuite/libgomp.c++/scan-11.C: Likewise.
8952         * testsuite/libgomp.c++/scan-12.C: Likewise.
8953         * testsuite/libgomp.c++/scan-14.C: Likewise.
8954         * testsuite/libgomp.c++/scan-15.C: Likewise.
8955         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
8956         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8957         * testsuite/libgomp.c++/scan-16.C: Likewise.
8959 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
8961         PR fortran/91473
8962         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8963         -std=legacy so invalid code in the test case is accepted.
8965 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8967         PR fortran/91422
8968         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8969         dimension.
8971 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8973         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8974         perform the lookup in the first loop only if !not_found_cnt, otherwise
8975         perform lookups for it in the second loop guarded with
8976         if (not_found_cnt || has_firstprivate).
8977         * testsuite/libgomp.c/target-37.c: New test.
8978         * testsuite/libgomp.c++/target-22.C: New test.
8980 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8982         * testsuite/libgomp.c/target-18.c (struct S): New type.
8983         (foo): Use use_device_addr clause instead of use_device_ptr clause
8984         where required by OpenMP 5.0, add further tests for both use_device_ptr
8985         and use_device_addr clauses.
8986         * testsuite/libgomp.c++/target-9.C (struct S): New type.
8987         (foo): Use use_device_addr clause instead of use_device_ptr clause
8988         where required by OpenMP 5.0, add further tests for both use_device_ptr
8989         and use_device_addr clauses.  Add t and u arguments.
8990         (main): Adjust caller.
8992 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8994         * testsuite/libgomp.c++/loop-13.C: New test.
8995         * testsuite/libgomp.c++/loop-14.C: New test.
8996         * testsuite/libgomp.c++/loop-15.C: New test.
8998 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9000         PR middle-end/91301
9001         * testsuite/libgomp.c++/for-27.C: New test.
9003 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
9005         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9006         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9008 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9010         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9012 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
9014         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9015         * testsuite/libgomp.c++/scan-16.C: Likewise.
9017 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
9019         * testsuite/libgomp.c/scan-19.c: New test.
9020         * testsuite/libgomp.c/scan-20.c: New test.
9022         * testsuite/libgomp.c/scan-11.c: New test.
9023         * testsuite/libgomp.c/scan-12.c: New test.
9024         * testsuite/libgomp.c/scan-13.c: New test.
9025         * testsuite/libgomp.c/scan-14.c: New test.
9026         * testsuite/libgomp.c/scan-15.c: New test.
9027         * testsuite/libgomp.c/scan-16.c: New test.
9028         * testsuite/libgomp.c/scan-17.c: New test.
9029         * testsuite/libgomp.c/scan-18.c: New test.
9030         * testsuite/libgomp.c++/scan-9.C: New test.
9031         * testsuite/libgomp.c++/scan-10.C: New test.
9032         * testsuite/libgomp.c++/scan-11.C: New test.
9033         * testsuite/libgomp.c++/scan-12.C: New test.
9034         * testsuite/libgomp.c++/scan-13.C: New test.
9035         * testsuite/libgomp.c++/scan-14.C: New test.
9036         * testsuite/libgomp.c++/scan-15.C: New test.
9037         * testsuite/libgomp.c++/scan-16.C: New test.
9039 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
9041         * testsuite/libgomp.c/scan-9.c: New test.
9042         * testsuite/libgomp.c/scan-10.c: New test.
9044 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
9046         * testsuite/libgomp.c++/scan-1.C: New test.
9047         * testsuite/libgomp.c++/scan-2.C: New test.
9048         * testsuite/libgomp.c++/scan-3.C: New test.
9049         * testsuite/libgomp.c++/scan-4.C: New test.
9050         * testsuite/libgomp.c++/scan-5.C: New test.
9051         * testsuite/libgomp.c++/scan-6.C: New test.
9052         * testsuite/libgomp.c++/scan-7.C: New test.
9053         * testsuite/libgomp.c++/scan-8.C: New test.
9054         * testsuite/libgomp.c/scan-1.c: New test.
9055         * testsuite/libgomp.c/scan-2.c: New test.
9056         * testsuite/libgomp.c/scan-3.c: New test.
9057         * testsuite/libgomp.c/scan-4.c: New test.
9058         * testsuite/libgomp.c/scan-5.c: New test.
9059         * testsuite/libgomp.c/scan-6.c: New test.
9060         * testsuite/libgomp.c/scan-7.c: New test.
9061         * testsuite/libgomp.c/scan-8.c: New test.
9063 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9065         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9066         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9067         Likewise.
9069         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9070         check.
9072 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
9074         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9075         file.
9077 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9079         PR fortran/90743
9080         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9081         case.
9082         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9083         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9084         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9085         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9087         PR testsuite/90861
9088         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9090         PR middle-end/90862
9091         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9093 2019-06-16  Tom de Vries  <tdevries@suse.de>
9095         PR tree-optimization/89376
9096         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9098 2019-06-15  Tom de Vries  <tdevries@suse.de>
9100         PR tree-optimization/89713
9101         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9102         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9104 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
9106         PR middle-end/90779
9107         * testsuite/libgomp.c/pr90779.c: New test.
9108         * testsuite/libgomp.fortran/pr90779.f90: New test.
9110 2019-06-15  Tom de Vries  <tdevries@suse.de>
9112         PR tree-optimization/90009
9113         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9115 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
9117         PR tree-optimization/89713
9118         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9120 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
9122         PR target/90811
9123         * testsuite/libgomp.c/pr90811.c: New test.
9125 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
9127         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9128         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9130 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
9132         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9133         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9134         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9135         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9137 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9139         * configure.ac: Call AX_COUNT_CPUS.
9140         Substitute CPU_COUNT.
9141         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9142         count fallback.
9143         * aclocal.m4: Regenerate.
9144         * configure: Regenerate.
9145         * Makefile.in, testsuite/Makefile.in: Regenerate.
9147 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
9149         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9150         to ...
9151         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9152         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9153         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9155 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
9157         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9159         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9161         PR libgomp/90641
9162         * work.c (gomp_init_work_share): Instead of aligning final ordered
9163         value to multiples of long long alignment, align to that the
9164         first part (ordered team ids) and if inline_ordered_team_ids
9165         is not on a long long alignment boundary within the structure,
9166         use __alignof__ (long long) - 1 pad size always.
9167         * loop.c (GOMP_loop_start): Fix *mem computation if
9168         inline_ordered_team_ids is not aligned on long long alignment boundary
9169         within the structure.
9170         * loop-ull.c (GOMP_loop_ull_start): Likewise.
9171         * sections.c (GOMP_sections2_start): Likewise.
9173 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
9175         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9176         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9178         PR libgomp/90585
9179         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
9180         HAVE_INTTYPES_H is defined.
9181         (print_uint64_t): New typedef.
9182         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9183         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9184         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9185         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9186         before casting to void *.
9187         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9188         * oacc-mem.c: Don't include config.h nor stdint.h.
9189         * target.c: Don't include config.h.
9190         * oacc-cuda.c: Likewise.
9191         * oacc-host.c: Don't include stdint.h.
9193 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9195         PR libgomp/90527
9196         * alloc.c (_GNU_SOURCE): Define.
9198 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9200         * acc_prof.h: New file.
9201         * oacc-profiling.c: Likewise.
9202         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9203         Add these, respectively.
9204         * Makefile.in: Regenerate.
9205         * env.c (initialize_env): Call goacc_profiling_initialize.
9206         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9207         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9208         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9209         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9210         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9211         acc_prof_register, acc_prof_unregister, and acc_register_library.
9212         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9213         GOMP_PLUGIN_goacc_thread.
9214         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9215         prof_callbacks_enabled members.
9216         (goacc_prof_enabled, goacc_profiling_initialize)
9217         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9218         (goacc_profiling_dispatch): Declare.
9219         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9220         (GOACC_PROFILING_SETUP_P): Define.
9221         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9222         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9223         OpenACC Profiling Interface.
9224         * oacc-cuda.c (acc_get_current_cuda_device)
9225         (acc_get_current_cuda_context, acc_get_cuda_stream)
9226         (acc_set_cuda_stream): Likewise.
9227         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9228         (acc_init, acc_set_device_type, acc_get_device_type)
9229         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9230         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9231         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9232         (acc_unmap_data, present_create_copy, delete_copyout)
9233         (update_dev_host): Likewise.
9234         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9235         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9236         Likewise.
9237         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9238         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9239         Likewise.
9240         * libgomp.texi: Update.
9241         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9242         file.
9243         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9244         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9245         Likewise.
9246         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9247         Likewise.
9248         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9249         Likewise.
9250         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9251         Likewise.
9253 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9255         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9256         (struct goacc_asyncqueue_list): Likewise.
9257         (goacc_aq): Likewise.
9258         (goacc_aq_list): Likewise.
9259         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9260         (GOMP_OFFLOAD_openacc_async_test): Remove.
9261         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9262         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9263         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9264         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9265         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9266         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9267         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9268         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9269         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9270         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9271         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9272         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9273         (GOMP_OFFLOAD_openacc_async_test): Declare.
9274         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9275         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9276         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9277         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9278         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9280         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9281         (gomp_acc_insert_pointer): Adjust declaration.
9282         (gomp_copy_host2dev): New declaration.
9283         (gomp_copy_dev2host): Likewise.
9284         (gomp_map_vars_async): Likewise.
9285         (gomp_unmap_tgt): Likewise.
9286         (gomp_unmap_vars_async): Likewise.
9287         (gomp_fini_device): Likewise.
9289         * oacc-async.c (get_goacc_thread): New function.
9290         (get_goacc_thread_device): New function.
9291         (lookup_goacc_asyncqueue): New function.
9292         (get_goacc_asyncqueue): New function.
9293         (acc_async_test): Adjust code to use new async design.
9294         (acc_async_test_all): Likewise.
9295         (acc_wait): Likewise.
9296         (acc_wait_async): Likewise.
9297         (acc_wait_all): Likewise.
9298         (acc_wait_all_async): Likewise.
9299         (goacc_async_free): New function.
9300         (goacc_init_asyncqueues): Likewise.
9301         (goacc_fini_asyncqueues): Likewise.
9302         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9303         design.
9304         (acc_set_cuda_stream): Likewise.
9305         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9306         (host_openacc_register_async_cleanup): Remove.
9307         (host_openacc_async_exec): New function.
9308         (host_openacc_async_test): Adjust parameters.
9309         (host_openacc_async_test_all): Remove.
9310         (host_openacc_async_wait): Remove.
9311         (host_openacc_async_wait_async): Remove.
9312         (host_openacc_async_wait_all): Remove.
9313         (host_openacc_async_wait_all_async): Remove.
9314         (host_openacc_async_set_async): Remove.
9315         (host_openacc_async_synchronize): New function.
9316         (host_openacc_async_serialize): New function.
9317         (host_openacc_async_host2dev): New function.
9318         (host_openacc_async_dev2host): New function.
9319         (host_openacc_async_queue_callback): New function.
9320         (host_openacc_async_construct): New function.
9321         (host_openacc_async_destruct): New function.
9322         (struct gomp_device_descr host_dispatch): Remove initialization of old
9323         interface, add initialization of new async sub-struct.
9324         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9325         (goacc_attach_host_thread_to_device): Remove old async code usage.
9326         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9327         (goacc_fini_asyncqueues): Likewise.
9328         (goacc_async_copyout_unmap_vars): Likewise.
9329         (goacc_async_free): Likewise.
9330         (get_goacc_asyncqueue): Likewise.
9331         (lookup_goacc_asyncqueue): Likewise.
9332         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9333         design.
9334         (present_create_copy): Adjust code to use new async design.
9335         (delete_copyout): Likewise.
9336         (update_dev_host): Likewise.
9337         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9338         async design.
9339         (gomp_acc_remove_pointer): Adjust code to use new async design.
9340         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9341         design.
9342         (GOACC_enter_exit_data): Likewise.
9343         (goacc_wait): Likewise.
9344         (GOACC_update): Likewise.
9345         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9346         when called, warn as obsolete in comment.
9347         * target.c (goacc_device_copy_async): New function.
9348         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9349         add goacc_device_copy_async case.
9350         (gomp_copy_dev2host): Likewise.
9351         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9352         (gomp_map_pointer): Likewise.
9353         (gomp_map_fields_existing): Likewise.
9354         (gomp_map_vars_internal): New always_inline function, renamed from
9355         gomp_map_vars.
9356         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9357         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9358         passing goacc_asyncqueue argument.
9359         (gomp_unmap_tgt): Remove static, add attribute_hidden.
9360         (gomp_unref_tgt): New function.
9361         (gomp_unmap_vars_internal): New always_inline function, renamed from
9362         gomp_unmap_vars.
9363         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9364         (gomp_unmap_vars_async): Implement by calling
9365         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9366         (gomp_fini_device): New function.
9367         (gomp_exit_data): Adjust gomp_copy_dev2host call.
9368         (gomp_load_plugin_for_device): Remove old interface, adjust to load
9369         new async interface.
9370         (gomp_target_fini): Adjust code to call gomp_fini_device.
9372         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9373         (struct ptx_stream): Remove.
9374         (struct nvptx_thread): Remove current_stream field.
9375         (cuda_map_create): Remove.
9376         (cuda_map_destroy): Remove.
9377         (map_init): Remove.
9378         (map_fini): Remove.
9379         (map_pop): Remove.
9380         (map_push): Remove.
9381         (struct goacc_asyncqueue): Define.
9382         (struct nvptx_callback): Define.
9383         (struct ptx_free_block): Define.
9384         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9385         stream_lock, and next fields.
9386         (enum ptx_event_type): Remove.
9387         (struct ptx_event): Remove.
9388         (ptx_event_lock): Remove.
9389         (ptx_events): Remove.
9390         (init_streams_for_device): Remove.
9391         (fini_streams_for_device): Remove.
9392         (select_stream_for_async): Remove.
9393         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9394         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9395         case.
9396         (nvptx_open_device): Add free_blocks initialization, remove
9397         init_streams_for_device call.
9398         (nvptx_close_device): Remove fini_streams_for_device call, add
9399         free_blocks destruct code.
9400         (event_gc): Remove.
9401         (event_add): Remove.
9402         (nvptx_exec): Adjust parameters and code.
9403         (nvptx_free): Likewise.
9404         (nvptx_host2dev): Remove.
9405         (nvptx_dev2host): Remove.
9406         (nvptx_set_async): Remove.
9407         (nvptx_async_test): Remove.
9408         (nvptx_async_test_all): Remove.
9409         (nvptx_wait): Remove.
9410         (nvptx_wait_async): Remove.
9411         (nvptx_wait_all): Remove.
9412         (nvptx_wait_all_async): Remove.
9413         (nvptx_get_cuda_stream): Remove.
9414         (nvptx_set_cuda_stream): Remove.
9415         (GOMP_OFFLOAD_alloc): Adjust code.
9416         (GOMP_OFFLOAD_free): Likewise.
9417         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9418         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9419         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9420         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9421         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9422         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9423         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9424         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9425         (cuda_free_argmem): New function.
9426         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9427         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9428         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9429         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9430         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9431         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9432         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9433         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9434         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9435         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9436         (cuda_callback_wrapper): New function.
9437         (cuda_memcpy_sanity_check): New function.
9438         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9439         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9440         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9441         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9443 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9445         PR target/87835
9446         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9448 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9450         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9452 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9454         * team.c (gomp_team_start): Initialize pool->threads[0].
9456 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9458         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9459         "-foffload=$offload_target".
9460         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9461         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9462         * testsuite/lib/libgomp.exp
9463         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9464         as (conceptually) merged into
9465         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9466         users.
9468         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9469         * testsuite/libgomp-test-support.exp.in: Adjust.
9470         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9471         openacc_device_types_s.
9472         (offload_target_to_openacc_device_type): New proc.
9473         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9474         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9475         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9476         * Makefile.in: Regenerate.
9477         * configure: Likewise.
9478         * testsuite/Makefile.in: Likewise.
9480         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9481         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9482         instead of OFFLOAD_TARGETS.
9483         * target.c (gomp_target_init): Adjust.
9484         * testsuite/libgomp-test-support.exp.in: Likewise.
9485         * testsuite/lib/libgomp.exp: Likewise.  Populate
9486         openacc_device_types_s instead of offload_targets_s_openacc.
9487         (check_effective_target_openacc_nvidia_accel_selected)
9488         (check_effective_target_openacc_host_selected): Adjust.
9489         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9490         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9491         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9492         * Makefile.in: Regenerate.
9493         * config.h.in: Likewise.
9494         * configure: Likewise.
9495         * testsuite/Makefile.in: Likewise.
9497         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9498         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9499         "offloading: supported, but hardware not accessible".
9500         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9501         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9503 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9505         PR c/87924
9506         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9507         goacc_wait().
9508         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9509         and related adjustment.
9511 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9513         PR c++/88988
9514         * testsuite/libgomp.c++/pr88988.C: New test.
9516 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9518         PR middle-end/89002
9519         * testsuite/libgomp.c/pr89002.c: New test.
9521 2019-01-28  Richard Biener  <rguenther@suse.de>
9523         PR testsuite/89064
9524         PR tree-optimization/86865
9525         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9527 2019-01-24  Tom de Vries  <tdevries@suse.de>
9529         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9530         once instantiated_devices drops to 0.
9532 2019-01-23  Tom de Vries  <tdevries@suse.de>
9534         PR target/PR88946
9535         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9536         cuMemFree.
9537         (nvptx_exec): Don't call map_push if mapnum == 0.
9538         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9540 2019-01-23  Tom de Vries  <tdevries@suse.de>
9542         PR target/88941
9543         PR target/88939
9544         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9545         (map_fini): Remove "assert (!s->map->active)".
9546         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9548 2019-01-23  Tom de Vries  <tdevries@suse.de>
9550         PR target/87835
9551         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9552         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9554 2019-01-15  Tom de Vries  <tdevries@suse.de>
9556         PR target/80547
9557         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9558         New test.
9560 2019-01-12  Tom de Vries  <tdevries@suse.de>
9562         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9563         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9564         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9565         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9567 2019-01-12  Tom de Vries  <tdevries@suse.de>
9569         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9571 2019-01-12  Tom de Vries  <tdevries@suse.de>
9573         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9574         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9575         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9577 2019-01-12  Tom de Vries  <tdevries@suse.de>
9579         PR target/85486
9580         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9581         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9583 2019-01-12  Tom de Vries  <tdevries@suse.de>
9585         PR target/85381
9586         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9587         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9589 2019-01-12  Tom de Vries  <tdevries@suse.de>
9591         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9592         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9593         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9595 2019-01-12  Tom de Vries  <tdevries@suse.de>
9597         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9598         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9599         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9601 2019-01-12  Tom de Vries  <tdevries@suse.de>
9603         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9604         resources diagnostic.
9606 2019-01-12  Tom de Vries  <tdevries@suse.de>
9608         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9609         vector length to be 128.
9610         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9611         length 2097152 to be reduced to 1024 instead of 32.
9613 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
9614             James Norris  <jnorris@codesourcery.com>
9616         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9617         Library Routines", and "Environment Variables".
9619 2019-01-11  Tom de Vries  <tdevries@suse.de>
9621         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9622         num_workers 16.
9624 2019-01-11  Tom de Vries  <tdevries@suse.de>
9626         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9627         -foffload=-w.
9628         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9629         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9630         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9631         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9633 2019-01-11  Tom de Vries  <tdevries@suse.de>
9635         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9636         test.
9638 2019-01-10  Nathan Sidwell  <nathan@acm.org>
9639             Julian Brown  <julian@codesourcery.com>
9641         PR lto/71959
9642         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9643         * testsuite/libgomp.oacc-c++/pr71959.C: New.
9645 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9647         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9648         and paste code.
9650 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9652         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
9653         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9654         write.
9656 2019-01-09  Tom de Vries  <tdevries@suse.de>
9658         PR target/88756
9659         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9660         #define instead of "const int".
9661         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9662         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9663         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9664         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9666 2019-01-09  Tom de Vries  <tdevries@suse.de>
9668         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9669         one worker.
9671 2019-01-07  Tom de Vries  <tdevries@suse.de>
9673         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9674         GOMP_OPENACC_DIM argument.
9676 2019-01-03  Tom de Vries  <tdevries@suse.de>
9678         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9679         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9681 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9683         Update copyright years.
9685 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9687         * libgomp.texi: Bump @copying's copyright year.
9689 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9691         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9692         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9693         (GOACC_declare): Redefine the "device" argument to "flags".
9695 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9696             Cesar Philippidis  <cesar@codesourcery.com>
9698         * target.c (struct gomp_coalesce_chunk): New structure.
9699         (struct gomp_coalesce_buf): Update the chunks member to use that
9700         type.  Adjust all users.
9702 2018-12-19  Tom de Vries  <tdevries@suse.de>
9704         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9705         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9706         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9708 2018-12-19  Tom de Vries  <tdevries@suse.de>
9710         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9711         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9712         gcc/testsuite/gcc.dg/goacc.
9713         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9715 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9716             Chung-Lin Tang  <cltang@codesourcery.com>
9718         * oacc-mem.c (acc_present_or_create): Remove definition and change
9719         to alias of acc_create.
9720         (acc_present_or_copyin): Remove definition and change to alias of
9721         acc_copyin.
9722         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9723         of acc_present_or_create.
9724         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9725         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9726         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9727         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9728         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9729         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9730         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9731         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9732         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9733         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9734         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9735         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9736         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9737         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9738         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9739         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9741 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9743         PR libgomp/88495
9744         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9745         "identical parameters".
9746         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9747         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9749         PR libgomp/88484
9750         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9751         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9753         PR libgomp/88407
9754         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9755         (nvptx_wait_async): Unseen async-argument is a no-op.
9756         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9757         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9758         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9759         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9760         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9761         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9762         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
9763         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9764         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
9766         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9767         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9769 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
9771         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9772         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9773         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9775 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9777         PR libgomp/88370
9778         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9779         (acc_set_cuda_stream): Clarify.
9780         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9781         "async_valid_p".
9782         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9783         acc_async_sync".
9784         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9785         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9786         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9787         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9789 2018-12-14  Tom de Vries  <tdevries@suse.de>
9791         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9792         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9793         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9794         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9795         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9797 2018-12-13  Tom de Vries  <tdevries@suse.de>
9799         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9800         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9801         * fortran.c (omp_display_affinity_): ... here.
9802         * libgomp.h (gomp_print_string): Declare.
9803         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
9804         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9805         write.
9807 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
9809         PR libgomp/88460
9810         * testsuite/libgomp.c++/for-24.C (results): Include it in
9811         omp declare target region.
9812         (main): Use map (always, tofrom: results) instead of
9813         map (tofrom: results).
9815 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
9817         PR fortran/88463
9818         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9819         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9821         * testsuite/libgomp.c-c++-common/for-16.c: New test.
9823 2018-12-12  Andreas Schwab  <schwab@suse.de>
9825         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9826         clobbered.
9828 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
9830         PR fortran/88411
9831         * testsuite/libgomp.fortran/async_io_8.f90: New test.
9833 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9834             Jakub Jelinek  <jakub@redhat.com>
9836         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9837         devicep->host2dev_func.
9839 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
9841         PR libgomp/87995
9842         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9843         tls_runtime effective target.
9844         (t): New threadprivate variable.
9845         (main): Set t in threads which execute iterations of the worksharing
9846         loop.  Propagate that to the task after the loop and don't abort
9847         if the current taskgroup hasn't been cancelled.
9849 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
9851         * testsuite/libgomp.c/task-reduction-3.c: New test.
9853         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9855 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
9857         PR libgomp/88288
9858         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9859         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9861 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
9863         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9865 2018-10-19  Richard Biener  <rguenther@suse.de>
9867         PR tree-optimization/88182
9868         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9870 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
9872         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9873         (RUNTEST): Don't define.
9874         (RUNTESTDEFAULTFLAGS): Add.
9875         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9876         (distclean-am): Depend on distclean-DEJAGNU.
9877         (check-am): If -j% option is present in MFLAGS and if
9878         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9879         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9880         * testsuite/Makefile.in: Regenerated.
9882 2018-11-26  Richard Biener  <rguenther@suse.de>
9884         PR tree-optimization/88182
9885         * testsuite/libgomp.c++/pr88182.C: New testcase.
9887 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
9889         PR bootstrap/88106
9890         * config/mingw32/affinity-fmt.c: New file.
9892 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
9894         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9895         (gomp_display_affinity): Use __builtin_choose_expr to handle
9896         properly handle argument having integral, or pointer or some other
9897         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
9898         with uint64_t type instead of %llx and unsigned long long.
9900         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9901         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9903 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9905         * affinity.c: Include <string.h>, <stdio.h>.
9906         (gomp_display_affinity_place): Remove cpusetp.
9907         * teams.c: Include <limits.h>.
9909 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
9911         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9912         in_reduction clause for s[0].
9914         * affinity.c (gomp_display_affinity_place): New function.
9915         * affinity-fmt.c: New file.
9916         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9917         * config/linux/affinity.c (gomp_display_affinity_place): New function.
9918         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9919         Move these functions to ...
9920         * config/nvptx/teams.c: ... here.  New file.
9921         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9922         New functions.
9923         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9924         functions.
9925         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9926         and _aligned_malloc.
9927         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9928         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9929         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9930         gomp_affinity_format_len): New variables.
9931         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9932         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
9933         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9934         modifiers.  Display (non-default) chunk sizes.  Print
9935         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9936         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
9937         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9938         * fortran.c: Include stdio.h and string.h.
9939         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9940         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9941         (omp_set_affinity_format_, omp_get_affinity_format_,
9942         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9943         omp_pause_resource_all_): New functions.
9944         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9945         switch.
9946         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9947         functions to ...
9948         * teams.c: ... here.  New file.
9949         * libgomp_g.h: Include gstdint.h.
9950         (GOMP_loop_nonmonotonic_runtime_start,
9951         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9952         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9953         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9954         GOMP_parallel_loop_nonmonotonic_runtime,
9955         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9956         GOMP_loop_ull_nonmonotonic_runtime_start,
9957         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9958         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9959         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9960         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9961         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9962         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9963         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9964         GOMP_teams_reg): Declare.
9965         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9966         gomp_aligned_alloc uses fallback implementation.
9967         (gomp_aligned_alloc, gomp_aligned_free): Declare.
9968         (enum gomp_schedule_type): Add GFS_MONOTONIC.
9969         (struct gomp_doacross_work_share): Add extra field.
9970         (struct gomp_work_share): Add task_reductions field.
9971         (struct gomp_taskgroup): Add workshare and reductions fields.
9972         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9973         (gomp_thread_handle): New typedef.
9974         (gomp_display_affinity_place, gomp_set_affinity_format,
9975         gomp_display_string, gomp_display_affinity,
9976         gomp_display_affinity_thread): Declare.
9977         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9978         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9979         gomp_workshare_task_reduction_register): Declare.
9980         (gomp_team_start): Add taskgroup argument.
9981         (gomp_pause_host): Declare.
9982         (gomp_init_work_share, gomp_work_share_start): Change bool argument
9983         to size_t.
9984         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9985         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9986         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9987         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9988         GOMP_loop_ull_doacross_start,
9989         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9990         GOMP_loop_maybe_nonmonotonic_runtime_next,
9991         GOMP_loop_maybe_nonmonotonic_runtime_start,
9992         GOMP_loop_nonmonotonic_runtime_next,
9993         GOMP_loop_nonmonotonic_runtime_start,
9994         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9995         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9996         GOMP_loop_ull_nonmonotonic_runtime_next,
9997         GOMP_loop_ull_nonmonotonic_runtime_start,
9998         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9999         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10000         GOMP_taskgroup_reduction_register,
10001         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10002         GOMP_teams_reg and GOMP_taskwait_depend.
10003         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10004         omp_{capture,display}_affinity{,_}, and
10005         omp_[gs]et_affinity_format{,_}.
10006         * loop.c: Include string.h.
10007         (GOMP_loop_runtime_next): Add ialias.
10008         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10009         (gomp_loop_static_start, gomp_loop_dynamic_start,
10010         gomp_loop_guided_start, gomp_loop_ordered_static_start,
10011         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10012         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10013         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10014         or gomp_doacross_init callers.
10015         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10016         GOMP_loop_doacross_start): New functions.
10017         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10018         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10019         Mask off GFS_MONOTONIC bit.
10020         (GOMP_loop_maybe_nonmonotonic_runtime_next,
10021         GOMP_loop_maybe_nonmonotonic_runtime_start,
10022         GOMP_loop_nonmonotonic_runtime_next,
10023         GOMP_loop_nonmonotonic_runtime_start,
10024         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10025         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10026         functions.
10027         (gomp_parallel_loop_start): Pass NULL as taskgroup to
10028         gomp_team_start.
10029         * loop_ull.c: Include string.h.
10030         (GOMP_loop_ull_runtime_next): Add ialias.
10031         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10032         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10033         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10034         gomp_loop_ull_ordered_dynamic_start,
10035         gomp_loop_ull_ordered_guided_start,
10036         gomp_loop_ull_doacross_static_start,
10037         gomp_loop_ull_doacross_dynamic_start,
10038         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10039         and gomp_doacross_ull_init callers.
10040         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10041         GOMP_loop_ull_doacross_start): New functions.
10042         (GOMP_loop_ull_runtime_start,
10043         GOMP_loop_ull_ordered_runtime_start,
10044         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10045         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10046         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10047         GOMP_loop_ull_nonmonotonic_runtime_next,
10048         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10049         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10050         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10051         (omp_pause_resource_t, omp_depend_t): New typedefs.
10052         (enum omp_lock_hint_t): Renamed to ...
10053         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
10054         enumerators using numbers and omp_lock_hint_* as their aliases.
10055         (omp_lock_hint_t): New typedef.  Rename to ...
10056         (omp_sync_hint_t): ... this.
10057         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10058         omp_sync_hint_t instead of omp_lock_hint_t.
10059         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10060         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10061         Declare.
10062         (omp_target_is_present, omp_target_disassociate_ptr):
10063         Change first argument from void * to const void *.
10064         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10065         from void * to const void *.
10066         (omp_target_associate_ptr): Change first and second arguments from
10067         void * to const void *.
10068         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10069         omp_pause_hard): New parameters.
10070         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10071         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10072         New interfaces.
10073         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10074         omp_pause_hard): New parameters.
10075         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10076         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10077         New externals.
10078         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10079         EXTRA argument.  If not needed to prepare array, if extra is 0,
10080         clear ws->doacross, otherwise allocate just doacross structure and
10081         extra payload.  If array is needed, allocate also extra payload.
10082         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10083         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10084         doacross == NULL.
10085         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10086         gomp_team_start.
10087         (GOMP_parallel): Likewise.  Formatting fix.
10088         (GOMP_parallel_reductions): New function.
10089         (GOMP_cancellation_point): If taskgroup has workshare
10090         flag set, check cancelled of prev taskgroup if any.
10091         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10092         on prev taskgroup if any.
10093         * sections.c: Include string.h.
10094         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10095         (GOMP_sections_start): Adjust gomp_work_share_start caller.
10096         (GOMP_sections2_start): New function.
10097         (GOMP_parallel_sections_start, GOMP_parallel_sections):
10098         Pass NULL as taskgroup to gomp_team_start.
10099         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10100         gomp_work_share_start callers.
10101         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10102         If taskgroup has workshare flag set, check cancelled on prev
10103         taskgroup if any.  Guard all cancellation tests with
10104         gomp_cancel_var test.
10105         (omp_target_is_present, omp_target_disassociate_ptr):
10106         Change ptr argument from void * to const void *.
10107         (omp_target_memcpy): Change src argument from void * to const void *.
10108         (omp_target_memcpy_rect): Likewise.
10109         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
10110         instead of char * where needed.
10111         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10112         from void * to const void *.
10113         (omp_pause_resource, omp_pause_resource_all): New functions.
10114         * task.c (gomp_task_handle_depend): Handle new depend array format
10115         in addition to the old.  Handle mutexinoutset kinds the same as
10116         inout for now, handle unspecified kinds.
10117         (gomp_create_target_task): If taskgroup has workshare flag set, check
10118         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10119         gomp_cancel_var test.  Handle new depend array format count in
10120         addition to the old.
10121         (GOMP_task): Likewise.  Adjust function comment.
10122         (gomp_task_run_pre): If taskgroup has workshare flag set, check
10123         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10124         gomp_cancel_var test.
10125         (GOMP_taskwait_depend): New function.
10126         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10127         format in addition to the old.  Handle mutexinoutset kinds the same as
10128         inout for now, handle unspecified kinds.  Fix a function comment typo.
10129         (gomp_taskgroup_init): New function.
10130         (GOMP_taskgroup_start): Use it.
10131         (gomp_reduction_register, gomp_create_artificial_team,
10132         GOMP_taskgroup_reduction_register,
10133         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10134         gomp_parallel_reduction_register,
10135         gomp_workshare_task_reduction_register,
10136         gomp_workshare_taskgroup_start,
10137         GOMP_workshare_task_reduction_unregister): New functions.
10138         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10139         check cancelled on prev taskgroup if any.  Guard all cancellation
10140         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
10141         by calling GOMP_taskgroup_reduction_register.
10142         * team.c (gomp_thread_attr): Remove comment.
10143         (struct gomp_thread_start_data): Add handle field.
10144         (gomp_thread_start): Call pthread_detach.
10145         (gomp_new_team): Adjust gomp_init_work_share caller.
10146         (gomp_free_pool_helper): Call pthread_detach.
10147         (gomp_team_start): Add taskgroup argument, initialize implicit
10148         tasks' taskgroup field to that.  Don't call
10149         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
10150         (gomp_team_end): Determine nesting by thr->ts.level != 0
10151         rather than thr->ts.team != NULL.
10152         (gomp_pause_pool_helper, gomp_pause_host): New functions.
10153         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10154         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10155         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10156         if more than 1 allocate also extra payload at the end of array.  Never
10157         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10158         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10159         return true instead of ws.
10160         * Makefile.in: Regenerated.
10161         * configure: Regenerated.
10162         * config.h.in: Regenerated.
10163         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10164         in some cases.
10165         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10166         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10167         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10168         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10169         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10170         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10171         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10172         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10173         * testsuite/libgomp.c-c++-common/for-10.c: New test.
10174         * testsuite/libgomp.c-c++-common/for-11.c: New test.
10175         * testsuite/libgomp.c-c++-common/for-12.c: New test.
10176         * testsuite/libgomp.c-c++-common/for-13.c: New test.
10177         * testsuite/libgomp.c-c++-common/for-14.c: New test.
10178         * testsuite/libgomp.c-c++-common/for-15.c: New test.
10179         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10180         define a different N(test), don't define N(f0) to N(f14), but instead
10181         define N(f20) to N(f34) using != comparisons.
10182         * testsuite/libgomp.c-c++-common/for-7.c: New test.
10183         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10184         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10185         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10186         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10187         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10188         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10189         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10190         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10191         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10192         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10193         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10194         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10195         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10196         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10197         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10198         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10199         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10200         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10201         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10202         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10203         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10204         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10205         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10206         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10207         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10208         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10209         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10210         * testsuite/libgomp.c++/depend-1.C: New test.
10211         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10212         * testsuite/libgomp.c++/depobj-1.C: New test.
10213         * testsuite/libgomp.c++/for-16.C: New test.
10214         * testsuite/libgomp.c++/for-21.C: New test.
10215         * testsuite/libgomp.c++/for-22.C: New test.
10216         * testsuite/libgomp.c++/for-23.C: New test.
10217         * testsuite/libgomp.c++/for-24.C: New test.
10218         * testsuite/libgomp.c++/for-25.C: New test.
10219         * testsuite/libgomp.c++/for-26.C: New test.
10220         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10221         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10222         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10223         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10224         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10225         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10226         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10227         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10228         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10229         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10230         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10231         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10232         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10233         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10234         * testsuite/libgomp.c/task-reduction-1.c: New test.
10235         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10236         * testsuite/libgomp.c/task-reduction-2.c: New test.
10237         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10238         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10239         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10240         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10241         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10242         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10243         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10244         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10245         * testsuite/libgomp.c/teams-1.c: New test.
10246         * testsuite/libgomp.c/teams-2.c: New test.
10247         * testsuite/libgomp.c/thread-limit-4.c: New test.
10248         * testsuite/libgomp.c/thread-limit-5.c: New test.
10249         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10251 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10253         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10254         acc_memcpy_to/from_device functions, now with async parameter.
10255         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10256         (acc_memcpy_from_device): Likewise.
10257         (acc_memcpy_to_device_async): New API function.
10258         (acc_memcpy_from_device_async): Likewise.
10259         (present_create_copy): Add async parameter and async setting/unsetting.
10260         (acc_create): Adjust present_create_copy call.
10261         (acc_copyin): Likewise.
10262         (acc_present_or_create): Likewise.
10263         (acc_present_or_copyin): Likewise.
10264         (acc_create_async): New API function.
10265         (acc_copyin_async): New API function.
10266         (delete_copyout): Add async parameter and async setting/unsetting.
10267         (acc_delete): Adjust delete_copyout call.
10268         (acc_copyout): Likewise.
10269         (acc_delete_async): New API function.
10270         (acc_copyout_async): Likewise.
10271         (update_dev_host): Add async parameter and async setting/unsetting.
10272         (acc_update_device): Adjust update_dev_host call.
10273         (acc_update_self): Likewise.
10274         (acc_update_device_async): New API function.
10275         (acc_update_self_async): Likewise.
10276         * openacc.h (acc_copyin_async): Declare new API function.
10277         (acc_create_async): Likewise.
10278         (acc_copyout_async): Likewise.
10279         (acc_delete_async): Likewise.
10280         (acc_update_device_async): Likewise.
10281         (acc_update_self_async): Likewise.
10282         (acc_memcpy_to_device_async): Likewise.
10283         (acc_memcpy_from_device_async): Likewise.
10284         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10285         (acc_copyin_async_64_h): New subroutine.
10286         (acc_copyin_async_array_h): New subroutine.
10287         (acc_create_async_32_h): New subroutine.
10288         (acc_create_async_64_h): New subroutine.
10289         (acc_create_async_array_h): New subroutine.
10290         (acc_copyout_async_32_h): New subroutine.
10291         (acc_copyout_async_64_h): New subroutine.
10292         (acc_copyout_async_array_h): New subroutine.
10293         (acc_delete_async_32_h): New subroutine.
10294         (acc_delete_async_64_h): New subroutine.
10295         (acc_delete_async_array_h): New subroutine.
10296         (acc_update_device_async_32_h): New subroutine.
10297         (acc_update_device_async_64_h): New subroutine.
10298         (acc_update_device_async_array_h): New subroutine.
10299         (acc_update_self_async_32_h): New subroutine.
10300         (acc_update_self_async_64_h): New subroutine.
10301         (acc_update_self_async_array_h): New subroutine.
10302         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10303         (acc_copyin_async_64_h): New subroutine.
10304         (acc_copyin_async_array_h): New subroutine.
10305         (acc_create_async_32_h): New subroutine.
10306         (acc_create_async_64_h): New subroutine.
10307         (acc_create_async_array_h): New subroutine.
10308         (acc_copyout_async_32_h): New subroutine.
10309         (acc_copyout_async_64_h): New subroutine.
10310         (acc_copyout_async_array_h): New subroutine.
10311         (acc_delete_async_32_h): New subroutine.
10312         (acc_delete_async_64_h): New subroutine.
10313         (acc_delete_async_array_h): New subroutine.
10314         (acc_update_device_async_32_h): New subroutine.
10315         (acc_update_device_async_64_h): New subroutine.
10316         (acc_update_device_async_array_h): New subroutine.
10317         (acc_update_self_async_32_h): New subroutine.
10318         (acc_update_self_async_64_h): New subroutine.
10319         (acc_update_self_async_array_h): New subroutine.
10320         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10321         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10322         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10323         acc_memcpy_to_device_async*, acc_update_device_async*, and
10324         acc_update_self_async* entries.
10325         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10326         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10327         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10329 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10331         PR bootstrap/82856
10332         * Makefile.am: Include multilib.am
10333         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10334         (CLEANFILES): Remove libgomp.info.
10335         * configure.ac: Remove AC_PREREQ.
10336         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10337         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10338         Regenerate.
10340 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10341             Julian Brown  <julian@codesourcery.com>
10343         * testsuite/libgomp.oacc-c++/this.C: New.
10345 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10347         * plugin/plugin-nvptx.c (struct cuda_map): New.
10348         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10349         h_tail with (cuda_map *) map.
10350         (cuda_map_create): New function.
10351         (cuda_map_destroy): New function.
10352         (map_init): Update to use a linked list of cuda_map objects.
10353         (map_fini): Likewise.
10354         (map_pop): Likewise.
10355         (map_push): Likewise.  Return CUdeviceptr instead of void.
10356         (init_streams_for_device): Remove stales references to ptx_stream
10357         members.
10358         (select_stream_for_async): Likewise.
10359         (nvptx_exec): Update call to map_init.
10361 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
10362             Julian Brown  <julian@codesourcery.com>
10364         PR middle-end/86336
10365         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10367 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
10368         Thomas Koenig <tkoenig@gcc.gnu.org>
10370         PR fortran/25829
10371         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10372         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10373         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10374         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10375         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10376         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10377         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10379 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10380             Tom de Vries  <tdevries@suse.de>
10382         PR target/85590
10383         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10384         (cuOccupancyMaxPotentialBlockSize): Declare.
10385         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10386         CUDA_ONE_CALL_MAYBE_NULL.
10387         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10388         CUoccupancyB2DSize and declare
10389         cuOccupancyMaxPotentialBlockSize.
10390         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10391         default num_gangs and num_workers when the driver supports it.
10393 2018-08-08  Tom de Vries  <tdevries@suse.de>
10395         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10396         CUDA_ONE_CALL_MAYBE_NULL.
10397         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10398         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10399         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10400         are not found.
10402 2018-08-08  Tom de Vries  <tdevries@suse.de>
10404         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10405         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10406         present.
10408 2018-08-08  Tom de Vries  <tdevries@suse.de>
10410         * plugin/plugin-nvptx.c
10411         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10412         (nvptx_open_device): Use
10413         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10415 2018-08-08  Tom de Vries  <tdevries@suse.de>
10417         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10418         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10420 2018-08-07  Tom de Vries  <tdevries@suse.de>
10422         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10423         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10424         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10425         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10426         CUDA_ONE_CALL_MAYBE_NULL.
10427         (CUDA_CALL_EXISTS): Define.
10429 2018-08-07  Tom de Vries  <tdevries@suse.de>
10431         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10432         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10433         corresponding undefs right after.
10435 2018-08-04  Tom de Vries  <tdevries@suse.de>
10437         * plugin/configfrag.ac: For --without-cuda-driver, set
10438         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10439         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10440         * configure: Regenerate.
10442 2018-08-02  Tom de Vries  <tdevries@suse.de>
10444         PR target/86660
10445         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10446         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10447         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10448         Same.
10449         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10450         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10451         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10453 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10454             Thomas Schwinge <thomas@codesourcery.com>
10456         * config/nvptx/oacc-parallel.c: Truncate.
10458 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10459             James Norris <jnorris@codesourcery.com>
10461         * plugin/plugin-nvptx.c (struct map): Removed.
10462         (map_init, map_pop): Remove use of struct map.
10463         (map_push): Likewise and change argument list.
10464         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10466 2018-08-01  Tom de Vries  <tdevries@suse.de>
10468         * plugin/cuda-lib.def: New file.  Factor out of ...
10469         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10470         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10471         using CUDA_CALLS.
10473 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10475         Revert 'AsyncI/O patch committed'.
10476         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10477                 Thomas Koenig <tkoenig@gcc.gnu.org>
10479         PR fortran/25829
10480         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10481         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10482         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10483         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10484         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10485         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10486         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10488 2018-07-30  Tom de Vries  <tdevries@suse.de>
10490         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10491         (nvptx_exec): Ensure worker and vector default dims don't exceed
10492         targ_fn->max_threads_per_block.
10494 2018-07-30  Tom de Vries  <tdevries@suse.de>
10496         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10497         (nvptx_open_device): Init default_dims for device.
10498         (nvptx_exec): Use default_dims from device.
10500 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10502         PR testsuite/86660
10503         * testsuite/libgomp.c++/for-15.C (results): Include it in
10504         omp declare target region.
10505         (main): Use map (always, tofrom: results) instead of
10506         map (tofrom: results).
10508         PR middle-end/86660
10509         * testsuite/libgomp.c/pr86660.c: New test.
10511 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10512             Tom de Vries  <tdevries@suse.de>
10514         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10515         sufficient resources to launch a kernel, and give a hint on how to fix
10516         it.
10518 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10519             Tom de Vries  <tdevries@suse.de>
10521         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10522         max_threads_per_block and max_threads_per_multiprocessor fields.
10523         (nvptx_open_device): Initialize new fields.
10524         (nvptx_exec): Use num_sms, and new fields.
10526 2018-07-26  Tom de Vries  <tdevries@suse.de>
10528         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10529         to correct locations.  Remove xfail.
10531 2018-07-26  Tom de Vries  <tdevries@suse.de>
10533         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10534         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10535         xfail.
10537 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10538         Thomas Koenig <tkoenig@gcc.gnu.org>
10540         PR fortran/25829
10541         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10542         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10543         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10544         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10545         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10546         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10547         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10549 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10551         PR middle-end/86542
10552         * testsuite/libgomp.c++/pr86542.C: New test.
10554         PR middle-end/86539
10555         * testsuite/libgomp.c++/pr86539.C: New test.
10557 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
10559         PR c++/86443
10560         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10561         (results): Make sure the variable is not inside declare target region.
10562         (qux): Remove unused function.
10564 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
10566         PR c++/86443
10567         * testsuite/libgomp.c++/for-15.C: New test.
10569 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
10571         PR c++/86291
10572         * testsuite/libgomp.c++/pr86291.C: New test.
10574 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
10576         * libgomp.texi (Top): Move www.openmp.org to https.
10577         (Enabling OpenMP): Ditto.
10578         (omp_get_active_level): Ditto.
10579         (omp_get_ancestor_thread_num): Ditto.
10580         (omp_get_cancellation): Ditto.
10581         (omp_get_default_device): Ditto.
10582         (omp_get_dynamic): Ditto.
10583         (omp_get_level): Ditto.
10584         (omp_get_max_active_levels): Ditto.
10585         (omp_get_max_task_priority): Ditto.
10586         (omp_get_max_threads): Ditto.
10587         (omp_get_nested): Ditto.
10588         (omp_get_num_devices): Ditto.
10589         (omp_get_num_procs): Ditto.
10590         (omp_get_num_teams): Ditto.
10591         (omp_get_num_threads): Ditto.
10592         (omp_get_proc_bind): Ditto.
10593         (omp_get_schedule): Ditto.
10594         (omp_get_team_num): Ditto.
10595         (omp_get_team_size): Ditto.
10596         (omp_get_thread_limit): Ditto.
10597         (omp_get_thread_num): Ditto.
10598         (omp_in_parallel): Ditto.
10599         (omp_in_final): Ditto.
10600         (omp_is_initial_device): Ditto.
10601         (omp_set_default_device): Ditto.
10602         (omp_set_dynamic): Ditto.
10603         (omp_set_max_active_levels): Ditto.
10604         (omp_set_nested): Ditto.
10605         (omp_set_num_threads): Ditto.
10606         (omp_set_schedule): Ditto.
10607         (omp_init_lock): Ditto.
10608         (omp_set_lock): Ditto.
10609         (omp_test_lock): Ditto.
10610         (omp_unset_lock): Ditto.
10611         (omp_destroy_lock): Ditto.
10612         (omp_init_nest_lock): Ditto.
10613         (omp_set_nest_lock): Ditto.
10614         (omp_test_nest_lock): Ditto.
10615         (omp_unset_nest_lock): Ditto.
10616         (omp_destroy_nest_lock): Ditto.
10617         (omp_get_wtick): Ditto.
10618         (omp_get_wtime): Ditto.
10619         (OMP_CANCELLATION): Ditto.
10620         (OMP_DISPLAY_ENV): Ditto.
10621         (OMP_DEFAULT_DEVICE): Ditto.
10622         (OMP_DYNAMIC): Ditto.
10623         (OMP_MAX_ACTIVE_LEVELS): Ditto.
10624         (OMP_MAX_TASK_PRIORITY): Ditto.
10625         (OMP_NESTED): Ditto.
10626         (OMP_NUM_THREADS): Ditto.
10627         (OMP_PROC_BIND): Ditto.
10628         (OMP_PLACES): Ditto.
10629         (OMP_STACKSIZE): Ditto.
10630         (OMP_SCHEDULE): Ditto.
10631         (OMP_THREAD_LIMIT): Ditto.
10632         (OMP_WAIT_POLICY): Ditto.
10634 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
10635             James Norris  <jnorris@codesourcery.com>
10636             Julian Brown  <julian@codesourcery.com>
10637             Thomas Schwinge  <thomas@codesourcery.com>
10638             Tom de Vries  <tom@codesourcery.com>
10640         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10641         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10642         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10643         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10644         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10645         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10646         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10647         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10648         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10649         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10650         Likewise.
10651         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10652         Likewise.
10653         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10654         Likewise.
10655         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10656         Likewise.
10657         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10658         Likewise.
10659         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10660         Likewise.
10661         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10662         Likewise.
10663         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10664         Likewise.
10665         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10666         Likewise.
10667         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10668         Likewise.
10669         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10670         Likewise.
10671         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10672         Likewise.
10673         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10674         Likewise.
10675         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10676         Likewise.
10677         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10678         Likewise.
10679         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10680         Likewise.
10681         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10682         Likewise.
10683         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10684         Likewise.
10685         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10686         Likewise.
10687         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10688         Likewise.
10689         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10690         Likewise.
10691         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10692         Likewise.
10693         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10694         Likewise.
10695         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10696         Likewise.
10697         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10698         Likewise.
10699         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10700         Likewise.
10701         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10702         Likewise.
10703         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10704         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10705         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10706         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10707         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10708         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10709         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10710         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10711         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10712         Likewise.
10713         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10714         Likewise.
10715         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10716         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10717         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10718         Likewise.
10719         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10720         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10721         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10722         Likewise.
10723         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10724         Likewise.
10725         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10726         Likewise.
10727         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10728         Likewise.
10729         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10730         Likewise.
10731         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10732         Likewise.
10733         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10734         Likewise.
10735         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10736         Likewise.
10737         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10738         Likewise.
10739         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10740         Likewise.
10741         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10742         Likewise.
10743         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10744         Likewise.
10745         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10746         Likewise.
10747         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10748         Likewise.
10749         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10750         Likewise.
10751         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10752         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10753         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10754         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10755         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10756         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10757         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10759 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
10760             Thomas Schwinge <thomas@codesourcery.com>
10761             Cesar Philippidis  <cesar@codesourcery.com>
10763         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10764         (gomp_acc_remove_pointer): Update declaration.
10765         (gomp_acc_declare_allocate): Declare.
10766         (gomp_remove_var): Declare.
10767         * libgomp.map (OACC_2.5): Define.
10768         * oacc-mem.c (acc_map_data): Update refcount.
10769         (acc_unmap_data): Likewise.
10770         (present_create_copy): Likewise.
10771         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10772         (acc_copyin): Likewise.
10773         (FLAG_FINALIZE): Define.
10774         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10775         (acc_delete_finalize): New function.
10776         (acc_delete_finalize_async): New function.
10777         (acc_copyout_finalize): New function.
10778         (acc_copyout_finalize_async): New function.
10779         (gomp_acc_insert_pointer): Update refcounts.
10780         (gomp_acc_remove_pointer): Return if data is not present on the
10781         accelerator.
10782         * oacc-parallel.c (find_pset): Rename to find_pointer.
10783         (find_pointer): Add support for GOMP_MAP_POINTER.
10784         (handle_ftn_pointers): New function.
10785         (GOACC_parallel_keyed): Update refcounts of variables.
10786         (GOACC_enter_exit_data): Add support for finalized data mappings.
10787         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10788         of fortran arrays.
10789         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10790         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10791         for GOMP_MAP_FORCE_FROM.
10792         * openacc.f90 (module openacc_internal): Add
10793         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10794         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10795         acc_copyout_finalize and acc_delete_finalize.
10796         (acc_copyout_finalize_32_h): New subroutine.
10797         (acc_copyout_finalize_64_h): New subroutine.
10798         (acc_copyout_finalize_array_h): New subroutine.
10799         (acc_delete_finalize_32_h): New subroutine.
10800         (acc_delete_finalize_64_h): New subroutine.
10801         (acc_delete_finalize_array_h): New subroutine.
10802         * openacc.h (acc_copyout_finalize): Declare.
10803         (acc_copyout_finalize_async): Declare.
10804         (acc_delete_finalize): Declare.
10805         (acc_delete_finalize_async): Declare.
10806         * openacc_lib.h (acc_copyout_finalize): New interface.
10807         (acc_delete_finalize): New interface.
10808         * target.c (gomp_map_vars): Update dynamic_refcount.
10809         (gomp_remove_var): New function.
10810         (gomp_unmap_vars): Use it.
10811         (gomp_unload_image_from_device): Likewise.
10812         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10813         case to utilize OpenACC 2.5 data clause semantics.
10814         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10815         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10816         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10817         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10818         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10819         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10820         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10821         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10822         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10823         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10824         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10825         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10826         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10827         utilize OpenACC 2.5 data clause semantics.
10828         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10829         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10830         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10831         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10832         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10833         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10834         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10835         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10836         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10838 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
10840         PR fortran/85841
10841         PR testsuite/85865
10842         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10843         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10844         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10845         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10846         * testsuite/libgomp.fortran/task2.f90: Ditto.
10847         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10848         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10849         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10850         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10851         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10852         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10853         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10854         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10855         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10857 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
10859         PR c++/85782
10860         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10862 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10864         PR libgomp/82901
10865         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10866         to GOACC_enter_exit_data.
10868 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10870         PR libgomp/83792
10871         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10872         (async_synchronous_p): New function.
10873         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10874         async_valid_p.
10875         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10876         async_valid_stream_id_p.
10877         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10878         * oacc-parallel.c (GOACC_parallel_keyed): Same.
10880 2018-05-07  Tom de Vries  <tom@codesourcery.com>
10882         PR testsuite/85677
10883         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10884         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10886 2018-05-03  Tom de Vries  <tom@codesourcery.com>
10888         PR testsuite/85106
10889         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10890         extra_tool_flags if it contains an -foffload=-fdump-* flag.
10891         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10892         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10894 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10896         PR libgomp/85411
10897         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10898         GOMP_OPENACC_DIM ...
10899         * env.c (parse_gomp_openacc_dim): ... here.  New function.
10900         (initialize_env): Call parse_gomp_openacc_dim.
10901         (goacc_default_dims): Define.
10902         * libgomp.h (goacc_default_dims): Declare.
10903         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10904         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10905         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10906         GOMP_PLUGIN_acc_default_dim.
10907         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10908         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10910 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10912         PR testsuite/83791
10913         * testsuite/libgomp.c++/udr-9.C: Update.
10914         * testsuite/libgomp.c++/atomic-16.C: Remove.
10915         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10916         * testsuite/libgomp.c++/loop-13.C: Remove.
10917         * testsuite/libgomp.c++/loop-14.C: Remove.
10918         * testsuite/libgomp.c++/loop-15.C: Remove.
10919         * testsuite/libgomp.c++/monotonic-1.C: Remove.
10920         * testsuite/libgomp.c++/monotonic-2.C: Remove.
10921         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10922         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10923         * testsuite/libgomp.c++/ordered-1.C: Remove.
10924         * testsuite/libgomp.c++/pr45784.C: Remove.
10925         * testsuite/libgomp.c++/pr64824.C: Remove.
10926         * testsuite/libgomp.c++/pr64868.C: Remove.
10927         * testsuite/libgomp.c++/pr66199-1.C: Remove.
10928         * testsuite/libgomp.c++/pr66199-2.C: Remove.
10929         * testsuite/libgomp.c++/pr66199-3.C: Remove.
10930         * testsuite/libgomp.c++/pr66199-4.C: Remove.
10931         * testsuite/libgomp.c++/pr66199-5.C: Remove.
10932         * testsuite/libgomp.c++/pr66199-6.C: Remove.
10933         * testsuite/libgomp.c++/pr66199-7.C: Remove.
10934         * testsuite/libgomp.c++/pr66199-8.C: Remove.
10935         * testsuite/libgomp.c++/pr66199-9.C: Remove.
10936         * testsuite/libgomp.c++/pr69389.C: Remove.
10937         * testsuite/libgomp.c++/simd10.C: Remove.
10938         * testsuite/libgomp.c++/simd11.C: Remove.
10939         * testsuite/libgomp.c++/simd12.C: Remove.
10940         * testsuite/libgomp.c++/simd13.C: Remove.
10941         * testsuite/libgomp.c++/target-1.C: Remove.
10942         * testsuite/libgomp.c++/target-3.C: Remove.
10943         * testsuite/libgomp.c++/target-4.C: Remove.
10944         * testsuite/libgomp.c++/target-5.C: Remove.
10945         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10946         * testsuite/libgomp.c++/taskloop-1.C: Remove.
10947         * testsuite/libgomp.c++/taskloop-2.C: Remove.
10948         * testsuite/libgomp.c++/taskloop-3.C: Remove.
10949         * testsuite/libgomp.c++/taskloop-4.C: Remove.
10950         * testsuite/libgomp.c++/udr-9.C: Remove.
10951         * testsuite/libgomp.c++/for-10.C: Remove.
10952         * testsuite/libgomp.c++/for-11.C: Remove.
10953         * testsuite/libgomp.c++/for-12.C: Remove.
10954         * testsuite/libgomp.c++/for-13.C: Remove.
10955         * testsuite/libgomp.c++/for-14.C: Remove.
10956         * testsuite/libgomp.c++/for-9.C: Remove.
10957         * testsuite/libgomp.c/atomic-18.c: Move ...
10958         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10959         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10960         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10961         * testsuite/libgomp.c/loop-13.c: Move ...
10962         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10963         * testsuite/libgomp.c/loop-14.c: Move ...
10964         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10965         * testsuite/libgomp.c/loop-15.c: Remove.
10966         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10967         * testsuite/libgomp.c/monotonic-1.c: Move ...
10968         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10969         * testsuite/libgomp.c/monotonic-2.c: Move ...
10970         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10971         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10972         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10973         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10974         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10975         * testsuite/libgomp.c/ordered-4.c: Move ...
10976         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10977         * testsuite/libgomp.c/pr45784.c: Move ...
10978         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10979         * testsuite/libgomp.c/pr64824.c: Move ...
10980         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10981         * testsuite/libgomp.c/pr64868.c: Move ...
10982         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10983         * testsuite/libgomp.c/pr66199-1.c: Move ...
10984         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10985         * testsuite/libgomp.c/pr66199-2.c: Move ...
10986         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10987         * testsuite/libgomp.c/pr66199-3.c: Move ...
10988         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10989         * testsuite/libgomp.c/pr66199-4.c: Move ...
10990         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10991         * testsuite/libgomp.c/pr66199-5.c: Move ...
10992         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10993         * testsuite/libgomp.c/pr66199-6.c: Move ...
10994         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10995         * testsuite/libgomp.c/pr66199-7.c: Move ...
10996         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10997         * testsuite/libgomp.c/pr66199-8.c: Move ...
10998         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10999         * testsuite/libgomp.c/pr66199-9.c: Move ...
11000         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11001         * testsuite/libgomp.c/pr69389.c: Move ...
11002         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11003         * testsuite/libgomp.c/simd-14.c: Move ...
11004         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11005         * testsuite/libgomp.c/simd-15.c: Move ...
11006         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11007         * testsuite/libgomp.c/simd-16.c: Move ...
11008         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11009         * testsuite/libgomp.c/simd-17.c: Move ...
11010         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11011         * testsuite/libgomp.c/target-1.c: Move ...
11012         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11013         * testsuite/libgomp.c/target-10.c: Move ...
11014         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11015         * testsuite/libgomp.c/target-13.c: Move ...
11016         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11017         * testsuite/libgomp.c/target-2.c: Move ...
11018         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11019         * testsuite/libgomp.c/taskgroup-1.c: Move ...
11020         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11021         * testsuite/libgomp.c/taskloop-1.c: Move ...
11022         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11023         * testsuite/libgomp.c/taskloop-2.c: Move ...
11024         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11025         * testsuite/libgomp.c/taskloop-3.c: Move ...
11026         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11027         * testsuite/libgomp.c/taskloop-4.c: Move ...
11028         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11029         * testsuite/libgomp.c/udr-1.c: Move ...
11030         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11031         * testsuite/libgomp.c/for-1.c: Move ...
11032         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11033         * testsuite/libgomp.c/for-1.h: Move ...
11034         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11035         * testsuite/libgomp.c/for-2.c: Move ...
11036         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11037         * testsuite/libgomp.c/for-2.h: Move ...
11038         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11039         * testsuite/libgomp.c/for-3.c: Move ...
11040         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11041         * testsuite/libgomp.c/for-4.c: Move ...
11042         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11043         * testsuite/libgomp.c/for-5.c: Move ...
11044         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11045         * testsuite/libgomp.c/for-6.c: Move ...
11046         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11048 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11050         PR libgomp/82428
11051         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11052         __builtin_goacc_parlevel_{id,size}.
11053         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11054         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11055         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11056         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11057         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11058         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11059         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11060         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11061         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11062         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11063         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11064         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11065         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11066         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11067         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11068         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11069         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11070         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11071         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11072         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11073         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11074         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11075         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11077 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11079         PR testsuite/85106
11080         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11082 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11084         PR testsuite/85106
11085         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11087 2018-04-29  Julian Brown  <julian@codesourcery.com>
11088             Tom de Vries  <tom@codesourcery.com>
11090         PR testsuite/85527
11091         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11092         arbitrary order for iterations of atomic subtract check.
11094 2018-04-28  Tom de Vries  <tom@codesourcery.com>
11096         PR testsuite/85527
11097         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11098         atomic capture results obtained in parallel loop to an array, instead of
11099         to a scalar.
11101 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11103         PR libgomp/84020
11104         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11105         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11106         (process_GOMP_NVPTX_JIT): New function.
11107         (link_ptx): Use process_GOMP_NVPTX_JIT.
11109 2018-04-26  Richard Biener <rguenther@suse.de>
11110             Tom de Vries  <tom@codesourcery.com>
11112         PR lto/85422
11113         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11115 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11117         PR target/85519
11118         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11119         recursion depth from 25 to 23.
11120         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11122 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11124         * configure: Regenerated.
11126 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11127             Tom de Vries  <tom@codesourcery.com>
11129         PR target/85445
11130         * testsuite/libgomp.oacc-c++/ref-1.C: New.
11132 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
11134         PR libgomp/85463
11135         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11136         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11137         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11138         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11139         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11140         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11142         PR libfortran/85166
11143         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11144         abort".
11145         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11147 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
11149         * configure: Regenerated.
11151 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
11153         PR jit/85384
11154         * configure: Regenerate.
11156 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
11157             Tom de Vries  <tom@codesourcery.com>
11159         PR middle-end/84955
11160         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11161         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11163 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
11165         PR fortran/83064
11166         PR testsuite/85346
11167         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11168         test from gfortran.dg to here.
11170 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11172         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11173         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11175 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11177         PR middle-end/84955
11178         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11179         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11181 2018-04-05  Tom de Vries  <tom@codesourcery.com>
11183         PR target/85204
11184         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11186 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11188         PR tree-optimization/85063
11189         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11190         * testsuite/libgomp.c/switch-conversion.c: New test.
11191         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11192         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11194 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11196         PR fortran/84381
11197         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11198         call abort by STOP n.
11199         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11200         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11201         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11202         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11203         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11204         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11205         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11206         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11207         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11208         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11209         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11210         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11211         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11212         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11213         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11214         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11215         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11216         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11217         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11218         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11219         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11220         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11221         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11222         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11223         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11224         * testsuite/libgomp.fortran/character1.f90: Likewise.
11225         * testsuite/libgomp.fortran/character2.f90: Likewise.
11226         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11227         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11228         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11229         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11230         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11231         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11232         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11233         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11234         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11235         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11236         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11237         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11238         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11239         * testsuite/libgomp.fortran/do1.f90: Likewise.
11240         * testsuite/libgomp.fortran/do2.f90: Likewise.
11241         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11242         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11243         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11244         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11245         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11246         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11247         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11248         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11249         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11250         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11251         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11252         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11253         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11254         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11255         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11256         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11257         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11258         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11259         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11260         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11261         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11262         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11263         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11264         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11265         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11266         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11267         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11268         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11269         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11270         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11271         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11272         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11273         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11274         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11275         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11276         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11277         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11278         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11279         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11280         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11281         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11282         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11283         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11284         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11285         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11286         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11287         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11288         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11289         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11290         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11291         * testsuite/libgomp.fortran/lib2.f: Likewise.
11292         * testsuite/libgomp.fortran/lib3.f: Likewise.
11293         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11294         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11295         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11296         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11297         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11298         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11299         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11300         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11301         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11302         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11303         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11304         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11305         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11306         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11307         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11308         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11309         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11310         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11311         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11312         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11313         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11314         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11315         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11316         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11317         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11318         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11319         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11320         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11321         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11322         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11323         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11324         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11325         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11326         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11327         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11328         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11329         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11330         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11331         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11332         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11333         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11334         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11335         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11336         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11337         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11338         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11339         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11340         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11341         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11342         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11343         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11344         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11345         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11346         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11347         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11348         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11349         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11350         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11351         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11352         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11353         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11354         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11355         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11356         * testsuite/libgomp.fortran/reference1.f90: Likewise.
11357         * testsuite/libgomp.fortran/reference2.f90: Likewise.
11358         * testsuite/libgomp.fortran/retval1.f90: Likewise.
11359         * testsuite/libgomp.fortran/retval2.f90: Likewise.
11360         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11361         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11362         * testsuite/libgomp.fortran/simd1.f90: Likewise.
11363         * testsuite/libgomp.fortran/simd2.f90: Likewise.
11364         * testsuite/libgomp.fortran/simd3.f90: Likewise.
11365         * testsuite/libgomp.fortran/simd4.f90: Likewise.
11366         * testsuite/libgomp.fortran/simd5.f90: Likewise.
11367         * testsuite/libgomp.fortran/simd6.f90: Likewise.
11368         * testsuite/libgomp.fortran/simd7.f90: Likewise.
11369         * testsuite/libgomp.fortran/stack.f90: Likewise.
11370         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11371         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11372         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11373         * testsuite/libgomp.fortran/target1.f90: Likewise.
11374         * testsuite/libgomp.fortran/target2.f90: Likewise.
11375         * testsuite/libgomp.fortran/target3.f90: Likewise.
11376         * testsuite/libgomp.fortran/target4.f90: Likewise.
11377         * testsuite/libgomp.fortran/target5.f90: Likewise.
11378         * testsuite/libgomp.fortran/target6.f90: Likewise.
11379         * testsuite/libgomp.fortran/target7.f90: Likewise.
11380         * testsuite/libgomp.fortran/target8.f90: Likewise.
11381         * testsuite/libgomp.fortran/task1.f90: Likewise.
11382         * testsuite/libgomp.fortran/task2.f90: Likewise.
11383         * testsuite/libgomp.fortran/task3.f90: Likewise.
11384         * testsuite/libgomp.fortran/task4.f90: Likewise.
11385         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11386         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11387         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11388         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11389         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11390         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11391         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11392         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11393         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11394         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11395         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11396         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11397         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11398         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11399         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11400         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11401         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11402         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11403         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11404         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11405         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11406         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11407         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11408         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11409         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11410         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11411         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11412         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11413         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11414         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11415         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11416         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11417         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11418         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11419         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11420         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11421         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11422         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11423         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11424         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11425         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11426         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11427         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11428         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11429         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11430         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11431         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11432         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11433         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11434         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11435         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11436         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11437         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11438         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11439         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11440         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11441         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11442         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11443         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11444         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11445         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11446         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11447         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11448         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11449         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11450         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11451         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11452         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11453         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11454         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11455         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11456         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11457         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11458         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11459         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11460         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11461         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11462         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11463         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11464         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11465         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11466         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11467         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11468         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11469         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11470         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11471         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11472         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11473         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11474         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11475         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11476         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11477         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11478         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11479         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11480         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11481         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11482         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11483         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11484         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11485         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11486         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11487         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11488         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11489         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11490         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11491         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11492         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11493         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11494         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11495         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11496         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11497         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11498         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11499         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11500         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11501         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11502         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11503         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11504         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11505         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11506         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11507         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11508         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11509         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11510         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11512 2018-03-20  Richard Biener  <rguenther@suse.de>
11514         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11515         parallelizable loop.
11517 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11519         PR target/84148
11520         * configure: Regenerate.
11522 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11524         PR fortran/84418
11525         * libgomp.fortran/pr84418-1.f90: New test.
11526         * libgomp.fortran/pr84418-2.f90: New test.
11528 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11530         PR fortran/84313
11531         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11532         -std=f2003 -fall-intrinsics into dg-additional-options.
11534 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11536         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11537         clonable.
11539 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11541         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11543 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11545         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11546         [__cplusplus]: Declare extern "C".
11548 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11550         PR libgomp/84217
11551         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11553 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11554             Jakub Jelinek  <jakub@redhat.com>
11556         PR libgomp/84096
11557         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11558         instead of omp_lock_t.
11560 2018-01-25  Tom de Vries  <tom@codesourcery.com>
11562         PR target/84028
11563         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11565 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11567         PR target/83589
11568         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11570 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11572         PR target/81352
11573         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11575 2018-01-19  Tom de Vries  <tom@codesourcery.com>
11576             Cesar Philippidis  <cesar@codesourcery.com>
11578         PR target/83920
11579         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11580         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11582 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11584         Update copyright years.
11586         * libgomp.texi: Bump @copying's copyright year.
11588 2017-12-30  Tom de Vries  <tom@codesourcery.com>
11590         PR libgomp/83046
11591         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11592         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11594 2017-12-27  Tom de Vries  <tom@codesourcery.com>
11596         PR c++/83046
11597         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11598         (test_nonstatic): Fix return type to workaround PR83046.
11600 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
11602         PR testsuite/83281
11603         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11604         j suffix instead of i.
11605         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11606         Likewise.
11608 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
11610         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11611         call to acc_wait (1).
11613 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
11615         PR fortran/81304
11616         * testsuite/libgomp.fortran/pr81304.f90: New test.
11618 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
11620         PR fortran/81841
11621         * libgomp.fortran/pr81841.f90: New test.
11623 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
11625         PR libgomp/83106
11626         * target.c (gomp_target_init): Compute lengths just once and
11627         use them in both malloc size and subsequent copying.
11629 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11631         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11632         * acinclude.m4: Add cet.m4.
11633         * configure: Regenerate.
11634         * Makefile.in: Likewise.
11635         * testsuite/Makefile.in: Likewise.
11637 2017-11-15  Tom de Vries  <tom@codesourcery.com>
11639         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11640         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
11641         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11642         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
11643         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11644         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
11646 2017-11-14  Tom de Vries  <tom@codesourcery.com>
11648         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11649         non-nvidia devices.
11651 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
11653         PR c++/82835
11654         * testsuite/libgomp.c++/pr82835.C: New test.
11656 2017-11-06  Martin Liska  <mliska@suse.cz>
11658         * testsuite/libgomp.c++/loop-2.C: Return a value
11659         for functions with non-void return type, or change type to void,
11660         or add -Wno-return-type for test.
11661         * testsuite/libgomp.c++/loop-4.C: Likewise.
11662         * testsuite/libgomp.c++/parallel-1.C: Likewise.
11663         * testsuite/libgomp.c++/shared-1.C: Likewise.
11664         * testsuite/libgomp.c++/single-1.C: Likewise.
11665         * testsuite/libgomp.c++/single-2.C: Likewise.
11667 2017-10-31  Tom de Vries  <tom@codesourcery.com>
11669         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11670         "do {} while (false)".
11671         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11672         after HSA_DEBUG call.
11674 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
11676         * target.c (struct gomp_coalesce_buf): New type.
11677         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11678         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11679         (gomp_copy_host2dev): Add CBUF argument, if copying into
11680         the cached ranges, memcpy into buffer instead of copying
11681         into device.
11682         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11683         Add CBUF argument, pass it through to other calls.
11684         (gomp_map_vars): Aggregate copies from host to device if small enough
11685         and with small enough gaps in between into memcpy into a buffer and
11686         fewer host to device copies from the buffer.
11687         (gomp_update): Adjust gomp_copy_host2dev caller.
11689 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
11691         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11692         run" directive.
11693         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11694         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11695         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11696         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11698 2017-10-16  Tom de Vries  <tom@codesourcery.com>
11700         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11701         openacc_nvidia_accel_selected.
11702         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11703         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11704         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11705         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11706         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11707         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11708         openacc_nvidia_accel_selected. Skip for shared memory device.
11709         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11710         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11712 2017-10-09  Martin Jambor  <mjambor@suse.cz>
11714         PR hsa/82416
11715         * testsuite/libgomp.hsa.c/pr82416.c: New test.
11717 2017-10-07  Tom de Vries  <tom@codesourcery.com>
11719         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11720         Remove acc_device_nvidia references.
11721         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11722         Same.
11724 2017-10-05  Tom de Vries  <tom@codesourcery.com>
11726         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11727         vector_length(32) clause from acc parallel directive.
11728         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11730 2017-10-04  Tom de Vries  <tom@codesourcery.com>
11732         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11733         (main): Reduce sum of arr elements.  Assert that hres is exactly
11734         representable in 32-bit floating point.
11735         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11736         (main): Reduce sum of arr elements.  Assert that hres and hmres are
11737         exactly representable in 32-bit floating point.
11738         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11740 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11742         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11743         setting.
11744         * testsuite/libgomp.c++/pr69393.C: Same.
11745         * testsuite/libgomp.c++/taskloop-1.C: Same.
11746         * testsuite/libgomp.c++/taskloop-3.C: Same.
11747         * testsuite/libgomp.c++/taskloop-4.C: Same.
11748         * testsuite/libgomp.c/for-4.c: Same.
11749         * testsuite/libgomp.c/pr66199-3.c: Same.
11750         * testsuite/libgomp.c/pr66199-4.c: Same.
11751         * testsuite/libgomp.c/pr66199-6.c: Same.
11752         * testsuite/libgomp.c/taskloop-1.c: Same.
11753         * testsuite/libgomp.c/taskloop-3.c: Same.
11754         * testsuite/libgomp.c/taskloop-4.c: Same.
11755         * testsuite/libgomp.fortran/aligned1.f03: Same.
11756         * testsuite/libgomp.fortran/condinc1.f: Same.
11757         * testsuite/libgomp.fortran/condinc3.f90: Same.
11758         * testsuite/libgomp.fortran/crayptr1.f90: Same.
11759         * testsuite/libgomp.fortran/crayptr2.f90: Same.
11760         * testsuite/libgomp.fortran/crayptr3.f90: Same.
11761         * testsuite/libgomp.fortran/omp_cond1.f: Same.
11762         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11763         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11764         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11765         * testsuite/libgomp.fortran/recursion1.f90: Same.
11766         * testsuite/libgomp.fortran/target2.f90: Same.
11767         * testsuite/libgomp.fortran/target5.f90: Same.
11768         * testsuite/libgomp.fortran/task3.f90: Same.
11770 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11772         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11773         vector_length(32) clause from acc parallel directive.
11774         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11776 2017-09-27  Tom de Vries  <tom@codesourcery.com>
11778         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11779         Remove acc_device_nvidia references.
11781 2017-09-16  Tom de Vries  <tom@codesourcery.com>
11783         PR c/81875
11784         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11786 2017-09-14  Tom de Vries  <tom@codesourcery.com>
11788         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11789         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11790         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11791         * testsuite/libgomp.c/c.exp: Include test-cases from
11792         libgomp.c-c++-common.
11793         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
11794         files.
11796 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
11798         PR c++/81314
11799         * testsuite/libgomp.c++/pr81314.C: New test.
11801 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
11803         * libgomp.texi (Top): www.openacc.org now uses https.
11804         (Enabling OpenACC): Ditto.
11805         (acc_get_num_devices): Ditto.
11806         (acc_set_device_type): Ditto.
11807         (acc_get_device_type): Ditto.
11808         (acc_set_device_num): Ditto.
11809         (acc_get_device_num): Ditto.
11810         (acc_async_test): Ditto.
11811         (acc_async_test_all): Ditto.
11812         (acc_wait): Ditto.
11813         (acc_wait_all): Ditto.
11814         (acc_wait_all_async): Ditto.
11815         (acc_wait_async): Ditto.
11816         (acc_init): Ditto.
11817         (acc_shutdown): Ditto.
11818         (acc_on_device): Ditto.
11819         (acc_malloc): Ditto.
11820         (acc_free): Ditto.
11821         (acc_copyin): Ditto.
11822         (acc_present_or_copyin): Ditto.
11823         (acc_create): Ditto.
11824         (acc_present_or_create): Ditto.
11825         (acc_copyout): Ditto.
11826         (acc_delete): Ditto.
11827         (acc_update_device): Ditto.
11828         (acc_update_self): Ditto.
11829         (acc_map_data): Ditto.
11830         (acc_unmap_data): Ditto.
11831         (acc_deviceptr): Ditto.
11832         (acc_hostptr): Ditto.
11833         (acc_is_present): Ditto.
11834         (acc_memcpy_to_device): Ditto.
11835         (acc_memcpy_from_device): Ditto.
11836         (acc_get_current_cuda_device): Ditto.
11837         (acc_get_current_cuda_context): Ditto.
11838         (acc_get_cuda_stream): Ditto.
11839         (acc_set_cuda_stream): Ditto.
11840         (ACC_DEVICE_TYPE): Ditto.
11841         (ACC_DEVICE_NUM): Ditto.
11842         (OpenACC Library Interoperability): Ditto.
11844 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11846         PR c/81687
11847         * testsuite/libgomp.c/pr81687-1.c: New test.
11848         * testsuite/libgomp.c/pr81687-2.c: New test.
11850 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11852         PR c/69389
11853         * testsuite/libgomp.c/pr69389.c: New test.
11854         * testsuite/libgomp.c++/pr69389.C: New test.
11856 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11858         PR middle-end/78266
11859         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11860         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11862 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
11864         PR c/45784
11865         * testsuite/libgomp.c/pr45784.c: New test.
11866         * testsuite/libgomp.c++/pr45784.C: New test.
11868 2017-07-19  Tom de Vries  <tom@codesourcery.com>
11870         * testsuite/libgomp.oacc-c/vec.c: New test.
11872 2017-07-03  Tom de Vries  <tom@codesourcery.com>
11874         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11876 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11878         * plugin/plugin-nvptx.c (notify_var): New function.
11879         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11881 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11883         * env.c (parse_unsigned_long_1): Factor out of ...
11884         (parse_unsigned_long): ... here.
11885         (parse_int_1): Factor out of ...
11886         (parse_int): ... here.
11887         (parse_int_secure): New function.
11888         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11889         * secure_getenv.h: Factor out of ...
11890         * plugin/plugin-hsa.c: ... here.
11891         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11893 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
11895         PR c++/81130
11896         * testsuite/libgomp.c++/pr81130.C: New test.
11898 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11900         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11901         default args.
11902         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11903         dg-xfail-run-if default args.
11905 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11907         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11908         * testsuite/libgomp.c/pr39591-3.c: Likewise.
11910 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
11912         PR libgomp/80822
11913         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11914         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
11915         sibling lists, depending on level just pick up what CPUs to put
11916         together into a place vs. whether add multiple ordered places.
11918 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
11920         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11921         * libgomp.map (OACC_2.0.1): Add these.
11922         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11923         for "acc_wait", and "acc_wait_all", respectively.
11924         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11925         for "acc_wait", and "acc_wait_all", respectively.
11926         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11927         * libgomp.texi (acc_wait, acc_wait_all): Update.
11928         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11929         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11930         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11932         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11933         acc_present_or_copyin and acc_present_or_create procedures,
11934         respectively.
11935         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11936         generally different variants of OpenACC Runtime Library functions.
11937         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11939         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11940         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11942         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11943         of preprocessor definitions.
11944         * libgomp.h (strong_alias): Guard by "#ifdef
11945         HAVE_ATTRIBUTE_ALIAS".
11946         * oacc-mem.c: Provide "acc_pcreate" as alias for
11947         "acc_present_or_create", and "acc_pcopyin" as alias for
11948         "acc_present_or_copyin".
11949         * libgomp.map: New version "OACC_2.0.1".
11950         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11951         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11952         its content into...
11953         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11954         Extend testing.
11956         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11957         when disabling nvptx offloading.
11959 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11961         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11962         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11963         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11965         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11966         * testsuite/lib/libgomp.exp
11967         (check_effective_target_openacc_nvidia_accel_configured): New
11968         proc.
11969         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11970         (check_effective_target_c++): New procs.
11971         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11972         (check_effective_target_c++): Likewise.
11974 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11976         PR middle-end/80809
11977         * testsuite/libgomp.c/pr80809-2.c: New test.
11978         * testsuite/libgomp.c/pr80809-3.c: New test.
11980         PR middle-end/80809
11981         * testsuite/libgomp.c/pr80809-1.c: New test.
11983         PR middle-end/80853
11984         * testsuite/libgomp.c/pr80853.c: New test.
11986 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11988         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11989         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11990         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11991         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11992         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11994         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11995         Debug output for failure.
11997 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11999         * testsuite/lib/libgomp.exp: Load scanlang.exp.
12001 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
12003         PR bootstrap/80531
12004         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12005         bootstrap compare failures.
12007 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
12009         * testsuite/libgomp.c/target-36.c: New testcase.
12011 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
12013         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12014         instead of char.
12016 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
12018         PR libgomp/80394
12019         * testsuite/libgomp.c/pr80394.c: New test.
12021 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12023         PR libgomp/79876
12024         * config/posix/thread-stacksize.h: New file.
12025         * config/darwin/thread-stacksize.h: New file.
12026         * config/nvptx/thread-stacksize.h: New file.
12027         * env.c: Include thread-stacksize.h.
12028         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12029         instead of 0.  Call pthread_attr_setstacksize even if
12030         GOMP_DEFAULT_STACKSIZE is non-zero.
12032 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12034         * env.c (initialize_env): Initialize stacksize to 0.
12036 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
12038         PR c++/80029
12039         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12041 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
12043         PR c/79940
12044         * testsuite/libgomp.c/pr79940.c: New test.
12046 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12048         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12049         targets.
12050         Add __float128 options.
12052 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
12054         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12055         hppa*-*-* dg-skip-if directive.
12057 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
12059         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12060         dg-skip-if directive into a comment.
12062 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
12063             Chung-Lin Tang  <cltang@codesourcery.com>
12065         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12066         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12067         add additional case.
12068         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12069         "openacc_nvidia_accel_selected".
12070         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12071         Add num_workers(8) clause.
12073 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
12075         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12076         hppa*-*-*.
12077         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12078         include complex.h on hppa*-*-hpux*.
12079         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12081 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12083         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12085         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12086         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
12087         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12088         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
12089         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12090         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
12091         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12092         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
12093         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12094         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
12096 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
12098         * libgomp-plugin.h: #include <stdbool.h>.
12099         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12100         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12101         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12102         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12103         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12104         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12105         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12106         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12107         (GOMP_OFFLOAD_openacc_register_async_cleanup)
12108         (GOMP_OFFLOAD_openacc_async_test)
12109         (GOMP_OFFLOAD_openacc_async_test_all)
12110         (GOMP_OFFLOAD_openacc_async_wait)
12111         (GOMP_OFFLOAD_openacc_async_wait_async)
12112         (GOMP_OFFLOAD_openacc_async_wait_all)
12113         (GOMP_OFFLOAD_openacc_async_wait_all_async)
12114         (GOMP_OFFLOAD_openacc_async_set_async)
12115         (GOMP_OFFLOAD_openacc_create_thread_data)
12116         (GOMP_OFFLOAD_openacc_destroy_thread_data)
12117         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12118         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12119         (GOMP_OFFLOAD_openacc_get_cuda_stream)
12120         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12121         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12122         these.
12123         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12124         (GOMP_OFFLOAD_unload_image): Fix argument types.
12126 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12128         * testsuite/lib/libgomp.exp
12129         (check_effective_target_hsa_offloading_selected_nocache): Fix up
12130         check_compile invocation.  Fix up removal of executable.  Drop
12131         bogus "2>&1" argument.
12133         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12134         directive.
12136 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12137             Martin Jambor  <mjambor@suse.cz>
12139         * plugin/hsa.h: Moved to top level include.
12140         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12142 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
12144         PR other/79046
12145         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12146         of cat to get version from BASE-VER file.
12147         * testsuite/Makefile.in: Regenerated.
12149 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
12151         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12152         for _WIN64.
12154 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12156         * plugin/hsa.h: Add GCC runtime library exception.
12157         * plugin/hsa_ext_finalize.h: Likewise.
12159         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12160         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
12161         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12162         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12163         plugin/include/cuda as include dir and -ldl instead of -lcuda as
12164         library to link ptx plugin against.
12165         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12166         (CUDA_CALLS): Define.
12167         (cuda_lib, cuda_lib_inited): New variables.
12168         (init_cuda_lib): New function.
12169         (CUDA_CALL_PREFIX): Define.
12170         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12171         (CUDA_CALL): Use FN instead of (FN).
12172         (CUDA_CALL_NOCHECK): Define.
12173         (cuda_error, fini_streams_for_device, select_stream_for_async,
12174         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12175         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12176         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12177         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12178         CUDA_CALL_NOCHECK.
12179         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
12180         CUDA_CALL_NOCHECK.
12181         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12182         Use CUDA_CALL_NOCHECK.
12183         * plugin/cuda/cuda.h: New file.
12184         * config.h.in: Regenerated.
12185         * configure: Regenerated.
12187         PR other/79046
12188         * configure.ac: Add GCC_BASE_VER.
12189         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12190         get version from BASE-VER file.
12191         * testsuite/Makefile.in: Regenerated.
12192         * configure: Regenerated.
12193         * Makefile.in: Regenerated.
12195 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12197         PR libgomp/60670
12198         * Makefile.am: Make fincludedir multilib-aware.
12199         * Makefile.in: Regenerate.
12201 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12203         Update copyright years.
12205         * libgomp.texi: Bump @copying's copyright year.
12207 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12209         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12210         pthread_spinlock_t instead of gomp_mutex_t lock.
12211         (gomp_get_thread_pool): Likewise.
12212         (gomp_release_thread_pool): Likewise.
12213         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12214         Likewise.
12216 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12218         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12219         thread pool in case nthreads == 1.
12221 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12223         * config/nvptx/env.c: Delete.
12224         * icv.c: Move definitions of ICV variables back ...
12225         * env.c: ...here.  Do not compile environment-related functionality if
12226         LIBGOMP_OFFLOADED_ONLY is set.
12228 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12230         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12231         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12232         * configure: Regenerate.
12233         * config.h.in: Likewise.
12235 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12237         * Makefile.in: Regenerate with automake-1.11.6.
12238         * aclocal.m4: Likewise.
12239         * configure: Likewise.
12240         * testsuite/Makefile.in: Likewise.
12242 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12244         * config/nvptx/critical.c: Delete to use generic implementation.
12246 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12248         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12249         ../../affinity.c as fallback.
12250         * config/nvptx/affinity.c: Delete to use fallback implementation.
12252 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12253             Jakub Jelinek  <jakub@redhat.com>
12254             Dmitry Melnik  <dm@ispras.ru>
12256         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12257         * Makefile.in. Regenerate.
12258         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12259         (LIBGOMP_USE_PTHREADS): ...here; new define.
12260         * configure: Regenerate.
12261         * config.h.in: Likewise.
12262         * config/posix/affinity.c: Move to...
12263         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12264         interface by LIBGOMP_USE_PTHREADS. 
12265         * critical.c: Split out GOMP_atomic_{start,end} into...
12266         * atomic.c: ...here (new file).
12267         * env.c: Split out ICV definitions into...
12268         * icv.c: ...here (new file) and...
12269         * icv-device.c: ...here. New file.
12270         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12271         (gomp_destroy_lock_30): Ditto.
12272         (gomp_set_lock_30): Ditto.
12273         (gomp_unset_lock_30): Ditto.
12274         (gomp_test_lock_30): Ditto.
12275         (gomp_init_nest_lock_30): Ditto.
12276         (gomp_destroy_nest_lock_30): Ditto.
12277         (gomp_set_nest_lock_30): Ditto.
12278         (gomp_unset_nest_lock_30): Ditto.
12279         (gomp_test_nest_lock_30): Ditto.
12280         * lock.c: New.
12281         * config/nvptx/lock.c: New.
12282         * config/nvptx/bar.c: New.
12283         * config/nvptx/bar.h: New.
12284         * config/nvptx/doacross.h: New.
12285         * config/nvptx/error.c: New.
12286         * config/nvptx/icv-device.c: New.
12287         * config/nvptx/mutex.h: New.
12288         * config/nvptx/pool.h: New.
12289         * config/nvptx/proc.c: New.
12290         * config/nvptx/ptrlock.h: New.
12291         * config/nvptx/sem.h: New.
12292         * config/nvptx/simple-bar.h: New.
12293         * config/nvptx/target.c: New.
12294         * config/nvptx/task.c: New.
12295         * config/nvptx/team.c: New.
12296         * config/nvptx/time.c: New.
12297         * config/posix/simple-bar.h: New.
12298         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12299         (gomp_num_teams_var): Declare.
12300         (struct gomp_thread_pool): Change threads_dock member to
12301         gomp_simple_barrier_t.
12302         [__nvptx__] (gomp_thread): New implementation.
12303         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12304         (gomp_thread_destructor): Ditto.
12305         (gomp_init_thread_affinity): Ditto.
12306         * team.c: Guard uses of Pthreads-specific interfaces by
12307         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12308         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12309         * config/nvptx/alloc.c: Delete.
12310         * config/nvptx/barrier.c: Ditto.
12311         * config/nvptx/fortran.c: Ditto.
12312         * config/nvptx/iter.c: Ditto.
12313         * config/nvptx/iter_ull.c: Ditto.
12314         * config/nvptx/loop.c: Ditto.
12315         * config/nvptx/loop_ull.c: Ditto.
12316         * config/nvptx/ordered.c: Ditto.
12317         * config/nvptx/parallel.c: Ditto.
12318         * config/nvptx/priority_queue.c: Ditto.
12319         * config/nvptx/sections.c: Ditto.
12320         * config/nvptx/single.c: Ditto.
12321         * config/nvptx/splay-tree.c: Ditto.
12322         * config/nvptx/work.c: Ditto.
12323         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12324         -foffload=-lgfortran in addition to -lgfortran.
12325         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12326         * plugin/plugin-nvptx.c: Include <limits.h>.
12327         (struct targ_fn_descriptor): Add new fields.
12328         (struct ptx_device): Ditto.  Set them...
12329         (nvptx_open_device): ...here.
12330         (nvptx_adjust_launch_bounds): New.
12331         (nvptx_host2dev): Allow NULL 'nvthd'.
12332         (nvptx_dev2host): Ditto.
12333         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12334         (link_ptx): Adjust log sizes.
12335         (nvptx_host2dev): Allow NULL 'nvthd'.
12336         (nvptx_dev2host): Ditto.
12337         (nvptx_set_clocktick): New.  Use it...
12338         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12339         fields.
12340         (GOMP_OFFLOAD_dev2dev): New.
12341         (nvptx_adjust_launch_bounds): New.
12342         (nvptx_stacks_size): New.
12343         (nvptx_stacks_alloc): New.
12344         (nvptx_stacks_free): New.
12345         (GOMP_OFFLOAD_run): New.
12346         (GOMP_OFFLOAD_async_run): New (stub).
12348 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12350         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12351         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12352         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12354 2016-11-23  Martin Liska  <mliska@suse.cz>
12355             Martin Jambor  <mjambor@suse.cz>
12357         * plugin/hsa.h: New file.
12358         * plugin/hsa_ext_finalize.h: New file.
12359         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
12360         header file unistd.h, and functions secure_getenv, __secure_getenv,
12361         getuid, geteuid, getgid and getegid.
12362         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12363         -D_GNU_SOURCE.
12364         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12365         Handle various cases of secure_getenv presence, add an implementation
12366         when we can test effective UID and GID.
12367         (struct hsa_runtime_fn_info): New structure.
12368         (hsa_runtime_fn_info hsa_fns): New variable.
12369         (hsa_runtime_lib): Likewise.
12370         (support_cpu_devices): Likewise.
12371         (init_enviroment_variables): Load newly introduced ENV
12372         variables.
12373         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12374         (hsa_fatal): Likewise.
12375         (DLSYM_FN): New macro.
12376         (init_hsa_runtime_functions): New function.
12377         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12378         structure.  Depending on environment, also allow CPU devices.
12379         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12380         (get_kernarg_memory_region): Likewise.
12381         (GOMP_OFFLOAD_init_device): Likewise.
12382         (destroy_hsa_program): Likewise.
12383         (init_basic_kernel_info): New function.
12384         (GOMP_OFFLOAD_load_image): Use it.
12385         (create_and_finalize_hsa_program): Call hsa run-time functions via
12386         hsa_fns structure.
12387         (create_single_kernel_dispatch): Likewise.
12388         (release_kernel_dispatch): Likewise.
12389         (init_single_kernel): Likewise.
12390         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12391         (get_group_size): New function.
12392         (run_kernel): Likewise.
12393         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12394         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12395         structure.
12396         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12397         * testsuite/libgomp-test-support.exp.in: Likewise.
12398         * Makefile.in: Regenerated.
12399         * aclocal.m4: Likewise.
12400         * config.h.in: Likewise.
12401         * configure: Likewise.
12402         * testsuite/Makefile.in: Likewise.
12404 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12405             Alexander Monakov  <amonakov@ispras.ru>
12407         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12408         mapping clauses to target constructs.
12409         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12411 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12413         * configure: Regenerate.
12415 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12417         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12418         * omp_lib.h.in (openmp_version): Likewise.
12419         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12420         of 201307.
12421         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12423         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12424         (fib_wrapper): Add map(from: x) clause.
12425         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12426         (e_53_2): Likewise.
12427         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12428         (accum): Add map(tmp) clause.
12429         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12430         (accum): Add map(tofrom: tmp) clause.
12431         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12432         (gramSchmidt): Likewise.
12433         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12434         map(tofrom: sum) clause.
12435         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12436         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12437         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12438         only allowed on the loop iterator.
12439         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12440         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12441         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12442         * testsuite/libgomp.fortran/doacross1.f90: New test.
12443         * testsuite/libgomp.fortran/doacross3.f90: New test.
12444         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12445         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12446         * testsuite/libgomp.fortran/doacross2.f90: New test.
12447         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12448         #pragma omp atomic read.
12449         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12450         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12452 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12453             Nathan Sidwell  <nathan@acm.org>
12455         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12456         to determine default geometry.
12457         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12458         dimension.
12460 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12462         * hashtab.h: Use standard GPLv3 with runtime exception
12463         boilerplate.
12465 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12467         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12468         size when allocating new thread.
12470 2016-09-14  Marek Polacek  <polacek@redhat.com>
12472         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12474 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12476         PR fortran/71014
12477         * testsuite/libgomp.fortran/pr71014.f90: New test.
12479 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12481         PR middle-end/70895
12482         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12483         firstprivate clauses.
12484         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12485         copy clauses.
12486         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12487         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12488         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12489         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12490         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12491         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12492         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12493         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12494         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12495         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12496         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12497         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12499 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12501         PR fortran/70598
12502         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12504 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12506         PR c++/58706
12507         * testsuite/libgomp.c++/pr58706.C: New test.
12509 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12511         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12512         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12513         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12514         Likewise.
12515         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12516         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12517         Likewise.
12518         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12520         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12521         test, and don't hardcode -O0.
12523 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12525         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12527 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12529         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12530         test.
12532 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12534         PR middle-end/71734
12535         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12536         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12538 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12540         PR fortran/71717
12541         * testsuite/libgomp.fortran/associate3.f90: New test.
12543 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12545         * testsuite/libgomp.c++/target-21.C: New test.
12547 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12549         * testsuite/libgomp.c++/target-20.C: New test.
12551 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12552             Cesar Philippidis  <cesar@codesourcery.com>
12554         PR middle-end/71373
12555         * libgomp.oacc-c/nested-function-1.c: New file.
12556         * libgomp.oacc-c/nested-function-2.c: Likewise.
12557         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12558         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12559         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12561 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12563         PR c/71381
12564         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12565         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12566         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12568 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
12570         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12571         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12573 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
12575         PR c/70688
12576         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12578 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12580         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12581         instead of invalid schedule(static, 0).
12582         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12584 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12586         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12587         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12588         parameter, use to set async stream around call to gomp_unmap_vars,
12589         call gomp_unmap_vars() with 'do_copyfrom' set to true.
12590         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12591         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12592         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12593         (event_add): Add int parameter, initialize 'val' field when
12594         adding new ptx_event struct.
12595         (nvptx_evec): Adjust event_add() call arguments.
12596         (nvptx_host2dev): Likewise.
12597         (nvptx_dev2host): Likewise.
12598         (nvptx_wait_async): Likewise.
12599         (nvptx_wait_all_async): Likewise.
12600         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12601         pass to event_add() call.
12602         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12603         parameter.
12604         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12605         call openacc.register_async_cleanup_func() hook.
12606         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12607         * target.c (gomp_copy_from_async): Delete function.
12608         (gomp_map_vars): Remove async_refcount.
12609         (gomp_unmap_vars): Likewise.
12610         (gomp_load_image_to_device): Likewise.
12611         (omp_target_associate_ptr): Likewise.
12612         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12613         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12614         (gomp_copy_from_async): Remove.
12616 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12618         * target.c (gomp_device_copy): New function.
12619         (gomp_copy_host2dev): Likewise.
12620         (gomp_copy_dev2host): Likewise.
12621         (gomp_free_device_memory): Likewise.
12622         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12623         (gomp_map_pointer): Likewise.
12624         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12625         NULL value from alloc_func plugin hook.
12626         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12627         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12628         (gomp_unmap_vars): Likewise.
12629         (gomp_update): Adjust to call gomp_copy_dev2host and
12630         gomp_copy_host2dev functions.
12631         (gomp_unload_image_from_device): Handle false value from
12632         unload_image_func plugin hook.
12633         (gomp_init_device): Handle false value from init_device_func
12634         plugin hook.
12635         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12636         (omp_target_free): Adjust to call gomp_free_device_memory.
12637         (omp_target_memcpy): Handle return values from host2dev_func,
12638         dev2host_func, and dev2dev_func plugin hooks.
12639         (omp_target_memcpy_rect_worker): Likewise.
12640         (gomp_target_fini): Handle false value from fini_device_func
12641         plugin hook.
12642         * libgomp.h (struct gomp_device_descr): Adjust return type of
12643         init_device_func, fini_device_func, unload_image_func, free_func,
12644         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12645         * oacc-init.c (acc_shutdown_1): Handle false value from
12646         fini_device_func plugin hook.
12647         * oacc-host.c (host_init_device): Change return type to bool.
12648         (host_fini_device): Likewise.
12649         (host_unload_image): Likewise.
12650         (host_free): Likewise.
12651         (host_dev2host): Likewise.
12652         (host_host2dev): Likewise.
12653         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12654         (acc_memcpy_to_device): Likewise.
12655         (acc_memcpy_from_device): Likewise.
12656         (delete_copyout): Add libfnname parameter, handle free_func
12657         hook fatal error case.
12658         (acc_delete): Adjust delete_copyout call.
12659         (acc_copyout): Likewise.
12660         (update_dev_host): Move gomp_mutex_unlock to after
12661         host2dev/dev2host hook calls.
12663         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12664         to 'hsa_error_msg', for clarity.
12665         (hsa_fatal): Likewise.
12666         (hsa_error): New function.
12667         (init_hsa_context): Change return type to bool, adjust to return
12668         false on error.
12669         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12670         return value.
12671         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12672         return false on error.
12673         (get_agent_info): Adjust to return NULL on error.
12674         (destroy_hsa_program): Change return type to bool, adjust to
12675         return false on error.
12676         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12677         (destroy_module): Change return type to bool, adjust to
12678         return false on error.
12679         (GOMP_OFFLOAD_unload_image): Likewise.
12680         (GOMP_OFFLOAD_fini_device): Likewise.
12681         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12682         (GOMP_OFFLOAD_free): Change to return false when called.
12683         (GOMP_OFFLOAD_dev2host): Likewise.
12684         (GOMP_OFFLOAD_host2dev): Likewise.
12685         (GOMP_OFFLOAD_dev2dev): Likewise.
12687         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12688         (CUDA_CALL): Likewise.
12689         (CUDA_CALL_ASSERT): Likewise.
12690         (map_init): Change return type to bool, use CUDA_CALL* macros.
12691         (map_fini): Likewise.
12692         (init_streams_for_device): Change return type to bool, adjust
12693         call to map_init.
12694         (fini_streams_for_device): Change return type to bool, adjust
12695         call to map_fini.
12696         (select_stream_for_async): Release stream_lock before calls to
12697         GOMP_PLUGIN_fatal, adjust call to map_init.
12698         (nvptx_init): Use CUDA_CALL* macros.
12699         (nvptx_attach_host_thread_to_device): Change return type to bool,
12700         use CUDA_CALL* macros.
12701         (nvptx_open_device): Use CUDA_CALL* macros.
12702         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12703         macros.
12704         (nvptx_get_num_devices): Use CUDA_CALL* macros.
12705         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12706         (nvptx_exec): Use CUDA_CALL* macros.
12707         (nvptx_alloc): Use CUDA_CALL* macros.
12708         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12709         (nvptx_host2dev): Likewise.
12710         (nvptx_dev2host): Likewise.
12711         (nvptx_wait): Use CUDA_CALL* macros.
12712         (nvptx_wait_async): Likewise.
12713         (nvptx_wait_all): Likewise.
12714         (nvptx_wait_all_async): Likewise.
12715         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12716         use CUDA_CALL* macros, adjust call to map_fini.
12717         (GOMP_OFFLOAD_init_device): Change return type to bool,
12718         adjust code accordingly.
12719         (GOMP_OFFLOAD_fini_device): Likewise.
12720         (GOMP_OFFLOAD_load_image): Adjust calls to
12721         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12722         use CUDA_CALL* macros.
12723         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12724         return code.
12725         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12726         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12727         handle error return.
12728         (GOMP_OFFLOAD_dev2host): Likewise.
12729         (GOMP_OFFLOAD_host2dev): Likewise.
12730         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12731         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12733 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12735         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12736         (acc_free): Likewise.
12737         (acc_memcpy_to_device): Likewise.
12738         (acc_memcpy_from_device): Likewise.
12739         (acc_deviceptr): Likewise.
12740         (acc_hostptr): Likewise.
12741         (acc_is_present): Likewise.
12742         (acc_map_data): Likewise.
12743         (acc_unmap_data): Likewise.
12744         (present_create_copy): Likewise.
12745         (delete_copyout): Likewise.
12746         (update_dev_host): Likewise.
12747         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12748         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12749         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12750         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12751         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12752         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12753         it only runs on nvptx targets.
12754         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12755         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12756         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12757         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12758         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12759         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12760         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12761         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12762         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12763         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12764         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12765         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12766         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12767         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12768         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12769         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12770         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12771         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12772         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12773         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12774         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12775         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12776         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12778 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12780         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12782 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
12784         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12785         to gomp_init_targets_once.
12786         (acc_set_device_type): Remove !cached_base_dev condition on call to
12787         gomp_init_targets_once, move call to before acc_device_lock acquire,
12788         to avoid deadlock.
12789         (acc_get_device_num): Remove !cached_base_dev condition on call to
12790         gomp_init_targets_once.
12791         (acc_set_device_num): Likewise.
12793 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12795         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12797 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12799         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12800         expected partitioning.
12802 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
12804         PR middle-end/70626
12805         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12806         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12807         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12809 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
12811         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12812         non-fatal.
12814 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12816         PR middle-end/70680
12817         * testsuite/libgomp.c/pr70680-1.c: New test.
12818         * testsuite/libgomp.c/pr70680-2.c: New test.
12820 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12822         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12823         pass parameter variables to subroutines.
12825 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12827         PR middle-end/70643
12828         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12830 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
12832         PR testsuite/68242
12833         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12834         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12836 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
12838         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12839         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12840         GOACC_declare prototype.
12842         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12843         Merge this file, and...
12844         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12845         ... this file, and...
12846         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12847         ... this file, and...
12848         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12849         ... this file, and...
12850         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12851         ... this file, and...
12852         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12853         ... this file, and...
12854         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12855         ... this file, and...
12856         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12857         ... this file, and...
12858         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12859         ... this file, and...
12860         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12861         ... this file, and...
12862         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12863         ... this file, and...
12864         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12865         ... this file, and...
12866         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12867         ... this file into...
12868         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12869         file.
12871         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12872         Make failure observable.
12874 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12876         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12877         field.
12878         * target.c (gomp_target_fallback_firstprivate,
12879         gomp_target_unshare_firstprivate): Removed.
12880         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12881         before waiting for dependencies.
12882         (gomp_target_task_fn): Don't copy firstprivate vars here.
12883         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12884         firstprivate_copies here.
12885         (gomp_create_target_task): Don't initialize firstprivate_copies field.
12886         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12887         explicit/implicit firstprivate.
12889 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12891         PR lto/70289
12892         PR ipa/70348
12893         PR tree-optimization/70373
12894         PR middle-end/70533
12895         PR middle-end/70534
12896         PR middle-end/70535
12897         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12898         test.
12899         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12900         test.
12901         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12902         test.
12903         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12904         test.
12905         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12906         test.
12907         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12908         test.
12909         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12910         test.
12911         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12912         test.
12913         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12914         test.
12915         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12916         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12917         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12918         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12919         test.
12920         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12921         test.
12922         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12923         test.
12924         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12925         test.
12926         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12927         coverage.
12928         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12929         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12930         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12931         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12932         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12933         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12934         coverage.
12935         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12936         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12937         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12938         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12939         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12940         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12941         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12942         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12943         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12944         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12945         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12946         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12947         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12948         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12949         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12951 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
12952             James Norris  <jnorris@codesourcery.com>
12953             Nathan Sidwell  <nathan@codesourcery.com>
12954             Julian Brown  <julian@codesourcery.com>
12955             Cesar Philippidis  <cesar@codesourcery.com>
12956             Chung-Lin Tang  <cltang@codesourcery.com>
12957             Tom de Vries  <tom@codesourcery.com>
12959         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12960         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12961         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12962         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12963         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12964         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12965         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12966         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12967         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12968         XFAIL.
12969         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12970         Incorporate...
12971         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12972         file.
12973         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12974         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12975         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12976         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12977         Likewise.
12978         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12979         Likewise.
12980         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12981         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12982         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12983         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12984         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12985         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12986         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12987         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12988         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12989         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12990         Likewise.
12991         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12992         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12993         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12994         file...
12995         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12996         file into...
12997         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12998         file.  Update.
12999         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13000         file.
13001         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13002         Likewise.
13003         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13004         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13005         ... this new file.  Update.
13006         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13007         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13008         ... this new file.  Update.
13009         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13010         file.  Incorporate...
13011         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13012         file, and...
13013         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13014         file, and...
13015         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13016         file.
13017         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13019 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13021         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13022         set-torture-options.
13024 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
13026         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13027         gcc-dg-runtest.
13028         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13029         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13030         -fno-builtin-acc_on_device instead of -O0.
13031         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13032         -O0.
13033         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13034         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13035         Likewise.
13036         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13037         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13038         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13039         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13040         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13041         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13042         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13043         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13044         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13045         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13046         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13047         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13048         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13049         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13050         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13051         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13052         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13053         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13054         Don't specify -O2.
13055         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13056         Likewise.
13057         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13058         Likewise.
13060 2016-03-24  Martin Liska  <mliska@suse.cz>
13062         * plugin/plugin-hsa.c (packet_store_release): New function
13063         that is taken from the HSA runtime manual.
13064         (GOMP_OFFLOAD_run): Use the function.
13066 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13068         PR c++/70376
13069         * testsuite/libgomp.c++/pr70376.C: New test.
13071 2016-03-23  Tom de Vries  <tom@codesourcery.com>
13073         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13074         initialization of lresult and lvresult.
13075         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13077 2016-03-23  James Norris  <jnorris@codesourcery.com>
13078             Daichi Fukuoka <dc-fukuoka@sgi.com>
13080         PR libgomp/69414
13081         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13082         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13083         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13084         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13086 2016-03-23  Martin Liska  <mliska@suse.cz>
13088         PR hsa/70337
13089         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13090         argument just in case a dispatched kernel uses that argument.
13092 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
13094         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13095         -ftree-parallelize-loops/-fopenacc changes.
13096         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13097         Likewise.
13098         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13099         Likewise.
13100         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13101         Likewise.
13102         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13103         Likewise.
13104         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13105         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13107 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
13109         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13110         always_ld_library_path the path to libgcc_s.
13112 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
13114         PR testsuite/70009
13115         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13117 2016-03-09  Tom de Vries  <tom@codesourcery.com>
13119         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13120         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13121         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13122         Same.
13123         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13124         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13125         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13126         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13128 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13130         * testsuite/lib/libgomp.exp
13131         (check_effective_target_hsa_offloading_selected_nocache): New.
13132         (check_effective_target_hsa_offloading_selected): Likewise.
13133         * testsuite/libgomp.hsa.c/c.exp: Likewise.
13134         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13135         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13136         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13137         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13138         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13139         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13140         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13141         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13142         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13143         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13144         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13145         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13146         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13147         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13148         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13149         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13151 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13153         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13154         non-shared memory accelerators.
13155         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13156         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13157         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13158         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13159         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13160         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13161         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13162         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13163         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13165 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13167         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13168         ALWAYS_CFLAGS.
13170 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13172         PR libgomp/69555
13173         * testsuite/libgomp.c++/pr69555-1.C: New test.
13174         * testsuite/libgomp.c++/pr69555-2.C: New test.
13176 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
13177             Martin Jambor  <mjambor@suse.cz>
13179         * testsuite/lib/libgomp.exp
13180         (check_effective_target_offload_device_shared_as): New proc.
13181         * testsuite/libgomp.c++/declare_target-1.C: New test.
13183 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13185         PR driver/68463
13186         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13188 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13190         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13191         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13192         dims.
13193         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13194         -ftree-parallelize-loops/-fopenacc changes.
13195         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13196         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13197         Likewise.
13198         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13199         Likewise.
13200         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13201         Likewise.
13202         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13203         Likewise.
13204         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13205         Likewise.
13206         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13207         Likewise.
13208         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13209         Likewise.
13210         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13211         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13212         Likewise.
13213         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13214         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13215         Likewise.
13216         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13217         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13218         Likewise.
13220 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13222         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13224 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13226         PR driver/69805
13227         * testsuite/libgomp.c/pr69805.c: New test.
13229 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13231         PR lto/67709
13232         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13234 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13236         PR tree-optimization/69599
13237         * testsuite/libgomp.c/omp-nested-3.c: New test.
13238         * testsuite/libgomp.c/pr46032-2.c: New test.
13239         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13240         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13242 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13244         PR lto/69707
13245         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13247 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13249         * testsuite/libgomp.c/target-31.c: Fix testcase.
13251 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13253         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13254         clause.
13255         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13256         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13257         reduction and map clauses.
13258         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13260 2016-02-02  James Norris  <jnorris@codesourcery.com>
13262         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13264 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13266         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13267         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13269         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13270         cases.
13272         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13273         variables.
13274         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13275         (hsa_kmt_lib): Set variables.
13276         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13277         always_ld_library_path.
13278         * Makefile.in: Regenerate.
13279         * configure: Likewise.
13280         * testsuite/Makefile.in: Likewise.
13282         * plugin/configfrag.ac (offload_additional_options)
13283         (offload_additional_lib_paths): Don't amend for hsa offloading.
13284         * configure: Regenerate.
13286         * plugin/configfrag.ac: Don't configure for offloading target if
13287         we don't build the corresponding plugin.
13288         * configure: Regenerate.
13290 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13292         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13293         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13295 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13297         PR tree-optimization/69110
13298         * testsuite/libgomp.c/pr69110.c: New test.
13300 2016-01-25  Richard Biener  <rguenther@suse.de>
13302         PR lto/69393
13303         * testsuite/libgomp.c++/pr69393.C: New testcase.
13305 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13307         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13308         function wasn't mapped to the device with non-shared memory.
13310 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13312         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13314 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13315             Martin Liska  <mliska@suse.cz>
13317         * plugin/Makefrag.am: Add HSA plugin requirements.
13318         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13319         (HSA_RUNTIME_LIB): Likewise.
13320         (HSA_RUNTIME_CPPFLAGS): Likewise.
13321         (HSA_RUNTIME_INCLUDE): New substitution.
13322         (HSA_RUNTIME_LIB): Likewise.
13323         (HSA_RUNTIME_LDFLAGS): Likewise.
13324         (hsa-runtime): New configure option.
13325         (hsa-runtime-include): Likewise.
13326         (hsa-runtime-lib): Likewise.
13327         (PLUGIN_HSA): New substitution variable.
13328         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13329         configure options.
13330         (PLUGIN_HSA_CPPFLAGS): Likewise.
13331         (PLUGIN_HSA_LDFLAGS): Likewise.
13332         (PLUGIN_HSA_LIBS): Likewise.
13333         Check that we have access to HSA run-time.
13334         * libgomp-plugin.h (offload_target_type): New element
13335         OFFLOAD_TARGET_TYPE_HSA.
13336         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13337         args.
13338         (bool gomp_create_target_task): Updated.
13339         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13340         new field can_run_func.
13341         * libgomp_g.h (GOMP_target_ext): Update prototype.
13342         * oacc-host.c (host_run): Added a new parameter args.
13343         * target.c (calculate_firstprivate_requirements): New function.
13344         (copy_firstprivate_data): Likewise.
13345         (gomp_target_fallback_firstprivate): Use them.
13346         (gomp_target_unshare_firstprivate): New function.
13347         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13348         devices.
13349         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13350         pass any args to plugins.
13351         (GOMP_target_ext): Introduce device-specific argument parameter args.
13352         Allow host fallback if device shares memory.  Do not remap data if
13353         device has shared memory.
13354         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
13355         like host fallback for mappings.
13356         (GOMP_target_data): Treat shared memory devices like host fallback.
13357         (GOMP_target_data_ext): Likewise.
13358         (GOMP_target_update): Likewise.
13359         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
13360         gomp_create_target_task.
13361         (GOMP_target_enter_exit_data): Likewise.
13362         (omp_target_alloc): Treat shared memory devices like host fallback.
13363         (omp_target_free): Likewise.
13364         (omp_target_is_present): Likewise.
13365         (omp_target_memcpy): Likewise.
13366         (omp_target_memcpy_rect): Likewise.
13367         (omp_target_associate_ptr): Likewise.
13368         (gomp_load_plugin_for_device): Also load can_run.
13369         * task.c (GOMP_PLUGIN_target_task_completion): Free
13370         firstprivate_copies.
13371         (gomp_create_target_task): Accept new argument args and store it to
13372         ttask.
13373         * plugin/plugin-hsa.c: New file.
13375 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13377         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13378         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13379         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13380         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13381         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13382         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13383         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13384         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13385         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13386         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13387         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13388         Same.
13389         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13390         Same.
13391         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13392         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13393         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13394         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13395         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13396         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13397         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13398         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13399         Same.
13400         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13402 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13404         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13406 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13408         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13410 2016-01-12  James Norris  <jnorris@codesourcery.com>
13412         * libgomp.texi: Updates for OpenACC.
13414 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13416         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13418 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13420         PR fortran/66680
13421         * testsuite/libgomp.fortran/pr66680.f90: New test.
13423 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13425         PR middle-end/68960
13426         * testsuite/libgomp.c/pr68960.c: New test.
13428 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13430         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13431         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13433 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13435         Update copyright years.
13437         * libgomp.texi: Bump @copying's copyright year.
13439 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13441         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13442         dg-additional-options syntax.
13443         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13444         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13445         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13446         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13447         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13448         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13449         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13450         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13451         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13452         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13453         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13454         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13455         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13456         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13457         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13458         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13459         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13460         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13462 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13464         * libgomp.h (REFCOUNT_LINK): Define.
13465         (struct splay_tree_key_s): Add link_key.
13466         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13467         Replace target address of the pointer with target address of newly
13468         mapped object in the splay tree.  Set link pointer on target to the
13469         device address of the mapped object.
13470         (gomp_unmap_vars): Restore target address of the pointer in the splay
13471         tree for REFCOUNT_LINK objects after unmapping.
13472         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13473         declare target link" objects.
13474         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13475         "omp declare target link" objects, which were mapped for the image.
13476         (gomp_exit_data): Restore target address of the pointer in the splay
13477         tree for REFCOUNT_LINK objects after unmapping.
13478         * testsuite/libgomp.c/target-link-1.c: New file.
13480 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13482         * libgomp.h (gomp_device_state): New enum.
13483         (struct gomp_device_descr): Replace is_initialized with state.
13484         (gomp_fini_device): Remove declaration.
13485         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13486         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13487         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13488         (acc_set_device_type): Use state instead of is_initialized.
13489         (acc_set_device_num): Likewise.
13490         * target.c (resolve_device): Use state instead of is_initialized.
13491         Do not initialize finalized device.
13492         (gomp_map_vars): Do nothing if device is finalized.
13493         (gomp_unmap_vars): Likewise.
13494         (gomp_update): Likewise.
13495         (GOMP_offload_register_ver): Use state instead of is_initialized.
13496         (GOMP_offload_unregister_ver): Likewise.
13497         (gomp_init_device): Likewise.
13498         (gomp_unload_device): Likewise.
13499         (gomp_fini_device): Remove.
13500         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13501         (GOMP_target): Go to host fallback if device is finalized.
13502         (GOMP_target_ext): Likewise.
13503         (gomp_exit_data): Do nothing if device is finalized.
13504         (gomp_target_task_fn): Go to host fallback if device is finalized.
13505         (gomp_target_fini): New static function.
13506         (gomp_target_init): Use state instead of is_initialized.
13507         Call gomp_target_fini at exit.
13509 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13511         PR tree-optimization/68716
13512         * testsuite/libgomp.c/omp-nested-2.c: New test.
13514 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13516         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13517         target openacc_nvidia_accel_selected.
13518         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13519         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13520         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13521         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13523 2015-12-01  Julian Brown  <julian@codesourcery.com>
13524             James Norris  <James_Norris@mentor.com>
13526         * oacc-parallel.c (GOACC_host_data): New function.
13527         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13528         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13529         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13530         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13531         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13532         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13533         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13535 2015-11-30  James Norris  <jnorris@codesourcery.com>
13536             Cesar Philippidis  <cesar@codesourcery.com>
13538         libgomp/
13539         * libgomp.oacc-fortran/routine-5.f90: New test.
13540         * libgomp.oacc-fortran/routine-7.f90: New test.
13541         * libgomp.oacc-fortran/routine-9.f90: New test.
13543 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13545         PR tree-optimization/46032
13546         * testsuite/libgomp.c/pr46032.c: New test.
13548 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13550         PR libgomp/68579
13551         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13552         (gomp_create_target_task): Call it before freeing
13553         GOMP_TARGET_TASK_DATA tasks.
13555         PR c/63326
13556         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13557         in between case label and OpenMP standalone directives.
13558         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13560 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
13562         * configure: Regenerate.
13564 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
13566         * testsuite/libgomp.c/target-35.c: New test.
13568 2015-11-22  James Norris  <jnorris@codesourcery.com>
13569             Cesar Philippidis  <cesar@codesourcery.com>
13571         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13572         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13573         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13574         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13575         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13577 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
13579         PR middle-end/68221
13580         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13581         * testsuite/libgomp.c/reduction-12.c: Likewise.
13582         * testsuite/libgomp.c++/reduction-11.C: Likewise.
13583         * testsuite/libgomp.c++/reduction-12.C: Likewise.
13585 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
13587         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13588         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13589         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13590         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13591         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13592         and fix.
13593         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13594         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13596 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
13598         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13599         worker & gang cases.
13600         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13602 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
13604         * config/nvptx/priority_queue.c: New file.
13606 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13608         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13609         sections.
13611 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13612             Aldy Hernandez  <aldyh@redhat.com>
13613             Ilya Verbin  <ilya.verbin@intel.com>
13615         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13616         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13617         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13618         iterators or IV by chunk size.
13619         * parallel.c (gomp_resolve_num_threads): Don't assume that
13620         if thr->ts.team is non-NULL, then pool must be non-NULL.
13621         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13622         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13623         GOMP_PLUGIN_target_task_completion.
13624         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13625         * Makefile.in: Regenerate.
13626         * libgomp.h: Shuffle prototypes and forward definitions around so
13627         priority queues can be defined.
13628         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13629         (enum gomp_target_task_state): New enum.
13630         (struct gomp_target_task): Add state, tgt, task and team fields.
13631         (gomp_create_target_task): Change return type to bool, add
13632         state argument.
13633         (gomp_target_task_fn): Change return type to bool.
13634         (struct gomp_device_descr): Add async_run_func.
13635         (struct gomp_task): Remove children, next_child, prev_child,
13636         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13637         Add pnode field.
13638         (struct gomp_taskgroup): Remove children.
13639         Add taskgroup_queue.
13640         (struct gomp_team): Change task_queue type to a priority queue.
13641         (splay_compare): Define inline.
13642         (priority_queue_offset): New.
13643         (priority_node_to_task): New.
13644         (task_to_priority_node): New.
13645         * oacc-mem.c: Do not include splay-tree.h.
13646         * priority_queue.c: New file.
13647         * priority_queue.h: New file.
13648         * splay-tree.c: Do not include splay-tree.h.
13649         (splay_tree_foreach_internal): New.
13650         (splay_tree_foreach): New.
13651         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13652         (splay_tree_callback): Define typedef.
13653         * target.c (splay_compare): Move to libgomp.h.
13654         (GOMP_target): Don't adjust *thr in any way around running offloaded
13655         task.
13656         (GOMP_target_ext): Likewise.  Handle target nowait.
13657         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13658         return value from gomp_create_target_task, if false, fallthrough
13659         as if no dependencies exist.
13660         (gomp_target_task_fn): Change return type to bool, return true
13661         if the task should have another part scheduled later.  Handle
13662         target nowait.
13663         (gomp_load_plugin_for_device): Initialize async_run.
13664         * task.c (gomp_init_task): Initialize children_queue.
13665         (gomp_clear_parent_in_list): New.
13666         (gomp_clear_parent_in_tree): New.
13667         (gomp_clear_parent): Handle priorities.
13668         (GOMP_task): Likewise.
13669         (priority_queue_move_task_first,
13670         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13671         New functions.
13672         (gomp_create_target_task): Use priority queues.  Change return type
13673         to bool, add state argument, return false if for async
13674         {{enter,exit} data,update} constructs no dependencies need to be
13675         waited for, handle target nowait.  Set task->fn to NULL instead of
13676         gomp_target_task_fn.
13677         (verify_children_queue): Remove.
13678         (priority_list_upgrade_task): New.
13679         (priority_queue_upgrade_task): New.
13680         (verify_task_queue): Remove.
13681         (priority_list_downgrade_task): New.
13682         (priority_queue_downgrade_task): New.
13683         (gomp_task_run_pre): Use priority queues.
13684         Abstract code out to priority_queue_downgrade_task.
13685         (gomp_task_run_post_handle_dependers): Use priority queues.
13686         (gomp_task_run_post_remove_parent): Likewise.
13687         (gomp_task_run_post_remove_taskgroup): Likewise.
13688         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
13689         tasks specially.
13690         (GOMP_taskwait): Likewise.
13691         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
13692         priority-queue_upgrade_task.
13693         (GOMP_taskgroup_start): Use priority queues.
13694         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
13695         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
13696         barrier.
13697         * taskloop.c (GOMP_taskloop): Handle priorities.
13698         * team.c (gomp_new_team): Call priority_queue_init.
13699         (free_team): Call priority_queue_free.
13700         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13701         team created for target nowait in implicit parallel region.
13702         (gomp_team_start): For nested check, test thr->ts.level instead of
13703         thr->ts.team != NULL.
13704         * testsuite/libgomp.c/doacross-3.c: New test.
13705         * testsuite/libgomp.c/ordered-5.c: New test.
13706         * testsuite/libgomp.c/priority.c: New test.
13707         * testsuite/libgomp.c/target-31.c: New test.
13708         * testsuite/libgomp.c/target-32.c: New test.
13709         * testsuite/libgomp.c/target-33.c: New test.
13710         * testsuite/libgomp.c/target-34.c: New test.
13712 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13714         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13716         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13717         loop is sequential.
13719 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13721         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13722         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13724 2015-11-12  James Norris  <jnorris@codesourcery.com>
13725             Joseph Myers  <joseph@codesourcery.com>
13727         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13728         * oacc-parallel.c (GOACC_declare): New function.
13729         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13730         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13731         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13732         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13733         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13735 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
13737         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13739 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
13741         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13742         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13744 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13746         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13747         inadvertent commit.
13749 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13751         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13752         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13753         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13754         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13755         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13757 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
13759         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13760         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13762 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
13763             Ilya Verbin  <ilya.verbin@intel.com>
13765         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13766         GOMP_loop_nonmonotonic_dynamic_start,
13767         GOMP_loop_nonmonotonic_guided_next,
13768         GOMP_loop_nonmonotonic_guided_start,
13769         GOMP_loop_ull_nonmonotonic_dynamic_next,
13770         GOMP_loop_ull_nonmonotonic_dynamic_start,
13771         GOMP_loop_ull_nonmonotonic_guided_next,
13772         GOMP_loop_ull_nonmonotonic_guided_start,
13773         GOMP_parallel_loop_nonmonotonic_dynamic,
13774         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13775         (GOMP_target_41): Renamed to ...
13776         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13777         arguments.
13778         (GOMP_target_data_41): Renamed to ...
13779         (GOMP_target_data_ext): ... this.
13780         (GOMP_target_update_41): Renamed to ...
13781         (GOMP_target_update_ext): ... this.
13782         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13783         GOMP_target_data_ext and GOMP_target_update_ext instead of
13784         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13785         Export GOMP_loop_nonmonotonic_dynamic_next,
13786         GOMP_loop_nonmonotonic_dynamic_start,
13787         GOMP_loop_nonmonotonic_guided_next,
13788         GOMP_loop_nonmonotonic_guided_start,
13789         GOMP_loop_ull_nonmonotonic_dynamic_next,
13790         GOMP_loop_ull_nonmonotonic_dynamic_start,
13791         GOMP_loop_ull_nonmonotonic_guided_next,
13792         GOMP_loop_ull_nonmonotonic_guided_start,
13793         GOMP_parallel_loop_nonmonotonic_dynamic and
13794         GOMP_parallel_loop_nonmonotonic_guided.
13795         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13796         GOMP_parallel_loop_nonmonotonic_guided,
13797         GOMP_loop_nonmonotonic_dynamic_start,
13798         GOMP_loop_nonmonotonic_guided_start,
13799         GOMP_loop_nonmonotonic_dynamic_next,
13800         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13801         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13802         GOMP_loop_ull_nonmonotonic_guided_start,
13803         GOMP_loop_ull_nonmonotonic_dynamic_next,
13804         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13805         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13806         functions.
13807         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
13808         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13809         Use gomp_map_val function.
13810         (gomp_target_fallback_firstprivate): New static function.
13811         (GOMP_target_41): Renamed to ...
13812         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13813         arguments.  Move firstprivate fallback handling into a new
13814         function.
13815         (GOMP_target_data_41): Renamed to ...
13816         (GOMP_target_data_ext): ... this.
13817         (GOMP_target_update_41): Renamed to ...
13818         (GOMP_target_update_ext): ... this.
13819         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13820         gomp_map_0len_lookup instead of gomp_map_lookup.
13821         (omp_target_is_present): Use gomp_map_0len_lookup instead of
13822         gomp_map_lookup.
13823         * testsuite/libgomp.c/target-28.c: Likewise.
13824         * testsuite/libgomp.c/monotonic-1.c: New test.
13825         * testsuite/libgomp.c/monotonic-2.c: New test.
13826         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13827         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13828         * testsuite/libgomp.c/pr66199-5.c: New test.
13829         * testsuite/libgomp.c/pr66199-6.c: New test.
13830         * testsuite/libgomp.c/pr66199-7.c: New test.
13831         * testsuite/libgomp.c/pr66199-8.c: New test.
13832         * testsuite/libgomp.c/pr66199-9.c: New test.
13833         * testsuite/libgomp.c/reduction-11.c: New test.
13834         * testsuite/libgomp.c/reduction-12.c: New test.
13835         * testsuite/libgomp.c/reduction-13.c: New test.
13836         * testsuite/libgomp.c/reduction-14.c: New test.
13837         * testsuite/libgomp.c/reduction-15.c: New test.
13838         * testsuite/libgomp.c/target-12.c (main): Adjust for
13839         omp_target_is_present change for one-past-last element.
13840         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13841         the same var is both mapped and privatized.
13842         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13843         handling of zero-length array sections.
13844         * testsuite/libgomp.c/target-28.c: New test.
13845         * testsuite/libgomp.c/target-29.c: New test.
13846         * testsuite/libgomp.c/target-30.c: New test.
13847         * testsuite/libgomp.c/target-teams-1.c: New test.
13848         * testsuite/libgomp.c++/member-6.C: New test.
13849         * testsuite/libgomp.c++/member-7.C: New test.
13850         * testsuite/libgomp.c++/monotonic-1.C: New test.
13851         * testsuite/libgomp.c++/monotonic-2.C: New test.
13852         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13853         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13854         * testsuite/libgomp.c++/pr66199-3.C: New test.
13855         * testsuite/libgomp.c++/pr66199-4.C: New test.
13856         * testsuite/libgomp.c++/pr66199-5.C: New test.
13857         * testsuite/libgomp.c++/pr66199-6.C: New test.
13858         * testsuite/libgomp.c++/pr66199-7.C: New test.
13859         * testsuite/libgomp.c++/pr66199-8.C: New test.
13860         * testsuite/libgomp.c++/pr66199-9.C: New test.
13861         * testsuite/libgomp.c++/reduction-11.C: New test.
13862         * testsuite/libgomp.c++/reduction-12.C: New test.
13863         * testsuite/libgomp.c++/target-13.C: New test.
13864         * testsuite/libgomp.c++/target-14.C: New test.
13865         * testsuite/libgomp.c++/target-15.C: New test.
13866         * testsuite/libgomp.c++/target-16.C: New test.
13867         * testsuite/libgomp.c++/target-17.C: New test.
13868         * testsuite/libgomp.c++/target-18.C: New test.
13869         * testsuite/libgomp.c++/target-19.C: New test.
13871 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13873         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13874         and reduction copy.
13875         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13876         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13877         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13878         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13879         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13880         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13881         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13882         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13883         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13884         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13885         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13886         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13887         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13888         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13890 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13892         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13893         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13894         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13895         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13896         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13897         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13898         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13899         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13901 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
13903         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13904         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13905         (GOMP_OFFLOAD_openacc_parallel): Likewise.
13906         * oacc-host.c (host_openacc_exec): Likewise.
13907         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13909 2015-11-03  Julian Brown  <julian@codesourcery.com>
13910             Thomas Schwinge  <thomas@codesourcery.com>
13912         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13913         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13914         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13915         Likewise.
13916         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13917         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13919 2015-11-03  James Norris  <jnorris@codesourcery.com>
13921         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13922         file.
13923         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13924         Likewise.
13925         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13926         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13927         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13928         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13929         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13931 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
13933         * openacc.h (enum acc_device_t): Reformat. Ensure layout
13934         compatibility.
13935         (enum acc_async_t): Reformat.
13936         (acc_on_device): Declare compatible with builtin and provide C++
13937         wrapper.
13938         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13940 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
13941             Cesar Philippidis  <cesar@codesourcery.com>
13943         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13944         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13945         ... this.  Add a description of the test at the top of the file.
13946         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13947         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13948         ... this.  Add a description of the test at the top of the file.
13950 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
13952         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13953         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13954         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13955         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13956         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13957         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13959 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
13961         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13962         dimensions.
13964 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
13966         PR testsuite/68063
13967         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13969 2015-10-27  James Norris  <jnorris@codesourcery.com>
13971         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13972         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13974 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
13976         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13977         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13979         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13980         acc_device_nvidia usage.
13981         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13982         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13983         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13985         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13986         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13988         PR libgomp/66518
13989         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13991         PR libgomp/65437
13992         PR libgomp/66518
13993         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13994         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13996 2015-10-23  Tom de Vries  <tom@codesourcery.com>
13998         PR testsuite/68063
13999         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14001 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
14003         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14004         vector_length.
14005         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14007 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
14008             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
14010         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14011         to 0 when mapnum is 0.
14013 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14015         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14016         Cast to int from int32_t.
14018 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
14019             Aldy Hernandez  <aldyh@redhat.com>
14020             Ilya Verbin  <ilya.verbin@intel.com>
14022         * config/linux/affinity.c (omp_get_place_num_procs,
14023         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14024         * config/linux/doacross.h: New file.
14025         * config/posix/affinity.c (omp_get_place_num_procs,
14026         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14027         * config/posix/doacross.h: New file.
14028         * env.c: Include gomp-constants.h.
14029         (struct gomp_task_icv): Rename run_sched_modifier to
14030         run_sched_chunk_size.
14031         (gomp_max_task_priority_var): New variable.
14032         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14033         (handle_omp_display_env): Change _OPENMP value from 201307 to
14034         201511.  Print OMP_MAX_TASK_PRIORITY.
14035         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14036         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14037         chunk_size and run_sched_modifier to run_sched_chunk_size.
14038         (omp_get_max_task_priority, omp_get_initial_device,
14039         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14040         omp_get_partition_place_nums): New functions.
14041         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14042         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14043         to chunk_size.
14044         (omp_get_num_places_, omp_get_place_num_procs_,
14045         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14046         omp_get_place_proc_ids_8_, omp_get_place_num_,
14047         omp_get_partition_num_places_, omp_get_partition_place_nums_,
14048         omp_get_partition_place_nums_8_, omp_get_initial_device_,
14049         omp_get_max_task_priority_): New functions.
14050         * libgomp_g.h (GOMP_loop_doacross_static_start,
14051         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14052         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14053         GOMP_loop_ull_doacross_dynamic_start,
14054         GOMP_loop_ull_doacross_guided_start,
14055         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14056         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14057         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14058         GOMP_target_data_41, GOMP_target_update_41,
14059         GOMP_target_enter_exit_data): New prototypes.
14060         (GOMP_task): Add prototype argument.
14061         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14062         (struct gomp_doacross_work_share): New type.
14063         (struct gomp_work_share): Add doacross field.
14064         (struct gomp_task_icv): Rename run_sched_modifier to
14065         run_sched_chunk_size.
14066         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14067         GOMP_TASK_UNDEFERRED.  Add comments.
14068         (struct gomp_task_depend_entry): Add comments.
14069         (struct gomp_task): Likewise.
14070         (struct gomp_taskgroup): Likewise.
14071         (struct gomp_target_task): New type.
14072         (struct gomp_team): Add comment.
14073         (gomp_get_place_proc_ids_8, gomp_doacross_init,
14074         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14075         gomp_create_target_task, gomp_target_task_fn): New prototypes.
14076         (struct target_var_desc): New type.
14077         (struct target_mem_desc): Adjust comment.  Use struct
14078         target_var_desc instead of splay_tree_key for list.
14079         (REFCOUNT_INFINITY): Define.
14080         (struct splay_tree_key_s): Remove copy_from field.
14081         (struct gomp_device_descr): Add dev2dev_func field.
14082         (enum gomp_map_vars_kind): New enum.
14083         (gomp_map_vars): Add one argument.
14084         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14085         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14086         omp_get_place_num_procs, omp_get_place_num_procs_,
14087         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14088         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14089         omp_get_place_num_, omp_get_partition_num_places,
14090         omp_get_partition_num_places_, omp_get_partition_place_nums,
14091         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14092         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14093         omp_target_free, omp_target_is_present, omp_target_memcpy,
14094         omp_target_memcpy_rect, omp_target_associate_ptr and
14095         omp_target_disassociate_ptr.
14096         (GOMP_4.0.2): Renamed to ...
14097         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
14098         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14099         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14100         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14101         GOMP_loop_doacross_static_start, GOMP_doacross_post,
14102         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14103         GOMP_loop_ull_doacross_guided_start,
14104         GOMP_loop_ull_doacross_runtime_start,
14105         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14106         GOMP_doacross_ull_wait.
14107         * libgomp.texi: Document omp_get_max_task_priority.
14108         Rename modifier argument to chunk_size for omp_set_schedule and
14109         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
14110         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14111         to run_sched_chunk_size renaming.
14112         (GOMP_loop_ordered_runtime_start): Likewise.
14113         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14114         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14115         GOMP_parallel_loop_runtime_start): New functions.
14116         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14117         to run_sched_chunk_size renaming.
14118         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14119         GOMP_loop_doacross_guided_start): New functions or aliases.
14120         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14121         run_sched_modifier to run_sched_chunk_size renaming.
14122         (GOMP_loop_ull_ordered_runtime_start): Likewise.
14123         (gomp_loop_ull_doacross_static_start,
14124         gomp_loop_ull_doacross_dynamic_start,
14125         gomp_loop_ull_doacross_guided_start,
14126         GOMP_loop_ull_doacross_runtime_start): New functions.
14127         (GOMP_loop_ull_doacross_static_start,
14128         GOMP_loop_ull_doacross_dynamic_start,
14129         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14130         * oacc-mem.c (acc_map_data, present_create_copy,
14131         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14132         to gomp_map_vars.
14133         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14134         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14135         instead of false to gomp_map_vars.
14136         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
14137         * omp.h.in (omp_lock_hint_t): New type.
14138         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14139         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14140         omp_get_place_num, omp_get_partition_num_places,
14141         omp_get_partition_place_nums, omp_get_initial_device,
14142         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14143         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14144         omp_target_associate_ptr, omp_target_disassociate_ptr): New
14145         prototypes.
14146         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14147         (omp_lock_hint_none, omp_lock_hint_uncontended,
14148         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14149         omp_lock_hint_speculative): New parameters.
14150         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14151         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14152         omp_get_place_num, omp_get_partition_num_places,
14153         omp_get_partition_place_nums, omp_get_initial_device,
14154         omp_get_max_task_priority): New interfaces.
14155         (omp_set_schedule, omp_get_schedule): Rename modifier argument
14156         to chunk_size.
14157         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14158         (omp_lock_hint_none, omp_lock_hint_uncontended,
14159         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14160         omp_lock_hint_speculative): New parameters.
14161         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14162         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14163         omp_get_place_num, omp_get_partition_num_places,
14164         omp_get_partition_place_nums, omp_get_initial_device,
14165         omp_get_max_task_priority): New functions and subroutines.
14166         * ordered.c: Include stdarg.h and string.h.
14167         (MAX_COLLAPSED_BITS): Define.
14168         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14169         gomp_doacross_ull_init, GOMP_doacross_ull_post,
14170         GOMP_doacross_ull_wait): New functions.
14171         * target.c: Include errno.h.
14172         (resolve_device): If device is not initialized, call
14173         gomp_init_device on it.
14174         (gomp_map_lookup): New function.
14175         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14176         Don't bump refcount if REFCOUNT_INFINITY.  Handle
14177         GOMP_MAP_ALWAYS_TO_P.
14178         (get_kind): Rename is_openacc argument to short_mapkind.
14179         (gomp_map_pointer): Use gomp_map_lookup.
14180         (gomp_map_fields_existing): New function.
14181         (gomp_map_vars): Rename is_openacc argument to short_mapkind
14182         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
14183         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14184         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14185         Adjust for tgt->list changed type and copy_from living in there.
14186         (gomp_copy_from_async): Adjust for tgt->list changed type and
14187         copy_from living in there.
14188         (gomp_unmap_vars): Likewise.
14189         (gomp_update): Likewise.  Rename is_openacc argument to
14190         short_mapkind.  Don't fail if object is not mapped.
14191         (gomp_load_image_to_device): Initialize refcount to
14192         REFCOUNT_INFINITY.
14193         (gomp_target_fallback): New function.
14194         (gomp_get_target_fn_addr): Likewise.
14195         (GOMP_target): Adjust gomp_map_vars caller, use
14196         gomp_get_target_fn_addr and gomp_target_fallback.
14197         (GOMP_target_41): New function.
14198         (gomp_target_data_fallback): New function.
14199         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14200         (GOMP_target_data_41): New function.
14201         (GOMP_target_update): Adjust gomp_update caller.
14202         (GOMP_target_update_41): New function.
14203         (gomp_exit_data, GOMP_target_enter_exit_data,
14204         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14205         omp_target_is_present, omp_target_memcpy,
14206         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14207         omp_target_associate_ptr, omp_target_disassociate_ptr,
14208         gomp_load_plugin_for_device): New functions.
14209         * task.c: Include gomp-constants.h.  Include taskloop.c
14210         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14211         (gomp_task_handle_depend): New function.
14212         (GOMP_task): Use it.  Add priority argument.  Use
14213         gomp-constant.h constants instead of hardcoded numbers.
14214         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14215         (gomp_create_target_task): New function.
14216         (verify_children_queue, verify_taskgroup_queue,
14217         verify_task_queue): New functions.
14218         (gomp_task_run_pre): Call verify_*_queue functions.
14219         If an upcoming tied task is about to leave the sibling or
14220         taskgroup queues in an invalid state, adjust appropriately.
14221         Remove taskgroup argument.  Add comments.
14222         (gomp_task_run_post_handle_dependers): Add comments.
14223         (gomp_task_run_post_remove_parent): Likewise.
14224         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14225         (GOMP_taskwait): Likewise.  Add comments.
14226         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14227         problem such that the first non parent_depends_on task does not
14228         end up at the end of the children queue.
14229         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14230         GOMP_TASK_UNDEFERRED.
14231         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14232         * taskloop.c: New file.
14233         * testsuite/lib/libgomp.exp
14234         (check_effective_target_offload_device_nonshared_as): New proc.
14235         * testsuite/libgomp.c/affinity-2.c: New test.
14236         * testsuite/libgomp.c/doacross-1.c: New test.
14237         * testsuite/libgomp.c/doacross-2.c: New test.
14238         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14239         Add map clause to target.
14240         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14241         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14242         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14243         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14244         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14245         Likewise.
14246         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14247         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14248         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14249         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14250         not defined.  Use those where needed.
14251         * testsuite/libgomp.c/for-4.c: New test.
14252         * testsuite/libgomp.c/for-5.c: New test.
14253         * testsuite/libgomp.c/for-6.c: New test.
14254         * testsuite/libgomp.c/linear-1.c: New test.
14255         * testsuite/libgomp.c/ordered-4.c: New test.
14256         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14257         only allowed on the loop iterator.
14258         * testsuite/libgomp.c/pr66199-3.c: New test.
14259         * testsuite/libgomp.c/pr66199-4.c: New test.
14260         * testsuite/libgomp.c/reduction-7.c: New test.
14261         * testsuite/libgomp.c/reduction-8.c: New test.
14262         * testsuite/libgomp.c/reduction-9.c: New test.
14263         * testsuite/libgomp.c/reduction-10.c: New test.
14264         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14265         map(tofrom:s).
14266         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14267         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14268         * testsuite/libgomp.c/target-11.c: New test.
14269         * testsuite/libgomp.c/target-12.c: New test.
14270         * testsuite/libgomp.c/target-13.c: New test.
14271         * testsuite/libgomp.c/target-14.c: New test.
14272         * testsuite/libgomp.c/target-15.c: New test.
14273         * testsuite/libgomp.c/target-16.c: New test.
14274         * testsuite/libgomp.c/target-17.c: New test.
14275         * testsuite/libgomp.c/target-18.c: New test.
14276         * testsuite/libgomp.c/target-19.c: New test.
14277         * testsuite/libgomp.c/target-20.c: New test.
14278         * testsuite/libgomp.c/target-21.c: New test.
14279         * testsuite/libgomp.c/target-22.c: New test.
14280         * testsuite/libgomp.c/target-23.c: New test.
14281         * testsuite/libgomp.c/target-24.c: New test.
14282         * testsuite/libgomp.c/target-25.c: New test.
14283         * testsuite/libgomp.c/target-26.c: New test.
14284         * testsuite/libgomp.c/target-27.c: New test.
14285         * testsuite/libgomp.c/taskloop-1.c: New test.
14286         * testsuite/libgomp.c/taskloop-2.c: New test.
14287         * testsuite/libgomp.c/taskloop-3.c: New test.
14288         * testsuite/libgomp.c/taskloop-4.c: New test.
14289         * testsuite/libgomp.c++/ctor-13.C: New test.
14290         * testsuite/libgomp.c++/doacross-1.C: New test.
14291         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14292         Replace offload_device with offload_device_nonshared_as.
14293         * testsuite/libgomp.c++/for-12.C: New test.
14294         * testsuite/libgomp.c++/for-13.C: New test.
14295         * testsuite/libgomp.c++/for-14.C: New test.
14296         * testsuite/libgomp.c++/linear-1.C: New test.
14297         * testsuite/libgomp.c++/member-1.C: New test.
14298         * testsuite/libgomp.c++/member-2.C: New test.
14299         * testsuite/libgomp.c++/member-3.C: New test.
14300         * testsuite/libgomp.c++/member-4.C: New test.
14301         * testsuite/libgomp.c++/member-5.C: New test.
14302         * testsuite/libgomp.c++/ordered-1.C: New test.
14303         * testsuite/libgomp.c++/reduction-5.C: New test.
14304         * testsuite/libgomp.c++/reduction-6.C: New test.
14305         * testsuite/libgomp.c++/reduction-7.C: New test.
14306         * testsuite/libgomp.c++/reduction-8.C: New test.
14307         * testsuite/libgomp.c++/reduction-9.C: New test.
14308         * testsuite/libgomp.c++/reduction-10.C: New test.
14309         * testsuite/libgomp.c++/reference-1.C: New test.
14310         * testsuite/libgomp.c++/simd14.C: New test.
14311         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14312         * testsuite/libgomp.c++/target-5.C: New test.
14313         * testsuite/libgomp.c++/target-6.C: New test.
14314         * testsuite/libgomp.c++/target-7.C: New test.
14315         * testsuite/libgomp.c++/target-8.C: New test.
14316         * testsuite/libgomp.c++/target-9.C: New test.
14317         * testsuite/libgomp.c++/target-10.C: New test.
14318         * testsuite/libgomp.c++/target-11.C: New test.
14319         * testsuite/libgomp.c++/target-12.C: New test.
14320         * testsuite/libgomp.c++/taskloop-1.C: New test.
14321         * testsuite/libgomp.c++/taskloop-2.C: New test.
14322         * testsuite/libgomp.c++/taskloop-3.C: New test.
14323         * testsuite/libgomp.c++/taskloop-4.C: New test.
14324         * testsuite/libgomp.c++/taskloop-5.C: New test.
14325         * testsuite/libgomp.c++/taskloop-6.C: New test.
14326         * testsuite/libgomp.c++/taskloop-7.C: New test.
14327         * testsuite/libgomp.c++/taskloop-8.C: New test.
14328         * testsuite/libgomp.c++/taskloop-9.C: New test.
14329         * testsuite/libgomp.fortran/affinity1.f90: New test.
14330         * testsuite/libgomp.fortran/affinity2.f90: New test.
14332 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14334         PR tree-optimization/67476
14335         * testsuite/libgomp.c/autopar-3.c: New test.
14336         * testsuite/libgomp.c/autopar-4.c: New test.
14337         * testsuite/libgomp.c/autopar-5.c: New test.
14338         * testsuite/libgomp.c/autopar-6.c: New test.
14339         * testsuite/libgomp.c/autopar-7.c: New test.
14340         * testsuite/libgomp.c/autopar-8.c: New test.
14342 2015-10-12  James Norris  <jnorris@codesourcery.com>
14344         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14345         initializer.
14347 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14349         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14350         using load_gcc_lib.
14352 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
14354         * oacc-ptx.h: Remove file, moving its content into...
14355         * config/nvptx/fortran.c: ... here...
14356         * config/nvptx/oacc-init.c: ..., here...
14357         * config/nvptx/oacc-parallel.c: ..., and here.
14358         * config/nvptx/openacc.f90: New file.
14359         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14360         (link_ptx): Don't link in predefined bits of PTX code.
14362 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
14363             Bernd Schmidt <bernds@codesourcery.com>
14365         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14366         (struct targ_ptx_obj): New.
14367         (nvptx_tdata): Move earlier, change data format.
14368         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
14369         objects.
14370         (GOMP_OFFLOAD_load_image): Adjust.
14372 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14374         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14375         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14376         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14377         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14378         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14379         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14380         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14381         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14382         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14383         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14384         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14385         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14386         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14387         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14388         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14389         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14390         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14391         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14392         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14393         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14394         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14395         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14396         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14397         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14398         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14399         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14400         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14401         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14402         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14403         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14404         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14405         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14406         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14407         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14408         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14409         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14410         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14411         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14412         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14413         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14414         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14415         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14416         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14417         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14418         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14419         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14420         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14421         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14422         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14423         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14424         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14425         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14426         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14427         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14428         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14429         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14430         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14431         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14432         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14433         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14434         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14435         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14436         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14438 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14440         * oacc-init.c (acc_on_device): Force optimization level.
14442 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14444         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14445         (cuda_errlist): Delete.
14446         (cuda_error): Reimplement.
14448 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14450         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14451         array.
14452         * libgomp.map (GOACC_parallel_keyed): New.
14453         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14454         all callers.
14455         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14456         and take keyed varargs list.  Adjust call to exec_func.
14457         (GOACC_parallel): Force host fallback.
14458         * libgomp_g.h (GOACC_parallel): Remove.
14459         (GOACC_parallel_keyed): Declare.
14460         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14461         (struct targ_gn_descriptor): Replace name field with launch field.
14462         (nvptx_exec): Lose separate geometry args, take array.  Process
14463         dynamic dimensions and adjust.
14464         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14465         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14466         data.
14467         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14468         passing.
14469         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14470         passing.
14472 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14474         PR libgomp/67141
14475         * oacc-int.h (goacc_host_init): Add declaration.
14476         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14477         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14479 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14480             Sebastian Pop  <s.pop@samsung.com>
14482         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14483         match o/p.
14484         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14485         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14486         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14487         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14488         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14490 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14492         * configure.tgt: Add missing ;; in between nvptx and rtems
14493         snippets.
14495 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14497         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14498         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14499         (gomp_thread_pool_reservoir): Add priority member.
14500         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14501         priority.
14502         (parse_thread_pools): Likewise.
14503         * team.c (gomp_team_start): Call configuration provided
14504         gomp_adjust_thread_attr(). Destroy thread attributes if
14505         necessary.
14506         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14508 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14510         * config/posix/pool.h: New.
14511         * config/rtems/pool.h: Likewise.
14512         * config/rtems/proc.c: Likewise.
14513         * libgomp.h (gomp_thread_destructor): Declare.
14514         * team.c: Include configuration provided "pool.h".
14515         (gomp_get_thread_pool): Define in configuration.
14516         (gomp_team_end): Call configuration defined
14517         gomp_release_thread_pool().
14519 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14521         * config/rtems/bar.c: New.
14522         * config/rtems/bar.h: Likewise.
14523         * config/rtems/mutex.c: Likewise.
14524         * config/rtems/mutex.h: Likewise.
14525         * config/rtems/sem.c: Likewise.
14526         * config/rtems/sem.h: Likewise.
14527         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14528         <sys/lock.h> header file.
14529         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14530         supported by Newlib.
14531         * configure: Regenerate.
14533 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14535         * team.c (gomp_new_thread_pool): Delete and move content to ...
14536         (gomp_get_thread_pool): ... new function.  Allocate and
14537         initialize thread pool on demand.
14538         (get_last_team): Use gomp_get_thread_pool().
14539         (gomp_team_start): Delete thread pool initialization.
14541 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14543         PR tree-optimization/65637
14544         * testsuite/libgomp.c/autopar-2.c: New test.
14546 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14548         PR tree-optimization/46193
14549         * testsuite/libgomp.c/pr46193.c: New test.
14551 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14553         libgomp/
14554         * libgomp.map: Add 4.0.2 version.
14555         * target.c (offload_image_descr): Add version field.
14556         (gomp_load_image_to_device): Add version argument.  Adjust plugin
14557         call.  Improve load mismatch diagnostic.
14558         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
14559         call.
14560         (GOMP_offload_regster): Make stub function, move bulk to ...
14561         (GOMP_offload_register_ver): ... here.  Process version argument.
14562         (GOMP_offload_unregister): Make stub function, move bulk to ...
14563         (GOMP_offload_unregister_ver): ... here.  Process version argument.
14564         (gomp_init_device): Process version field.
14565         (gomp_unload_device): Process version field.
14566         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14567         macros.  Check plugin version.
14568         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
14569         loader and unloader types.
14570         * oacc-host.c: Include gomp-constants.h.
14571         (host_version): New.
14572         (host_load_image, host_unload_image): Adjust.
14573         (host_dispatch): Add host_version.
14574         * plugin/plugin-nvptx.c: Include gomp-constants.h.
14575         (GOMP_OFFLOAD_version): New.
14576         (GOMP_OFFLOAD_load_image): Add version arg and check it.
14577         (GOMP_OFFLOAD_unload_image): Likewise.
14578         * plugin/plugin-host.c: Include gomp-constants.h.
14579         (GOMP_OFFLOAD_version): New.
14580         (GOMP_OFFLOAD_load_image): Add version arg.
14581         (GOMP_OFFLOAD_unload_image): Likewise.
14583 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14585         PR tree-optimization/65468
14586         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14588 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14590         PR tree-optimization/65468
14591         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14593 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
14595         PR libgomp/66761
14596         PR libgomp/67303
14597         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14598         (gomp_iter_guided_next): Idem.
14599         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14600         (gomp_iter_ull_guided_next): Idem.
14601         * config/linux/wait.h (do_spin): Idem.
14603 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14605         * libgomp-plugin.h (enum offload_target_type): Remove
14606         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14607         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14608         * openacc.h (enum acc_device_t): Likewise.
14609         * openacc_lib.h: Likewise.
14610         * oacc-init.c (name_of_acc_device_t): Don't handle it.
14611         (acc_on_device): Just use __builtin_acc_on_device.
14612         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14613         of acc_on_device builtin.
14614         * plugin/plugin-host.h: Remove file.
14615         * plugin/plugin-host.c: Likewise, but salvage some content into...
14616         * oacc-host.c: ... this file.
14617         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14618         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14619         * Makefile.in: Regenerate.
14620         * configure: Likewise.
14621         * testsuite/lib/libgomp.exp
14622         (check_effective_target_openacc_host_nonshm_selected): Remove.
14623         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14624         ACC_DEVICE_TYPE=host_nonshm.
14625         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14626         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14627         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14628         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14629         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14630         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14632 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14633             Jakub Jelinek  <jakub@redhat.com>
14635         * config/nvptx/affinity.c: New file.
14636         * config/nvptx/alloc.c: Likewise.
14637         * config/nvptx/bar.c: Likewise.
14638         * config/nvptx/barrier.c: Likewise.
14639         * config/nvptx/critical.c: Likewise.
14640         * config/nvptx/env.c: Likewise.
14641         * config/nvptx/error.c: Likewise.
14642         * config/nvptx/fortran.c: Likewise.
14643         * config/nvptx/iter.c: Likewise.
14644         * config/nvptx/iter_ull.c: Likewise.
14645         * config/nvptx/libgomp-plugin.c: Likewise.
14646         * config/nvptx/lock.c: Likewise.
14647         * config/nvptx/loop.c: Likewise.
14648         * config/nvptx/loop_ull.c: Likewise.
14649         * config/nvptx/mutex.c: Likewise.
14650         * config/nvptx/oacc-async.c: Likewise.
14651         * config/nvptx/oacc-cuda.c: Likewise.
14652         * config/nvptx/oacc-host.c: Likewise.
14653         * config/nvptx/oacc-init.c: Likewise.
14654         * config/nvptx/oacc-mem.c: Likewise.
14655         * config/nvptx/oacc-parallel.c: Likewise.
14656         * config/nvptx/oacc-plugin.c: Likewise.
14657         * config/nvptx/omp-lock.h: Likewise.
14658         * config/nvptx/ordered.c: Likewise.
14659         * config/nvptx/parallel.c: Likewise.
14660         * config/nvptx/proc.c: Likewise.
14661         * config/nvptx/ptrlock.c: Likewise.
14662         * config/nvptx/sections.c: Likewise.
14663         * config/nvptx/sem.c: Likewise.
14664         * config/nvptx/single.c: Likewise.
14665         * config/nvptx/splay-tree.c: Likewise.
14666         * config/nvptx/target.c: Likewise.
14667         * config/nvptx/task.c: Likewise.
14668         * config/nvptx/team.c: Likewise.
14669         * config/nvptx/time.c: Likewise.
14670         * config/nvptx/work.c: Likewise.
14671         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14672         * configure: Regenerate.
14673         * configure.tgt (config_path): Set to "nvptx" for target
14674         nvptx*-*-*.
14676 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14678         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14680 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14682         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14683         (cuda_errlist): Constify.
14684         (errmsg):  Move into ...
14685         (cuda_error): ... here.  Make smaller.
14686         (_XSTR, _STR): Delete.
14687         (cuda_synames): Delete.
14688         (verify_device_library): Delete.
14689         (nvptx_init): Don't call it.
14691 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14693         * testsuite/libgomp.c/uns-outer-4.c: New test.
14695 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14697         * testsuite/libgomp.c/pr66714.c: New test.
14699 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14701         PR libgomp/66950
14702         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14703         (fib_ref): New function.
14704         (fib): Correct corner cases in the recursion.
14705         (main): Replace the non-simd loop with fib_ref call.
14706         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14707         subroutine.
14708         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
14709         for the last array element value.  Replace the non-simd loop with
14710         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
14711         of the last array element with according Fibonacci sequence element.
14712         (fib): Correct corner cases in the recursion.
14714 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14716         * target.c (gomp_offload_image_to_device): Rename to ...
14717         (gomp_load_image_to_device): ... here.
14718         (GOMP_offload_register): Adjust call.
14719         (gomp_init_device): Likewise.
14720         (gomp_unload_image_from_device): New.  Broken out of ...
14721         (GOMP_offload_unregister): ... here.  Call it.
14722         (gomp_unload_device): New.
14723         * libgomp.h (gomp_unload_device): Declare.
14724         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14725         mem maps.
14727 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14729         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14730         wait=-specific if.
14731         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14732         !=0 condition.
14733         (goacc_waits): Move !num_waits handling to ...
14734         (GOACC_wait): ... here, the only caller that might have zero waits.
14736         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14737         (struct ptx_image_data): Move earlier, add fns field.
14738         (struct ptx_device): Add images and image_lock fields.
14739         (ptx_images, ptx_image_lock): Delete.
14740         (nvptx_open_device): Initialize images and image_lock fields.
14741         (nvptx_close_device): Destroy image_lock.
14742         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14743         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14744         fields.
14746 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14748         * target.c (GOMP_offload_register): Use int for device type arg.
14749         (GOMP_offload_unregister): Likewise.
14751         * target.c (struct_offload_image_descr): Constify host_table.
14752         (gomp_offload_image_to_device): Likewise.
14753         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14755         * libgomp.h (gomp_device_descr): Constify target data arguments.
14756         * target.c (struct offload_image_descr): Constify target_data.
14757         (gomp_offload_image_to_device): Likewise.
14758         (GOMP_offload_register): Likewise.
14759         (GOMP_offload_unregister): Likewise.
14760         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14761         GOMP_OFFLOAD_unload_image): Constify target data.
14762         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14763         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14765 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14767         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14768         Workaround driver library const error.
14769         (struct nvptx_tdata, nvptx_tdata_t): New.
14770         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14771         type.
14773 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14775         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14776         of EPS parameter from integer to real.
14777         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14778         type of EPS parameter from integer to real.
14780 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14782         * team.c (get_last_team): New.
14783         (gomp_new_team): Recycle last non-nested team if possible.
14784         (gomp_team_end): Move team work share list free lock destruction
14785         to ...
14786         (free_team): ... here.
14788 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14790         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14791         and ref from int to double.  Replaced their comparison with
14792         an inequality of their difference and EPS.
14793         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14794         comparison of pri and a reference number with an inequality of their
14795         difference and EPS.
14796         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14797         the comparison of sum and sum_ref with an inequality of their
14798         difference and EPS.
14799         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14800         the comparison of pri and a reference number with an inequality of
14801         their difference and EPS.
14803 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14805         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14806         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14807         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14808         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14809         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14810         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14811         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14812         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14813         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14814         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14815         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14816         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14817         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14818         variables.
14819         (vec_mult): Likewise.  Add #pragma omp taskwait.
14820         (main): Adjust caller.
14821         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14822         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14823         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14824         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14825         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14826         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14827         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14828         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14829         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14830         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14831         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14832         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14833         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14834         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14835         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14836         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14837         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14838         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14839         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14840         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14841         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14842         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14843         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14844         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14845         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14846         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14847         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14848         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14849         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14850         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14851         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14852         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14853         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14854         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14855         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14856         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14857         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14858         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14859         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14860         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14861         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14862         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14863         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14864         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14865         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14866         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14867         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14868         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14869         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14870         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14871         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14872         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14873         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14874         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14875         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14876         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14877         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14878         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14879         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14880         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14881         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14882         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14883         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14884         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14885         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14886         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14887         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14888         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14889         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14890         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14891         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14892         (vec_mult): Add !$omp taskwait.
14893         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14894         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14895         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14896         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14897         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14898         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14899         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14900         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14901         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14902         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14903         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14904         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14905         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14906         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14907         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14908         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14909         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14910         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14911         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14912         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14913         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14914         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14915         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14916         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14917         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14918         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14919         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14920         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14921         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14922         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14923         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14924         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14925         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14926         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14927         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14928         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14929         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14930         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14931         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14932         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14933         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14934         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14935         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14936         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14937         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14938         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14939         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14940         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14941         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14942         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14943         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14944         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14945         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14946         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14947         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14948         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14949         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14950         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14951         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14952         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14953         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14954         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14955         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14956         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14957         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14958         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14959         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14961 2015-07-10  Tom de Vries  <tom@codesourcery.com>
14963         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14964         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14966 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
14968         PR libgomp/65099
14969         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14970         in a 64-bit configuration.
14971         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14972         offloading testing if no such device is available.
14973         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14974         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14976 2015-07-08  Tom de Vries  <tom@codesourcery.com>
14978         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14979         second call to f.
14980         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14982 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14984         PR tree-optimization/66642
14985         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14986         iteration count case.
14987         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14988         function, factor out of ...
14989         (main): ... here.  Test low iteration count case.
14991 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14993         * libgomp.h (gomp_thread_pool): Comment last_team field.
14995 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
14997         * testsuite/libgomp.c++/pr66702-1.C: Require
14998         vect_simd_clones effective target.
14999         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15001 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15003         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15004         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15005         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15006         "-O2".
15008 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15010         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15011         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15012         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15013         * testsuite/libgomp.c++/pr64824.C: Same.
15014         * testsuite/libgomp.c++/pr64868.C: Same.
15015         * testsuite/libgomp.c++/pr66199-1.C: Same.
15016         * testsuite/libgomp.c++/pr66199-2.C: Same.
15017         * testsuite/libgomp.c++/target-2.C: Same.
15018         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15019         -std=<standard> option.
15020         * testsuite/libgomp.c++/udr-11.C: Same.
15021         * testsuite/libgomp.c++/udr-12.C: Same.
15022         * testsuite/libgomp.c++/udr-13.C: Same.
15023         * testsuite/libgomp.c++/udr-14.C: Same.
15024         * testsuite/libgomp.c++/udr-15.C: Same.
15025         * testsuite/libgomp.c++/udr-16.C: Same.
15026         * testsuite/libgomp.c++/udr-17.C: Same.
15027         * testsuite/libgomp.c++/udr-18.C: Same.
15028         * testsuite/libgomp.c++/udr-19.C: Same.
15029         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15030         * testsuite/libgomp.c++/simd-1.C: Same.
15031         * testsuite/libgomp.c++/simd-2.C: Same.
15032         * testsuite/libgomp.c++/simd-3.C: Same.
15033         * testsuite/libgomp.c++/simd-4.C: Same.
15034         * testsuite/libgomp.c++/simd-5.C: Same.
15035         * testsuite/libgomp.c++/simd-6.C: Same.
15036         * testsuite/libgomp.c++/simd-7.C: Same.
15037         * testsuite/libgomp.c++/simd-8.C: Same.
15038         * testsuite/libgomp.c++/simd-9.C: Same.
15039         * testsuite/libgomp.c++/simd10.C: Same.
15040         * testsuite/libgomp.c++/simd11.C: Same.
15041         * testsuite/libgomp.c++/simd12.C: Same.
15042         * testsuite/libgomp.c++/simd13.C: Same.
15044 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15046         PR middle-end/66702
15047         * testsuite/libgomp.c++/pr66702-1.C: New test.
15048         * testsuite/libgomp.c++/pr66702-2.C: New test.
15050 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15052         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15053         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15054         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15055         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15057 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15059         PR tree-optimization/66652
15060         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15061         using restrict pointers.
15062         (main): Add arguments to calls to f.
15063         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15065 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
15067         * configure.ac: Fix check for header <sys/sysctl.h>.
15068         * configure: Regenerate.
15069         * config.h.in: Likewise.
15071 2015-06-23  Tom de Vries  <tom@codesourcery.com>
15073         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15074         abort.
15075         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15077 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
15079         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15080         acc_device_nvidia.
15082         PR libgomp/66518
15083         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15084         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15086 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15088         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
15089         dg-additional-options for any remaining options.
15090         * testsuite/libgomp.c/atomic-2.c: Same.
15091         * testsuite/libgomp.c/atomic-4.c: Same.
15092         * testsuite/libgomp.c/atomic-5.c: Same.
15093         * testsuite/libgomp.c/atomic-6.c: Same.
15094         * testsuite/libgomp.c/autopar-1.c: Same.
15095         * testsuite/libgomp.c/copyin-1.c: Same.
15096         * testsuite/libgomp.c/copyin-2.c: Same.
15097         * testsuite/libgomp.c/copyin-3.c: Same.
15098         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15099         * testsuite/libgomp.c/nestedfn-5.c: Same.
15100         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15101         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15102         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15103         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15104         * testsuite/libgomp.c/pr32362-1.c: Same.
15105         * testsuite/libgomp.c/pr32362-2.c: Same.
15106         * testsuite/libgomp.c/pr32362-3.c: Same.
15107         * testsuite/libgomp.c/pr39591-1.c: Same.
15108         * testsuite/libgomp.c/pr39591-2.c: Same.
15109         * testsuite/libgomp.c/pr39591-3.c: Same.
15110         * testsuite/libgomp.c/pr58392.c: Same.
15111         * testsuite/libgomp.c/pr58756.c: Same.
15112         * testsuite/libgomp.c/simd-1.c: Same.
15113         * testsuite/libgomp.c/simd-10.c: Same.
15114         * testsuite/libgomp.c/simd-11.c: Same.
15115         * testsuite/libgomp.c/simd-12.c: Same.
15116         * testsuite/libgomp.c/simd-13.c: Same.
15117         * testsuite/libgomp.c/simd-14.c: Same.
15118         * testsuite/libgomp.c/simd-15.c: Same.
15119         * testsuite/libgomp.c/simd-2.c: Same.
15120         * testsuite/libgomp.c/simd-3.c: Same.
15121         * testsuite/libgomp.c/simd-4.c: Same.
15122         * testsuite/libgomp.c/simd-5.c: Same.
15123         * testsuite/libgomp.c/simd-6.c: Same.
15124         * testsuite/libgomp.c/simd-7.c: Same.
15125         * testsuite/libgomp.c/simd-8.c: Same.
15126         * testsuite/libgomp.c/simd-9.c: Same.
15128 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15130         * testsuite/libgomp.c/pr35625.c: Fix typo.
15132 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15134         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15135         in dg-options.
15136         * testsuite/libgomp.c/atomic-3.c: Same.
15137         * testsuite/libgomp.c/debug-1.c: Same.
15138         * testsuite/libgomp.c/nqueens-1.c: Same.
15139         * testsuite/libgomp.c/pr26171.c: Same.
15140         * testsuite/libgomp.c/pr48591.c: Same.
15141         * testsuite/libgomp.c/pr64824.c: Same.
15142         * testsuite/libgomp.c/pr64868.c: Same.
15143         * testsuite/libgomp.c/pr66133.c: Same.
15144         * testsuite/libgomp.c/pr66199-1.c: Same.
15145         * testsuite/libgomp.c/pr66199-2.c: Same.
15146         * testsuite/libgomp.c/target-8.c: Same.
15148 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15150         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15151         -std={gnu99,c99}.
15152         * testsuite/libgomp.c/for-1.c: Same.
15153         * testsuite/libgomp.c/for-2.c: Same.
15154         * testsuite/libgomp.c/for-3.c: Same.
15155         * testsuite/libgomp.c/pr35625.c: Same.
15156         * testsuite/libgomp.c/pr39154.c: Same.
15157         * testsuite/libgomp.c/simd-16.c: Same.
15158         * testsuite/libgomp.c/simd-17.c: Same.
15160 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15162         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15164 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15166         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15167         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15168         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15169         (N): Define.
15170         (main): Use N instead of hardcoded constants.
15172 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15174         merge from gomp4 branch:
15175         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15177         PR tree-optimization/65443
15178         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15179         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15180         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15182 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15184         * testsuite/libgomp.graphite/bounds.c: Adjust for
15185         cleanup-tree-dump removal.
15186         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15187         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15188         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15189         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15190         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15191         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15192         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15193         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15194         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15195         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15197 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15199         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15200         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15201         (futex_wake) [!__x86_64__]: Ditto.
15203 2015-05-28  Julian Brown  <julian@codesourcery.com>
15205         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15206         function comment. Only call gomp_fatal if new argument is true.
15207         (acc_dev_num_out_of_range): New function.
15208         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15209         acc_dev_num_out_of_range as appropriate.
15210         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15211         (acc_get_device_num, acc_set_device_num): Update calls to
15212         resolve_device.
15213         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15214         output.
15216 2015-05-28  Julian Brown  <julian@codesourcery.com>
15218         PR libgomp/65742
15219         * oacc-init.c (plugin/plugin-host.h): Include.
15220         (acc_on_device): Check whether we're in an offloaded region for
15221         host_nonshm
15222         plugin. Don't use __builtin_acc_on_device.
15223         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15224         nonshm_exec flag in thread-local data.
15225         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15226         data for host_nonshm plugin.
15227         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15228         for host_nonshm plugin.
15229         * plugin/plugin-host.h: New.
15231 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15233         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15235 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15237         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15238         Declare as int.
15239         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15240         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15241         Declare as int.
15243 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15245         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15247 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15249         * target.c (gomp_map_pointer): New function abstracting out
15250         GOMP_MAP_POINTER handling.
15251         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15252         gomp_map_pointer().
15254 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15256         PR middle-end/66199
15257         * testsuite/libgomp.c/pr66199-1.c: New test.
15258         * testsuite/libgomp.c/pr66199-2.c: New test.
15259         * testsuite/libgomp.c++/pr66199-1.C: New test.
15260         * testsuite/libgomp.c++/pr66199-2.C: New test.
15261         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15262         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15264 2015-05-19  Julian Brown  <julian@codesourcery.com>
15266         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15267         on cuInit failure.
15269 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15271         PR middle-end/66133
15272         * testsuite/libgomp.c/pr66133.c: New test.
15274 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15276         * Makefile.in: Regenerated with automake-1.11.6.
15277         * aclocal.m4: Likewise.
15278         * config.h.in: Likewise.
15279         * configure: Likewise.
15280         * testsuite/Makefile.in: Likewise.
15282 2015-05-08  Jason Merrill  <jason@redhat.com>
15284         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15285         _Complex.
15287         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15289 2015-05-06  Julian Brown  <julian@codesourcery.com>
15291         * oacc-init.c (acc_device_lock): Add explanatory comment.
15292         (resolve_device): Add comment about locking requirement.
15293         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15294         gomp_init_device and gomp_fini_device calls.
15295         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15296         (acc_get_device_num, acc_set_device_num): Add locking around
15297         resolve_device and gomp_init_device calls.
15299 2015-05-06  Julian Brown  <julian@codesourcery.com>
15301         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15302         goacc_thread_lock on error paths.
15303         * oacc-mem.c (lookup_host): Remove locking from function. Note
15304         locking requirement for caller in function comment.
15305         (lookup_dev): Likewise.
15306         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15307         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15308         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15309         Add locking.
15311 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15313         PR testsuite/65205
15314         PR libgomp/65993
15315         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15316         don't expect "0x" prefix for "%p" format specifier, don't expect
15317         "(nil)" for NULL pointer.
15318         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15319         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15320         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15321         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15322         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15323         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15324         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15325         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15326         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15327         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15328         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15329         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15330         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15331         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15332         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15333         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15334         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15335         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15336         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15337         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15338         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15339         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15340         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15341         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15342         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15343         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15344         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15345         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15346         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15347         accurately specify what we're looking for.
15348         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15349         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15350         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15351         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15352         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15354 2015-04-30  James Norris  <jnorris@codesourcery.com>
15356         PR testsuite/65205
15357         * testsuite/lib/libgomp.exp
15358         (check_effective_target_openacc_host_selected)
15359         (check_effective_target_openacc_host_nonshm_selected): New
15360         procedures.
15361         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15362         dg-shouldfail.
15363         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15364         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15365         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15366         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15367         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15368         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15369         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15370         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15371         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15372         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15373         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15374         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15375         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15376         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15377         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15378         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15379         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15380         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15381         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15382         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15383         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15384         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15385         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15386         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15387         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15388         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15389         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15390         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15391         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15392         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15393         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15394         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15395         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15396         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15397         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15398         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15399         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15400         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15401         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15402         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15403         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15404         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15405         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15407 2015-04-08  Julian Brown  <julian@codesourcery.com>
15409         * libgomp.h (target_mem_desc: Remove mem_map field.
15410         (acc_dispatch_t): Remove open_device_func, close_device_func,
15411         get_device_num_func, set_device_num_func, target_data members.
15412         Change create_thread_data_func argument to device number instead of
15413         generic pointer.
15414         * oacc-async.c (assert.h): Include.
15415         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15416         (acc_wait_all, acc_wait_all_async): Use current host thread's
15417         active device, not base_dev.
15418         * oacc-cuda.c (acc_get_current_cuda_device)
15419         (acc_get_current_cuda_context, acc_get_cuda_stream)
15420         (acc_set_cuda_stream): Likewise.
15421         * oacc-host.c (host_dispatch): Don't set open_device_func,
15422         close_device_func, get_device_num_func or set_device_num_func.
15423         * oacc-init.c (base_dev, init_key): Remove.
15424         (cached_base_dev): New.
15425         (name_of_acc_device_t): New.
15426         (acc_init_1): Initialise default-numbered device, not zeroth.
15427         (acc_shutdown_1): Close all devices of a given type.
15428         (goacc_destroy_thread): Don't use base_dev.
15429         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15430         (goacc_attach_host_thread_to_device): New.
15431         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15432         (acc_get_num_devices): Don't use base_dev.
15433         (acc_set_device_type): Reimplement.
15434         (acc_get_device_type): Don't use base_dev.
15435         (acc_get_device_num): Tweak logic.
15436         (acc_set_device_num): Likewise.
15437         (acc_on_device): Use acc_get_device_type.
15438         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15439         (goacc_lazy_initialize): Reimplement with acc_init and
15440         goacc_attach_host_thread_to_device.
15441         * oacc-int.h (goacc_thread): Add base_dev field.
15442         (base_dev): Remove extern declaration.
15443         (goacc_attach_host_thread_to_device): Add prototype.
15444         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15445         base_dev.
15446         (acc_free): Likewise.
15447         (acc_memcpy_to_device): Likewise.
15448         (acc_memcpy_from_device): Likewise.
15449         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15450         goacc_lazy_initialize (throughout).
15451         (GOACC_parallel): Use tgt_offset to locate target functions.
15452         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15453         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15454         (gomp_load_plugin_for_device): Remove open_device, close_device,
15455         get_device_num, set_device_num openacc hook initialisation. Don't set
15456         openacc.target_data.
15457         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15458         (GOMP_OFFLOAD_openacc_close_device)
15459         (GOMP_OFFLOAD_openacc_get_device_num)
15460         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15461         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15462         to int.
15463         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15464         (instantiated_devices, ptx_dev_lock): New.
15465         (struct ptx_image_data): New.
15466         (ptx_devices, ptx_images, ptx_image_lock): New.
15467         (fini_streams_for_device): Reorder cuStreamDestroy call.
15468         (nvptx_get_num_devices): Remove forward declaration.
15469         (nvptx_init): Change return type to bool.
15470         (nvptx_fini): Remove.
15471         (nvptx_attach_host_thread_to_device): New.
15472         (nvptx_open_device): Return struct ptx_device* instead of void*.
15473         (nvptx_close_device): Change argument type to struct ptx_device*,
15474         return type to void.
15475         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15476         (kernel_target_data, kernel_host_table): Remove static globals.
15477         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15478         (GOMP_OFFLOAD_init_device): Reimplement.
15479         (GOMP_OFFLOAD_fini_device): Likewise.
15480         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15481         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15482         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15483         (GOMP_OFFLOAD_openacc_open_device)
15484         (GOMP_OFFLOAD_openacc_close_device)
15485         (GOMP_OFFLOAD_openacc_set_device_num)
15486         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15487         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15488         (device number).
15490         testsuite/
15491         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15493 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15495         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15496         * libgomp.h (struct gomp_memory_mapping): Remove.
15497         (struct target_mem_desc): Change type of mem_map from
15498         gomp_memory_mapping * to splay_tree_s *.
15499         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15500         Add load_image_func, unload_image_func.
15501         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15502         Remove offload_regions_registered.
15503         (gomp_init_tables): Remove.
15504         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15505         to splay_tree_s *.
15506         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15507         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15508         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15509         offload_regions_registered.
15510         Initialize load_image_func, unload_image_func, mem_map.root.
15511         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15512         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15513         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15514         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15515         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15516         (lookup_dev): Use dev's lock.
15517         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15518         (acc_is_present): Likewise.
15519         (acc_map_data): Likewise.
15520         (acc_unmap_data): Likewise.  Use dev's lock.
15521         (present_create_copy): Likewise.
15522         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15523         (update_dev_host): Likewise.
15524         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15525         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15526         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15527         (GOMP_OFFLOAD_get_table): Remove
15528         (GOMP_OFFLOAD_load_image): New function.
15529         (GOMP_OFFLOAD_unload_image): New function.
15530         * target.c (register_lock): New mutex for offload image registration.
15531         (num_devices): Do not guard with PLUGIN_SUPPORT.
15532         (gomp_realloc_unlock): New static function.
15533         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15534         before gomp_fatal.
15535         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15536         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15537         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15538         mem_map's.
15539         (gomp_unmap_vars): Likewise.
15540         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15541         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15542         (gomp_offload_image_to_device): New static function.
15543         (GOMP_offload_register): Add mutex lock.
15544         Call gomp_offload_image_to_device for all initialized devices.
15545         Replace gomp_realloc with gomp_realloc_unlock.
15546         (GOMP_offload_unregister): New function.
15547         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15548         get_table_func from the plugin with calls to init_device_func and
15549         gomp_offload_image_to_device.
15550         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15551         to splay_tree_s *.
15552         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15553         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15554         (GOMP_target_data): Do not call gomp_init_tables.
15555         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
15556         (gomp_load_plugin_for_device): Replace register_image and get_table
15557         with load_image and unload_image in DLSYM ().
15558         (gomp_register_images_for_device): Remove function.
15559         (gomp_target_init): Do not initialize current_device.mem_map.*,
15560         current_device.offload_regions_registered.
15561         Remove call to gomp_register_images_for_device.
15562         Do not free offload_images and num_offload_images.
15564 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15566         PR fortran/65597
15567         * testsuite/libgomp.fortran/pr65597.f90: New test.
15569 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15571         PR testsuite/65594
15572         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15573         (init, check): New function.
15574         (foo): Change return type to void.
15575         (main): Call init and check.
15577 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15579         PR testsuite/65594
15580         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15581         (foo): Use M for non-inner loops to scale down test-case.
15583 2015-03-25  Kai Tietz  <ktietz@redhat.com>
15585         PR libgomp/64972
15586         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15587         (GOACC_data_start): Likewise.
15588         * target.c (gomp_map_vars): Likewise.
15590 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
15592         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15593         hppa*-*-hpux*.
15595 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15597         * testsuite/libgomp.c/target-10.c: New test.
15598         * testsuite/libgomp.c++/target-4.C: New test.
15600 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15602         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15603         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15605 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15607         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15608         * configure.ac (*-*-rtems*): Assume Pthread is supported.
15609         (pthread.h): Check for this header file.
15610         * configure: Regenerate.
15612 2015-02-25  Tom de Vries  <tom@codesourcery.com>
15614         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15615         (check_reduction_op, check_reduction_macro, max, min):
15616         Declare.
15617         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15618         function.
15619         (main): Use new functions.
15621 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
15623         * target.c (gomp_load_plugin_for_device): Use const char * instead of
15624         char * for variables holding dlerror return values.
15625         (DLSYM_OPT): Ditto.
15627 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15629         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15631 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15632             Cesar Philippidis  <cesar@codesourcery.com>
15634         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15635         GOACC_ctaid, and GOACC_nctaid routines.
15637 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15639         PR c/64824
15640         * testsuite/libgomp.c/atomic-18.c: New test.
15641         * testsuite/libgomp.c++/atomic-16.C: New test.
15643 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15645         PR c/64824
15646         PR c/64868
15647         * testsuite/libgomp.c/pr64824.c: New test.
15648         * testsuite/libgomp.c/pr64868.c: New test.
15649         * testsuite/libgomp.c++/pr64824.C: New test.
15650         * testsuite/libgomp.c++/pr64868.C: New test.
15652 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15654         PR libgomp/64635
15655         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15656         Link with -lpthread.
15657         * config/aix/plugin-suffix.h: Delete.
15659 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
15661         PR libgomp/64635
15662         * configure.tgt (*-*-aix*): Use config_path "aix posix".
15663         (*-*-darwin*): Use config_path "bsd darwin posix".
15664         (*-*-hpux*): Use config_path "hpux posix".
15665         * target.c: Add include of plugin-suffix.h and use
15666         SONAME_SUFFIX macro.
15667         * config/aix/plugin-suffix.h: New file.
15668         * config/darwin/plugin-suffix.h: New file.
15669         * config/hpux/plugin-suffix.h: New file.
15670         * config/posix/plugin-suffix.h: New file.
15672 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15674         PR middle-end/64734
15675         * libgomp.c/pr64734.c: New test.
15677 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15679         PR libgomp/64672
15680         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15682 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15684         PR libgomp/64707
15685         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15686         dg-options.
15688 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15690         PR libgomp/64625
15691         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15692         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15693         formal parameter.  Update all users.
15694         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15695         Document unused formal parameter.
15697 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
15699         * oacc-parallel.c: Don't include <alloca.h>.
15700         (GOACC_parallel): Use gomp_alloca instead of alloca.
15702 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
15704         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15706 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15707             James Norris  <jnorris@codesourcery.com>
15708             Tom de Vries  <tom@codesourcery.com>
15709             Julian Brown  <julian@codesourcery.com>
15710             Cesar Philippidis  <cesar@codesourcery.com>
15711             Nathan Sidwell  <nathan@codesourcery.com>
15712             Tobias Burnus  <burnus@net-b.de>
15714         * Makefile.am (search_path): Add $(top_srcdir)/../include.
15715         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15716         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15717         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15718         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15719         Include $(top_srcdir)/plugin/Makefrag.am.
15720         (nodist_libsubinclude_HEADERS): Add openacc.h.
15721         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15722         openacc.f90, openacc.mod, openacc_kinds.mod.
15723         (omp_lib.mod): Generalize into...
15724         (%.mod): ... this new rule.
15725         (openacc_kinds.mod, openacc.mod): New rules.
15726         * plugin/configfrag.ac: New file.
15727         * configure.ac: Move plugin/offloading support into it.  Include
15728         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
15729         * plugin/Makefrag.am: New file.
15730         * testsuite/Makefile.am (OFFLOAD_TARGETS)
15731         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15732         export.
15733         (libgomp-test-support.exp): New rule.
15734         (all-local): Depend on it.
15735         * Makefile.in: Regenerate.
15736         * testsuite/Makefile.in: Regenerate.
15737         * config.h.in: Likewise.
15738         * configure: Likewise.
15739         * configure.tgt: Harden shell syntax.
15740         * env.c: Include "oacc-int.h".
15741         (parse_acc_device_type): New function.
15742         (gomp_debug_var, goacc_device_type, goacc_device_num): New
15743         variables.
15744         (initialize_env): Initialize those.  Call
15745         goacc_runtime_initialize.
15746         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15747         (gomp_fatal): Call gomp_vfatal.
15748         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15749         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15750         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15751         (splay_tree_node, splay_tree, splay_tree_key)
15752         (struct target_mem_desc, struct splay_tree_key_s)
15753         (struct gomp_memory_mapping, struct acc_dispatch_t)
15754         (struct gomp_device_descr, gomp_acc_insert_pointer)
15755         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15756         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15757         (gomp_free_memmap, gomp_fini_device): New declarations.
15758         (gomp_vdebug, gomp_debug): New macros.
15759         Include "splay-tree.h".
15760         * libgomp.map (OACC_2.0): New symbol version.  Use for
15761         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15762         acc_set_device_type_h_, acc_get_device_type,
15763         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15764         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15765         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15766         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15767         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15768         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15769         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15770         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15771         acc_copyin_array_h_, acc_present_or_copyin,
15772         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15773         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15774         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15775         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15776         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15777         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15778         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15779         acc_update_device, acc_update_device_32_h_,
15780         acc_update_device_64_h_, acc_update_device_array_h_,
15781         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15782         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15783         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15784         acc_is_present_64_h_, acc_is_present_array_h_,
15785         acc_memcpy_to_device, acc_memcpy_from_device,
15786         acc_get_current_cuda_device, acc_get_current_cuda_context,
15787         acc_get_cuda_stream, acc_set_cuda_stream.
15788         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
15789         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15790         GOACC_update, GOACC_wait, GOACC_get_thread_num,
15791         GOACC_get_num_threads.
15792         (GOMP_PLUGIN_1.0): New symbol version.  Use for
15793         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15794         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15795         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15796         GOMP_PLUGIN_acc_thread.
15797         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15798         environment variable.
15799         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15800         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15801         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15802         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15803         (splay_tree_remove): New declarations.
15804         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15805         (splay_tree_remove, splay_tree_lookup): Move into...
15806         * splay-tree.c: ... this new file.
15807         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15808         (splay_tree_node, splay_tree, splay_tree_key)
15809         (struct target_mem_desc, struct splay_tree_key_s)
15810         (struct gomp_device_descr): Don't declare.
15811         (num_devices_openmp): New variable.
15812         (gomp_get_num_devices ): Use it.
15813         (gomp_init_targets_once): New function.
15814         (gomp_get_num_devices ): Use it.
15815         (get_kind, gomp_copy_from_async, gomp_free_memmap)
15816         (gomp_fini_device, gomp_register_image_for_device): New functions.
15817         (gomp_map_vars): Add devaddrs parameter.
15818         (gomp_update): Add mm parameter.
15819         (gomp_init_device): Move most of it into...
15820         (gomp_init_tables): ... this new function.
15821         (gomp_register_images_for_device): Remove function.
15822         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15823         Make them hidden instead of static.
15824         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15825         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15826         (GOMP_target_end_data, GOMP_target_update)
15827         (gomp_load_plugin_for_device, gomp_target_init): Update for
15828         OpenACC changes.
15829         * oacc-async.c: New file.
15830         * oacc-cuda.c: Likewise.
15831         * oacc-host.c: Likewise.
15832         * oacc-init.c: Likewise.
15833         * oacc-int.h: Likewise.
15834         * oacc-mem.c: Likewise.
15835         * oacc-parallel.c: Likewise.
15836         * oacc-plugin.c: Likewise.
15837         * oacc-plugin.h: Likewise.
15838         * oacc-ptx.h: Likewise.
15839         * openacc.f90: Likewise.
15840         * openacc.h: Likewise.
15841         * openacc_lib.h: Likewise.
15842         * plugin/plugin-host.c: Likewise.
15843         * plugin/plugin-nvptx.c: Likewise.
15844         * libgomp-plugin.c: Likewise.
15845         * libgomp-plugin.h: Likewise.
15846         * libgomp_target.h: Remove file after merging content into the
15847         former file.  Update all users.
15848         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15849         (offload_targets_s, offload_targets_s_openacc): New variables.
15850         (check_effective_target_openacc_nvidia_accel_present)
15851         (check_effective_target_openacc_nvidia_accel_selected): New
15852         procedures.
15853         (libgomp_init): Update for OpenACC changes.
15854         * testsuite/libgomp-test-support.exp.in: New file.
15855         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15856         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15857         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15858         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15859         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15860         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15861         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15862         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15863         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15864         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15865         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15866         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15867         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15868         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15869         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15870         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15871         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15872         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15873         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15874         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15875         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15876         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15877         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15878         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15879         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15880         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15881         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15882         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15883         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15884         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15885         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15886         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15887         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15888         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15889         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15890         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15891         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15892         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15893         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15894         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15895         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15896         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15897         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15898         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15899         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15900         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15901         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15902         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15903         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15904         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15905         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15906         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15907         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15908         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15909         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15910         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15911         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15912         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15913         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15914         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15915         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15916         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15917         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15918         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15919         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15920         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15921         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15922         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15923         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15924         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15925         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15926         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15927         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15928         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15929         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15930         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15931         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15932         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15933         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15934         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15935         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15936         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15937         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15938         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15939         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15940         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15941         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15942         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15943         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15944         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15945         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15946         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15947         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15948         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15949         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15950         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15951         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15952         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15953         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15954         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15955         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15956         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15957         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15958         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15959         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15960         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15961         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15962         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15963         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15964         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15965         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15966         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15967         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15968         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15969         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15970         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15971         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15972         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15973         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15974         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15975         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15976         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15977         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15978         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15979         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15980         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15981         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15982         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15983         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15984         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15985         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15986         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15987         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15988         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15989         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15990         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15991         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15992         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15993         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15994         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15995         Likewise.
15996         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15997         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15998         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15999         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16000         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16001         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16002         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16003         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16004         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16005         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16006         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16007         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16008         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16009         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16010         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16011         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16012         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16013         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16014         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16015         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16016         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16017         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16018         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16019         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16020         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16021         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16022         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16023         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16024         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16025         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16026         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16027         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16028         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16029         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16030         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16031         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16032         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16033         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16034         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16035         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16036         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16037         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16038         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16039         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16040         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16041         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16042         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16043         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16044         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16045         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16046         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16047         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16048         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16049         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16050         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16051         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16052         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16053         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16054         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16055         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16057 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
16058             Julian Brown  <julian@codesourcery.com>
16059             David Malcolm  <dmalcolm@redhat.com>
16061         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16062         to "GNU Offloading and Multi Processing Runtime Library".  Change
16063         all users.
16064         * configure: Regenerate.
16065         * libgomp.texi: Update.
16067 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
16069         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16070         "$tgt_dir/lib32".
16071         * configure: Regenerate.
16073         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16074         "intelmic" in $offload_targets.
16076 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16078         Update copyright years.
16080         * libgomp.texi: Bump @copying's copyright year.
16082 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16084         * testsuite/lib/libgomp.exp: Load target-utils.exp.
16085         Move load of target-supports.exp earlier.
16087 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
16089         * testsuite/libgomp.c/target-9.c: New test.
16091 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
16093         * config.h.in: Regenerate.
16094         * configure: Regenerate.
16095         * configure.ac: Add GCC_CHECK_EMUTLS.
16096         * libgomp.h: Add check for USE_EMUTLS: this case
16097         is equal to HAVE_TLS.
16098         * team.c: Likewise.
16100 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
16102         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16104 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16105             Ilya Verbin  <ilya.verbin@intel.com>
16107         * testsuite/libgomp.c/target-critical-1.c: New test.
16109 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
16111         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16112         to dg-options unless expensive testing is on.
16113         (TESTITERS): Define to N if not defined.
16114         (main): Use TESTITERS instead of N.
16115         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16116         dg-additional-options depending on whether expensive testing is on.
16117         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16118         Decrease N to 100000 and CHUNKSZ to 10000.
16120 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
16122         PR fortran/63938
16123         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16124         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16126 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
16128         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16130 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16132         PR bootstrap/63784
16133         * configure: Regenerated.
16135 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
16137         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16138         vect_simd_clones effective target.
16139         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16141 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
16143         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16144         of 32 as block_size.
16145         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16146         instead of 32 as block_size.
16148 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16149             Ilya Verbin  <ilya.verbin@intel.com>
16151         * Makefile.in: Regenerate.
16152         * configure: Regenerate.
16153         * configure.ac: Set up offload_additional_options,
16154         offload_additional_lib_paths and offload_targets.
16155         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16156         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16157         * testsuite/Makefile.in: Regenerate.
16158         * testsuite/lib/libgomp.exp (libgomp_init): Append
16159         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
16160         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
16161         build directory to LD_LIBRARY_PATH for intelmic offload targets.
16163 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16164             Ilya Verbin  <ilya.verbin@intel.com>
16165             Kirill Yukhin  <kirill.yukhin@intel.com>
16166             Ilya Tocar  <ilya.tocar@intel.com>
16168         * testsuite/lib/libgomp.exp
16169         (check_effective_target_offload_device): New.
16170         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16171         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16172         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16173         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16174         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16175         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16176         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16177         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16178         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16179         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16180         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16181         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16182         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16183         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16184         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16185         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16186         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16187         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16188         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16189         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16190         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16191         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16192         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16193         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16194         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16195         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16196         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16197         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16198         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16199         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16200         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16201         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16202         * testsuite/libgomp.c/target-7.c: Fix test.
16203         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16204         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16205         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16206         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16207         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16208         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16209         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16210         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16211         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16212         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16213         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16214         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16215         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16216         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16217         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16218         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16219         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16220         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16221         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16222         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16223         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16224         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16225         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16226         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16227         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16228         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16229         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16230         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16231         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16232         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16233         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16235 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16236             Ilya Verbin  <ilya.verbin@intel.com>
16237             Thomas Schwinge  <thomas@codesourcery.com>
16238             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16240         * libgomp.map (GOMP_4.0.1): New symbol version.
16241         Add GOMP_offload_register.
16242         * libgomp_target.h: New file.
16243         * splay-tree.h: New file.
16244         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16245         (gomp_target_init): New forward declaration.
16246         (gomp_is_initialized): New static variable.
16247         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16248         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16249         New structures.
16250         (offload_images, num_offload_images, devices, num_devices): New static
16251         variables.
16252         (splay_compare): New static function.
16253         (struct gomp_device_descr): New structure.
16254         (gomp_get_num_devices): Call gomp_target_init.
16255         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16256         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16257         (GOMP_offload_register): New function.
16258         (GOMP_target): Arrange for host callback to be performed in a separate
16259         initial thread and contention group, inheriting ICVs from
16260         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16261         Add device initialization and lookup for target function in splay tree.
16262         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16263         (GOMP_target_end_data): Call gomp_unmap_vars.
16264         (GOMP_target_update): Add device initialization and call gomp_update.
16265         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16266         (gomp_target_init): New static functions.
16268 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16269             Thomas Schwinge  <thomas@codesourcery.com>
16270             Ilya Verbin  <ilya.verbin@intel.com>
16271             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16273         * config.h.in: Regenerate.
16274         * configure: Regenerate.
16275         * configure.ac: Check for libdl, required for plugin support.
16276         (PLUGIN_SUPPORT): Define if plugins are supported.
16277         (enable_offload_targets): Support Intel MIC targets.
16278         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16280 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16282         PR target/63610
16283         * configure: Regenerate.
16285 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16287         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16289 2014-10-06  Marek Polacek  <polacek@redhat.com>
16291         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16292         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16293         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16294         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16296 2014-10-06  Marek Polacek  <polacek@redhat.com>
16298         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16299         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16300         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16301         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16302         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16303         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16304         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16305         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16306         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16307         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16308         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16309         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16310         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16311         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16312         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16313         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16314         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16315         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16316         declarations.
16318 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16320         PR libgomp/61200
16321         * testsuite/libgomp.c/pr61200.c: New test.
16323 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16325         PR c++/63248
16326         * testsuite/libgomp.c++/pr63248.C: New test.
16328 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16330         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16331         is not zero, but taskgroup->children is NULL and there are
16332         any task->children, schedule those instead of waiting.
16333         * testsuite/libgomp.c/depend-6.c: New test.
16334         * testsuite/libgomp.c/depend-7.c: New test.
16335         * testsuite/libgomp.c/depend-8.c: New test.
16336         * testsuite/libgomp.c/depend-9.c: New test.
16337         * testsuite/libgomp.c/depend-10.c: New test.
16339 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16341         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16342         (struct gomp_taskwait): New type.
16343         (struct gomp_task): Add taskwait and parent_depends_on, remove
16344         in_taskwait and taskwait_sem fields.
16345         (gomp_finish_task): Don't destroy taskwait_sem.
16346         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16347         taskwait and parent_depends_on.
16348         (GOMP_task): For if (0) tasks with depend clause that depend on
16349         earlier tasks don't defer them, instead call
16350         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16351         Initialize redundant_out field, for redundant out entries just
16352         move them at the end of linked list instead of removing them
16353         completely, and set redundant_out flag instead of redundant.
16354         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16355         that task.
16356         (gomp_task_run_post_handle_dependers): If parent is in
16357         gomp_task_maybe_wait_for_dependencies and newly runnable task
16358         is not parent_depends_on, queue it in parent->children linked
16359         list after all runnable tasks with parent_depends_on set.
16360         Adjust for addition of taskwait indirection.
16361         (gomp_task_run_post_remove_parent): If parent is in
16362         gomp_task_maybe_wait_for_dependencies and task to be removed
16363         is parent_depends_on, decrement n_depend and if needed awake
16364         parent.  Adjust for addition of taskwait indirection.
16365         (GOMP_taskwait): Adjust for addition of taskwait indirection.
16366         (gomp_task_maybe_wait_for_dependencies): New function.
16367         * testsuite/libgomp.c/depend-5.c: New test.
16369 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16371         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16372         with TS 18508/Fortran 2015.
16374 2014-07-06  Marek Polacek  <polacek@redhat.com>
16376         PR c/6940
16377         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16379 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16381         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16382         matches regex $lang_source_re, add $lang_include_flags to options.
16383         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16384         * testsuite/libgomp.c++/c++.exp: Likewise.
16385         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16386         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16387         ALWAYS_CFLAGS.
16388         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16390 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16392         * testsuite/libgomp.fortran/fortran.exp: Explain
16393         gfortran-dg-runtest usage.
16395 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16397         * testsuite/libgomp.fortran/simd5.f90: New test.
16398         * testsuite/libgomp.fortran/simd6.f90: New test.
16399         * testsuite/libgomp.fortran/simd7.f90: New test.
16401 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16403         * testsuite/libgomp.c/for-2.c: Define SC to static for
16404         #pragma omp for simd testing.
16405         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16406         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16407         SC macro.
16408         * testsuite/libgomp.c/simd-14.c: New test.
16409         * testsuite/libgomp.c/simd-15.c: New test.
16410         * testsuite/libgomp.c/simd-16.c: New test.
16411         * testsuite/libgomp.c/simd-17.c: New test.
16412         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16413         #pragma omp for simd testing.
16414         * testsuite/libgomp.c++/simd10.C: New test.
16415         * testsuite/libgomp.c++/simd11.C: New test.
16416         * testsuite/libgomp.c++/simd12.C: New test.
16417         * testsuite/libgomp.c++/simd13.C: New test.
16419         * testsuite/libgomp.fortran/aligned1.f03: New test.
16420         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16421         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16422         tasks with !$omp parallel !$omp single.
16423         * testsuite/libgomp.fortran/target8.f90: New test.
16424         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16425         not to use trim in the combiner, instead call elemental function.
16426         (fn): New elemental function.
16427         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16428         Make elemental.
16429         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16430         omp_in): Likewise.
16431         * testsuite/libgomp.fortran/udr12.f90: New test.
16432         * testsuite/libgomp.fortran/udr13.f90: New test.
16433         * testsuite/libgomp.fortran/udr14.f90: New test.
16434         * testsuite/libgomp.fortran/udr15.f90: New test.
16436 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16438         * omp_lib.f90.in (openmp_version): Set to 201307.
16439         * omp_lib.h.in (openmp_version): Likewise.
16440         * testsuite/libgomp.c/target-8.c: New test.
16441         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16442         and inbranch clauses.
16443         * testsuite/libgomp.fortran/depend-3.f90: New test.
16444         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16445         openmp_version.
16446         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16447         * testsuite/libgomp.fortran/target1.f90: New test.
16448         * testsuite/libgomp.fortran/target2.f90: New test.
16449         * testsuite/libgomp.fortran/target3.f90: New test.
16450         * testsuite/libgomp.fortran/target4.f90: New test.
16451         * testsuite/libgomp.fortran/target5.f90: New test.
16452         * testsuite/libgomp.fortran/target6.f90: New test.
16453         * testsuite/libgomp.fortran/target7.f90: New test.
16455 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16457         PR fortran/60928
16458         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16459         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16460         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16461         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16462         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16463         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16464         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16465         * testsuite/libgomp.fortran/associate1.f90: New test.
16466         * testsuite/libgomp.fortran/associate2.f90: New test.
16467         * testsuite/libgomp.fortran/procptr1.f90: New test.
16469 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16471         * testsuite/libgomp.fortran/simd1.f90: New test.
16472         * testsuite/libgomp.fortran/udr1.f90: New test.
16473         * testsuite/libgomp.fortran/udr2.f90: New test.
16474         * testsuite/libgomp.fortran/udr3.f90: New test.
16475         * testsuite/libgomp.fortran/udr4.f90: New test.
16476         * testsuite/libgomp.fortran/udr5.f90: New test.
16477         * testsuite/libgomp.fortran/udr6.f90: New test.
16478         * testsuite/libgomp.fortran/udr7.f90: New test.
16479         * testsuite/libgomp.fortran/udr8.f90: New test.
16480         * testsuite/libgomp.fortran/udr9.f90: New test.
16481         * testsuite/libgomp.fortran/udr10.f90: New test.
16482         * testsuite/libgomp.fortran/udr11.f90: New test.
16484 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16486         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16487         vect_simd_clones effective target.
16488         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16490 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16492         PR middle-end/61252
16493         * testsuite/libgomp.c++/simd-9.C: New test.
16495 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16497         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16498         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16499         texts according to their @menu entry positions.
16501 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16503         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16504         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16505         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16506         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16507         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16508         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16509         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16510         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16511         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16512         * testsuite/libgomp.fortran/depend-1.f90: New test.
16513         * testsuite/libgomp.fortran/depend-2.f90: New test.
16514         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16515         * testsuite/libgomp.fortran/simd1.f90: New test.
16516         * testsuite/libgomp.fortran/simd2.f90: New test.
16517         * testsuite/libgomp.fortran/simd3.f90: New test.
16518         * testsuite/libgomp.fortran/simd4.f90: New test.
16519         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16521 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16523         * testsuite/libgomp.c/simd-10.c: New test.
16524         * testsuite/libgomp.c/simd-11.c: New test.
16525         * testsuite/libgomp.c/simd-12.c: New test.
16526         * testsuite/libgomp.c/simd-13.c: New test.
16528 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16530         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16531         atomic type clauses in any order and optional comma in between.
16532         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16533         * testsuite/libgomp.c/atomic-17.c: Likewise.
16535         * testsuite/libgomp.c/simd-7.c: New test.
16536         * testsuite/libgomp.c/simd-8.c: New test.
16537         * testsuite/libgomp.c/simd-9.c: New test.
16538         * testsuite/libgomp.c/loop-16.c: New test.
16540 2014-04-02  Richard Henderson  <rth@redhat.com>
16542         * config/linux/futex.h (futex_wait): Get error value from errno.
16543         (futex_wake): Likewise.
16545 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16547         PR c++/60331
16548         * testsuite/libgomp.c++/udr-11.C: New test.
16549         * testsuite/libgomp.c++/udr-12.C: New test.
16550         * testsuite/libgomp.c++/udr-13.C: New test.
16551         * testsuite/libgomp.c++/udr-14.C: New test.
16552         * testsuite/libgomp.c++/udr-15.C: New test.
16553         * testsuite/libgomp.c++/udr-16.C: New test.
16554         * testsuite/libgomp.c++/udr-17.C: New test.
16555         * testsuite/libgomp.c++/udr-18.C: New test.
16556         * testsuite/libgomp.c++/udr-19.C: New test.
16558 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16560         Update copyright years
16562 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16564         * hashtab.h: Use the standard form for the copyright notice.
16566 2014-01-02  Tobias Burnus  <burnus@net-b.de>
16568         * libgomp.texi: Bump @copying's copyright year.
16570 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
16572         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16573         alloca () with __builtin_alloca ().
16574         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16575         * testsuite/libgomp.c/lock-3.c: Likewise.
16576         * testsuite/libgomp.c/pr48591.c: Likewise.
16578 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
16580         PR testsuite/59534
16581         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16582         comparisons.
16584 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
16586         PR libgomp/58756
16587         * testsuite/libgomp.c/pr58756.c: New test.
16589 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
16591         PR libgomp/59467
16592         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16593         !$omp parallel.
16595 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
16597         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16598         ALWAYS_CFLAGS.
16599         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16600         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16601         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16602         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16603         Likewise.
16605         * libgomp_g.h: Include <stddef.h> for size_t.
16607         * libgomp.spec.in: Update comment about libgomp's dependencies.
16608         * configure.ac: Likewise.
16609         * configure: Regenerate.
16611 2013-10-16  Tobias Burnus  <burnus@net-b.de>
16613         * libgomp.texi: (Runtime Library Routines): Update references for
16614         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16615         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16616         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16617         (Environment Variables): Update references for OpenMP 4.0. Add
16618         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16619         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16620         order.
16622 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
16624         * env.c (parse_bind_var): Initialize value to avoid
16625         (false positive) warning.
16627 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
16629         PR libgomp/58691
16630         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16631         to check variable.
16632         (gomp_init_num_threads): Move i variable declaration into
16633         #ifdef CPU_ALLOC_SIZE block.
16634         * config/linux/affinity.c (gomp_affinity_init_level): Test
16635         gomp_places_list_len == 0 rather than gomp_places_list == 0
16636         when checking for topology reading error.
16637         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16638         * env.c (parse_affinity): Add ignore argument, if true, don't populate
16639         gomp_places_list, only parse env var and always return false.
16640         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
16641         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16642         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16643         and either of these variables were parsed correctly into a places
16644         list.
16646 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16647             Jakub Jelinek  <jakub@redhat.com>
16649         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16650         of 5 loopfn matches.
16651         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16652         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16653         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16654         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16655         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16656         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16657         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16658         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16660 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16662         * Makefile.am (omp_lib.mod): Streamline rule.
16663         * Makefile.in: Regenerate.
16665         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16666         exceptions.
16668         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16669         * testsuite/libgomp.fortran/lib1.f90: Likewise.
16670         * testsuite/libgomp.fortran/lib2.f: Likewise.
16671         * testsuite/libgomp.fortran/lib3.f: Likewise.
16673         * configure.ac: Typo fix.
16674         * configure: Regenerate.
16676         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16677         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16679         * omp.h.in: Don't touch the user's namespace.
16681 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
16682             Tobias Burnus  <burnus@net-b.de>
16683             Richard Henderson  <rth@redhat.com>
16685         * target.c: New file.
16686         * Makefile.am (libgomp_la_SOURCES): Add target.c.
16687         * Makefile.in: Regenerated.
16688         * libgomp_g.h (GOMP_task): Add depend argument.
16689         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16690         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16691         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16692         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16693         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16694         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16695         GOMP_taskgroup_start, GOMP_taskgroup_end,
16696         GOMP_parallel_sections): New prototypes.
16697         * fortran.c (omp_is_initial_device): Add ialias_redirect.
16698         (omp_is_initial_device_): New function.
16699         (ULP, STR1, STR2, ialias_redirect): Removed.
16700         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16701         omp_set_default_device_8_, omp_get_default_device_,
16702         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16703         functions.
16704         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16705         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16706         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16707         @@GOMP_4.0.
16708         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16709         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16710         omp_set_default_device, omp_set_default_device_,
16711         omp_set_default_device_8_, omp_get_default_device,
16712         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16713         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16714         omp_get_team_num_): Export @@OMP_4.0.
16715         * team.c (struct gomp_thread_start_data): Add place field.
16716         (gomp_thread_start): Clear thr->thread_pool and
16717         thr->task before returning.  Use gomp_team_barrier_wait_final
16718         instead of gomp_team_barrier_wait.  Initialize thr->place.
16719         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16720         team_cancelled and task_queued_count fields.
16721         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16722         before calling pthread_exit.
16723         (gomp_free_thread): No longer static.  Use
16724         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16725         (gomp_team_start): Add flags argument.  Set
16726         thr->thread_pool->threads_busy to nthreads immediately after creating
16727         new pool.  Use gomp_managed_threads_lock instead of
16728         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
16729         (gomp_team_end): Use gomp_managed_threads_lock instead of
16730         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
16731         of gomp_team_barrier_wait.  If team->team_cancelled, call
16732         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16733         rather than thr->ts.work_share.
16734         (initialize_team): Don't call gomp_sem_init here.
16735         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16736         caller.
16737         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16738         * env.c (gomp_global_icv): Add default_device_var, target_data and
16739         bind_var initializers.
16740         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16741         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16742         gomp_places_list_len): New variables.
16743         (parse_bind_var, parse_one_place, parse_places_var): New functions.
16744         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16745         sized places.
16746         (gomp_cancel_var): New global variable.
16747         (parse_int): New function.
16748         (handle_omp_display_env): New function.
16749         (initialize_env): Use it.  Initialize default_device_var.
16750         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
16751         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
16752         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
16753         been successfully parsed (and call gomp_init_affinity in that case).
16754         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16755         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16756         omp_get_team_num, omp_is_initial_device): New functions.
16757         * libgomp.h: Include stdlib.h.
16758         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16759         Define.
16760         (struct target_mem_desc): Forward declare.
16761         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16762         and thread_limit_var fields.
16763         (gomp_get_num_devices): New prototype.
16764         (gomp_cancel_var): New extern decl.
16765         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16766         team_cancelled and task_queued_count fields.  Add comments about
16767         task_{,queued_,running_}count.
16768         (gomp_cancel_kind): New enum.
16769         (gomp_work_share_end_cancel): New prototype.
16770         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16771         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16772         and depend fields.
16773         (struct gomp_taskgroup): New type.
16774         (struct gomp_task_depend_entry,
16775         struct gomp_dependers_vec): New types.
16776         (gomp_finish_task): Free depend_hash if non-NULL.
16777         (struct gomp_team_state): Add place_partition_off
16778         and place_partition_len fields.
16779         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16780         gomp_places_list_len): New extern decls.
16781         (struct gomp_thread): Add place field.
16782         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16783         (gomp_init_thread_affinity): Add place argument.
16784         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16785         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16786         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16787         gomp_affinity_init_level, gomp_affinity_print_place): New
16788         prototypes.
16789         (gomp_team_start): Add flags argument.
16790         (gomp_thread_limit_var, gomp_remaining_threads_count,
16791         gomp_remaining_threads_lock): Remove.
16792         (gomp_managed_threads_lock): New variable.
16793         (struct gomp_thread_pool): Add threads_busy field.
16794         (gomp_free_thread): New prototype.
16795         * task.c: Include hashtab.h.
16796         (hash_entry_type): New typedef.
16797         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16798         (gomp_init_task): Clear dependers, depend_hash, depend_count,
16799         copy_ctors_done and taskgroup fields.
16800         (GOMP_task): Add depend argument, handle depend clauses.  If
16801         gomp_team_barrier_cancelled or if it's taskgroup has been
16802         cancelled, don't queue or start new tasks.  Set copy_ctors_done
16803         field if needed.  Initialize taskgroup field.  If copy_ctors_done
16804         and already cancelled, don't discard the task.  If taskgroup is
16805         non-NULL, enqueue the task into taskgroup queue.  Increment
16806         num_children field in taskgroup.  Increment task_queued_count.
16807         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16808         gomp_task_run_post_remove_taskgroup): New inline functions.
16809         (gomp_task_run_post_handle_depend_hash,
16810         gomp_task_run_post_handle_dependers,
16811         gomp_task_run_post_handle_depend): New functions.
16812         (GOMP_taskwait): Use them.  If more than one new tasks
16813         have been queued, wake other threads if needed.
16814         (gomp_barrier_handle_tasks): Likewise.  If
16815         gomp_team_barrier_cancelled, don't start any new tasks, just free
16816         all tasks.
16817         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16818         * omp_lib.f90.in
16819         (omp_proc_bind_kind, omp_proc_bind_false,
16820         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16821         omp_proc_bind_spread): New params.
16822         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16823         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16824         omp_get_team_num, omp_is_initial_device): New interfaces.
16825         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16826         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16827         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16828         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16829         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16830         useless use omp_lib_kinds.
16831         * omp.h.in (omp_proc_bind_t): New typedef.
16832         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16833         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16834         omp_get_team_num, omp_is_initial_device): New prototypes.
16835         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16836         through to gomp_team_start.
16837         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16838         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16839         Adjust gomp_parallel_loop_start callers.
16840         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16841         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16842         GOMP_loop_end_cancel): New functions.
16843         (GOMP_parallel_end): Add ialias_redirect.
16844         * hashtab.h: New file.
16845         * libgomp.texi (Environment Variables): Minor cleanup,
16846         update section refs to OpenMP 4.0rc2.
16847         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16848         environment variables.
16849         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16850         team->work_shares_to_free to thr->ts.work_share before calling
16851         free_work_share.
16852         (gomp_work_share_end_cancel): New function.
16853         * config/linux/proc.c: Include errno.h.
16854         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16855         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16856         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
16857         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
16858         gomp_cpuset_size is sizeof (cpu_set_t).
16859         (gomp_init_num_threads): Initialize gomp_cpuset_size,
16860         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16861         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16862         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
16863         contain any logical CPUs.
16864         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16865         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
16866         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16867         pthread_getaffinity_np.  Check gomp_places_list instead of
16868         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
16869         * config/linux/bar.c (gomp_barrier_wait_end,
16870         gomp_barrier_wait_last): Use BAR_* defines.
16871         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
16872         from state where needed.  Set work_share_cancelled to 0 on last
16873         thread.
16874         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16875         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16876         functions.
16877         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16878         Add cpusetsize argument.
16879         (gomp_cpuset_size, gomp_cpusetp): Declare.
16880         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16881         (affinity_counter): Remove.
16882         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16883         if CPU_ALLOC_SIZE isn't defined.
16884         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16885         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16886         bind current thread to the first place.
16887         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
16888         pthread_setaffinity_np to gomp_places_list[place].
16889         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16890         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16891         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16892         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16893         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16894         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16895         (gomp_barrier_t): Add awaited_final field.
16896         (gomp_barrier_init): Initialize awaited_final field.
16897         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16898         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16899         prototypes.
16900         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
16901         defines.
16902         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16903         gomp_team_barrier_cancelled): New inline functions.
16904         (gomp_barrier_last_thread,
16905         gomp_team_barrier_set_task_pending,
16906         gomp_team_barrier_clear_task_pending,
16907         gomp_team_barrier_set_waiting_for_tasks,
16908         gomp_team_barrier_waiting_for_tasks,
16909         gomp_team_barrier_done): Use BAR_* defines.
16910         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16911         (gomp_barrier_wait_end): Use BAR_* defines.
16912         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16913         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16914         Use BAR_* defines.
16915         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16916         gomp_team_barrier_cancel): New functions.
16917         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16918         argument.
16919         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16920         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16921         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16922         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16923         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16924         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16925         (gomp_barrier_t): Add cancellable field.
16926         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16927         gomp_team_barrier_cancel): New prototypes.
16928         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16929         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16930         gomp_team_barrier_cancelled): New inline functions.
16931         (gomp_barrier_wait_start, gomp_barrier_last_thread,
16932         gomp_team_barrier_set_task_pending,
16933         gomp_team_barrier_clear_task_pending,
16934         gomp_team_barrier_set_waiting_for_tasks,
16935         gomp_team_barrier_waiting_for_tasks,
16936         gomp_team_barrier_done): Use BAR_* defines.
16937         * barrier.c (GOMP_barrier_cancel): New function.
16938         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16939         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16940         omp_proc_bind_spread): New params.
16941         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16942         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16943         omp_get_team_num, omp_is_initial_device): New externals.
16944         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16945         New functions.
16946         (gomp_resolve_num_threads): Adjust for thread_limit now being in
16947         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16948         infinity.  If not nested, just return minimum of max_num_threads
16949         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16950         to the returned value.  Otherwise, don't update atomically
16951         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16952         (GOMP_parallel_end): Adjust for thread_limit now being in
16953         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16954         infinity.  Adjust threads_busy in the pool rather than
16955         gomp_remaining_threads_count.  Remember team->nthreads and call
16956         gomp_team_end before adjusting threads_busy, if not nested
16957         afterwards, just set it to 1 non-atomically.  Add ialias.
16958         (GOMP_parallel_start): Adjust gomp_team_start caller.
16959         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16960         * testsuite/libgomp.c/affinity-1.c: New test.
16961         * testsuite/libgomp.c/atomic-15.c: New test.
16962         * testsuite/libgomp.c/atomic-16.c: New test.
16963         * testsuite/libgomp.c/atomic-17.c: New test.
16964         * testsuite/libgomp.c/cancel-for-1.c: New test.
16965         * testsuite/libgomp.c/cancel-for-2.c: New test.
16966         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16967         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16968         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16969         * testsuite/libgomp.c/cancel-sections-1.c: New test.
16970         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16971         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16972         * testsuite/libgomp.c/depend-1.c: New test.
16973         * testsuite/libgomp.c/depend-2.c: New test.
16974         * testsuite/libgomp.c/depend-3.c: New test.
16975         * testsuite/libgomp.c/depend-4.c: New test.
16976         * testsuite/libgomp.c/for-1.c: New test.
16977         * testsuite/libgomp.c/for-1.h: New file.
16978         * testsuite/libgomp.c/for-2.c: New test.
16979         * testsuite/libgomp.c/for-2.h: New file.
16980         * testsuite/libgomp.c/for-3.c: New test.
16981         * testsuite/libgomp.c/pr58392.c: New test.
16982         * testsuite/libgomp.c/simd-1.c: New test.
16983         * testsuite/libgomp.c/simd-2.c: New test.
16984         * testsuite/libgomp.c/simd-3.c: New test.
16985         * testsuite/libgomp.c/simd-4.c: New test.
16986         * testsuite/libgomp.c/simd-5.c: New test.
16987         * testsuite/libgomp.c/simd-6.c: New test.
16988         * testsuite/libgomp.c/target-1.c: New test.
16989         * testsuite/libgomp.c/target-2.c: New test.
16990         * testsuite/libgomp.c/target-3.c: New test.
16991         * testsuite/libgomp.c/target-4.c: New test.
16992         * testsuite/libgomp.c/target-5.c: New test.
16993         * testsuite/libgomp.c/target-6.c: New test.
16994         * testsuite/libgomp.c/target-7.c: New test.
16995         * testsuite/libgomp.c/taskgroup-1.c: New test.
16996         * testsuite/libgomp.c/thread-limit-1.c: New test.
16997         * testsuite/libgomp.c/thread-limit-2.c: New test.
16998         * testsuite/libgomp.c/thread-limit-3.c: New test.
16999         * testsuite/libgomp.c/udr-1.c: New test.
17000         * testsuite/libgomp.c/udr-2.c: New test.
17001         * testsuite/libgomp.c/udr-3.c: New test.
17002         * testsuite/libgomp.c++/affinity-1.C: New test.
17003         * testsuite/libgomp.c++/atomic-10.C: New test.
17004         * testsuite/libgomp.c++/atomic-11.C: New test.
17005         * testsuite/libgomp.c++/atomic-12.C: New test.
17006         * testsuite/libgomp.c++/atomic-13.C: New test.
17007         * testsuite/libgomp.c++/atomic-14.C: New test.
17008         * testsuite/libgomp.c++/atomic-15.C: New test.
17009         * testsuite/libgomp.c++/cancel-for-1.C: New test.
17010         * testsuite/libgomp.c++/cancel-for-2.C: New test.
17011         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17012         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17013         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17014         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17015         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17016         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17017         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17018         * testsuite/libgomp.c++/cancel-test.h: New file.
17019         * testsuite/libgomp.c++/for-9.C: New test.
17020         * testsuite/libgomp.c++/for-10.C: New test.
17021         * testsuite/libgomp.c++/for-11.C: New test.
17022         * testsuite/libgomp.c++/simd-1.C: New test.
17023         * testsuite/libgomp.c++/simd-2.C: New test.
17024         * testsuite/libgomp.c++/simd-3.C: New test.
17025         * testsuite/libgomp.c++/simd-4.C: New test.
17026         * testsuite/libgomp.c++/simd-5.C: New test.
17027         * testsuite/libgomp.c++/simd-6.C: New test.
17028         * testsuite/libgomp.c++/simd-7.C: New test.
17029         * testsuite/libgomp.c++/simd-8.C: New test.
17030         * testsuite/libgomp.c++/target-1.C: New test.
17031         * testsuite/libgomp.c++/target-2.C: New test.
17032         * testsuite/libgomp.c++/target-2-aux.cc: New file.
17033         * testsuite/libgomp.c++/target-3.C: New test.
17034         * testsuite/libgomp.c++/taskgroup-1.C: New test.
17035         * testsuite/libgomp.c++/udr-1.C: New test.
17036         * testsuite/libgomp.c++/udr-2.C: New test.
17037         * testsuite/libgomp.c++/udr-3.C: New test.
17038         * testsuite/libgomp.c++/udr-4.C: New test.
17039         * testsuite/libgomp.c++/udr-5.C: New test.
17040         * testsuite/libgomp.c++/udr-6.C: New test.
17041         * testsuite/libgomp.c++/udr-7.C: New test.
17042         * testsuite/libgomp.c++/udr-8.C: New test.
17043         * testsuite/libgomp.c++/udr-9.C: New test.
17045 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
17047         PR testsuite/57605
17048         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17049         ALWAYS_CFLAGS.
17051 2013-09-20  Alan Modra  <amodra@gmail.com>
17053         * configure: Regenerate.
17055 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17057         * testsuite/libgomp.c/sections-2.c: New test.
17059 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17061         * testsuite/libgomp.fortran/strassen.f90:
17062         Add dg-skip-if aarch64_tiny.
17064 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
17065             Cesar Philippidis  <cesar@codesourcery.com>
17067         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17068         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17069         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17070         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17071         * testsuite/libgomp.graphite/graphite.exp: Likewise.
17072         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17073         Use dg-runtest rather than gfortran-dg-runtest.
17075 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17077         * testsuite/libgomp.c/icv-2.c: Extend current handling of
17078         Linux-based x86 systems to cover all GNU systems.
17079         * testsuite/libgomp.c/lock-3.c: Likewise.
17080         * testsuite/libgomp.c/pr48591.c: Likewise.
17082 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
17084         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17085         GNU/Hurd, as done for Linux-based systems.
17087         * config/posix/ptrlock.h: Fix comment.
17089 2013-05-27  Tobias Burnus  <burnus@net-b.de>
17091         PR fortran/57423
17092         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17093         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17094         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17095         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17096         omp_destroy_nest_lock): Correct arguments to match the one in
17097         the OpenMP spec.
17098         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17099         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17100         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17101         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17103 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
17105         * testsuite/libgomp.c/loop-13.c: New test.
17106         * testsuite/libgomp.c/loop-14.c: New test.
17107         * testsuite/libgomp.c/loop-15.c: New test.
17108         * testsuite/libgomp.c++/loop-13.C: New test.
17109         * testsuite/libgomp.c++/loop-14.C: New test.
17110         * testsuite/libgomp.c++/loop-15.C: New test.
17112 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
17114         PR middle-end/56217
17115         * testsuite/libgomp.c++/pr56217.C: New test.
17117 2013-02-01  Alan Modra  <amodra@gmail.com>
17119         * task.c (GOMP_task, GOMP_taskwait): Comment.
17121 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
17122             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
17124         PR libgomp/55561
17125         * config/linux/wait.h (do_spin): Use atomic load for addr.
17126         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17127         for intptr and ptrlock.
17128         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17129         for ptrlock.
17131 2013-01-22  Alan Modra  <amodra@gmail.com>
17133         PR libgomp/51376
17134         PR libgomp/56073
17135         * task.c (GOMP_task): Revert 2011-12-09 change.
17136         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
17137         barrier to read task->children..
17138         (gomp_barrier_handle_tasks): ..and matching atomic store with
17139         release barrier here when setting parent->children to NULL.
17141 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
17142             Tobias Burnus  <burnus@net-b.de>
17144         PR driver/55884
17145         * testsuite/libgomp.fortran/fortran.exp: Use
17146         -fintrinsic-modules-path= instead of
17147         -fintrinsic-modules-path.
17149 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
17151         Update copyright years.
17153 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17155         * testsuite/libgomp.fortran/fortran.exp: Set
17156         -fintrinsic-modules-path.
17158 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17160         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17161         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17163 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
17165         PR libgomp/55411
17166         * team.c (gomp_free_thread): Decrease gomp_managed_threads
17167         if pool had any threads_used.
17169 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
17171         * testsuite/libgomp.c++/pr24455.C: Use
17172         -Wl,-undefined,dynamic_lookup on darwin.
17174 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
17176         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17178 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
17180         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17182 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
17183             Jim MacArthur  <jim.macarthur@arm.com>
17184             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17185             Nigel Stephens  <nigel.stephens@arm.com>
17186             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17187             Richard Earnshaw  <rearnsha@arm.com>
17188             Sofiane Naci  <sofiane.naci@arm.com>
17189             Stephen Thomas  <stephen.thomas@arm.com>
17190             Tejas Belagod  <tejas.belagod@arm.com>
17191             Yufeng Zhang  <yufeng.zhang@arm.com>
17193         * configure.tgt: Add AArch64.
17195 2012-10-04  Jason Merrill  <jason@redhat.com>
17197         * testsuite/libgomp.c++/tls-init1.C: New.
17199 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17201         * configure: Regenerated.
17203 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17205         * config/linux/mips/futex.h (sys_futex0): Change to static
17206         function with noinline, nomips16 attributes under MIPS16. Adjust
17207         asm statement to place 'li v0,SYS_futex' immediately before
17208         syscall insn.
17210 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17212         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17213         conflict with index.html on case-insensitive file systems.
17215 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17217         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17218         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17220 2012-07-02  Richard Guenther  <rguenther@suse.de>
17221             Michael Matz  <matz@suse.de>
17222             Tobias Grosser <tobias@grosser.es>
17223             Sebastian Pop <sebpop@gmail.com>
17225         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17226         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17227         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17228         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17230 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17232         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17234 2012-06-22  Richard Guenther  <rguenther@suse.de>
17236         Merge from graphite branch
17237         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17239         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17240         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17242 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17244         PR middle-end/53580
17245         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17246         use GOMP_barrier () call instead.
17247         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17248         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17249         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17250         call GOMP_barrier instead.
17251         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17253 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17255         PR libgomp/52993
17256         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17257         argument to memset call.
17259 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17261         * configure: Regenerated.
17263 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17265         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17267 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17269         PR bootstrap/52812
17270         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17272 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17274         PR middle-end/52547
17275         * testsuite/libgomp.c/pr52547.c: New test.
17277 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17279         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17281 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17283         * configure.tgt (mips-sgi-irix6*): Remove.
17285 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17287         * configure.tgt (alpha*-dec-osf*): Remove.
17289         * config/osf/sem.h: Remove.
17290         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17292 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17294         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17296 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17298         PR libstdc++/52188
17299         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17300         Remove ENABLE_SYMVERS_SOL2.
17301         * configure: Regenerate.
17302         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17303         (PREPROCESS): New variable.
17304         (libgomp.ver): New target.
17305         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17306         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17307         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17308         Use libgomp.ver.
17309         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17310         * Makefile.in: Regenerate.
17312 2012-02-14  Walter Lee  <walt@tilera.com>
17314         * configure.tgt: Handle tilegx and tilepro.
17315         * config/linux/tile/futex.h: New file.
17317 2012-02-08  Richard Guenther  <rguenther@suse.de>
17319         PR tree-optimization/46886
17320         * testsuite/libgomp.c/pr46886.c: New testcase.
17322 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17324         * config/linux/arm: Remove empty directory.
17325         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17327 2011-12-09  Alan Modra  <amodra@gmail.com>
17329         PR libgomp/51376
17330         * task.c (GOMP_taskwait): Don't access task->children outside of
17331         task_lock mutex region.
17332         (GOMP_task): Likewise.
17334 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17336         PR libgomp/51132
17337         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17338         to file scope.
17339         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17340         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17341         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17342         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17343         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17345 2011-12-02  Alan Modra  <amodra@gmail.com>
17347         * config/linux/affinity.c: Use atomic rather than sync builtin.
17348         * config/linux/lock.c: Likewise.
17349         * config/linux/ptrlock.h: Likewise.
17350         * config/linux/ptrlock.c: Likewise.
17351         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17352         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17353         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17354         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17355         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17356         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17357         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17358         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17359         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17360         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17362 2011-11-30  Alan Modra  <amodra@gmail.com>
17364         PR libgomp/51298
17365         * config/linux/bar.h: Use atomic rather than sync builtins.
17366         * config/linux/bar.c: Likewise.  Add missing acquire
17367         synchronisation on generation field.
17368         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17369         double unlock.
17371 2011-11-30  Alan Modra  <amodra@gmail.com>
17373         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17374         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17375         * config/linux/mutex.h: Use atomic rather than sync builtins.
17376         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17377         * config/linux/omp-lock.h: Comment fix.
17378         * config/linux/arm/mutex.h: Delete.
17379         * config/linux/powerpc/mutex.h: Delete.
17380         * config/linux/ia64/mutex.h: Delete.
17381         * config/linux/mips/mutex.h: Delete.
17383 2011-11-30  Alan Modra  <amodra@gmail.com>
17385         PR libgomp/51249
17386         * config/linux/sem.h: Rewrite.
17387         * config/linux/sem.c: Rewrite.
17389 2011-11-28  Richard Henderson  <rth@redhat.com>
17391         * libgomp.h (enum memmodel): New.
17393 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17395         * configure: Regenerate.
17397 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17399         * config/posix95: Remove empty directory.
17401 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17403         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17405 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17407         PR fortran/49792
17408         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17409         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17411 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17413         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17415 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17417         PR libgomp/49965
17418         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17420 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17422         * config/linux/proc.h: New.
17423         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17424         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17425         (gomp_init_num_threads): Update call to cpuset_popcount.
17426         (get_num_procs): Ditto.
17427         * config/linux/affinity.c (gomp_init_affinity): Call
17428         gomp_cpuset_popcount.
17430 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17432         PR fortran/42041
17433         PR fortran/46752
17434         * omp.h.in (omp_in_final): New prototype.
17435         * omp_lib.f90.in (omp_in_final): New interface.
17436         (omp_integer_kind, omp_logical_kind): Remove
17437         and replace all its uses in the module with 4.
17438         (openmp_version): Change to 201107.
17439         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17440         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17441         kind for the parameters.
17442         (omp_in_final): New external.
17443         (openmp_version): Change to 201107.
17444         * task.c (omp_in_final): New function.
17445         (gomp_init_task): Initialize final_task.
17446         (GOMP_task): Remove unused attribute from flags.  Handle final
17447         tasks.
17448         (GOMP_taskyield): New function.
17449         (omp_in_final): Return true if if (false) or final (true) task
17450         or descendant of final (true).
17451         * fortran.c (omp_in_final_): New function.
17452         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17453         (GOMP_3.0): Export GOMP_taskyield.
17454         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17455         variables.
17456         (parse_unsigned_long_list): New function.
17457         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17458         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17459         even if parse_affinity returned false.
17460         * config/linux/affinity.c (gomp_init_affinity): Handle
17461         gomp_cpu_affinity_len == 0.
17462         * libgomp_g.h (GOMP_taskyield): New prototype.
17463         * libgomp.h (struct gomp_task): Add final_task field.
17464         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17465         * team.c (gomp_team_start): Override new task's nthreads_var icv
17466         if list form OMP_NUM_THREADS has been used and it has value for
17467         the new nesting level.
17469         * testsuite/libgomp.c/atomic-11.c: New test.
17470         * testsuite/libgomp.c/atomic-12.c: New test.
17471         * testsuite/libgomp.c/atomic-13.c: New test.
17472         * testsuite/libgomp.c/atomic-14.c: New test.
17473         * testsuite/libgomp.c/reduction-6.c: New test.
17474         * testsuite/libgomp.c/task-5.c: New test.
17475         * testsuite/libgomp.c++/atomic-2.C: New test.
17476         * testsuite/libgomp.c++/atomic-3.C: New test.
17477         * testsuite/libgomp.c++/atomic-4.C: New test.
17478         * testsuite/libgomp.c++/atomic-5.C: New test.
17479         * testsuite/libgomp.c++/atomic-6.C: New test.
17480         * testsuite/libgomp.c++/atomic-7.C: New test.
17481         * testsuite/libgomp.c++/atomic-8.C: New test.
17482         * testsuite/libgomp.c++/atomic-9.C: New test.
17483         * testsuite/libgomp.c++/task-8.C: New test.
17484         * testsuite/libgomp.c++/reduction-4.C: New test.
17485         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17486         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17487         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17488         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17489         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17490         * testsuite/libgomp.fortran/pointer1.f90: New test.
17491         * testsuite/libgomp.fortran/pointer2.f90: New test.
17492         * testsuite/libgomp.fortran/task4.f90: New test.
17494 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17496         * libgomp.texi: Update OpenMP spec references to 3.1.
17497         (omp_in_final,OMP_PROC_BIND): New sections.
17498         (OMP_NUM_THREADS): Document that the value can be now a list.
17499         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17501 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17503         * config/linux/x86/futex.h: Check __x86_64__ instead of
17504         __LP64__.
17506 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17508         PR middle-end/49897
17509         PR middle-end/49898
17510         * testsuite/libgomp.c/pr49897-1.c: New test.
17511         * testsuite/libgomp.c/pr49897-2.c: New test.
17512         * testsuite/libgomp.c/pr49898-1.c: New test.
17513         * testsuite/libgomp.c/pr49898-2.c: New test.
17515 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17517         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17518         for ia32 instead of ilp32.
17520         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17521         * testsuite/libgomp.c/atomic-6.c: Likewise.
17523 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17525         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17526         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17528 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17530         PR libgomp/45351
17531         * config/osf/sem.h: New file.
17532         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17534 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17536         PR target/49541
17537         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17538         ldflags.
17540 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17542         * config/linux/wait.h (do_spin): New inline, largely copied
17543         from do_wait, just don't do futex_wait here, instead return true if
17544         it should be done.
17545         (do_wait): Implement using do_spin.
17546         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17547         to prototype.
17548         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17549         __sync_bool_compare_and_swap, pass the oldval to
17550         gomp_mutex_lock_slow.
17551         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17552         If all mutex contenders are just spinning and not sleeping, don't
17553         change state to 2 unnecessarily.  Optimize the loop when state has
17554         already become 2 to use just one atomic operation per loop instead
17555         of two.
17556         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17557         to prototype.
17558         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17559         __sync_bool_compare_and_swap, pass the oldval to
17560         gomp_mutex_lock_slow.
17562 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17564         PR libgomp/49490
17565         * iter.c (gomp_iter_static_next): For chunk size 0
17566         only use n ceil/ nthreads size for the first
17567         n % nthreads threads in the team instead of
17568         all threads except for the last few ones which
17569         get less work or none at all.
17570         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17571         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17572         chunk argument, set run_sched_modifier to 0 for static
17573         resp. 1 for other kinds.  If chunk argument is 0
17574         and not static, set value to 1.
17576 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17578         PR c++/49043
17579         * testsuite/libgomp.c++/pr49043.C: New test.
17581         PR c++/48869
17582         * testsuite/libgomp.c++/pr48869.C: New test.
17584 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17586         PR fortran/48894
17587         * fortran.c: Include limits.h.
17588         (TO_INT): Define.
17589         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17590         *set.
17591         (omp_set_num_threads_8_, omp_set_schedule_8_,
17592         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17593         omp_get_team_size_8_): Use TO_INT macro.
17594         * testsuite/libgomp.fortran/pr48894.f90: New test.
17596 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17598         PR middle-end/48591
17599         * testsuite/libgomp.c/pr48591.c: New test.
17601 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17603         PR bootstrap/48135
17604         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17605         * configure: Regenerate.
17607 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
17609         PR fortran/47886
17610         * testsuite/libgomp.fortran/task3.f90: New test.
17612 2011-02-24  Tobias Burnus  <burnus@net-b.de>
17614         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17616 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
17618         PR libgomp/47854
17619         * libgomp.texi (omp_get_wtime): Don't say time in the past
17620         must be Unix Epoch.
17622 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17624         PR libgomp/47804
17625         * testsuite/libgomp.fortran/fortran.exp: Check for both
17626         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
17627         but $blddir != "", still append ${blddir}/${lang_library_path}
17628         to ld_library_path.
17630 2011-02-16  Tobias Burnus  <burnus@net-b.de>
17632         PR libgomp/47758
17633         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17634         of libquadmath.a before adding its libpath to ldflags.
17636 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17638         PR libgomp/47731
17639         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17640         to FUTEX_WAIT futex syscall.
17641         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17643 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17645         * configure: Regenerate.
17647 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
17649         PR libstdc++/36104
17650         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17652 2011-01-16  Gerald Pfeifer
17654         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17656 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
17658         PR fortran/46874
17659         * libgomp.fortran/allocatable6.f90: New test.
17661 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17663         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17664         * configure: Regenerate.
17666 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17668         PR target/40125
17669         PR lto/46695
17670         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17671         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17672         * aclocal.m4: Regenerate.
17673         * configure: Regenerate.
17674         * Makefile.in: Regenerate.
17675         * testsuite/Makefile.in: Regenerate.
17677 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
17679         PR fortran/46753
17680         * libgomp.fortran/pr46753.f90: New test.
17682         PR libgomp/43706
17683         * env.c (initialize_env): Default to spin count 300000
17684         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17685         is specified.
17687         PR libgomp/45240
17688         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17689         at the end if sync builtins aren't supported.
17691 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17693         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17695 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17697         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17699 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
17701         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17703 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17704             Tobias Burnus  <burnus@net-b.de>
17706         PR fortran/32049
17707         * configure.ac:
17708         * configure: Regenerate.
17710 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17712         * config/linux/futex.h: New.
17713         * config/linux/arm/mutex.h: New.
17714         * configure.tgt (arm*-*-linux*): Add config path.
17716 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
17718         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17720 2010-09-23  Tobias Burnus  <burnus@net-b.de>
17722         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17723         Change Fortran datatype to LOGICAL.
17724         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17725         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17727 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17729         * configure: Regenerate.
17731 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
17733         * libgomp.texi: Add function keyword to a couple of Fortran
17734         interfaces, use integer instead of int for Fortran.
17736 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
17738         * libgomp.texi: Fix spelling and pasto problems throughout.
17739         Adjust prototypes to match code.
17741 2010-07-24  Tobias Burnus  <burnus@net-b.de>
17743         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17744         silence -fwhole-file warning.
17746 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17748         * configure.tgt (*-*-solaris2.[56]*): Removed.
17750 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17752         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17753         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17754         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17755         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17756         targetting solaris2*.
17757         * configure: Regenerate.
17758         * config.h.in: Regenerate.
17760         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17761         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17762         Add libgomp_version_dep.
17763         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17764         versioning.
17765         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17766         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17767         * Makefile.in: Regenerate.
17769         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17770         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17771         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17772         to common block, protected by
17773         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17775 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17777         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
17779 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
17781         PR bootstrap/43170
17782         * configure: Regenerate.
17784 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17786         PR other/43620
17787         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17788         * configure: Regenerate.
17789         * Makefile.in: Regenerate.
17790         * testsuite/Makefile.in: Regenerate.
17792 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17794         PR c/43893
17795         * testsuite/libgomp.c/pr43893.c: New test.
17796         * testsuite/libgomp.c++/pr43893.C: New test.
17798 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17800         PR middle-end/43570
17801         * testsuite/libgomp.fortran/vla8.f90: New test.
17803 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17805         PR libgomp/43706
17806         * config/linux/affinity.c (gomp_init_affinity): Decrease
17807         gomp_available_cpus if affinity mask confines the process to fewer
17808         CPUs.
17809         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17810         non-NULL, just return gomp_available_cpus.
17812         PR libgomp/43569
17813         * sections.c (gomp_sections_init): Initialize ws->mode.
17815 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17817         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17818         not unused bar variable.
17819         * configure: Regenerate.
17821 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17823         * Makefile.in: Regenerate.
17824         * aclocal.m4: Regenerate.
17825         * testsuite/Makefile.in: Regenerate.
17827 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17829         PR libgomp/42942
17830         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17831         (initialize_env): Adjust callers.
17832         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17833         when the argument is 0.
17835         * testsuite/libgomp.c/pr42942.c: New test.
17837 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17839         PR middle-end/42644
17840         PR middle-end/42130
17841         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17842         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17844 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17846         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17847         * testsuite/libgomp.c++/task-6.C: Likewise.
17849 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
17851         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17853 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
17855         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17856         * configure: Regenerate.
17858 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17860         PR fortran/42866
17861         * testsuite/libgomp.fortran/allocatable5.f90: New test.
17863 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
17865         * configure.ac: Test for executability of GFORTRAN.
17866         * configure: Regenerate.
17868 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17870         * configure: Regenerate.
17872 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17874         PR libgomp/42602
17875         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17877 2010-01-03  Richard Guenther  <rguenther@suse.de>
17879         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17881 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
17883         * testsuite/libgomp.graphite/pr4118.c: New.
17885 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17887         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17888         for darwin, protect the test with require-effective-target tls_runtime.
17889         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17891 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17893         PR target/41605
17894         * testsuite/lib/libgomp.exp: Provide -B options to allow for
17895         link spec %s substitutions for static libraries.
17897 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
17899         PR testsuite/42135
17900         * libgomp.graphite/force-parallel-2.c: Reduce array size.
17902 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17904         * Makefile.in: Regenerate.
17905         * configure: Regenerate.
17906         * testsuite/Makefile.in: Regenerate.
17908 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17910         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17911         settings for LC_ALL and LANG.
17913 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
17915         PR fortran/42162
17916         * testsuite/libgomp.fortran/pr42162.f90: New test.
17918 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
17920         PR middle-end/42029
17921         * testsuite/libgomp.c/pr42029.c: New test.
17923 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
17925         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17926         *s.  Accept ld version without text in ()s.
17927         * configure: Regenerated.
17929 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
17931         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17933 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17935         PR libgomp/41418
17936         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17937         or a hyphen (happens with fortran language disabled).
17938         * configure: Regenerate.
17940 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17942         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17943         use sed script portable to Solaris /bin/sed for extracting ld
17944         version.
17945         * configure: Regenerate.
17947 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
17949         * testsuite/libgomp.graphite/bounds.c: New test.
17951 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17953         * Makefile.am (libgomp_la_LINK): New.
17954         * Makefile.in: Regenerate.
17956 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17958         * configure.ac (AC_PREREQ): Bump to 2.64.
17960 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17962         * Makefile.am (install-html, install-pdf): Remove.
17963         * Makefile.in: Regenerate.
17965         * Makefile.in: Regenerate.
17966         * aclocal.m4: Regenerate.
17967         * config.h.in: Regenerate.
17968         * configure: Regenerate.
17969         * testsuite/Makefile.in: Regenerate.
17971 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17973         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17974         * Makefile.in: Regenerate.
17976 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
17978         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17979         * Makefile.in: Regenerate.
17981 2009-08-19  Tobias Burnus  <burnus@net-b.de>
17983         PR fortran/41102
17984         omp_lib.h.in: Fix -std=f95 errors.
17986 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
17988         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17989         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17990         * testsuite/libgomp.graphite/graphite.exp: New.
17992 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
17994         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17995         only build.
17997 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
17999         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18000         needed memory barrier semantics.
18001         * config/linux/mips/mutex.h: New file.
18003 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18005         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18007 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
18009         * configure: Regenerate.
18011 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
18013         PR testsuite/40699
18014         PR testsuite/40707
18015         PR testsuite/40709
18016         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18017         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18018         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18020 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
18022         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18023         options when choosing a multilib.
18025 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
18027         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18028         ld_library_path.  Use add_path.  Add just find_libgcc_s to
18029         ld_library_path, not every libgcc multilib directory.
18030         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18031         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18032         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18033         Use add_path.
18034         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18036 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
18038         * Makefile.am (LTLDFLAGS): Define.
18039         (LINK): Define.
18040         * Makefile.in: Regenerate.
18042 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
18044         PR fortran/39718
18045         * testsuite/libgomp.fortran/fortran.exp: Don't link with
18046         libgfortranbegin, check existence of libgfortran.a instead of
18047         libgfortranbegin.a.
18049 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18051         PR libgomp/40174
18052         * team.c (gomp_thread_start): Destroy thr->release semaphore.
18053         (gomp_free_pool_helper): Likewise.
18055 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
18056             Jakub Jelinek  <jakub@redhat.com>
18058         PR fortran/35423
18059         * testsuite/libgomp.fortran/workshare2.f90: New test.
18061 2009-04-09  Nick Clifton  <nickc@redhat.com>
18063         * iter.c: Change copyright header to refer to version 3 of the
18064         GNU General Public License with version 3.1 of the GCC Runtime
18065         Library Exception and to point readers at the COPYING3 and
18066         COPYING3.RUNTIME files and the FSF's license web page.
18067         * alloc.c: Likewise.
18068         * barrier.c: Likewise.
18069         * config/bsd/proc.c: Likewise.
18070         * config/linux/affinity.c: Likewise.
18071         * config/linux/alpha/futex.h: Likewise.
18072         * config/linux/bar.c: Likewise.
18073         * config/linux/bar.h: Likewise.
18074         * config/linux/ia64/futex.h: Likewise.
18075         * config/linux/ia64/mutex.h: Likewise.
18076         * config/linux/lock.c: Likewise.
18077         * config/linux/mips/futex.h: Likewise.
18078         * config/linux/mutex.c: Likewise.
18079         * config/linux/mutex.h: Likewise.
18080         * config/linux/powerpc/futex.h: Likewise.
18081         * config/linux/proc.c: Likewise.
18082         * config/linux/ptrlock.c: Likewise.
18083         * config/linux/ptrlock.h: Likewise.
18084         * config/linux/s390/futex.h: Likewise.
18085         * config/linux/sem.c: Likewise.
18086         * config/linux/sem.h: Likewise.
18087         * config/linux/sparc/futex.h: Likewise.
18088         * config/linux/wait.h: Likewise.
18089         * config/linux/x86/futex.h: Likewise.
18090         * config/mingw32/proc.c: Likewise.
18091         * config/mingw32/time.c: Likewise.
18092         * config/posix/affinity.c: Likewise.
18093         * config/posix/bar.c: Likewise.
18094         * config/posix/bar.h: Likewise.
18095         * config/posix/lock.c: Likewise.
18096         * config/posix/mutex.h: Likewise.
18097         * config/posix/proc.c: Likewise.
18098         * config/posix/ptrlock.h: Likewise.
18099         * config/posix/sem.c: Likewise.
18100         * config/posix/sem.h: Likewise.
18101         * config/posix/time.c: Likewise.
18102         * config/posix95/lock.c: Likewise.
18103         * critical.c: Likewise.
18104         * env.c: Likewise.
18105         * error.c: Likewise.
18106         * fortran.c: Likewise.
18107         * iter_ull.c: Likewise.
18108         * libgomp.h: Likewise.
18109         * libgomp_f.h.in: Likewise.
18110         * libgomp_g.h: Likewise.
18111         * loop.c: Likewise.
18112         * loop_ull.c: Likewise.
18113         * omp.h.in: Likewise.
18114         * omp_lib.f90.in: Likewise.
18115         * omp_lib.h.in: Likewise.
18116         * ordered.c: Likewise.
18117         * parallel.c: Likewise.
18118         * sections.c: Likewise.
18119         * single.c: Likewise.
18120         * task.c: Likewise.
18121         * team.c: Likewise.
18122         * work.c: Likewise.
18124 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18126         * testsuite/config/default.exp: Change copyright header to refer to
18127         version 3 of the GNU General Public License and to point readers
18128         at the COPYING3 file and the FSF's license web page.
18130 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18132         PR middle-end/39573
18133         * libgomp.c++/pr39573.C: New test.
18135 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
18137         PR other/39591
18138         * testsuite/libgomp.c/pr39591-1.c: New test.
18139         * testsuite/libgomp.c/pr39591-2.c: New test.
18140         * testsuite/libgomp.c/pr39591-3.c: New test.
18142 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
18144         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18145         * testsuite/libgomp.c/atomic-6.c: Ditto.
18147 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18149         PR c/39495
18150         * testsuite/libgomp.c/loop-12.c: New test.
18151         * testsuite/libgomp.c/loop-11.c: New test.
18152         * testsuite/libgomp.c++/loop-11.C: New test.
18153         * testsuite/libgomp.c++/loop-12.C: New test.
18154         * testsuite/libgomp.c++/for-8.C: New test.
18156 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18158         * configure: Regenerate.
18160 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18162         PR middle-end/39154
18163         * testsuite/libgomp.c/pr39154.c: New test.
18165 2009-01-30  Ian Lance Taylor  <iant@google.com>
18167         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18168         libgomp_ld_is_gold.  Get gold version number.
18169         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18170         * configure: Rebuild.
18172 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18174         * testsuite/lib/libgomp.exp: Add -B option for targets that
18175         use libgfortran.a%s in their specs.
18177 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
18179         PR libgomp/38086
18180         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18181         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18182         HAVE_AS_SYMVER_DIRECTIVE is not defined.
18183         * configure: Regenerated.
18184         * config.h.in: Likewise.
18186 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18188         PR c++/38650
18189         * testsuite/libgomp.c/pr38650.c: New test.
18190         * testsuite/libgomp.c++/pr38650.C: New test.
18192 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18194         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18196 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18198         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18200 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18202         * configure: Regenerate.
18204 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18206         PR middle-end/36802
18207         * testsuite/libgomp.c/pr36802-1.c: New test.
18208         * testsuite/libgomp.c/pr36802-2.c: New test.
18209         * testsuite/libgomp.c/pr36802-3.c: New test.
18211 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18213         PR libgomp/38270
18214         * config/linux/powerpc/mutex.h: New.
18216 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18218         PR c++/38257
18219         * testsuite/libgomp.c++/for-7.C: New test.
18221         PR c++/38348
18222         * testsuite/libgomp.c++/for-6.C: New test.
18224 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18226         PR testsuite/28870
18227         * testsuite/lib/libgomp.exp: Include new timeout library files.
18228         (libgomp_target_compile): Set timeout value from new proc.
18230 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18232         PR libgomp/37938
18233         * config/linux/ia64/mutex.h: New.
18235 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18237         PR libgomp/37935
18238         * libgomp.texi (Runtime library routines, environment variables):
18239         Update for OpenMP version 3.0.
18241 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18242             Steve Ellcey  <sje@cup.hp.com>
18244         * configure: Regenerate for new libtool.
18245         * Makefile.in: Ditto.
18246         * testsuite/Makefile.in: Ditto.
18248 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18249             Andreas Tobler  <a.tobler@schweiz.org>
18251         * config/bsd/proc.c: New file.
18252         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18253         * configure.ac: Check for header <sys/sysctl.h>
18254         * configure: Regenerate.
18255         * config.h.in: Likewise.
18257 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18259         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18261 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18263         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18264         * Makefile.in: Regenerated.
18265         * testsuite/Makefile.in: Regenerated.
18267 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18269         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18270         depend on blddir if blddir exists.
18271         (libgomp_target_compile): Likewise.
18272         * testsuite/libgomp.c++/c++.exp: Likewise.
18273         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18275 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18277         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18278         Do not list GPL as Invariant Section.
18280 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18281             Chao-ying Fu  <fu@mips.com>
18283         * configure.tgt: Enable futex for MIPS.
18284         * config/linux/mips/futex.h: New file.
18286 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18288         * team.c (gomp_team_end): Free team immediately if it has
18289         just one thread.
18291 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18293         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18294         * testsuite/libgomp.fortran/fortran.exp: Same.
18295         * testsuite/libgomp.c/c.exp: Same.
18296         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18297         directory to library path first.
18299 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18301         * env.c (parse_stacksize): Add cast to avoid warning.
18302         (parse_spincount): Likewise.
18304 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18306         * testsuite/libgomp.c/loop-10.c: New test.
18307         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18308         * libgomp.c++/loop-6.C (main): Likewise.
18310         PR debug/36617
18311         * testsuite/libgomp.c/debug-1.c: New test.
18313 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18315         * testsuite/libgomp.c/nqueens-1.c: New test.
18317         PR c++/36523
18318         * testsuite/libgomp.c++/task-7.C: New function.
18320 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18322         * configure: Regenerate.
18324 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18326         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18327         mutex when HAVE_SYNC_BUILTINS isn't defined.
18329 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18331         * libgomp.texi (omp_test_lock): Fix typo.
18333 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18335         * omp_lib.f90.in: Add "implicit none".
18337 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18339         PR middle-end/36506
18340         * testsuite/libgomp.c/reduction-5.c: New test.
18342 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18344         * libgomp.h (struct gomp_task): Add in_tied_task field.
18345         * task.c (gomp_init_task): Initialize it.
18346         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18347         unconditionally.  Don't call gomp_team_barrier_wake if
18348         current task is implicit or if(0) from implicit and number of
18349         running tasks is equal to nthreads - 1.
18351         PR libgomp/36471
18352         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18353         omp_get_team_size_8): Fix pastos.
18355         PR libgomp/36469
18356         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18357         * configure: Regenerated.
18358         * config.h.in: Regenerated.
18359         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18360         defined.
18362 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
18364         PR bootstrap/36452
18365         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18366         (GOMP_loop_ull_dynamic_start): Likewise.
18367         (GOMP_loop_ull_guided_start): Likewise.
18368         (GOMP_loop_ull_ordered_static_start): Likewise.
18369         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18370         (GOMP_loop_ull_ordered_guided_start): Likewise.
18372 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18373             Richard Henderson  <rth@redhat.com>
18374             Ulrich Drepper  <drepper@redhat.com>
18375             Jakob Blomer  <jakob.blomer@ira.uka.de>
18377         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18378         Substitute also OMP_*LOCK_25*.
18379         * configure: Regenerated.
18380         * config.h.in: Regenerated.
18381         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18382         ptrlock.c and task.c.
18383         * Makefile.in: Regenerated.
18384         * testsuite/Makefile.in: Regenerated.
18385         * task.c: New file.
18386         * loop_ull.c: New file.
18387         * iter_ull.c: New file.
18388         * libgomp.h: Include ptrlock.h.
18389         (enum gomp_task_kind): New type.
18390         (struct gomp_team): Add task_lock, task_queue, task_count,
18391         task_running_count, single_count fields.  Add
18392         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18393         Remove work_share_lock, generation_mask,
18394         oldest_live_gen, num_live_gen and init_work_shares fields, add
18395         work work_share_list_alloc, work_share_list_free and work_share_chunk
18396         fields.  Change work_shares from pointer to pointers into an array.
18397         Change ordered_release field into gomp_sem_t ** from flexible array
18398         member.  Add implicit_task and initial_work_shares fields.
18399         Move close to the end of the struct.
18400         (struct gomp_team_state): Add single_count, last_work_share,
18401         active_level and level fields, remove work_share_generation.
18402         (gomp_barrier_handle_tasks): New prototype.
18403         (gomp_finish_task): New inline function.
18404         (struct gomp_work_share): Move chunk_size, end, incr into
18405         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18406         next_ll fields.  Reshuffle fields.  Add next_alloc,
18407         next_ws, next_free and inline_ordered_team_ids fields, change
18408         ordered_team_ids into pointer from flexible array member.
18409         Add mode field.  Put lock and next into a different cache line
18410         from most of the write-once fields.
18411         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18412         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18413         gomp_iter_ull_guided_next): New prototypes.
18414         (gomp_new_icv): New prototype.
18415         (struct gomp_thread): Add thread_pool and task fields.
18416         (struct gomp_thread_pool): New type.
18417         (gomp_new_team): New prototype.
18418         (gomp_team_start): Change type of last argument.
18419         (gomp_new_work_share): Removed.
18420         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18421         (gomp_work_share_init_done): New static inline.
18422         (gomp_throttled_spin_count_var, gomp_available_cpus,
18423         gomp_managed_threads): New extern decls.
18424         (gomp_init_task): New prototype.
18425         (gomp_spin_count_var): New extern var decl.
18426         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18427         or no alias support, or if not PIC.
18428         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18429         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18430         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18431         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18432         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18433         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18434         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18435         gomp_test_nest_lock_25): New prototypes.
18436         (omp_lock_symver, strong_alias): Define.
18437         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18438         decls.
18439         (gomp_end_task): New.
18440         (struct gomp_task_icv, gomp_global_icv): New.
18441         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18442         (struct gomp_task): New.
18443         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18444         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18445         (gomp_icv): New.
18446         (gomp_schedule_type): Reorder enum to match
18447         omp_sched_t.
18448         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18449         fields.
18450         (gomp_thread_start): Add gomp_team_barrier_wait call.
18451         For non-nested case remove clearing of docked thread thr fields.
18452         Use pool fields instead of global gomp_* variables.  Use
18453         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18454         Create tasks for each member thread.
18455         (free_team): Only destroy team barrier, task_lock here and free it.
18456         (gomp_free_thread): Free last_team if non-NULL.
18457         (gomp_team_end): Call gomp_team_barrier_wait instead of
18458         gomp_barrier_wait.  For nested case call one extra
18459         gomp_barrier_wait.  Move here some destruction from free_team.
18460         Call free_team on pool->last_team if any, rather than freeing
18461         current team.  Destroy work_share_list_free_lock ifndef
18462         HAVE_SYNC_BUILTINS.
18463         (gomp_new_icv): New function.
18464         (gomp_threads, gomp_threads_size, gomp_threads_used,
18465         gomp_threads_dock): Removed.
18466         (gomp_thread_destructor): New variable.
18467         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18468         functions.
18469         (gomp_team_start): Create new pool if current thread doesn't have
18470         one.  Use pool fields instead of global gomp_* variables.
18471         Initialize thread_pool field for new threads.  Clear single_count.
18472         Change last argument from ws to team, don't create
18473         new team, set ts.work_share to &team->work_shares[0] and clear
18474         ts.last_work_share.  Don't clear ts.work_share_generation.
18475         If number of threads changed, adjust atomically gomp_managed_threads.
18476         Use gomp_init_task instead of gomp_new_task,
18477         set thr->task to the corresponding implicit_task array entry.
18478         Create tasks for each member thread.  Initialize ts.level.
18479         (initialize_team): Call pthread_key_create on
18480         gomp_thread_destructor.
18481         (team_destructor): New function.
18482         (new_team): Removed.
18483         (gomp_new_team): New function.
18484         (free_team): Free gomp_work_share blocks chained through next_alloc,
18485         instead of freeing work_shares and destroying work_share_lock.
18486         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18487         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18488         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18489         of gomp_barrier_wait.
18490         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18491         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18492         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18493         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18494         of gomp_barrier_wait.
18495         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18496         gomp_work_share_init_done if gomp_work_share_start returned true.
18497         Don't unlock ws->lock.
18498         * work.c: Include stddef.h.
18499         (free_work_share): Use work_share_list_free_lock instead
18500         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18501         Call gomp_fini_work_share and then either free ws if orphaned, or
18502         put it into work_share_list_free list of the current team.
18503         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18504         functions.
18505         (gomp_work_share_start, gomp_work_share_end,
18506         gomp_work_share_end_nowait): Rewritten.
18507         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18508         (openmp_version): Set to 200805.
18509         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18510         omp_sched_guided, omp_sched_auto): New parameters.
18511         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18512         omp_set_max_active_levels, omp_get_max_active_levels,
18513         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18514         omp_get_active_level): New interfaces.
18515         * omp_lib.h.in (openmp_version): Set to 200805.
18516         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18517         omp_sched_guided, omp_sched_auto): New parameters.
18518         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18519         omp_set_max_active_levels, omp_get_max_active_levels,
18520         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18521         omp_get_active_level): New externals.
18522         * loop.c: Include limits.h.
18523         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18524         GFS_AUTO.
18525         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18526         Likewise.  Use gomp_icv.
18527         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18528         ts.static_trip here.
18529         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18530         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18531         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18532         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18533         don't unlock ws->lock, otherwise lock it.
18534         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18535         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18536         (gomp_parallel_loop_start): Call gomp_new_team instead of
18537         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18538         Adjust gomp_team_start caller.  Pass 0 as second argument to
18539         gomp_resolve_num_threads.
18540         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18541         If adding ws->chunk_size nthreads + 1 times after end won't
18542         overflow, set ws->mode to 1.
18543         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18544         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18545         GOMP_loop_ull_ordered_static_start,
18546         GOMP_loop_ull_ordered_dynamic_start,
18547         GOMP_loop_ull_ordered_guided_start,
18548         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18549         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18550         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18551         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18552         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18553         prototypes.
18554         * libgomp.map: Export lock routines also @@OMP_2.0.
18555         (GOMP_loop_ordered_dynamic_first,
18556         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18557         GOMP_loop_ordered_static_first): Remove.
18558         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18559         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18560         GOMP_loop_ull_ordered_dynamic_next,
18561         GOMP_loop_ull_ordered_dynamic_start,
18562         GOMP_loop_ull_ordered_guided_next,
18563         GOMP_loop_ull_ordered_guided_start,
18564         GOMP_loop_ull_ordered_runtime_next,
18565         GOMP_loop_ull_ordered_runtime_start,
18566         GOMP_loop_ull_ordered_static_next,
18567         GOMP_loop_ull_ordered_static_start,
18568         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18569         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18570         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18571         (omp_set_schedule, omp_get_schedule,
18572         omp_get_thread_limit, omp_set_max_active_levels,
18573         omp_get_max_active_levels, omp_get_level,
18574         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18575         omp_set_schedule_, omp_set_schedule_8_,
18576         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18577         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18578         omp_get_max_active_levels_, omp_get_level_,
18579         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18580         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18581         New exports @@OMP_3.0.
18582         * omp.h.in (omp_sched_t): New type.
18583         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18584         omp_set_max_active_levels, omp_get_max_active_levels,
18585         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18586         omp_get_active_level): New prototypes.
18587         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18588         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18589         gomp_thread_limit_var, gomp_remaining_threads_count,
18590         gomp_remaining_threads_lock): New variables.
18591         (parse_spincount): New function.
18592         (initialize_env): Call gomp_init_num_threads unconditionally.
18593         Initialize gomp_available_cpus.  Call parse_spincount,
18594         initialize gomp_{,throttled_}spin_count_var
18595         depending on presence and value of OMP_WAIT_POLICY and
18596         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
18597         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18598         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
18599         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
18600         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
18601         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18602         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18603         (gomp_global_icv): New.
18604         (parse_schedule): Use it.  Parse "auto".
18605         (omp_set_num_threads): Use gomp_icv.
18606         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18607         Likewise.
18608         (omp_get_max_threads): Move from parallel.c.
18609         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18610         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18611         add ialias.
18612         (parse_stacksize, parse_wait_policy): New functions.
18613         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18614         both wrappers for compatibility and new locks.
18615         (omp_set_schedule, omp_get_schedule,
18616         omp_get_thread_limit, omp_set_max_active_levels,
18617         omp_get_max_active_levels, omp_get_level,
18618         omp_get_ancestor_thread_num, omp_get_team_size,
18619         omp_get_active_level): New ialias_redirect.
18620         (omp_set_schedule_, omp_set_schedule_8_,
18621         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18622         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18623         omp_get_max_active_levels_, omp_get_level_,
18624         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18625         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18626         New functions.
18627         * parallel.c: Include limits.h.
18628         (gomp_resolve_num_threads): Add count argument.  Rewritten.
18629         (GOMP_parallel_start): Call gomp_new_team and pass that as last
18630         argument to gomp_team_start.  Pass 0 as second argument to
18631         gomp_resolve_num_threads.
18632         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18633         if gomp_thread_limit_var != ULONG_MAX.
18634         (omp_in_parallel): Implement using ts.active_level.
18635         (omp_get_max_threads): Move to env.c.
18636         (omp_get_level, omp_get_ancestor_thread_num,
18637         omp_get_team_size, omp_get_active_level): New functions,
18638         add ialias.
18639         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18640         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
18641         gomp_iter_dynamic_next instead of the _locked variant and don't take
18642         lock around it, otherwise acquire it before calling
18643         gomp_iter_dynamic_next_locked.
18644         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18645         gomp_iter_dynamic_next instead of the _locked variant and don't take
18646         lock around it.
18647         (GOMP_parallel_sections_start): Call gomp_new_team instead of
18648         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
18649         Adjust gomp_team_start caller.  Pass count as second argument to
18650         gomp_resolve_num_threads, don't adjust num_threads after the call.
18651         Use gomp_icv.
18652         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18653         ws->chunk_size by incr.
18654         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
18655         code.
18656         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18657         types.
18658         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18659         (omp_check_defines): Check even the compat defines.
18660         * config/linux/ptrlock.c: New file.
18661         * config/linux/ptrlock.h: New file.
18662         * config/linux/wait.h: New file.
18663         * config/posix/ptrlock.c: New file.
18664         * config/posix/ptrlock.h: New file.
18665         * config/linux/bar.h (gomp_team_barrier_wait,
18666         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18667         (gomp_team_barrier_set_task_pending,
18668         gomp_team_barrier_clear_task_pending,
18669         gomp_team_barrier_set_waiting_for_tasks,
18670         gomp_team_barrier_waiting_for_tasks,
18671         gomp_team_barrier_done): New inlines.
18672         (gomp_barrier_t): Rewritten.
18673         (gomp_barrier_state_t): New typedef.
18674         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18675         gomp_barrier_wait_start): Rewritten.
18676         (gomp_barrier_wait_end): Change second argument to
18677         gomp_barrier_state_t.
18678         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18679         inlines.
18680         * config/linux/bar.c: Include wait.h instead of libgomp.h and
18681         futex.h.
18682         (gomp_barrier_wait_end): Rewritten.
18683         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18684         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18685         * config/posix/bar.h (gomp_barrier_t): Add generation field.
18686         (gomp_barrier_state_t): New typedef.
18687         (gomp_team_barrier_wait,
18688         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18689         (gomp_barrier_wait_start): Or all but low 2 bits from generation
18690         into the return value.  Return gomp_barrier_state_t.
18691         (gomp_team_barrier_set_task_pending,
18692         gomp_team_barrier_clear_task_pending,
18693         gomp_team_barrier_set_waiting_for_tasks,
18694         gomp_team_barrier_waiting_for_tasks,
18695         gomp_team_barrier_done): New inlines.
18696         (gomp_barrier_wait_end): Change second argument to
18697         gomp_barrier_state_t.
18698         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18699         inlines.
18700         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18701         (gomp_barrier_wait_end): Change second argument to
18702         gomp_barrier_state_t.
18703         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18704         gomp_team_barrier_wake): New functions.
18705         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18706         futex.h.
18707         (gomp_futex_wake, gomp_futex_wait): New variables.
18708         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18709         * config/linux/lock.c: Rewrite to make locks task owned,
18710         for backwards compatibility provide the old entrypoints
18711         if symbol versioning.  Include wait.h instead of libgomp.h and
18712         futex.h.
18713         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18714         * config/posix95/lock.c: Rewrite to make locks task owned,
18715         for backwards compatibility provide the old entrypoints
18716         if symbol versioning.
18717         * config/posix/lock.c: Rewrite to make locks task owned,
18718         for backwards compatibility provide the old entrypoints
18719         if symbol versioning.
18720         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18721         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18722         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18723         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18724         (sys_futex0): Return error code.
18725         (futex_wake, futex_wait): If ENOSYS was returned, clear
18726         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18727         (cpu_relax, atomic_write_barrier): New static inlines.
18728         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18729         (futex_wake, futex_wait): If ENOSYS was returned, clear
18730         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18731         (cpu_relax, atomic_write_barrier): New static inlines.
18732         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18733         (sys_futex0): Return error code.
18734         (futex_wake, futex_wait): If ENOSYS was returned, clear
18735         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18736         (cpu_relax, atomic_write_barrier): New static inlines.
18737         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18738         (sys_futex0): Return error code.
18739         (futex_wake, futex_wait): If ENOSYS was returned, clear
18740         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18741         (cpu_relax, atomic_write_barrier): New static inlines.
18742         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18743         (sys_futex0): Return error code.
18744         (futex_wake, futex_wait): If ENOSYS was returned, clear
18745         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18746         (cpu_relax, atomic_write_barrier): New static inlines.
18747         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18748         (sys_futex0): Return error code.
18749         (futex_wake, futex_wait): If ENOSYS was returned, clear
18750         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18751         (cpu_relax, atomic_write_barrier): New static inlines.
18752         * config/linux/sem.c: Include wait.h instead of libgomp.h and
18753         futex.h.
18754         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18755         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18756         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18757         types.
18758         (omp_nest_lock_t): Change owner into void *, add lock field.
18759         * config/posix95/omp-lock.h: Include semaphore.h.
18760         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18761         (omp_lock_t): Use sem_t instead of mutex if semaphores
18762         aren't broken.
18763         (omp_nest_lock_t): Likewise.  Change owner to void *.
18764         * config/posix/omp-lock.h: Include semaphore.h.
18765         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18766         (omp_lock_t): Use sem_t instead of mutex if semaphores
18767         aren't broken.
18768         (omp_nest_lock_t): Likewise.  Add owner field.
18770 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18772         * testsuite/libgomp.c/collapse-1.c: New test.
18773         * testsuite/libgomp.c/collapse-2.c: New test.
18774         * testsuite/libgomp.c/collapse-3.c: New test.
18775         * testsuite/libgomp.c/icv-1.c: New test.
18776         * testsuite/libgomp.c/icv-2.c: New test.
18777         * testsuite/libgomp.c/lib-2.c: New test.
18778         * testsuite/libgomp.c/lock-1.c: New test.
18779         * testsuite/libgomp.c/lock-2.c: New test.
18780         * testsuite/libgomp.c/lock-3.c: New test.
18781         * testsuite/libgomp.c/loop-4.c: New test.
18782         * testsuite/libgomp.c/loop-5.c: New test.
18783         * testsuite/libgomp.c/loop-6.c: New test.
18784         * testsuite/libgomp.c/loop-7.c: New test.
18785         * testsuite/libgomp.c/loop-8.c: New test.
18786         * testsuite/libgomp.c/loop-9.c: New test.
18787         * testsuite/libgomp.c/nested-3.c: New test.
18788         * testsuite/libgomp.c/nestedfn-6.c: New test.
18789         * testsuite/libgomp.c/sort-1.c: New test.
18790         * testsuite/libgomp.c/task-1.c: New test.
18791         * testsuite/libgomp.c/task-2.c: New test.
18792         * testsuite/libgomp.c/task-3.c: New test.
18793         * testsuite/libgomp.c/task-4.c: New test.
18794         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18795         to C++ testsuite default compiler options.
18796         * testsuite/libgomp.c++/collapse-1.C: New test.
18797         * testsuite/libgomp.c++/collapse-2.C: New test.
18798         * testsuite/libgomp.c++/ctor-10.C: New test.
18799         * testsuite/libgomp.c++/for-1.C: New test.
18800         * testsuite/libgomp.c++/for-2.C: New test.
18801         * testsuite/libgomp.c++/for-3.C: New test.
18802         * testsuite/libgomp.c++/for-4.C: New test.
18803         * testsuite/libgomp.c++/for-5.C: New test.
18804         * testsuite/libgomp.c++/loop-8.C: New test.
18805         * testsuite/libgomp.c++/loop-9.C: New test.
18806         * testsuite/libgomp.c++/loop-10.C: New test.
18807         * testsuite/libgomp.c++/task-1.C: New test.
18808         * testsuite/libgomp.c++/task-2.C: New test.
18809         * testsuite/libgomp.c++/task-3.C: New test.
18810         * testsuite/libgomp.c++/task-4.C: New test.
18811         * testsuite/libgomp.c++/task-5.C: New test.
18812         * testsuite/libgomp.c++/task-6.C: New test.
18813         * testsuite/libgomp.fortran/allocatable1.f90: New test.
18814         * testsuite/libgomp.fortran/allocatable2.f90: New test.
18815         * testsuite/libgomp.fortran/allocatable3.f90: New test.
18816         * testsuite/libgomp.fortran/allocatable4.f90: New test.
18817         * testsuite/libgomp.fortran/collapse1.f90: New test.
18818         * testsuite/libgomp.fortran/collapse2.f90: New test.
18819         * testsuite/libgomp.fortran/collapse3.f90: New test.
18820         * testsuite/libgomp.fortran/collapse4.f90: New test.
18821         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18822         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18823         * testsuite/libgomp.fortran/lib4.f90: New test.
18824         * testsuite/libgomp.fortran/lock-1.f90: New test.
18825         * testsuite/libgomp.fortran/lock-2.f90: New test.
18826         * testsuite/libgomp.fortran/nested1.f90: New test.
18827         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18828         * testsuite/libgomp.fortran/strassen.f90: New test.
18829         * testsuite/libgomp.fortran/tabs1.f90: New test.
18830         * testsuite/libgomp.fortran/tabs2.f: New test.
18831         * testsuite/libgomp.fortran/task1.f90: New test.
18832         * testsuite/libgomp.fortran/task2.f90: New test.
18833         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18834         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18835         * testsuite/libgomp.c/pr26943-2.c: Likewise.
18836         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18837         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18839 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
18841         PR c++/36308
18842         * testsuite/libgomp.c++/ctor-11.C: New test.
18843         * testsuite/libgomp.c++/ctor-12.C: New test.
18845 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18847         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18849 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
18851         PR middle-end/36106
18852         * testsuite/libgomp.c/atomic-5.c: New test.
18853         * testsuite/libgomp.c/atomic-6.c: New test.
18854         * testsuite/libgomp.c/autopar-1.c: New test.
18856 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18858         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18859         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18860         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18861         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18862         * configure: Regenerate.
18863         * Makefile.in, testsuite/Makefile.in: Likewise.
18865 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18867         PR bootstrap/35457
18868         * aclocal.m4: Regenerate.
18869         * configure: Regenerate.
18871 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18873         PR middle-end/35611
18874         * testsuite/libgomp.c/atomic-4.c: New test.
18876         PR libgomp/35625
18877         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18878         (gomp_iter_guided_next): Likewise.
18879         * testsuite/libgomp.c/pr35625.c: New test.
18881 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18883         * aclocal.m4: Regenerate.
18884         * configure: Likewise.
18885         * Makefile.in: Likewise.
18886         * testsuite/Makefile.in: Likewise.
18888 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18890         PR middle-end/35185
18891         * testsuite/libgomp.c++/pr35185.C: New test.
18893 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18895         PR middle-end/35549
18896         * testsuite/libgomp.c/pr35549.c: New test.
18898 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18900         * testsuite/libgomp.c/atomic-3.c: New test.
18902 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18904         PR fortran/33197
18905         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18906         .F08 file suffixes.
18908 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
18910         PR libgomp/33131
18911         * configure.ac: Add ACX_HEADER_STRING.
18912         * env.c: Include strings.h.
18913         * aclocal.m4: Regenerate.
18914         * config.h.in: Regenerate.
18915         * configure: Regenerate.
18916         * Makefile.in: Regenerate.
18917         * testsuite/Makefile.in: Regenerate.
18919 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
18921         PR middle-end/35196
18922         * testsuite/libgomp.c/pr35196.c: New test.
18924         PR middle-end/35130
18925         * testsuite/libgomp.fortran/pr35130.f90: New test.
18926         * testsuite/libgomp.c/pr35130.c: New test.
18928 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18930         PR middle-end/33880
18931         * testsuite/libgomp.c/pr33880.c: New test.
18932         * testsuite/libgomp.fortran/pr33880.f90: New test.
18934 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
18936         * configure: Regenerate.
18938 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18940         * configure.ac: Move futex checking into ../config/futex.m4.
18941         * configure: Rebuilt.
18942         * aclocal.m4: Rebuilt.
18943         * Makefile.in: Rebuilt.
18945         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18946         2007-10-15 ../config/tls.m4 change.
18948 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
18950         PR c++/34513
18951         * testsuite/libgomp.c/pr34513.c: New test.
18952         * testsuite/libgomp.c++/pr34513.C: New test.
18954 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
18956         PR target/32765
18957         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18959 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
18961         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
18963 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
18965         * testsuite/libgomp.c/private-1.c: New test.
18967 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
18968             Paolo Bonzini  <bonzini@gnu.org>
18970         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
18971         instead of 'VPATH ='.
18972         * Makefile.in: Regenerate.
18974 2007-11-23  Matthias Klose  <doko@ubuntu.com>
18976         * configure.ac: Adjust makeinfo version check.
18977         * configure: Regenerate.
18979 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
18981         PR fortran/34020
18982         * testsuite/libgomp.fortran/pr34020.f90: New test.
18984 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
18986         PR c++/33894
18987         * testsuite/libgomp.c++/atomic-1.C: New test.
18989 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
18991         PR libgomp/33275
18992         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18993         Make x and y integers rather than (implicit) reals.  Add private (j)
18994         clause to the last omp parallel.
18996 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
18998         * configure: Regenerate following changes to ../config/tls.m4.
19000 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
19002         * testsuite/libgomp.fortran/stack.f90: New test.
19004 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
19006         * config/mingw32/proc.c: New file.
19008 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
19010         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19011         (main): Use __get_cpuid to get i386 target fetaures.
19012         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19013         (main): Use __get_cpuid to get x86_64 target fetaures.
19015 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
19017         PR target/32765
19018         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19019         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19021 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
19023         PR fortran/32550
19024         * testsuite/libgomp.fortran/pr32550.f90: New test.
19025         * testsuite/libgomp.fortran/crayptr2.f90: New test.
19027 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19029         * aclocal.m4: Regenerated.
19031 2007-07-05  Tobias Burnus  <burnus@net-b.de>
19033         PR fortran/32359
19034         * testsuite/libgomp.fortran/pr32359.f90: New.
19036 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
19038         PR libgomp/32468
19039         * sections.c (GOMP_parallel_sections_start): Only decrease
19040         number of threads to COUNT if dyn_var is true.
19041         * testsuite/libgomp.c/pr32468.c: New test.
19043 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19045         PR libgomp/26308
19046         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19048 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
19050         PR middle-end/32362
19051         * testsuite/libgomp.c/pr32362-1.c: New test.
19052         * testsuite/libgomp.c/pr32362-2.c: New test.
19053         * testsuite/libgomp.c/pr32362-3.c: New test.
19055 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
19057         * team.c (gomp_team_start): Fix setting up thread_attr
19058         stack size.
19060 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
19062         * configure: Regenerate.
19064 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
19066         * Makefile.in: Regenerate.
19067         * configure: Regenerate.
19068         * aclocal.m4: Regenerate.
19069         * testsuite/Makefile.in: Regenerate.
19071 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
19073         * config/linux/proc.c: New file.
19075         PR libgomp/28482
19076         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19078 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
19080         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19082 2007-04-16  Matthias Klose  <doko@debian.org>
19084         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19085         flags if not building with -m64.
19086         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19087         flag for i?86-*-* targets, if current target matches -m64.
19089 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
19091         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19092         * Makefile.in: Regenerate.
19094 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19096         PR testsuite/31369
19097         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19098         ld_library_path.
19099         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19101 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
19103         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19104         decls.
19105         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19106         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19107         (parse_affinity): New function.
19108         (initialize_env): Call it and gomp_init_affinity.
19109         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19110         create new pthread_attr_t and call gomp_init_thread_affinity
19111         on it for each thread before passing the attribute to pthread_create.
19112         * config/linux/affinity.c: New file.
19113         * config/posix/affinity.c: New file.
19114         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19115         * configure: Rebuilt.
19116         * config.h.in: Rebuilt.
19117         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19118         * Makefile.in: Rebuilt.
19120 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
19122         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19123         *-*-darwin*.
19124         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19125         and use it if found.
19127 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
19129         * testsuite/config/default.exp: New file.
19130         * testsuite/lib/libgomp.exp: New file.
19131         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19132         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19133         load_lib *, load_gcc_lib *): Move to libgomp.exp.
19134         (libgomp_load): Remove.
19135         * testsuite/lib/libgomp.exp (libgomp_init): Compute
19136         always_ld_library_path, not ld_library_path.  Set additional_flags
19137         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19138         (target_compile): Do not call libgomp_init.  Append lang_library_path
19139         and lang_link_flags to options.
19140         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
19141         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
19142         here.
19143         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19144         always_ld_library_path.  Set LD_LIBRARY_PATH here.
19145         * testsuite/libgomp.fortran/fortran.exp: Ditto.
19146         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19147         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19148         CX8 flag.
19149         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19150         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19151         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19152         * testsuite/libgomp.c/pr29947-1.c: Ditto.
19153         * testsuite/libgomp.c/atomic-10.c: Ditto.
19155 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
19157         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19158         dg-final cleanup-modules line.
19159         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19160         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19161         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19162         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19163         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19164         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19165         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19167 2007-03-18  Andreas Schwab  <schwab@suse.de>
19169         * acinclude.m4: Adjust regular expression for ld version
19170         extraction.
19171         * configure: Regenerate.
19173 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19175         * Makefile.am: Add install-pdf target as copied from
19176         automake v1.10 rules.
19177         * Makefile.in: Regenerate
19179 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
19181         PR libgomp/28486
19182         * configure: Regenerate.
19184         PR c++/30703
19185         * testsuite/libgomp.c++/pr30703.C: New test.
19187 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19189         Revert:
19190         2006-07-05  Eric Christopher  <echristo@apple.com>
19191         * configure.ac: Depend addition of -pthread on host OS.
19192         * configure: Regenerate.
19194 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19196         * libgomp.texi: Fix spacing after abbreviations.
19198 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19200         PR libgomp/30546
19201         * configure.ac: Add check for makeinfo
19202         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19203         if an appropriate version of makeinfo is found.
19204         * aclocal.m4: Regenerated.
19205         * configure: Regenerated.
19206         * Makefile.in: Regenerated.
19207         * testsuite/Makefile.in: Regenerated.
19209 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19211         PR libgomp/30540
19212         * libgomp.texi: More about implementation-dependent settings.
19214 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19216         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19218 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19220         PR middle-end/30494
19221         * testsuite/libgomp.c/pr30494.c: New test.
19223 2007-01-15  Tom Tromey  <tromey@redhat.com>
19225         * configure: Rebuilt.
19226         * configure.ac: Fixed comment.
19228 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19230         * libgomp.texi: Document implementation specific default values of
19231         environment variables.
19233 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19235         PR libgomp/28209
19236         * libgomp.texi: New file.
19237         * configure.ac: Add --enable-generated-files-in-srcdir option.
19238         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19239         files to srcdir.
19240         * Makefile.in: Regenerated.
19241         * config.h.in: Regenerated.
19242         * testsuite/Makefile.in: Regenerated.
19243         * NOTES: Removed.
19245 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19247         PR libgomp/29949
19248         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19250 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19252         * configure: Regenerate.
19254 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19256         PR libgomp/29947
19257         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19258         start if there shouldn't be any loop iterations.
19259         (gomp_loop_ordered_static_start): Remove start == end test.
19260         * testsuite/libgomp.c/pr29947-1.c: New test.
19261         * testsuite/libgomp.c/pr29947-2.c: New test.
19263 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19265         * configure.tgt: Force initial-exec TLS model on Linux only.
19267 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19269         * configure: Regenerated.
19271 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19273         * env.c (parse_schedule): Reject out of range values.
19274         (parse_unsigned_long): Reject out of range, negative or zero values.
19276 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19278         PR fortran/29629
19279         * testsuite/libgomp.fortran/pr29629.f90: New test.
19281 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19283         PR libgomp/29494
19284         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19285         * config/posix95: New directory.
19286         * config/posix95/omp-lock.h: New file.
19287         * config/posix95/lock.c: Likewise.
19289 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19291         * aclocal.m4: Regenerate.
19292         * configure: Regenerate.
19294 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19296         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19297         '<' to '<='.
19299 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19301         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19302         test.
19303         * configure: Regenerate.
19304         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19306 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19308         PR middle-end/25261
19309         PR middle-end/28790
19310         * testsuite/libgomp.c/nestedfn-4.c: New test.
19311         * testsuite/libgomp.c/nestedfn-5.c: New test.
19312         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19314         PR fortran/29097
19315         * testsuite/libgomp.fortran/condinc1.f: New test.
19316         * testsuite/libgomp.fortran/condinc2.f: New test.
19317         * testsuite/libgomp.fortran/condinc3.f90: New test.
19318         * testsuite/libgomp.fortran/condinc4.f90: New test.
19319         * testsuite/libgomp.fortran/condinc1.inc: New file.
19321 2006-09-18  Tom Tromey  <tromey@redhat.com>
19323         * configure: Rebuilt.
19325 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19327         PR c/28768
19328         PR preprocessor/14634
19329         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19330         to AC_DEFINE.
19331         * configure: Regenerate.
19333 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19335         * testsuite/libgomp.fortran/reduction3.f90: Change
19336         -2147483648 to -huge(i)-1 to avoid overflow.
19337         * testsuite/libgomp.fortran/reduction4.f90: Change
19338         Z'ffffffff' to not(0) to avoid overflow.
19340 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19342         PR libgomp/25938
19343         * Makefile.am (libsubincludedir): New.
19344         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19345         * Makefile.in: Regenerate.
19347 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19349         PR libgomp/28725
19350         * env.c: Include ctype.h.
19351         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19352         leading and/or trailing whitespace and compare strings case
19353         insensitively.
19355 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
19357         PR fortran/28390
19358         * testsuite/libgomp.fortran/pr28390.f: New test.
19360 2006-07-05  Eric Christopher  <echristo@apple.com>
19362         * configure.ac: Depend addition of -pthread on host OS.
19363         * configure: Regenerate.
19365 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
19367         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19368         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19369         defined.
19371 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19373         PR libgomp/26175
19374         PR libgomp/26477
19375         * configure.ac: If neither --enable-linux-futex nor
19376         --disable-linux-futex is passed, determine the default by checking
19377         for compiling and/or running against NPTL.  With --enable-linux-futex,
19378         check if SYS_gettid and SYS_futex are defined.
19379         * configure: Rebuilt.
19381 2006-06-14  Richard Henderson  <rth@redhat.com>
19383         PR libgomp/28008
19384         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19385         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19387 2006-06-09  Richard Henderson  <rth@redhat.com>
19389         * env.c (gomp_nthreads_var): Change to unsigned long.
19390         (gomp_run_sched_chunk): Likewise.
19391         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19392         (initialize_env): Initialize gomp_thread_attr.
19393         * libgomp.h (gomp_nthreads_var): Update decl.
19394         (gomp_run_sched_chunk): Likewise.
19395         (gomp_thread_attr): Declare.
19396         * team.c (gomp_thread_attr): Export.
19397         (initialize_team): Don't initialize it.
19399 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19401         PR fortran/27916
19402         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19403         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19405 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19407         * config/mingw32/time.c: New file.
19408         * configure.tgt: Use it.
19410 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19412         * Makefile.am: Add install-html target. Add install-html to .PHONY
19413         * Makefile.in: Regenerate.
19415 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19417         PR libgomp/27612
19418         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19419         * testsuite/libgomp.c/critical-1.c: Likewise.
19420         * testsuite/libgomp.c/loop-1.c: Likewise.
19421         * testsuite/libgomp.c/loop-2.c: Likewise.
19422         * testsuite/libgomp.c/single-1.c: Likewise.
19423         * testsuite/libgomp.c/ordered-1.c: Likewise.
19424         * testsuite/libgomp.c/ordered-2.c: Likewise.
19426 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19428         PR middle-end/27416
19429         * libgomp.fortran/pr27416-1.f90: New test.
19431 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19433         PR fortran/27395
19434         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19435         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19437 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19439         PR c++/26943
19440         * testsuite/libgomp.c/pr26943-1.c: New test.
19441         * testsuite/libgomp.c/pr26943-2.c: New test.
19442         * testsuite/libgomp.c/pr26943-3.c: New test.
19443         * testsuite/libgomp.c/pr26943-4.c: New test.
19444         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19445         * testsuite/libgomp.c++/pr26943.C: New test.
19447 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19449         PR middle-end/27337
19450         * testsuite/libgomp.c++/pr27337.C: New test.
19452 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19454         PR c/26171
19455         * testsuite/libgomp.c/pr26171.c: New test.
19457 2006-04-25  Richard Henderson  <rth@redhat.com>
19459         PR libgomp/25865
19460         * configure.ac: Use GCC_CHECK_TLS.
19461         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19462         * Makefile.in, aclocal.m4, configure: Regenerate.
19464 2006-04-10  Matthias Klose  <doko@debian.org>
19466         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19467         directory names containing underscores.
19469 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19471         PR c++/26691
19472         * testsuite/libgomp.c++/pr26691.C: New test.
19474 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19476         * testsuite/libgomp.fortran/retval2.f90: New test.
19478 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19480         * testsuite/libgomp.c++: New directory.
19482 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19484         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19485         * config/posix/sem.c: Implement the above.
19487 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19489         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19490         define HAVE_BROKEN_POSIX_SEMAPHORES.
19491         * configure: Rebuilt.
19492         * config.h.in: Rebuilt.
19494 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19496         PR bootstrap/26161
19497         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19498         for the other pthread check.
19499         * configure: Regenerate.
19500         * config.h.in: Regenerate.
19502 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19504         PR libgomp/25938
19505         PR libgomp/25984
19506         * Makefile.am (fincludedir): New variable.
19507         (nodist_include_HEADERS): Remove Fortran files.
19508         (nodist_finclude_HEADERS): New variable.
19509         * Makefile.in: Regenerated.
19511 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19513         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19514         Remove tests for returning assumed character length arrays.
19516 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19517             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19519         PR libgomp/25936
19520         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19522 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19524         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19526 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19528         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19529         part of LD_LIBRARY_PATH manually.
19531 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19533         PR libgomp/25852
19534         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19535         libgomp_init.
19537 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19539         PR libgomp/25884
19540         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19541         * configure.ac (PERL): Don't set.
19542         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19543         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19544         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19545         * omp.h.in: Wrap the new configure substitutions with @ characters.
19546         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19547         * aclocal.m4, configure, Makefile.in: Regenerate.
19548         * mkomp_h.pl: Delete.
19550 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19552         PR libgomp/25259
19553         * configure.ac: Use GCC_HEADER_STDINT.
19554         * libgomp.h: Include gstdint.h.
19555         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19556         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19558 2006-01-24  Richard Henderson  <rth@redhat.com>
19560         PR libgomp/25942
19561         * configure.ac: Add AM_MAINTAINER_MODE.
19562         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19564 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
19566         * Makefile.in: Regenerate.
19567         * testsuite/Makefile.in: Regenerate.
19568         * aclocal.m4: Regenerate.
19570 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
19572         * config/posix/proc.c: Conditional include of sys/loadavg.h for
19573         Solaris.
19574         * configure.ac: Add check for loadavg.h.
19575         (link_gomp): Adjust comment.
19576         * configure: Regenerate.
19577         * config.h.in: Regenerate.
19579 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
19581         PR libgomp/25877
19582         * configure.ac: Remove check for alloca.h.
19583         * configure: Regenerate.
19584         * config.h.in: Regenerate.
19585         * libgomp.h: define gomp_alloca to be __builtin_alloca.
19586         * team.c: Remove use of alloca.h.
19587         Call gomp_alloca instead of alloca.
19589 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
19591         PR libgomp/25877
19592         * team.c: Add include of alloca.h.
19593         * configure.ac: Add check for alloca.h.
19594         * configure: Regenerate.
19595         * config.h.in: Regenerate.
19597 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
19599         PR fortran/25219
19600         * testsuite/libgomp.fortran/pr25219.f90: New test.
19602 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
19604         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19605         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19606         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19607         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19608         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19609         testsuite/libgomp.fortran/threadprivate1.f90,
19610         testsuite/libgomp.fortran/threadprivate2.f90,
19611         testsuite/libgomp.fortran/threadprivate3.f90,
19612         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19613         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19614         testsuite/libgomp.fortran/omp_parse3.f90: Change required
19615         effective-target to TLS runtime.
19617         * testsuite/libgomp.fortran/pr25162.f: Require
19618         effective-target TLS runtime.
19620 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
19622         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19623         * testsuite/libgomp.c/nestedfn-3.c: New test.
19625 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
19627         PR fortran/25162
19628         * testsuite/libgomp.fortran/pr25162.f: New test.
19630 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
19632         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19633         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19635 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
19637         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19638         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19639         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19640         single.c, team.c, work.c, config/linux/alpha/futex.h,
19641         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19642         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19643         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19644         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19645         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19646         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19647         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19648         FSF address.
19650 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19652         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19653         to nodist_noinst_HEADERS.
19654         * Makefile.in: Rebuilt.
19656         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19657         add integer count field.
19658         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19659         omp_nest_lock_t type change.
19660         (omp_init_nest_lock): Likewise.  Initialize count to 0.
19661         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19662         Increment count.
19663         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19664         Decrement count.
19665         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19666         Increment count if successful and return the new nesting level.
19667         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19668         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19669         * testsuite/libgomp.c/lib-1.c: New test.
19670         * testsuite/libgomp.fortran/lib1.f90: New test.
19671         * testsuite/libgomp.fortran/lib2.f: New test.
19672         * testsuite/libgomp.fortran/lib3.f: New test.
19674 2005-11-17  Richard Henderson  <rth@redhat.com>
19676         PR 24845
19677         * Makefile.am (nodist_toolexeclib_HEADERS): New.
19678         * configure.ac (link_gomp): New.  Substitute it.
19679         (AC_CONFIG_FILES): Add libgomp.spec.
19680         * libgomp.spec.in: New file.
19681         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19682         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19684 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19686         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19687         reduction(-:var) behaving the same as reduction(+:var).
19688         * testsuite/libgomp.c/reduction-4.c: New test.
19690 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
19692         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19693         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19694         testsuite/libgomp.c/copyin-3.c,
19695         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19696         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19697         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19698         testsuite/libgomp.c++/pr24455.C,
19699         testsuite/libgomp.fortran/threadprivate1.f90,
19700         testsuite/libgomp.fortran/threadprivate2.f90,
19701         testsuite/libgomp.fortran/threadprivate3.f90,
19702         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19703         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19704         testsuite/libgomp.fortran/omp_parse3.f90: Require
19705         effective-target TLS.
19707 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
19709         * HEADER: Remove.
19711 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
19713         PR libgomp/24797
19714         * team.c (initialize_team): Pass NULL rather than free as
19715         pthread_key_create destructor.  Initialize thread specific data
19716         pointer in initial thread to a static local variable rather than
19717         malloced memory.
19719 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
19721         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19722         its location to ld_library_path.
19724 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19726         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19728 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19730         * testsuite/libgomp.c: Rename from libgomp.dg.
19732 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
19734         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19735         threadprivate variable 'i'.
19737 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
19739         * config/linux/s390/futex.h: New file.
19740         * configure.tgt: Use it.
19742         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19743         before the parallel.
19745 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
19747         PR c++/24734
19748         * testsuite/libgomp.c++/master-1.C: New test.
19750 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19752         * testsuite/libgomp.dg/copyin-3.c: New test.
19754 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19756         * testsuite/libgomp.fortran/retval1.f90: New test.
19757         * testsuite/libgomp.fortran/vla7.f90: New test.
19759 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
19761         * testsuite/libgomp.fortran/vla2.f90: New test.
19762         * testsuite/libgomp.fortran/vla3.f90: New test.
19763         * testsuite/libgomp.fortran/vla4.f90: New test.
19764         * testsuite/libgomp.fortran/vla5.f90: New test.
19765         * testsuite/libgomp.fortran/vla6.f90: New test.
19767 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
19769         * config/linux/sparc/futex.h: New file.
19770         * configure.tgt: Use it.
19771         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19773         * critical.c: Include stdlib.h.
19774         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19775         ignoring return value.
19776         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19777         LIBGOMP_CHECK_SYNC_BUILTINS check.
19778         * configure: Rebuilt.
19780 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19782         * testsuite/libgomp.fortran/vla1.f90: New test.
19784 2005-10-31  Richard Henderson  <rth@redhat.com>
19786         * testsuite/libgomp.fortran/character2.f90: Fix race condition
19787         setting 's' in different threads.
19789 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19791         * libgomp.h (attribute_hidden, ialias): Define.
19792         * config/posix/proc.c (omp_get_num_procs): Add ialias.
19793         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19794         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19795         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19796         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19797         omp_test_lock, omp_test_nest_lock): Likewise.
19798         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19799         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19800         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19801         omp_test_lock, omp_test_nest_lock): Likewise.
19802         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19803         omp_get_dynamic, omp_get_nested): Likewise.
19804         * parallel.c (omp_get_num_threads, omp_get_max_threads,
19805         omp_get_thread_num, omp_in_parallel): Likewise.
19806         * fortran.c (ialias_redirect): Define.
19807         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19808         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19809         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19810         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19811         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19812         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19813         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19814         omp_get_wtime): Add ialias_redirect.
19816 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
19818         * fortran.c: Include stdlib.h.
19820 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
19822         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19823         * Makefile.in: Regenerated.
19825 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
19827         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19828         * libgomp_f.h.in (omp_check_defines): New function.
19829         * env.c: Include libgomp_f.h.
19830         (initialize_env): Call omp_check_defines.
19832         * testsuite/libgomp.dg/copyin-2.c: New test.
19833         * testsuite/libgomp.c++/copyin-2.C: New test.
19834         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19836         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19837         * testsuite/libgomp.fortran/sharing2.f90: New test.
19839         * testsuite/libgomp.dg/copyin-1.c: New test.
19840         * testsuite/libgomp.c++/copyin-1.C: New test.
19842 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
19844         * testsuite/libgomp.fortran/crayptr1.f90: New test.
19846         * testsuite/libgomp.fortran/workshare1.f90: New test.
19848         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19849         only test.
19850         * libgomp.fortran/sharing1.f90: New test.
19852 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
19854         PR c++/24502
19855         * testsuite/libgomp.c++/loop-7.C: New test.
19857         * testsuite/libgomp.dg/nestedfn-2.c: New test.
19859         * testsuite/libgomp.dg/nestedfn-1.c: New test.
19860         * testsuite/libgomp.fortran/reduction6.f90: New test.
19861         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19863 2005-10-23  Richard Henderson  <rth@redhat.com>
19865         * testsuite/libgomp.c++/ctor-1.C: New.
19866         * testsuite/libgomp.c++/ctor-2.C: New.
19867         * testsuite/libgomp.c++/ctor-3.C: New.
19868         * testsuite/libgomp.c++/ctor-4.C: New.
19869         * testsuite/libgomp.c++/ctor-5.C: New.
19870         * testsuite/libgomp.c++/ctor-6.C: New.
19871         * testsuite/libgomp.c++/ctor-7.C: New.
19872         * testsuite/libgomp.c++/ctor-8.C: New.
19873         * testsuite/libgomp.c++/ctor-9.C: New.
19875 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
19877         PR 24455
19878         * testsuite/libgomp.c++/pr24455-1.C: New test.
19879         * testsuite/libgomp.c++/pr24455.C: New test.
19880         * testsuite/libgomp.dg/pr24455-1.c: New test.
19881         * testsuite/libgomp.dg/pr24455.c: New test.
19883 2005-10-20  Richard Henderson  <rth@redhat.com>
19885         * testsuite/libgomp.c++/loop-6.C: New.
19886         * testsuite/libgomp.dg/loop-3.c: New.
19888 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
19890         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19891         explicitly private.
19892         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19893         explicitly shared.
19895 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
19897         * testsuite/libgomp.fortran/jacobi.f: New test.
19899 2005-10-19  Richard Henderson  <rth@redhat.com>
19901         * configure.tgt (i?86-linux): Default to with_arch instead of
19902         CFLAGS.  Add -mtune to match target_cpu.
19903         (x86_64-linux): Tune to i686.
19905         * fortran.c (omp_test_nest_lock_): Fix typo.
19907 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
19909         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19910         gomp_ordered_sync): Do nothing if team->nthreads == 1.
19911         * testsuite/libgomp.dg/ordered-3.c: New test.
19913         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19914         Remove volatile keyword.
19916         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19917         in COMMON block to avoid warnings on 64-bit targets.
19919 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
19921         * testsuite/libgomp.dg/shared-3.c: New test.
19923 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19925         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19926         * testsuite/libgomp.fortran/reduction5.f90: New test.
19928 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19930         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19931         dg-options.
19932         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
19933         flush loop now that __sync_synchronize has proper memory barrier.
19934         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19935         Add -ffixed-form to dg-options.
19937 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19939         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19940         from subdirectories.
19941         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19942         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19943         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19944         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19945         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19946         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19947         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19948         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19949         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19950         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19951         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19952         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19953         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19954         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19955         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19956         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19957         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19958         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19959         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19960         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19961         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19962         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19963         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19964         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19965         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19967 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
19969         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19970         lang_library_path exists.  Use find instead of glob to gather tests.
19971         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19973 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19975         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19976         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19977         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19978         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19979         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19980         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19981         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19982         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19983         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19984         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19985         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19986         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19987         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19989 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
19991         * testsuite/libgomp.dg/vla-1.c: New test.
19993         * testsuite/libgomp.fortran/reference2.f90: New test.
19995         * testsuite/libgomp.fortran/character2.f90: Remove explicit
19996         declaration of omp_get_thread_num.
19997         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
19998         use omp_lib.
20000         * testsuite/libgomp.fortran/reduction1.f90: New test.
20001         * testsuite/libgomp.fortran/reduction2.f90: New test.
20002         * testsuite/libgomp.fortran/reduction3.f90: New test.
20003         * testsuite/libgomp.fortran/reduction4.f90: New test.
20005 2005-10-13  Richard Henderson  <rth@redhat.com>
20007         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20008         * Makefile.in: Regenerate.
20009         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20010         * libgomp.h: Include bar.h.
20011         (struct gomp_barrier): Remove.
20012         (struct gomp_team): Add barrier.  Replace master_barrier with
20013         master_release.  Replace threads with ordered_release.
20014         (struct gomp_thread): Replace barrier with release.
20015         * ordered.c (gomp_ordered_first): Update for ordered_release change.
20016         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20017         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20018         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20019         (GOMP_single_copy_end): Likewise.
20020         * team.c (gomp_threads_dock): New.
20021         (gomp_barrier_init, gomp_barrier_destroy): Remove.
20022         (gomp_thread_start): Use gomp_barrier_wait.
20023         (new_team, free_team): Update for gomp_team changes.
20024         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20025         (gomp_team_end): Use gomp_barrier_wait.
20026         (initialize_team): Update for gomp_thread changes.
20027         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20028         (gomp_work_share_end_nowait): Use atomic ops when available.
20029         * config/linux/bar.c, config/linux/bar.h: New files.
20030         * config/posix/bar.c, config/posix/bar.h: New files.
20032 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
20034         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20035         * testsuite/libgomp.dg/single-2.c: New test.
20037         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20038         lang_link_flags): Unset, so that they aren't inherited from previously
20039         sourced *.exp.
20041         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20043 2005-10-12  Richard Henderson  <rth@redhat.com>
20045         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20046         (libgomp_init): Use lang_test_file, lang_library_path, and
20047         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
20049         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20050         (lang_test_file, lang_link_flags): New.
20051         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20053         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20054         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20055         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20056         testsuite/libgomp.c++/parallel-1.C,
20057         testsuite/libgomp.c++/reduction-1.C,
20058         testsuite/libgomp.c++/reduction-2.C,
20059         testsuite/libgomp.c++/reduction-3.C,
20060         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20061         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20062         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20063         New files, largely cribbed from the C testsuite.
20065 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
20067         * testsuite/libgomp.fortran/character1.f90: New test.
20068         * testsuite/libgomp.fortran/character2.f90: New test.
20070         * testsuite/libgomp.dg/nested-1.c: New test.
20071         * testsuite/libgomp.dg/nested-2.c: New test.
20072         * testsuite/libgomp.fortran/do1.f90: New test.
20073         * testsuite/libgomp.fortran/do2.f90: New test.
20075         * testsuite/libgomp.fortran/reference1.f90: New test.
20077 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
20079         * testsuite/libgomp.dg/reduction-1.c: New test.
20080         * testsuite/libgomp.dg/reduction-2.c: New test.
20081         * testsuite/libgomp.dg/reduction-3.c: New test.
20083 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
20085         * testsuite/libgomp.dg/atomic-1.c: New test.
20086         * testsuite/libgomp.dg/atomic-2.c: New test.
20088 2005-10-09  Richard Henderson  <rth@redhat.com>
20090         * critical.c (atomic_lock): New.
20091         (initialize_critical): Initialize it.
20092         (GOMP_atomic_start, GOMP_atomic_end): New.
20093         * libgomp.map: Export them.
20094         * libgomp_g.h: Declare them.
20096         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20098 2005-10-02  Richard Henderson  <rth@redhat.com>
20100         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
20101         to XCFLAGS instead of CFLAGS.
20103 2005-09-30  Richard Henderson  <rth@redhat.com>
20105         * configure.ac: Determine whether -pthread or -lpthread is needed.
20106         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20107         * Makefile.in, configure: Rebuild.
20109 2005-09-28  Richard Henderson  <rth@redhat.com>
20111         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20112         * testsuite/libgomp.dg/omp-single-3.c: New test.
20114 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
20116         * testsuite/libgomp.dg/omp-single-2.c: New test.
20117         * testsuite/libgomp.dg/shared-2.c: Fix return code.
20119 2005-09-27  Richard Henderson  <rth@redhat.com>
20121         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20122         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20124 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
20126         * testsuite/libgomp.dg/omp-loop03.c: New test.
20128 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20130         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20132 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20134         * testsuite/libgomp.dg/omp-single-1.c: New test.
20135         * testsuite/libgomp.dg/shared-1.c: Return 0.
20136         Add prototype for abort.
20137         * testsuite/libgomp.dg/shared-2.c: Likewise.
20139 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
20141         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20142         constructs.
20144 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
20146         * testsuite/libgomp.dg/shared-1.c: New test.
20147         * testsuite/libgomp.dg/shared-2.c: New test.
20149 2005-09-24  Richard Henderson  <rth@redhat.com>
20151         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20153 2005-09-24  Richard Henderson  <rth@redhat.com>
20155         * iter.c (gomp_iter_static_next): Round up when computing number
20156         of iterations.  Don't bother distributing a remainder equally.
20158         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20159         Don't call srand.  Zero b before testing.
20160         (main): New.
20162 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
20164         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20165         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20167 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
20169         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20170         without !$omp end do, followed immediately by subroutine end.
20172 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
20174         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20176 2005-09-22  Richard Henderson  <rth@redhat.com>
20178         * critical.c (GOMP_critical_name_start): Change argument to void**.
20179         Reuse the pointer space if the mutex fits.
20180         (GOMP_critical_name_end): Likewise.
20181         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20182         * libgomp_g.h (GOMP_critical_name_start): Update decl.
20183         (GOMP_critical_name_end): Likewise.
20184         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20185         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20187 2005-09-20  Richard Henderson  <rth@redhat.com>
20189         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20190         (create_lock_lock): New.
20191         (initialize_critical): Initialize it.
20192         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20193         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20195 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20197         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20199 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20201         * testsuite/libgomp.dg/omp-loop01.c: New test.
20202         * testsuite/libgomp.dg/omp-loop02.c: New test.
20204 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20206         * configure.ac (AC_PROG_FC): Add.
20207         (USE_FORTRAN): New automake conditional.
20208         * configure: Rebuilt.
20209         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20210         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20211         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20212         Add rules to build them.
20213         * Makefile.in: Rebuilt.
20214         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20215         OMP_NEST_LOCK_KIND.
20216         * libgomp.map: Add Fortran wrappers.
20217         * libgomp_f.h.in: New file.
20218         * omp_lib.h.in: New file.
20219         * omp_lib.f90.in: New file.
20220         * fortran.c: New file.
20221         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20222         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20223         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20224         libgfortran has been built.
20225         * testsuite/libgomp.fortran/fortran.exp: New file.
20226         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20227         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20228         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20229         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20230         * testsuite/libgomp.fortran/omp_hello.f: New test.
20231         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20232         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20233         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20234         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20235         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20236         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20237         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20238         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20240 2005-08-30  Richard Henderson  <rth@redhat.com>
20242         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20243         function for when aliases are not usable.
20244         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20245         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20246         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20247         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20248         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20249         GOMP_loop_ordered_guided_next): Likewise.
20250         * ordered.c (GOMP_ordered_start): Likewise.
20252 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20254         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20255         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20256         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20257         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20258         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20259         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20260         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20261         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20262         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20264 2005-07-07  Eric Christopher  <echristo@redhat.com>
20265             Diego Novillo  <dnovillo@redhat.com>
20267         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20268         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20269         up code.
20270         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20271         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20272         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20273         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20274         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20275         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20276         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20278 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20280         * TOPLEVEL.patch: Remove.
20282 2005-05-16  Richard Henderson  <rth@redhat.com>
20284         * configure.ac: Test for clock_gettime.
20285         * config.h.in, configure: Rebuild.
20286         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20287         (omp_get_wtime): Use clock_gettime if available.
20288         (omp_get_wtick): Use clock_getres if available.
20290 2005-05-11  Richard Henderson  <rth@redhat.com>
20292         * config/linux/ia64/futex.h: New file.
20293         * configure.tgt: Use it.
20295         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20297 2005-05-07  Richard Henderson  <rth@redhat.com>
20299         * config/linux/powerpc/futex.h: New file.
20300         * configure.tgt: Use it.
20302         * config/linux/i486/futex.h: Merge ...
20303         * config/linux/x86_64/futex.h: ... into ...
20304         * config/linux/x86/futex.h: ... here.
20305         * configure.tgt: Update to match.
20307 2005-05-06  Richard Henderson  <rth@redhat.com>
20309         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20310         * config/linux/i486/futex.h: Likewise.
20311         * config/linux/x86_64/futex.h: Likewise.
20313         * config/linux/lock.c: New file.
20314         * config/linux/omp-lock.h: New file.
20316         * critical.c, env.h: Don't include omp.h
20317         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20318         * config/posix/time.c: Likewise.
20319         * config/posix/omp-lock.h: New file.
20320         * libgomp.h: Include omp-lock.h and omp.h.
20321         * Makefile.am (nodist_include_HEADERS): New.
20322         (omp.h): New rule.
20323         * configure.ac (PERL): New.
20324         * mkomp_h.pl: New file.
20325         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20326         with templates.
20327         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20329         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20330         build directory.  Re-add -march=i486 hack.
20332         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20333         (libgomp_link_flags): Remove.
20334         (libgomp_initialized): Remove.
20335         (libgomp_init): Don't protect from reinitialization.  Copy code
20336         from libstdc++ for getting the multilib set correctly.
20338 2005-05-05  Richard Henderson  <rth@redhat.com>
20340         * config/linux/alpha/futex.h: New file.
20341         * configure.tgt (alpha*-*-linux*): Use it.
20343         * config/posix/mutex.c: New file.
20344         * config/posix/sem.c: Use libgomp.h.
20346         * configure.tgt (x86_64-linux): Also test CC for -m32.
20347         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20349         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20350         after $gccpath.
20352         * Makefile.am (SUBDIRS): New.
20353         (libgomp_la_LDFLAGS): Add -lpthread.
20354         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20355         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20357         * libgomp_g.h: New file.
20358         * libgomp.h: Split out all public declarations to libgomp_g.h.
20359         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20360         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20361         * config/linux/sem.h: Likewise.
20362         * config/posix/sem.h: Likewise.
20364         * Makefile.am (AM_LDFLAGS): New.
20365         (libgomp_version_script): Split out from ...
20366         (libgomp_la_LDFLAGS): ... here.
20367         (libgomp_version_info): New.
20368         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20369         (LIBGOMP_ENABLE): New.
20370         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20371         (LIBGOMP_ENABLE_SYMVERS): New.
20372         * configure.ac (AC_INIT): Version 1.0.
20373         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20374         (enable-linux-futex): Likewise.  Rename from enable-futex.
20375         (libtool_VERSION): New.
20376         (LIBGOMP_ENABLE_SYMVERS): Use it.
20377         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20378         * Makefile.in, aclocal.m4, configure: Rebuild.
20380         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20381         (gomp_mutex_unlock_slow): Fix typo.
20382         * config/linux/sem.c: Similarly.
20383         (gomp_sem_post_slow): Fix typo.
20384         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20385         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20386         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20388         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20389         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20390         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20391         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20392         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20393         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20394         LDFLAGS.  Pull enable_futex check to top-level.
20395         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20396         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20398         First attempt at real configury.
20399         * Makefile, config.h: Remove file.
20400         * Makefile.am, Makefile.in: New file.
20401         * acinclude.m4 aclocal.m4: New file.
20402         * configure.ac, configure.tgt, configure: New file.
20404         * config/posix/lock.c: Rename from sys-lock.c.
20405         * config/posix/mutex.h: Rename from sys-mutex.h.
20406         * config/posix/sem.c: Rename from sys-sem.c.
20407         * config/posix/sem.h: Rename from sys-sem.h.
20408         * config/posix/proc.c: Rename from sys-proc.c.
20409         * config/posix/time.c: Rename from sys-proc.c.
20411         * config/linux/mutex.c: New file.
20412         * config/linux/mutex.h: New file.
20413         * config/linux/sem.c: New file.
20414         * config/linux/sem.h: New file.
20415         * config/linux/i486/futex.h: New file.
20416         * config/linux/x86_64/futex.h: New file.
20418 2005-05-04  Richard Henderson  <rth@redhat.com>
20420         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20421         * libgomp.h: Declare them.
20422         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20423         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20425 2005-05-04  Richard Henderson  <rth@redhat.com>
20427         * libgomp-1 code drop
20429 2005-05-04  Richard Henderson  <rth@redhat.com>
20431         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20432         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20433         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20434         (gomp_iter_static_next): Update.
20435         (gomp_ordered_static_next): Update.
20436         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20437         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20438         totally empty range.
20439         (gomp_loop_ordered_static_next): Refine test for calling
20440         gomp_ordered_static_next.
20441         * testsuite/ordered-1.c: Add case for more threads than iterations.
20443         * iter.c (gomp_iter_runtime_next_locked): Remove.
20444         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20445         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20446         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20447         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20448         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20449         gomp_loop_ordered_guided_next): Downcase name, make static, add
20450         an external alias with the old name.
20451         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20452         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20453         switch and call one of the above static functions.
20454         * libgomp.h: Update.
20456         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20457         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20458         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20459         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20460         GOMP_loop_ordered_guided_start): Update to match.
20461         * sections.c (GOMP_sections_start): Likewise.
20462         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20464         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20465         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20466         Use bounds check instead of modulus.
20467         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20468         (gomp_ordered_last): Don't sync with ordered_owner here.
20469         (gomp_ordered_next): Likewise.
20470         (gomp_ordered_static_loop_next): Likewise.
20471         * loop.c, libgomp.h: Update to match.
20473         * libgomp.h (GOMP_barrier): Declare.
20475         * testsuite/barrier-1.c: New file.
20476         * testsuite/critical-1.c: New file.
20477         * testsuite/ordered-2.c: New file.
20478         * testsuite/ordered-1.c: New file.
20479         * testsuite/sections-1.c: New file.
20480         * testsuite/single-1.c: New file.
20481         * testsuite/Makefile (TESTS): Add them.
20483 2005-05-04  Richard Henderson  <rth@redhat.com>
20485         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20486         * loop.c (GOMP_loop_static_start): If not the startup thread,
20487         acquire the mutex to wait for initialization complete.
20488         (GOMP_loop_ordered_static_start): Likewise.
20489         (GOMP_loop_ordered_runtime_start): Likewise.
20490         (GOMP_loop_ordered_static_first): Remove.
20491         (GOMP_loop_ordered_dynamic_first): Remove.
20492         (GOMP_loop_ordered_guided_first): Remove.
20493         (GOMP_loop_ordered_runtime_first): Remove.
20494         * ordered.c (gomp_ordered_loop_first): Post to own release when
20495         we're the first thread.
20496         (gomp_ordered_loop_last): Wait on release if not owner.
20497         (gomp_ordered_loop_next): Likewise.
20498         (gomp_ordered_static_loop_init): New.
20499         (gomp_ordered_static_loop_next): Use ordered_owner.
20500         (GOMP_ordered_start): Likewise.
20501         * work.c (gomp_new_work_share): Initialize ordered_owner.
20503 2005-05-03  Richard Henderson  <rth@redhat.com>
20505         * Makefile (OPT): New.
20506         (CFLAGS): Use it.
20508         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20509         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20510         * libgomp.h, libgomp.map, NOTES: Update to match.
20512         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20513         Add initialized and thr members.
20514         (gomp_thread_start): Pause when initially spawned to wait for
20515         the whole team to be created.
20516         (gomp_team_start): Release team members at the end.
20518         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20519         (f_foo_1): Use GOMP_loop_end.
20520         (f_foo_2): Use GOMP_loop_end_nowait.
20522         * testsuite/loop-2.c: New file.
20523         * testsuite/Makefile (TESTS): Add it.
20525 2005-05-03  Richard Henderson  <rth@redhat.com>
20527         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20528         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20529         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20530         initial work_share.
20532         * testsuite/Makefile: New file.
20533         * testsuite/loop-1.c: New file.
20535 2005-05-03  Richard Henderson  <rth@redhat.com>
20537         Initial implementation and checkin.
20539 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20541 Copying and distribution of this file, with or without modification,
20542 are permitted in any medium without royalty provided the copyright
20543 notice and this notice are preserved.