tree-switch-conversion: Fix a comment typo
[official-gcc.git] / libgomp / ChangeLog
bloba5671bde6565467e3d94c48814a644425ef6f514
1 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
2             Chung-Lin Tang  <cltang@codesourcery.com>
4         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
5         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
7 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
9         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
10         the traits. Add crossref to 'Memory allocation'.
11         (Memory allocation): Refer to OMP_ALLOCATOR for the available
12         traits and allocators/mem spaces; document the default value
13         for the pool_size trait.
15 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
17         * allocator.c (omp_init_allocator): Check whether symbol from
18         dlopened libnuma is available before using libnuma for
19         allocations.
21 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
23         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
24         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
25         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
27 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
29         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
30         'Memory allocation' section which contains the full status.
31         (TR11): Remove differently worded duplicated entry.
33 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
35         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
36         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
37         add GOMP_MEMKIND_LIBNUMA.
38         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
39         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
40         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
41         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
42         needed.
43         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
44         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
45         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
46         updated for libnuma usage.
47         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
48         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
50 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
52         * allocator.c (omp_init_allocator): Use malloc for
53         omp_high_bw_mem_space when the memkind lib is unavailable
54         instead of returning omp_null_allocator.
55         * libgomp.texi (OpenMP 5.0): Fix typo.
56         (Memory allocation with libmemkind): Document implementation
57         in more detail.
59 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
61         * libgomp.texi: Use @var for ICV vars.
62         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
63         document which ICV is set and which scope the ICV has; extend/cleanup
64         some @ref.
65         (Implementation-defined ICV Initialization): New.
66         (nvptx): Document the implementation-defined used per-warp stack size.
68 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
70         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
71         error.
73 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
75         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
76         as expected dg-output.
78 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
80         PR middle-end/110270
81         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
82         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
83         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
84         * testsuite/libgomp.c/target-19.c: Update expected value.
85         * testsuite/libgomp.c++/target-18.C: Likewise.
86         * testsuite/libgomp.c++/target-19.C: Likewise.
87         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
88         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
89         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
91 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
93         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
94         gomp_init_targets_once was called before using default-device-var.
95         * testsuite/libgomp.c/target-55.c: New test.
96         * testsuite/libgomp.c/target-55a.c: New test.
98 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
100         * env.c (gomp_def_allocator_envvar): New var.
101         (parse_allocator): Handle OpenMP 5.1 syntax.
102         (cleanup_env): New.
103         (omp_display_env): Output gomp_def_allocator_envvar
104         for an allocator with traits.
105         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
106         OMP_DISPLAY_AFFINITY): New.
107         * testsuite/libgomp.c/allocator-1.c: New test.
108         * testsuite/libgomp.c/allocator-2.c: New test.
109         * testsuite/libgomp.c/allocator-3.c: New test.
110         * testsuite/libgomp.c/allocator-4.c: New test.
111         * testsuite/libgomp.c/allocator-5.c: New test.
112         * testsuite/libgomp.c/allocator-6.c: New test.
114 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
116         * target.c (resolve_device): Align a
117         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
118         * testsuite/libgomp.c/target-51.c: Adjust.
120 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
122         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
123         set.
124         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
125         Likewise.
126         * testsuite/libgomp.c/simd-math-1.c: Remove
127         '-foffload-options=-lm'.
128         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
129         Likewise.
130         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
131         Likewise.
133 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
135         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
136         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
137         Likewise.
139 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
141         * testsuite/libgomp.c/target-51.c: Fix typo.
143 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
145         * env.c (gomp_default_icv_values): Init default_device_var to
146         an nonconforming value - INT_MIN.
147         (initialize_env): After env-var parsing, set default_device_var to
148         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
149         (omp_display_env): If default_device_var is INT_MIN, call
150         gomp_init_targets_once.
151         * icv-device.c (omp_get_default_device): Likewise.
152         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
153         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
154         * target.c (resolve_device): Improve error message device-num < 0
155         with 'mandatory' and no no-host devices available.
156         (gomp_target_init): Set default-device-var if INT_MIN.
157         * testsuite/libgomp.c/target-48.c: New test.
158         * testsuite/libgomp.c/target-49.c: New test.
159         * testsuite/libgomp.c/target-50.c: New test.
160         * testsuite/libgomp.c/target-50a.c: New test.
161         * testsuite/libgomp.c/target-51.c: New test.
162         * testsuite/libgomp.c/target-52.c: New test.
163         * testsuite/libgomp.c/target-53.c: New test.
164         * testsuite/libgomp.c/target-54.c: New test.
166 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
168         PR libgomp/109837
169         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
170         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
172 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
174         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
175         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
176         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
177         error message.
178         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
179         changed error message.
180         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
181         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
182         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
183         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
184         extend testcase to check that data is copied when needed.
185         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
186         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
188 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
189             Tobias Burnus  <tobias@codesourcery.com>
191         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
192         also for non-offload_device targets; check that it runs
193         successfully for those and for all until a checkpoint for all
194         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
195         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
196         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
197         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
198         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
199         add missing vars to map clause.
201 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
203         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
204         unified_address requirement as supported.
205         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
206         'unified_address' from the not-supported requirements.
208 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
209             Tobias Burnus  <tobias@codesourcery.com>
211         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
212         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
213         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
214         modifier.
215         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
216         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
217         Emit runtime error if memory region not present.
218         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
219         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
220         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
221         * testsuite/libgomp.fortran/target-present-1.f90: New test.
222         * testsuite/libgomp.fortran/target-present-2.f90: New test.
223         * testsuite/libgomp.fortran/target-present-3.f90: New test.
225 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
227         PR testsuite/66005
228         * testsuite/lib/libgomp.exp: 'flock' through stdout.
229         * testsuite/flock: New.
230         * configure.ac (FLOCK): Point to that if no 'flock' available, but
231         'perl' is.
232         * configure: Regenerate.
234 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
236         * configure.ac (PERL): Remove.
237         * configure: Regenerate.
238         * Makefile.in: Likewise.
239         * testsuite/Makefile.in: Likewise.
241 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
243         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
245 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
247         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
249 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
251         PR libgomp/109875
252         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
253         * config/nvptx/target.c (GOMP_teams4): Likewise.
254         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
255         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
256         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
257         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
259 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
261         PR libgomp/109904
262         * configure.ac (link_gomp): Include also $DL_LIBS.
263         * configure: Regenerated.
265 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
267         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
268         'target exit data'.
269         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
270         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
271         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
272         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
274 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
276         PR testsuite/66005
277         * configure.ac: Look for 'flock'.
278         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
279         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
280         * testsuite/lib/libgomp.exp: ... but here, instead.
281         (libgomp_load): Override for parallel testing.
282         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
283         * configure: Regenerate.
284         * Makefile.in: Regenerate.
285         * testsuite/Makefile.in: Regenerate.
287 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
288             Thomas Schwinge  <thomas@codesourcery.com>
290         PR testsuite/66005
291         * testsuite/Makefile.am (PWD_COMMAND): New variable.
292         (%/site.exp): New target.
293         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
294         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
295         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
296         (check_p_subdirs)
297         (check_DEJAGNU_libgomp_targets): New variables.
298         ($(check_DEJAGNU_libgomp_targets)): New target.
299         ($(check_DEJAGNU_libgomp_targets)): New dependency.
300         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
301         * testsuite/Makefile.in: Regenerate.
302         * testsuite/lib/libgomp.exp: For parallel testing,
303         'load_file ../libgomp-test-support.exp'.
305 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
307         PR testsuite/91884
308         * configure.ac: 'AC_SUBST(CXX)'.
309         * configure: Regenerate.
310         * Makefile.in: Likewise.
311         * testsuite/Makefile.in: Likewise.
312         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
313         (GFORTRAN_UNDER_TEST): Set.
314         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
315         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
316         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
317         * testsuite/libgomp.fortran/fortran.exp: Use
318         'GFORTRAN_UNDER_TEST'.
319         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
321 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
323         PR testsuite/91884
324         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
325         specify compiler.
326         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
327         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
328         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
329         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
330         Likewise.
331         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
332         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
333         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
334         Likewise.
336 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
338         PR libstdc++/109816
339         * testsuite/libgomp.c++/target-map-class-1.C: New test.
340         * testsuite/libgomp.c++/target-map-class-2.C: New test.
342 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
344         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
345         'lang_library_path' into a list of 'lang_library_paths'.
346         * testsuite/libgomp.c++/c++.exp: Adjust.
347         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
348         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
349         libquadmath, too.
350         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
352 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
354         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
355         at 'lang_test_file_found'.
356         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
357         'return' early if not able to test.  Simplify 'ld_library_path' setup.
358         * testsuite/libgomp.fortran/fortran.exp: Likewise.
359         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
360         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
362 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
364         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
365         first.
366         * testsuite/libgomp.fortran/fortran.exp: Likewise.
367         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
368         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
370 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
372         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
373         * testsuite/libgomp.c/c.exp: Likewise.
374         * testsuite/libgomp.fortran/fortran.exp: Likewise.
375         * testsuite/libgomp.graphite/graphite.exp: Likewise.
376         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
377         * testsuite/libgomp.oacc-c/c.exp: Likewise.
378         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
380 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
382         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
383         * testsuite/libgomp.fortran/fortran.exp: Likewise.
384         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
385         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
386         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
387         'lang_test_file'.
388         * testsuite/libgomp.oacc-c/c.exp: Likewise.
389         * testsuite/libgomp.graphite/graphite.exp: Likewise.
390         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
391         'lang_test_file_found' instead of 'lang_test_file'.
393 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
395         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
396         set.
397         * testsuite/libgomp.c++/c++.exp: Likewise.
398         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
400 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
402         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
403         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
405 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
407         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
408         of 'libstdcxx_includes'.
409         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
411 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
413         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
414         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
415         * libgomp.h (gomp_target_rev): Adjust.
416         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
417         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
418         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
419         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
420         (rev_off_host_to_dev_cpy): Remove.
421         (GOMP_OFFLOAD_run): Adjust.
423 2023-05-04  Julian Brown  <julian@codesourcery.com>
425         PR fortran/109622
426         * testsuite/libgomp.fortran/pr109622.f90: Move test...
427         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
428         vector length warning.
429         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
430         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
431         missing copyin/copyout variable. Ignore vector length warnings.
432         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
433         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
434         vector length warnings.
435         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
437 2023-04-28  Julian Brown  <julian@codesourcery.com>
439         PR fortran/109622
440         * testsuite/libgomp.fortran/pr109622.f90: New test.
441         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
442         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
444 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
446         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
447         * testsuite/libgomp.c/scan-23.c: New test.
448         * testsuite/libgomp.fortran/scan-2.f90: New test.
450 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
452         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
453         weak_undefined options.
455 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
457         * libgomp.texi (Offload-Target Specifics): Grammar fix.
459 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
461         PR fortran/104949
462         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
463         caveat/safeguard.
465 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
467         PR libgomp/90596
468         * target.c (gomp_map_vars_internal): Allow for
469         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
470         * oacc-parallel.c (GOACC_parallel_keyed): Pass
471         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
472         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
473         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
474         Adjust, simplify.
475         (gomp_offload_free): Remove.
476         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
477         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
478         (cuda_free_argmem): Remove.
479         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
480         Adjust.
482 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
484         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
485         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
486         data.
488 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
490         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
491         'GOMP_MAP_IF_PRESENT'.
492         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
493         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
494         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
495         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
496         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
497         testing.
498         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
500 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
502         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
503         shortcut.
505 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
507         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
508         another aspect of OpenACC 'async' semantics.
510 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
512         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
513         position.
514         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
515         Verify 'acc_ev_alloc', 'acc_ev_free'.
517 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
519         PR libgomp/109062
520         * env.c (wait_policy): Initialize to -1.
521         (initialize_icvs): Initialize icvs->wait_policy to -1.
522         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
524 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
526         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
528 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
529             Paul-Antoine Arras  <pa@codesourcery.com>
531         * testsuite/libgomp.c/simd-math-1.c: New testcase.
533 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
535         PR middle-end/108546
536         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
537         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
539 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
541         * testsuite/libgomp.fortran/alloc-10.f90: Use
542         '-Wno-complain-wrong-lang'.
543         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
544         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
545         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
546         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
547         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
548         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
549         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
550         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
551         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
552         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
553         Likewise.
554         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
555         Likewise.
556         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
557         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
558         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
559         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
560         'dg-prune-output'.
562 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
564         * libgomp.texi: Fix typos - theads -> threads.
566 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
568         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
569         comment typo and improve its wording.
571 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
573         * target.c (gomp_target_rev): Dereference ptr
574         to get device address.
575         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
576         for unallocated allocatable.
578 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
580         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
581         kind check.
582         (GOMP_target_enter_exit_data): If the next map item is
583         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
584         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
586 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
588         PR fortran/107424
589         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
590         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
591         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
592         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
593         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
594         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
596 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
598         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
599         offloading compilation.
601 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
603         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
604         freeing not allocated memory.
605         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
607 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
609         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
610         reverse offload.
611         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
612         reverse-offload requirement.
614 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
616         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
617         (DEFAULT_TEAM_ARENA_SIZE): New define.
618         (struct heap): Move to this file.
619         (struct kernargs_abi): Likewise.
620         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
621         the kernargs.
622         * libgomp.h: Include libgomp-gcn.h.
623         (TEAM_ARENA_SIZE): Remove.
624         (team_malloc): Update the error message.
625         * plugin/plugin-gcn.c (struct kernargs): Move common content to
626         struct kernargs_abi.
627         (struct agent_info): Rename team arenas to ephemeral memories.
628         (struct team_arena_list): Rename ....
629         (struct ephemeral_memories_list): to this.
630         (struct heap): Delete.
631         (team_arena_size): New variable.
632         (stack_size): New variable.
633         (print_kernel_dispatch): Update debug messages.
634         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
635         Read GCN_STACK_SIZE.
636         (get_team_arena): Rename ...
637         (configure_ephemeral_memories): ... to this, and set up stacks.
638         (release_team_arena): Rename ...
639         (release_ephemeral_memories): ... to this.
640         (destroy_team_arenas): Rename ...
641         (destroy_ephemeral_memories): ... to this.
642         (create_kernel_dispatch): Add num_threads parameter.
643         Adjust for kernargs_abi refactor and ephemeral memories.
644         (release_kernel_dispatch): Adjust for ephemeral memories.
645         (run_kernel): Pass thread-count to create_kernel_dispatch.
646         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
647         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
649 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
651         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
653 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
655         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
656         usage, remove unused -fdump-tree-original.
657         * testsuite/libgomp.fortran/allocate-4.f90: New.
659 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
661         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
662         (GCN): Add item about 'omp requires'.
663         (nvptx): Likewise; add item about reverse offload.
665 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
667         PR fortran/108558
668         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
670 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
672         * libgomp.texi (OpenMP 5.0): Set non-rectangular
673         loop nest back to 'P' as Fortran support is incomplete.
675 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
677         PR middle-end/108459
678         * testsuite/libgomp.c/pr108459.c: New test.
680 2023-01-17  Martin Liska  <mliska@suse.cz>
682         * Makefile.in: Regenerate.
683         * configure: Regenerate.
685 2023-01-07  LIU Hao  <lh_mouse@126.com>
687         PR middle-end/108300
688         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
689         <windows.h>.
691 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
693         PR c++/108286
694         * testsuite/libgomp.c++/pr108286.C: New test.
696 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
698         * libgomp.texi: Bump @copying's copyright year.
700 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
702         PR target/99555
703         * config/nvptx/bar.c (generation_to_barrier): Remove.
704         (futex_wait,futex_wake,do_spin,do_wait): Remove.
705         (GOMP_WAIT_H): Remove.
706         (#include "../linux/bar.c"): Remove.
707         (gomp_barrier_wait_end): New function.
708         (gomp_barrier_wait): Likewise.
709         (gomp_barrier_wait_last): Likewise.
710         (gomp_team_barrier_wait_end): Likewise.
711         (gomp_team_barrier_wait): Likewise.
712         (gomp_team_barrier_wait_final): Likewise.
713         (gomp_team_barrier_wait_cancel_end): Likewise.
714         (gomp_team_barrier_wait_cancel): Likewise.
715         (gomp_team_barrier_cancel): Likewise.
716         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
717         (gomp_barrier_init): Remove init of waiters, lock fields.
718         (gomp_team_barrier_wake): Remove prototype, add new static inline
719         function.
721 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
723         PR c++/108180
724         * testsuite/libgomp.c++/pr108180.C: New test.
726 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
728         PR libfortran/108056
729         * testsuite/libgomp.fortran/allocate-4.f90: Remove
730         accidentally added file.
732 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
734         PR libfortran/108056
735         * testsuite/libgomp.fortran/allocate-4.f90: New file.
737 2022-12-14  Julian Brown  <julian@codesourcery.com>
739         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
740         test.
742 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
744         * libgomp.h (struct target_mem_desc): Predeclare; move
745         below after 'reverse_splay_tree_node' and add rev_array
746         member.
747         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
748         (reverse_splay_tree_node, reverse_splay_tree,
749         reverse_splay_tree_key): New typedef.
750         (struct gomp_device_descr): Add mem_map_rev member.
751         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
752         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
753         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
754         * splay-tree.h (splay_tree_callback_stop): New typedef; like
755         splay_tree_callback but returning int not void.
756         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
757         taking splay_tree_callback_stop as argument.
758         * splay-tree.c (splay_tree_foreach_internal_lazy,
759         splay_tree_foreach_lazy): New; but early exit if callback returns
760         nonzero.
761         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
762         (gomp_map_lookup_rev): New.
763         (gomp_load_image_to_device): Handle reverse-offload function
764         lookup table.
765         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
766         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
767         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
768         gomp_map_cdata_lookup): New auxiliary structs and functions for
769         gomp_target_rev.
770         (gomp_target_rev): Implement reverse offloading and its mapping.
771         (gomp_target_init): Init current_device.mem_map_rev.root.
772         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
773         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
774         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
775         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
776         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
777         mapping of on-device allocated variables.
779 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
781         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
782         item about 'align'; mark clause as 'Y' and directive as 'N'.
783         * testsuite/libgomp.fortran/allocate-2.f90: New test.
784         * testsuite/libgomp.fortran/allocate-3.f90: New test.
786 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
788         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
789         allow processing of device-specific values.
790         (omp_set_teams_thread_limit): Likewise.
791         (ialias): Likewise.
792         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
793         (omp_set_teams_thread_limit): Likewise.
794         (ialias): Likewise.
795         * icv-device.c (omp_get_teams_thread_limit): Likewise.
796         (ialias): Likewise.
797         (omp_set_teams_thread_limit): Likewise.
798         * icv.c (omp_set_teams_thread_limit): Removed.
799         (omp_get_teams_thread_limit): Likewise.
800         (ialias): Likewise.
801         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
802         to the limitation of the number of teams.
803         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
804         the number of teams by twice the number of compute units.
805         (parse_target_attributes): Limit the number of teams on gcn offload
806         devices.
807         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
808         handling.
809         (gomp_load_image_to_device): Added a size check for the ICVs struct
810         variable.
811         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
812         copy back the ICV values from device to host.
813         (GOMP_target_ext): Update the number of teams and threads in the kernel
814         args also considering device-specific values.
815         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
816         of OMP_TEAMS_THREAD_LIMIT from the environment.
817         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
818         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
819         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
820         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
821         * testsuite/libgomp.fortran/icv-5.f90: New test.
822         * testsuite/libgomp.fortran/icv-6.f90: New test.
824 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
826         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
827         (TR11): Add missing '@tab N @tab'.
829 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
831         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
833 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
835         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
836         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
837         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
838         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
839         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
840         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
841         * testsuite/libgomp.c/declare-variant-4.h: New header file.
843 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
845         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
847 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
849         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
850         * testsuite/libgomp.c/target-simd-clone-1.c: New.
851         * testsuite/libgomp.c/target-simd-clone-2.c: New.
852         * testsuite/libgomp.c/target-simd-clone-3.c: New.
854 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
856         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
857         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
858         as valid and the code having no reverse-offload code.
859         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
861 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
863         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
864         and status for Technical Report (TR) 11.
866 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
868         * config/gcn/libgomp-gcn.h (struct output):
869         Remove 'msg_u64' from the union, change
870         value_u64[2] to value_u64[6].
871         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
872         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
873         Likewise.
875 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
877         * config/gcn/libgomp-gcn.h: New file; contains
878         struct output, declared previously in plugin-gcn.c.
879         * config/gcn/target.c: Include it.
880         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
881         (GOMP_target_ext): Handle reverse offload.
882         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
883         (struct kernargs): Replace struct def by the one
884         from libgomp-gcn.h for output_data.
885         (process_reverse_offload): New.
886         (console_output): Call it.
888 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
889             Andrew Stubbs  <ams@codesourcery.com>
891         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
892         __builtin_gcn_kernarg_ptr instead of asm ("s8").
894 2022-11-14  Martin Liska  <mliska@suse.cz>
896         Revert:
897         2022-11-14  Martin Liska  <mliska@suse.cz>
899         * doc/amd-radeon-gcn.rst: New file.
900         * doc/conf.py: New file.
901         * doc/copyright.rst: New file.
902         * doc/cuda-streams-usage.rst: New file.
903         * doc/enabling-openacc.rst: New file.
904         * doc/enabling-openmp.rst: New file.
905         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
906         * doc/first-invocation-openacc-library-api.rst: New file.
907         * doc/funding.rst: New file.
908         * doc/general-public-license-3.rst: New file.
909         * doc/gnu-free-documentation-license.rst: New file.
910         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
911         * doc/index.rst: New file.
912         * doc/indices-and-tables.rst: New file.
913         * doc/introduction.rst: New file.
914         * doc/memory-allocation-with-libmemkind.rst: New file.
915         * doc/nvptx.rst: New file.
916         * doc/offload-target-specifics.rst: New file.
917         * doc/openacc-environment-variables.rst: New file.
918         * doc/openacc-environment-variables/accdevicenum.rst: New file.
919         * doc/openacc-environment-variables/accdevicetype.rst: New file.
920         * doc/openacc-environment-variables/accproflib.rst: New file.
921         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
922         * doc/openacc-introduction.rst: New file.
923         * doc/openacc-library-and-environment-variables.rst: New file.
924         * doc/openacc-library-interoperability.rst: New file.
925         * doc/openacc-profiling-interface.rst: New file.
926         * doc/openacc-runtime-library-routines.rst: New file.
927         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
928         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
929         * doc/openacc-runtime-library-routines/accattach.rst: New file.
930         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
931         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
932         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
933         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
934         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
935         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
936         * doc/openacc-runtime-library-routines/accfree.rst: New file.
937         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
938         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
939         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
940         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
941         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
942         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
943         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
944         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
945         * doc/openacc-runtime-library-routines/accinit.rst: New file.
946         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
947         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
948         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
949         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
950         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
951         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
952         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
953         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
954         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
955         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
956         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
957         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
958         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
959         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
960         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
961         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
962         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
963         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
964         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
965         * doc/openacc-runtime-library-routines/accwait.rst: New file.
966         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
967         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
968         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
969         * doc/openmp-context-selectors.rst: New file.
970         * doc/openmp-environment-variables.rst: New file.
971         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
972         * doc/openmp-environment-variables/gompdebug.rst: New file.
973         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
974         * doc/openmp-environment-variables/gompspincount.rst: New file.
975         * doc/openmp-environment-variables/gompstacksize.rst: New file.
976         * doc/openmp-environment-variables/ompcancellation.rst: New file.
977         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
978         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
979         * doc/openmp-environment-variables/ompdynamic.rst: New file.
980         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
981         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
982         * doc/openmp-environment-variables/ompnested.rst: New file.
983         * doc/openmp-environment-variables/ompnumteams.rst: New file.
984         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
985         * doc/openmp-environment-variables/ompplaces.rst: New file.
986         * doc/openmp-environment-variables/ompprocbind.rst: New file.
987         * doc/openmp-environment-variables/ompschedule.rst: New file.
988         * doc/openmp-environment-variables/ompstacksize.rst: New file.
989         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
990         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
991         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
992         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
993         * doc/openmp-implementation-specifics.rst: New file.
994         * doc/openmp-implementation-status.rst: New file.
995         * doc/openmp-implementation-status/openmp-45.rst: New file.
996         * doc/openmp-implementation-status/openmp-50.rst: New file.
997         * doc/openmp-implementation-status/openmp-51.rst: New file.
998         * doc/openmp-implementation-status/openmp-52.rst: New file.
999         * doc/openmp-runtime-library-routines.rst: New file.
1000         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1001         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1002         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1003         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1004         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1005         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1006         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1007         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1008         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1009         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1010         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1011         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1012         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1013         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1014         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1015         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1016         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1017         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1018         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1019         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1020         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1021         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1022         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1023         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1024         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1025         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1026         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1027         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1028         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1029         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1030         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1031         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1032         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1033         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1034         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1035         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1036         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1037         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1038         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1039         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1040         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1041         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1042         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1043         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1044         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1045         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1046         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1047         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1048         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1049         * doc/reporting-bugs.rst: New file.
1050         * doc/the-libgomp-abi.rst: New file.
1051         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1052         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1053         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1054         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1055         New file.
1056         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1057         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1058         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1059         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1060         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1061         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1062         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1063         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1064         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1065         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1066         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1068 2022-11-14  Martin Liska  <mliska@suse.cz>
1070         Revert:
1071         2022-11-14  Martin Liska  <mliska@suse.cz>
1073         * Makefile.in: Support Sphinx based documentation.
1075 2022-11-14  Martin Liska  <mliska@suse.cz>
1077         Revert:
1078         2022-11-14  Martin Liska  <mliska@suse.cz>
1080         * libgomp.texi: Removed.
1082 2022-11-14  Martin Liska  <mliska@suse.cz>
1084         Revert:
1085         2022-11-14  Martin Liska  <mliska@suse.cz>
1087         * Makefile.in: Support --with-sphinx-build.
1088         * configure.ac: Likewise..
1089         * configure: Regenerate.
1091 2022-11-14  Martin Liska  <mliska@suse.cz>
1093         Revert:
1094         2022-11-09  Martin Liska  <mliska@suse.cz>
1096         * Makefile.in: Build info pages conditionally.
1098 2022-11-14  Martin Liska  <mliska@suse.cz>
1100         Revert:
1101         2022-11-14  Martin Liska  <mliska@suse.cz>
1103         * doc/amd-radeon-gcn.rst:
1104         Add trailing newline.
1105         * doc/copyright.rst:
1106         Add trailing newline.
1107         * doc/cuda-streams-usage.rst:
1108         Add trailing newline.
1109         * doc/enabling-openacc.rst:
1110         Add trailing newline.
1111         * doc/enabling-openmp.rst:
1112         Add trailing newline.
1113         * doc/first-invocation-nvidia-cublas-library-api.rst:
1114         Add trailing newline.
1115         * doc/first-invocation-openacc-library-api.rst:
1116         Add trailing newline.
1117         * doc/funding.rst:
1118         Add trailing newline.
1119         * doc/general-public-license-3.rst:
1120         Add trailing newline.
1121         * doc/gnu-free-documentation-license.rst:
1122         Add trailing newline.
1123         * doc/implementation-status-and-implementation-defined-behavior.rst:
1124         Add trailing newline.
1125         * doc/index.rst:
1126         Add trailing newline.
1127         * doc/indices-and-tables.rst:
1128         Add trailing newline.
1129         * doc/introduction.rst:
1130         Add trailing newline.
1131         * doc/memory-allocation-with-libmemkind.rst:
1132         Add trailing newline.
1133         * doc/nvptx.rst:
1134         Add trailing newline.
1135         * doc/offload-target-specifics.rst:
1136         Add trailing newline.
1137         * doc/openacc-environment-variables.rst:
1138         Add trailing newline.
1139         * doc/openacc-environment-variables/accdevicenum.rst:
1140         Add trailing newline.
1141         * doc/openacc-environment-variables/accdevicetype.rst:
1142         Add trailing newline.
1143         * doc/openacc-environment-variables/accproflib.rst:
1144         Add trailing newline.
1145         * doc/openacc-environment-variables/gccaccnotify.rst:
1146         Add trailing newline.
1147         * doc/openacc-introduction.rst:
1148         Add trailing newline.
1149         * doc/openacc-library-and-environment-variables.rst:
1150         Add trailing newline.
1151         * doc/openacc-library-interoperability.rst:
1152         Add trailing newline.
1153         * doc/openacc-profiling-interface.rst:
1154         Add trailing newline.
1155         * doc/openacc-runtime-library-routines.rst:
1156         Add trailing newline.
1157         * doc/openacc-runtime-library-routines/accasynctest.rst:
1158         Add trailing newline.
1159         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1160         Add trailing newline.
1161         * doc/openacc-runtime-library-routines/accattach.rst:
1162         Add trailing newline.
1163         * doc/openacc-runtime-library-routines/acccopyin.rst:
1164         Add trailing newline.
1165         * doc/openacc-runtime-library-routines/acccopyout.rst:
1166         Add trailing newline.
1167         * doc/openacc-runtime-library-routines/acccreate.rst:
1168         Add trailing newline.
1169         * doc/openacc-runtime-library-routines/accdelete.rst:
1170         Add trailing newline.
1171         * doc/openacc-runtime-library-routines/accdetach.rst:
1172         Add trailing newline.
1173         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1174         Add trailing newline.
1175         * doc/openacc-runtime-library-routines/accfree.rst:
1176         Add trailing newline.
1177         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1178         Add trailing newline.
1179         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1180         Add trailing newline.
1181         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1182         Add trailing newline.
1183         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1184         Add trailing newline.
1185         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1186         Add trailing newline.
1187         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1188         Add trailing newline.
1189         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1190         Add trailing newline.
1191         * doc/openacc-runtime-library-routines/acchostptr.rst:
1192         Add trailing newline.
1193         * doc/openacc-runtime-library-routines/accinit.rst:
1194         Add trailing newline.
1195         * doc/openacc-runtime-library-routines/accispresent.rst:
1196         Add trailing newline.
1197         * doc/openacc-runtime-library-routines/accmalloc.rst:
1198         Add trailing newline.
1199         * doc/openacc-runtime-library-routines/accmapdata.rst:
1200         Add trailing newline.
1201         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1202         Add trailing newline.
1203         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1204         Add trailing newline.
1205         * doc/openacc-runtime-library-routines/accondevice.rst:
1206         Add trailing newline.
1207         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1208         Add trailing newline.
1209         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1210         Add trailing newline.
1211         * doc/openacc-runtime-library-routines/accproflookup.rst:
1212         Add trailing newline.
1213         * doc/openacc-runtime-library-routines/accprofregister.rst:
1214         Add trailing newline.
1215         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1216         Add trailing newline.
1217         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1218         Add trailing newline.
1219         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1220         Add trailing newline.
1221         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1222         Add trailing newline.
1223         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1224         Add trailing newline.
1225         * doc/openacc-runtime-library-routines/accshutdown.rst:
1226         Add trailing newline.
1227         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1228         Add trailing newline.
1229         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1230         Add trailing newline.
1231         * doc/openacc-runtime-library-routines/accupdateself.rst:
1232         Add trailing newline.
1233         * doc/openacc-runtime-library-routines/accwait.rst:
1234         Add trailing newline.
1235         * doc/openacc-runtime-library-routines/accwaitall.rst:
1236         Add trailing newline.
1237         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1238         Add trailing newline.
1239         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1240         Add trailing newline.
1241         * doc/openmp-context-selectors.rst:
1242         Add trailing newline.
1243         * doc/openmp-environment-variables.rst:
1244         Add trailing newline.
1245         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1246         Add trailing newline.
1247         * doc/openmp-environment-variables/gompdebug.rst:
1248         Add trailing newline.
1249         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1250         Add trailing newline.
1251         * doc/openmp-environment-variables/gompspincount.rst:
1252         Add trailing newline.
1253         * doc/openmp-environment-variables/gompstacksize.rst:
1254         Add trailing newline.
1255         * doc/openmp-environment-variables/ompcancellation.rst:
1256         Add trailing newline.
1257         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1258         Add trailing newline.
1259         * doc/openmp-environment-variables/ompdisplayenv.rst:
1260         Add trailing newline.
1261         * doc/openmp-environment-variables/ompdynamic.rst:
1262         Add trailing newline.
1263         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1264         Add trailing newline.
1265         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1266         Add trailing newline.
1267         * doc/openmp-environment-variables/ompnested.rst:
1268         Add trailing newline.
1269         * doc/openmp-environment-variables/ompnumteams.rst:
1270         Add trailing newline.
1271         * doc/openmp-environment-variables/ompnumthreads.rst:
1272         Add trailing newline.
1273         * doc/openmp-environment-variables/ompplaces.rst:
1274         Add trailing newline.
1275         * doc/openmp-environment-variables/ompprocbind.rst:
1276         Add trailing newline.
1277         * doc/openmp-environment-variables/ompschedule.rst:
1278         Add trailing newline.
1279         * doc/openmp-environment-variables/ompstacksize.rst:
1280         Add trailing newline.
1281         * doc/openmp-environment-variables/omptargetoffload.rst:
1282         Add trailing newline.
1283         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1284         Add trailing newline.
1285         * doc/openmp-environment-variables/ompthreadlimit.rst:
1286         Add trailing newline.
1287         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1288         Add trailing newline.
1289         * doc/openmp-implementation-specifics.rst:
1290         Add trailing newline.
1291         * doc/openmp-implementation-status.rst:
1292         Add trailing newline.
1293         * doc/openmp-implementation-status/openmp-45.rst:
1294         Add trailing newline.
1295         * doc/openmp-implementation-status/openmp-50.rst:
1296         Add trailing newline.
1297         * doc/openmp-implementation-status/openmp-51.rst:
1298         Add trailing newline.
1299         * doc/openmp-implementation-status/openmp-52.rst:
1300         Add trailing newline.
1301         * doc/openmp-runtime-library-routines.rst:
1302         Add trailing newline.
1303         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1304         Add trailing newline.
1305         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1306         Add trailing newline.
1307         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1308         Add trailing newline.
1309         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1310         Add trailing newline.
1311         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1312         Add trailing newline.
1313         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1314         Add trailing newline.
1315         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1316         Add trailing newline.
1317         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1318         Add trailing newline.
1319         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1320         Add trailing newline.
1321         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1322         Add trailing newline.
1323         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1324         Add trailing newline.
1325         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1326         Add trailing newline.
1327         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1328         Add trailing newline.
1329         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1330         Add trailing newline.
1331         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1332         Add trailing newline.
1333         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1334         Add trailing newline.
1335         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1336         Add trailing newline.
1337         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1338         Add trailing newline.
1339         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1340         Add trailing newline.
1341         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1342         Add trailing newline.
1343         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1344         Add trailing newline.
1345         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1346         Add trailing newline.
1347         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1348         Add trailing newline.
1349         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1350         Add trailing newline.
1351         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1352         Add trailing newline.
1353         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1354         Add trailing newline.
1355         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1356         Add trailing newline.
1357         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1358         Add trailing newline.
1359         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1360         Add trailing newline.
1361         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1362         Add trailing newline.
1363         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1364         Add trailing newline.
1365         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1366         Add trailing newline.
1367         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1368         Add trailing newline.
1369         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1370         Add trailing newline.
1371         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1372         Add trailing newline.
1373         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1374         Add trailing newline.
1375         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1376         Add trailing newline.
1377         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1378         Add trailing newline.
1379         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1380         Add trailing newline.
1381         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1382         Add trailing newline.
1383         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1384         Add trailing newline.
1385         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1386         Add trailing newline.
1387         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1388         Add trailing newline.
1389         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1390         Add trailing newline.
1391         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1392         Add trailing newline.
1393         * doc/openmp-runtime-library-routines/omptestlock.rst:
1394         Add trailing newline.
1395         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1396         Add trailing newline.
1397         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1398         Add trailing newline.
1399         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1400         Add trailing newline.
1401         * doc/reporting-bugs.rst:
1402         Add trailing newline.
1403         * doc/the-libgomp-abi.rst:
1404         Add trailing newline.
1405         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1406         Add trailing newline.
1407         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1408         Add trailing newline.
1409         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1410         Add trailing newline.
1411         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1412         Add trailing newline.
1413         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1414         Add trailing newline.
1415         * doc/the-libgomp-abi/implementing-for-construct.rst:
1416         Add trailing newline.
1417         * doc/the-libgomp-abi/implementing-master-construct.rst:
1418         Add trailing newline.
1419         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1420         Add trailing newline.
1421         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1422         Add trailing newline.
1423         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1424         Add trailing newline.
1425         * doc/the-libgomp-abi/implementing-private-clause.rst:
1426         Add trailing newline.
1427         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1428         Add trailing newline.
1429         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1430         Add trailing newline.
1431         * doc/the-libgomp-abi/implementing-single-construct.rst:
1432         Add trailing newline.
1433         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1434         Add trailing newline.
1436 2022-11-14  Martin Liska  <mliska@suse.cz>
1438         Revert:
1439         2022-11-09  Martin Liska  <mliska@suse.cz>
1441         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1443 2022-11-14  Martin Liska  <mliska@suse.cz>
1445         Revert:
1446         2022-11-14  Martin Liska  <mliska@suse.cz>
1448         * doc/conf.py: Add newline at last line.
1450 2022-11-14  Martin Liska  <mliska@suse.cz>
1452         Revert:
1453         2022-11-14  Martin Liska  <mliska@suse.cz>
1455         PR other/107620
1456         * configure: Regenerate.
1457         * configure.ac: Always set sphinx-build.
1459 2022-11-13  Martin Liska  <mliska@suse.cz>
1461         PR other/107620
1462         * configure: Regenerate.
1463         * configure.ac: Always set sphinx-build.
1465 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
1467         PR libgomp/107641
1468         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1469         unsigned long.  Change type of upper from unsigned to unsigned long.
1471 2022-11-10  Martin Liska  <mliska@suse.cz>
1473         * doc/conf.py: Add newline at last line.
1475 2022-11-09  Martin Liska  <mliska@suse.cz>
1477         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1479 2022-11-09  Martin Liska  <mliska@suse.cz>
1481         * doc/amd-radeon-gcn.rst:
1482         Add trailing newline.
1483         * doc/copyright.rst:
1484         Add trailing newline.
1485         * doc/cuda-streams-usage.rst:
1486         Add trailing newline.
1487         * doc/enabling-openacc.rst:
1488         Add trailing newline.
1489         * doc/enabling-openmp.rst:
1490         Add trailing newline.
1491         * doc/first-invocation-nvidia-cublas-library-api.rst:
1492         Add trailing newline.
1493         * doc/first-invocation-openacc-library-api.rst:
1494         Add trailing newline.
1495         * doc/funding.rst:
1496         Add trailing newline.
1497         * doc/general-public-license-3.rst:
1498         Add trailing newline.
1499         * doc/gnu-free-documentation-license.rst:
1500         Add trailing newline.
1501         * doc/implementation-status-and-implementation-defined-behavior.rst:
1502         Add trailing newline.
1503         * doc/index.rst:
1504         Add trailing newline.
1505         * doc/indices-and-tables.rst:
1506         Add trailing newline.
1507         * doc/introduction.rst:
1508         Add trailing newline.
1509         * doc/memory-allocation-with-libmemkind.rst:
1510         Add trailing newline.
1511         * doc/nvptx.rst:
1512         Add trailing newline.
1513         * doc/offload-target-specifics.rst:
1514         Add trailing newline.
1515         * doc/openacc-environment-variables.rst:
1516         Add trailing newline.
1517         * doc/openacc-environment-variables/accdevicenum.rst:
1518         Add trailing newline.
1519         * doc/openacc-environment-variables/accdevicetype.rst:
1520         Add trailing newline.
1521         * doc/openacc-environment-variables/accproflib.rst:
1522         Add trailing newline.
1523         * doc/openacc-environment-variables/gccaccnotify.rst:
1524         Add trailing newline.
1525         * doc/openacc-introduction.rst:
1526         Add trailing newline.
1527         * doc/openacc-library-and-environment-variables.rst:
1528         Add trailing newline.
1529         * doc/openacc-library-interoperability.rst:
1530         Add trailing newline.
1531         * doc/openacc-profiling-interface.rst:
1532         Add trailing newline.
1533         * doc/openacc-runtime-library-routines.rst:
1534         Add trailing newline.
1535         * doc/openacc-runtime-library-routines/accasynctest.rst:
1536         Add trailing newline.
1537         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1538         Add trailing newline.
1539         * doc/openacc-runtime-library-routines/accattach.rst:
1540         Add trailing newline.
1541         * doc/openacc-runtime-library-routines/acccopyin.rst:
1542         Add trailing newline.
1543         * doc/openacc-runtime-library-routines/acccopyout.rst:
1544         Add trailing newline.
1545         * doc/openacc-runtime-library-routines/acccreate.rst:
1546         Add trailing newline.
1547         * doc/openacc-runtime-library-routines/accdelete.rst:
1548         Add trailing newline.
1549         * doc/openacc-runtime-library-routines/accdetach.rst:
1550         Add trailing newline.
1551         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1552         Add trailing newline.
1553         * doc/openacc-runtime-library-routines/accfree.rst:
1554         Add trailing newline.
1555         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1556         Add trailing newline.
1557         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1558         Add trailing newline.
1559         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1560         Add trailing newline.
1561         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1562         Add trailing newline.
1563         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1564         Add trailing newline.
1565         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1566         Add trailing newline.
1567         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1568         Add trailing newline.
1569         * doc/openacc-runtime-library-routines/acchostptr.rst:
1570         Add trailing newline.
1571         * doc/openacc-runtime-library-routines/accinit.rst:
1572         Add trailing newline.
1573         * doc/openacc-runtime-library-routines/accispresent.rst:
1574         Add trailing newline.
1575         * doc/openacc-runtime-library-routines/accmalloc.rst:
1576         Add trailing newline.
1577         * doc/openacc-runtime-library-routines/accmapdata.rst:
1578         Add trailing newline.
1579         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1580         Add trailing newline.
1581         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1582         Add trailing newline.
1583         * doc/openacc-runtime-library-routines/accondevice.rst:
1584         Add trailing newline.
1585         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1586         Add trailing newline.
1587         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1588         Add trailing newline.
1589         * doc/openacc-runtime-library-routines/accproflookup.rst:
1590         Add trailing newline.
1591         * doc/openacc-runtime-library-routines/accprofregister.rst:
1592         Add trailing newline.
1593         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1594         Add trailing newline.
1595         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1596         Add trailing newline.
1597         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1598         Add trailing newline.
1599         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1600         Add trailing newline.
1601         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1602         Add trailing newline.
1603         * doc/openacc-runtime-library-routines/accshutdown.rst:
1604         Add trailing newline.
1605         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1606         Add trailing newline.
1607         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1608         Add trailing newline.
1609         * doc/openacc-runtime-library-routines/accupdateself.rst:
1610         Add trailing newline.
1611         * doc/openacc-runtime-library-routines/accwait.rst:
1612         Add trailing newline.
1613         * doc/openacc-runtime-library-routines/accwaitall.rst:
1614         Add trailing newline.
1615         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1616         Add trailing newline.
1617         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1618         Add trailing newline.
1619         * doc/openmp-context-selectors.rst:
1620         Add trailing newline.
1621         * doc/openmp-environment-variables.rst:
1622         Add trailing newline.
1623         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1624         Add trailing newline.
1625         * doc/openmp-environment-variables/gompdebug.rst:
1626         Add trailing newline.
1627         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1628         Add trailing newline.
1629         * doc/openmp-environment-variables/gompspincount.rst:
1630         Add trailing newline.
1631         * doc/openmp-environment-variables/gompstacksize.rst:
1632         Add trailing newline.
1633         * doc/openmp-environment-variables/ompcancellation.rst:
1634         Add trailing newline.
1635         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1636         Add trailing newline.
1637         * doc/openmp-environment-variables/ompdisplayenv.rst:
1638         Add trailing newline.
1639         * doc/openmp-environment-variables/ompdynamic.rst:
1640         Add trailing newline.
1641         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1642         Add trailing newline.
1643         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1644         Add trailing newline.
1645         * doc/openmp-environment-variables/ompnested.rst:
1646         Add trailing newline.
1647         * doc/openmp-environment-variables/ompnumteams.rst:
1648         Add trailing newline.
1649         * doc/openmp-environment-variables/ompnumthreads.rst:
1650         Add trailing newline.
1651         * doc/openmp-environment-variables/ompplaces.rst:
1652         Add trailing newline.
1653         * doc/openmp-environment-variables/ompprocbind.rst:
1654         Add trailing newline.
1655         * doc/openmp-environment-variables/ompschedule.rst:
1656         Add trailing newline.
1657         * doc/openmp-environment-variables/ompstacksize.rst:
1658         Add trailing newline.
1659         * doc/openmp-environment-variables/omptargetoffload.rst:
1660         Add trailing newline.
1661         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1662         Add trailing newline.
1663         * doc/openmp-environment-variables/ompthreadlimit.rst:
1664         Add trailing newline.
1665         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1666         Add trailing newline.
1667         * doc/openmp-implementation-specifics.rst:
1668         Add trailing newline.
1669         * doc/openmp-implementation-status.rst:
1670         Add trailing newline.
1671         * doc/openmp-implementation-status/openmp-45.rst:
1672         Add trailing newline.
1673         * doc/openmp-implementation-status/openmp-50.rst:
1674         Add trailing newline.
1675         * doc/openmp-implementation-status/openmp-51.rst:
1676         Add trailing newline.
1677         * doc/openmp-implementation-status/openmp-52.rst:
1678         Add trailing newline.
1679         * doc/openmp-runtime-library-routines.rst:
1680         Add trailing newline.
1681         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1682         Add trailing newline.
1683         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1684         Add trailing newline.
1685         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1686         Add trailing newline.
1687         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1688         Add trailing newline.
1689         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1690         Add trailing newline.
1691         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1692         Add trailing newline.
1693         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1694         Add trailing newline.
1695         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1696         Add trailing newline.
1697         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1698         Add trailing newline.
1699         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1700         Add trailing newline.
1701         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1702         Add trailing newline.
1703         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1704         Add trailing newline.
1705         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1706         Add trailing newline.
1707         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1708         Add trailing newline.
1709         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1710         Add trailing newline.
1711         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1712         Add trailing newline.
1713         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1714         Add trailing newline.
1715         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1716         Add trailing newline.
1717         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1718         Add trailing newline.
1719         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1720         Add trailing newline.
1721         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1722         Add trailing newline.
1723         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1724         Add trailing newline.
1725         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1726         Add trailing newline.
1727         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1728         Add trailing newline.
1729         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1730         Add trailing newline.
1731         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1732         Add trailing newline.
1733         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1734         Add trailing newline.
1735         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1736         Add trailing newline.
1737         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1738         Add trailing newline.
1739         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1740         Add trailing newline.
1741         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1742         Add trailing newline.
1743         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1744         Add trailing newline.
1745         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1746         Add trailing newline.
1747         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1748         Add trailing newline.
1749         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1750         Add trailing newline.
1751         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1752         Add trailing newline.
1753         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1754         Add trailing newline.
1755         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1756         Add trailing newline.
1757         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1758         Add trailing newline.
1759         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1760         Add trailing newline.
1761         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1762         Add trailing newline.
1763         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1764         Add trailing newline.
1765         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1766         Add trailing newline.
1767         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1768         Add trailing newline.
1769         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1770         Add trailing newline.
1771         * doc/openmp-runtime-library-routines/omptestlock.rst:
1772         Add trailing newline.
1773         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1774         Add trailing newline.
1775         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1776         Add trailing newline.
1777         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1778         Add trailing newline.
1779         * doc/reporting-bugs.rst:
1780         Add trailing newline.
1781         * doc/the-libgomp-abi.rst:
1782         Add trailing newline.
1783         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1784         Add trailing newline.
1785         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1786         Add trailing newline.
1787         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1788         Add trailing newline.
1789         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1790         Add trailing newline.
1791         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1792         Add trailing newline.
1793         * doc/the-libgomp-abi/implementing-for-construct.rst:
1794         Add trailing newline.
1795         * doc/the-libgomp-abi/implementing-master-construct.rst:
1796         Add trailing newline.
1797         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1798         Add trailing newline.
1799         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1800         Add trailing newline.
1801         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1802         Add trailing newline.
1803         * doc/the-libgomp-abi/implementing-private-clause.rst:
1804         Add trailing newline.
1805         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1806         Add trailing newline.
1807         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1808         Add trailing newline.
1809         * doc/the-libgomp-abi/implementing-single-construct.rst:
1810         Add trailing newline.
1811         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1812         Add trailing newline.
1814 2022-11-09  Martin Liska  <mliska@suse.cz>
1816         * Makefile.in: Build info pages conditionally.
1818 2022-11-09  Martin Liska  <mliska@suse.cz>
1820         * Makefile.in: Support --with-sphinx-build.
1821         * configure.ac: Likewise..
1822         * configure: Regenerate.
1824 2022-11-09  Martin Liska  <mliska@suse.cz>
1826         * libgomp.texi: Removed.
1828 2022-11-09  Martin Liska  <mliska@suse.cz>
1830         * Makefile.in: Support Sphinx based documentation.
1832 2022-11-09  Martin Liska  <mliska@suse.cz>
1834         * doc/amd-radeon-gcn.rst: New file.
1835         * doc/conf.py: New file.
1836         * doc/copyright.rst: New file.
1837         * doc/cuda-streams-usage.rst: New file.
1838         * doc/enabling-openacc.rst: New file.
1839         * doc/enabling-openmp.rst: New file.
1840         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1841         * doc/first-invocation-openacc-library-api.rst: New file.
1842         * doc/funding.rst: New file.
1843         * doc/general-public-license-3.rst: New file.
1844         * doc/gnu-free-documentation-license.rst: New file.
1845         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1846         * doc/index.rst: New file.
1847         * doc/indices-and-tables.rst: New file.
1848         * doc/introduction.rst: New file.
1849         * doc/memory-allocation-with-libmemkind.rst: New file.
1850         * doc/nvptx.rst: New file.
1851         * doc/offload-target-specifics.rst: New file.
1852         * doc/openacc-environment-variables.rst: New file.
1853         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1854         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1855         * doc/openacc-environment-variables/accproflib.rst: New file.
1856         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1857         * doc/openacc-introduction.rst: New file.
1858         * doc/openacc-library-and-environment-variables.rst: New file.
1859         * doc/openacc-library-interoperability.rst: New file.
1860         * doc/openacc-profiling-interface.rst: New file.
1861         * doc/openacc-runtime-library-routines.rst: New file.
1862         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1863         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1864         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1865         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1866         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1867         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1868         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1869         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1870         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1871         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1872         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1873         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1874         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1875         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1876         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1877         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1878         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1879         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1880         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1881         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1882         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1883         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1884         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1885         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1886         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1887         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1888         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1889         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1890         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1891         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1892         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1893         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1894         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1895         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1896         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1897         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1898         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1899         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1900         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1901         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1902         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1903         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1904         * doc/openmp-context-selectors.rst: New file.
1905         * doc/openmp-environment-variables.rst: New file.
1906         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1907         * doc/openmp-environment-variables/gompdebug.rst: New file.
1908         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1909         * doc/openmp-environment-variables/gompspincount.rst: New file.
1910         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1911         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1912         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1913         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1914         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1915         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1916         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1917         * doc/openmp-environment-variables/ompnested.rst: New file.
1918         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1919         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1920         * doc/openmp-environment-variables/ompplaces.rst: New file.
1921         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1922         * doc/openmp-environment-variables/ompschedule.rst: New file.
1923         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1924         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1925         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1926         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1927         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1928         * doc/openmp-implementation-specifics.rst: New file.
1929         * doc/openmp-implementation-status.rst: New file.
1930         * doc/openmp-implementation-status/openmp-45.rst: New file.
1931         * doc/openmp-implementation-status/openmp-50.rst: New file.
1932         * doc/openmp-implementation-status/openmp-51.rst: New file.
1933         * doc/openmp-implementation-status/openmp-52.rst: New file.
1934         * doc/openmp-runtime-library-routines.rst: New file.
1935         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1936         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1937         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1938         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1939         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1940         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1941         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1942         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1943         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1944         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1945         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1946         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1947         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1948         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1949         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1950         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1951         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1952         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1953         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1954         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1955         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1956         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1957         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1958         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1959         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1960         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1961         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1962         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1963         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1964         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1965         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1966         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1967         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1968         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1969         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1970         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1971         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1972         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1973         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1974         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1975         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1976         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1977         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1978         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1979         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1980         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1981         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1982         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1983         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1984         * doc/reporting-bugs.rst: New file.
1985         * doc/the-libgomp-abi.rst: New file.
1986         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1987         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1988         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1989         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1990         New file.
1991         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1992         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1993         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1994         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1995         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1996         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1997         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1998         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1999         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2000         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2001         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2003 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2005         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2006         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2007         documentation.
2008         * plugin/configfrag.ac <enable_offload_targets>
2009         [*-intelmic-* | *-intelmicemul-*]: Remove.
2010         * configure: Regenerate.
2011         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2012         handling.
2013         (offload_target_to_openacc_device_type)
2014         [$offload_target = *-intelmic*]: Remove.
2015         (check_effective_target_offload_device_intel_mic)
2016         (check_effective_target_offload_device_any_intel_mic): Remove.
2017         * testsuite/libgomp.c-c++-common/on_device_arch.h
2018         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2019         (any_device_arch_intel_mic): Remove.
2020         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2021         'offload_device_any_intel_mic' XFAIL.
2022         * testsuite/libgomp.fortran/target10.f90: Likewise.
2024 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2026         * testsuite/libgomp.fortran/target-11.f90: New test.
2027         * testsuite/libgomp.fortran/target-13.f90: New test.
2029 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2031         PR libgomp/106643
2032         PR fortran/96668
2033         * oacc-mem.c (goacc_enter_data_internal): Support
2034         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2035         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2036         Adjust.
2037         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2039 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2041         PR libgomp/106643
2042         * oacc-mem.c (goacc_enter_data_internal): Support
2043         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2044         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2045         New.
2046         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2047         New.
2049 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2051         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2052         New.
2054 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2056         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2057         New.
2059 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2060             Thomas Schwinge  <thomas@codesourcery.com>
2062         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2064 2022-10-28  Julian Brown  <julian@codesourcery.com>
2065             Thomas Schwinge  <thomas@codesourcery.com>
2067         PR middle-end/90115
2068         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2069         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2070         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2071         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2072         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2074 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2076         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2077         'ptx_dev->rev_data'.
2079 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2081         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2082         'static' for this variable.
2083         * config/nvptx/libgomp-nvptx.h: New file.
2084         * config/nvptx/target.c: Include it.
2085         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2086         (GOMP_REV_OFFLOAD_VAR): Declare var.
2087         (GOMP_target_ext): Handle reverse offload.
2088         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2089         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2090         * target.c (gomp_target_rev): ... this new stub function.
2091         * libgomp.h (gomp_target_rev): Declare.
2092         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2093         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2094         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2095         (struct ptx_device): Add rev_data member.
2096         (nvptx_open_device): Remove async_engines query, last used in
2097         r10-304-g1f4c5b9b; add unified-address assert check.
2098         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2099         support.
2100         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2101         offload functions exist. Make offload var available
2102         on host and device.
2103         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2104         (GOMP_OFFLOAD_run): Handle reverse offload.
2106 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2108         PR tree-optimization/107195
2109         PR target/107344
2110         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2111         regions checking.
2113 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2115         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2116         New.
2117         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2118         on_device_arch_gcn): New.
2119         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2120         requires-4.c but using heap-allocated memory.
2122 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2124         PR target/105421
2125         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2127 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2129         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2130         '-foffload-options' syntax.
2132 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2134         * testsuite/libgomp.fortran/task-7.f90: New test.
2135         * testsuite/libgomp.fortran/task-8.f90: New test.
2136         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2137         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2138         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2139         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2140         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2142 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2144         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2145         in deprecation bullet.
2147 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2149         * omp.h.in (omp_in_explicit_task): Declare.
2150         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2151         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2152         * libgomp.map (OMP_5.2): New symbol version, export
2153         omp_in_explicit_task and omp_in_explicit_task_.
2154         * task.c (omp_in_explicit_task): New function.
2155         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2156         (omp_in_explicit_task_): New function.
2157         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2158         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2159         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2160         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2162 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2164         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2165         from within explicit task.
2166         * target.c (GOMP_target_ext): Likewise.
2167         * testsuite/libgomp.c/task-7.c: New test.
2168         * testsuite/libgomp.c/task-8.c: New test.
2169         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2170         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2172 2022-10-12  Martin Liska  <mliska@suse.cz>
2174         * configure: Regenerate.
2176 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2177             Olivier Hainque  <hainque@adacore.com>
2179         * configure: Regenerate.
2181 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2183         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2185 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
2187         * libgomp.texi (Support begin/end declare target syntax in C/C++):
2188         Mark as implemented.
2190 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
2192         PR fortran/105318
2193         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2195 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
2197         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2198         for C/C++. Remove duplicated 'begin declare target' entry.
2200 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
2202         PR c/106981
2203         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2205 2022-09-14  Julian Brown  <julian@codesourcery.com>
2207         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2208         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2209         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2210         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2211         test to here, make "run" test.
2213 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
2215         PR libgomp/106906
2216         * env.c (get_icv_member_addr): Cast false to void * before assigning
2217         it to icv_addr[1], and comment the whole assignment out.
2219 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
2221         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2222         (nvptx): ... here.
2224 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2226         * libgomp.texi (Offload-Target Specifics: nvptx): Document
2227         that reverse offload requires >= -march=sm_35.
2228         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2229         with -misa=sm_35.
2230         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2231         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2232         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2233         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2234         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2236 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2238         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2239         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2241 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
2243         PR libgomp/106894
2244         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2245         (main): Avoid tests for which corresponding non-_ALL suffixed variable
2246         is in the environment, or for OMP_NUM_TEAMS on the device
2247         OMP_NUM_TEAMS_DEV_?.
2249 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
2251         * env.c (initialize_env): Include libiberty environ.h.
2253 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2255         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2256         function address table '$offload_func_table' if rev_fn_table
2257         is not NULL.
2259 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2261         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2262         .offload_func_table to populate rev_fn_table when requested.
2264 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2266         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2267         'uint64_t **rev_fn_table' argument.
2268         * oacc-host.c (host_load_image): Likewise.
2269         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2270         currently unused.
2271         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2272         * target.c (gomp_load_image_to_device): Update call but pass
2273         NULL for now.
2275 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
2277         PR libgomp/106894
2278         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2279         char * for dest[1] initialization from params[1].  Formatting fixes.
2281 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2283         PR fortran/106670
2284         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2286 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2288         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2289         section; move OpenMP Context Selectors from ...
2290         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2291         'nvptx' sections.
2293 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
2295         * config/gcn/icv-device.c (omp_get_default_device): Return device-
2296         specific ICV.
2297         (omp_get_max_teams): Added for GCN devices.
2298         (omp_set_num_teams): Likewise.
2299         (ialias): Likewise.
2300         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2301         specific ICV.
2302         (omp_get_max_teams): Added for NVPTX devices.
2303         (omp_set_num_teams): Likewise.
2304         (ialias): Likewise.
2305         * env.c (struct gomp_icv_list): New struct to store entries of initial
2306         ICV values.
2307         (struct gomp_offload_icv_list): New struct to store entries of device-
2308         specific ICV values that are copied to the device and back.
2309         (struct gomp_default_icv_values): New struct to store default values of
2310         ICVs according to the OpenMP standard.
2311         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2312         (print_env_var_error): Function that prints an error for invalid values
2313         for ICVs.
2314         (parse_unsigned_long_1): Removed getenv.  Generalized.
2315         (parse_unsigned_long): Likewise.
2316         (parse_int_1): Likewise.
2317         (parse_int): Likewise.
2318         (parse_int_secure): Likewise.
2319         (parse_unsigned_long_list): Likewise.
2320         (parse_target_offload): Likewise.
2321         (parse_bind_var): Likewise.
2322         (parse_stacksize): Likewise.
2323         (parse_boolean): Likewise.
2324         (parse_wait_policy): Likewise.
2325         (parse_allocator): Likewise.
2326         (omp_display_env): Extended to output different variants of environment
2327         variables.
2328         (print_schedule): New helper function for omp_display_env which prints
2329         the values of run_sched_var.
2330         (print_proc_bind): New helper function for omp_display_env which prints
2331         the values of proc_bind_var.
2332         (enum gomp_parse_type): Collection of types used for parsing environment
2333         variables.
2334         (ENTRY): Preprocess string lengths of environment variables.
2335         (OMP_VAR_CNT): Preprocess table size.
2336         (OMP_HOST_VAR_CNT): Likewise.
2337         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2338         number.
2339         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2340         (gomp_set_icv_flag): Sets a flag for a particular ICV.
2341         (print_device_specific_icvs): New helper function for omp_display_env to
2342         print device specific ICV values.
2343         (get_device_num): New helper function for parse_device_specific.
2344         Extracts the device number from an environment variable name.
2345         (get_icv_member_addr): Gets the memory address for a particular member
2346         of an ICV struct.
2347         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2348         (initialize_icvs): New function to initialize a gomp_initial_icvs
2349         struct.
2350         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2351         (startswith): Checks if a string starts with a given prefix.
2352         (initialize_env): Extended to parse the new syntax of environment
2353         variables.
2354         * icv-device.c (omp_get_max_teams): Added.
2355         (ialias): Likewise.
2356         (omp_set_num_teams): Likewise.
2357         * icv.c (omp_set_num_teams): Moved to icv-device.c.
2358         (omp_get_max_teams): Likewise.
2359         (ialias): Likewise.
2360         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2361         (GOMP_ADDITIONAL_ICVS): New target-side struct that
2362         holds the designated ICVs of the target device.
2363         * libgomp.h (enum gomp_icvs): Collection of ICVs.
2364         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2365         no suffix.
2366         (enum gomp_env_suffix): Collection of possible suffixes of environment
2367         variables.
2368         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2369         initial values.
2370         (struct gomp_default_icv):New struct to hold ICVs for which we need
2371         to store initial values.
2372         (struct gomp_icv_list): Definition of a linked list that is used for
2373         storing ICVs for the devices and also for _DEV, _ALL, and without
2374         suffix.
2375         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2376         a device.
2377         (struct gomp_offload_icv_list): Definition of a linked list that holds
2378         device-specific ICVs that are copied to devices.
2379         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2380         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2381         * libgomp.texi: Updated.
2382         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2383         further ICVs from the offload image.
2384         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2385         * target.c (gomp_get_offload_icv_item): Get a list item of
2386         gomp_offload_icv_list.
2387         (get_gomp_offload_icvs): New. Returns the ICV values
2388         depending on the device num and the variable hierarchy.
2389         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2390         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2391         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2392         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2393         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2394         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2395         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2397 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
2399         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2400         fully supported.
2401         * testsuite/libgomp.c/doacross-4.c: New test.
2402         * testsuite/libgomp.c/doacross-5.c: New test.
2403         * testsuite/libgomp.c/doacross-6.c: New test.
2404         * testsuite/libgomp.c/doacross-7.c: New test.
2406 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
2408         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2410 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
2412         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2413         refer to 'requires'.
2414         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2415         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2416         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2417         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2419 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2421         PR middle-end/106548
2422         * testsuite/libgomp.c/linear-2.c: New test.
2424 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2426         * splay-tree.h: Fix splay_* macro unsetting if
2427         splay_tree_prefix is defined.
2429 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
2431         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2433 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
2435         PR middle-end/106449
2436         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2438 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
2440         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2442 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
2444         PR middle-end/101551
2445         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2446         'offloading_enabled' diagnostics issue.
2448 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
2450         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2451         '_Pragma' diagnostics verification.
2453 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
2455         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2456         improved warning locations.
2457         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2459 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2461         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2462         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2463         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2464         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2465         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2467 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2469         * target.c (GOMP_offload_register, GOMP_offload_unregister):
2470         Denote as legacy entry points.
2471         * testsuite/lib/libgomp.exp
2472         (check_effective_target_offload_target_any): New proc.
2473         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2474         'offload_target_any'.
2475         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2476         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2477         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2479 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2481         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2482         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2484 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2486         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2488 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
2490         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2491         'data'.
2492         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
2494 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2495             Jakub Jelinek  <jakub@redhat.com>
2497         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2499 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2500             Chung-Lin Tang  <cltang@codesourcery.com>
2501             Thomas Schwinge  <thomas@codesourcery.com>
2503         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2504         omp_requires_mask arg.
2505         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2506         return -1 when device available but omp_requires_mask != 0.
2507         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2508         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2509         Update call.
2510         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2511         goacc_attach_host_thread_to_device, acc_get_num_devices,
2512         acc_set_device_num, get_property_any): Likewise.
2513         * target.c (omp_requires_mask): New global var.
2514         (gomp_requires_to_name): New.
2515         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2516         (gomp_target_init): Handle omp_requires_mask.
2517         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2518         (OpenMP 5.1): Add a missed item.
2519         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2520         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2521         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2522         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2523         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2524         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2525         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2526         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2527         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2528         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2529         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2530         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2531         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2532         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2533         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2534         * testsuite/libgomp.fortran/requires-1.f90: New test.
2536 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
2538         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2539         with fromto as implemented.
2541 2022-06-28  Martin Liska  <mliska@suse.cz>
2543         * acinclude.m4: Fix typo in mold linker detection.
2544         * Makefile.in: Regenerate.
2545         * configure: Regenerate.
2547 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
2548             Paul Iannetta  <piannetta@kalrayinc.com>
2550         PR libgomp/106045
2551         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2553 2022-06-17  Martin Liska  <mliska@suse.cz>
2555         * libgomp.texi: Add table header for new features of
2556         OpenMP 5.2.
2558 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
2560         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2561         q to ddress of an automatic variable.  Use -5 instead of -1 in
2562         omp_get_mapped_ptr call.  Add test with omp_initial_device.
2563         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2564         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
2565         Renumber stop arguments afterwards.
2567 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
2569         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2570         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2571         parameters.
2572         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2573         * target.c (resolve_device): Add remapped argument, handle
2574         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2575         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2576         if remapped, otherwise treat omp_initial_device that way.  For
2577         omp_invalid_device, always emit gomp_fatal, even when
2578         OMP_TARGET_OFFLOAD isn't mandatory.
2579         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2580         GOMP_target_update, GOMP_target_update_ext,
2581         GOMP_target_enter_exit_data): Pass true as remapped argument to
2582         resolve_device.
2583         (omp_target_alloc, omp_target_free, omp_target_is_present,
2584         omp_target_memcpy_check, omp_target_associate_ptr,
2585         omp_target_disassociate_ptr, omp_get_mapped_ptr,
2586         omp_target_is_accessible): Pass false as remapped argument to
2587         resolve_device.  Treat omp_initial_device the same as
2588         gomp_get_num_devices ().  Don't bypass resolve_device calls if
2589         device_num is negative.
2590         (omp_pause_resource): Treat omp_initial_device the same as
2591         gomp_get_num_devices ().  Call resolve_device.
2592         * icv-device.c (omp_set_default_device): Always set to device_num
2593         even when it is negative.
2594         * libgomp.texi: Document that Conforming device numbers,
2595         omp_initial_device and omp_invalid_device is implemented.
2596         * testsuite/libgomp.c/target-41.c (main): Add test with
2597         omp_initial_device.
2598         * testsuite/libgomp.c/target-45.c: New test.
2599         * testsuite/libgomp.c/target-46.c: New test.
2600         * testsuite/libgomp.c/target-47.c: New test.
2601         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2602         test with omp_initial_device.  Use -5 instead of -1 for negative value
2603         test.
2604         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2605         Likewise.  Reorder stop numbers.
2607 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
2609         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2610         rather than "libmemkind.so".
2612 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2614         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2615         * plugin/configfrag.ac (--with-cuda-driver)
2616         (--with-cuda-driver-include, --with-cuda-driver-lib)
2617         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2618         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2619         Remove.
2620         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2621         (cuda_driver_lib): Remove.
2622         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2623         * Makefile.in: Regenerate.
2624         * configure: Likewise.
2625         * testsuite/Makefile.in: Likewise.
2627 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2629         * config/linux/allocator.c: Fix up #include directive.
2631 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2633         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2634         (enum gomp_memkind_kind): New type.
2635         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2636         is defined.
2637         (struct gomp_memkind_data): New type.
2638         (memkind_data, memkind_data_once): New variables.
2639         (gomp_init_memkind, gomp_get_memkind): New functions.
2640         (omp_init_allocator): Initialize data.memkind, don't fail for
2641         omp_high_bw_mem_space if libmemkind supports it.
2642         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2643         memkind support of LIBGOMP_USE_MEMKIND is defined.
2644         * config/linux/allocator.c: New file.
2646 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
2648         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2649         * testsuite/libgomp.fortran/scope-2.f90: New test.
2651 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
2653         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2655 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
2657         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2658         scope construct with allocate clause.
2659         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2660         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2662 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
2664         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2665         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2666         explicit 'to' and 'enter' clause.
2667         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2669 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
2671         PR libgomp/105745
2672         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2673         defined(HAVE__ALIGNED_MALLOC) case.
2674         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2675         handling as last option before fallback instead of first.
2676         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2677         _aligned_free.
2679 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
2681         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2682         clauses to enter.
2683         * testsuite/libgomp.c/target-41.c: Likewise.
2685 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
2687         * libgomp.texi (Other new OpenMP 5.1 features): Add
2688         'begin declare target'.
2689         (Other new OpenMP 5.2 features): New.
2691 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
2693         * task.c (gomp_task_run_post_handle_dependers): If empty_task
2694         is the last task taskwait depend depends on, wake it up.
2695         Similarly if it is the last child of a taskgroup, use atomic
2696         store instead of decrement and awak taskgroup wait if any.
2697         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2699 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
2701         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2702         EF_AMDGPU_MACH_AMDGCN_GFX90a.
2703         (gcn_gfx90a_s): New.
2704         (isa_hsa_name): Support gfx90a.
2705         (isa_code): Likewise.
2707 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
2709         PR c/105378
2710         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2711         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2713 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
2715         PR c/105378
2716         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2717         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2718         * task.c (empty_task): New function.
2719         (gomp_task_run_post_handle_depend_hash): Declare earlier.
2720         (gomp_task_run_post_handle_depend): Declare.
2721         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2722         for.
2723         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2724         (GOMP_taskwait_depend_nowait): New function.
2725         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2727 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
2729         PR fortran/104949
2730         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2731         Support attach for GOMP_MAP_FIRSTPRIVATE.
2732         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2733         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2734         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2736 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
2738         * libgomp.map: Added omp_target_memcpy_async and
2739         omp_target_memcpy_rect_async.
2740         * libgomp.texi: Both functions are now supported.
2741         * omp.h.in: Added omp_target_memcpy_async and
2742         omp_target_memcpy_rect_async.
2743         * omp_lib.f90.in: Added interfaces for both new functions.
2744         * omp_lib.h.in: Likewise.
2745         * target.c (ialias_redirect): Added for GOMP_task.
2746         (omp_target_memcpy): Restructured into check and copy part.
2747         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2748         omp_target_memcpy_async that checks requirements.
2749         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2750         omp_target_memcpy_async that performs the memcpy.
2751         (omp_target_memcpy_async_helper): New helper function that is used in
2752         omp_target_memcpy_async for the asynchronous task.
2753         (omp_target_memcpy_async): Added.
2754         (omp_target_memcpy_rect): Restructured into check and copy part.
2755         (omp_target_memcpy_rect_check): New helper function for
2756         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2757         requirements.
2758         (omp_target_memcpy_rect_copy): New helper function for
2759         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2760         the memcpy.
2761         (omp_target_memcpy_rect_async_helper): New helper function that is used
2762         in omp_target_memcpy_rect_async for the asynchronous task.
2763         (omp_target_memcpy_rect_async): Added.
2764         * task.c (ialias): Added for GOMP_task.
2765         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2766         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2767         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2768         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2769         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2770         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2771         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2772         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2774 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
2776         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2777         (OpenMP Context Selectors): Add missing comma.
2778         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2779         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2780         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2781         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2783 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2785         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2786         comment for omp_display_env feature.
2788 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2790         * libgomp.texi (Offload-Target Specifics): New chapter; add section
2791         to document OpenMP context selectors.
2793 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2795         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2796         from bool to unsigned char.
2797         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2798         Ignore dependencies where
2799         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2800         rather than just task->depend[i].is_in && ent->is_in.  Remember
2801         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2802         conditional.
2803         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2804         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2805         rather than just elem.is_in && ent->is_in.
2806         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2807         inoutset depend-kind.
2808         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2809         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2810         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2812 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2814         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2816 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2818         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2819         * testsuite/libgomp.fortran/depend-5.f90: New test.
2820         * testsuite/libgomp.fortran/depend-6.f90: New test.
2821         * testsuite/libgomp.fortran/depend-7.f90: New test.
2823 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
2825         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2826         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2827         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2829 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2831         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2833 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2835         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2837 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
2839         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2840         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2841         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2842         append '$(PLUGIN_NVPTX_LDFLAGS)'.
2843         * Makefile.in: Regenerate.
2845 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2847         * Makefile.am (libgomp_la_LIBADD): Initialize.
2848         * plugin/configfrag.ac (DL_LIBS): New.
2849         (PLUGIN_GCN_LIBS): Remove.
2850         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2851         * plugin/Makefrag.am (libgomp_la_LIBADD)
2852         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2853         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2854         * Makefile.in: Regenerate.
2855         * config.h.in: Likewise.
2856         * configure: Likewise.
2857         * testsuite/Makefile.in: Likewise.
2859 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2861         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2862         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2863         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2864         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2865         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2866         'PLUGIN_NVPTX_LINK_LIBCUDA'.
2867         * Makefile.in: Regenerate.
2868         * config.h.in: Likewise.
2869         * configure: Likewise.
2871 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2873         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2874         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2875         * Makefile.in: Regenerate.
2876         * config.h.in: Likewise.
2877         * configure: Likewise.
2878         * testsuite/Makefile.in: Likewise.
2880 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
2882         * libgomp.h (struct gomp_task): Add depend_all_memory member.
2883         * task.c (gomp_init_task): Initialize depend_all_memory.
2884         (gomp_task_handle_depend): Handle omp_all_memory.
2885         (gomp_task_run_post_handle_depend_hash): Clear
2886         parent->depend_all_memory if equal to current task.
2887         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2888         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2889         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2890         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2892 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2894         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2895         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2896         * Makefile.in: Regenerate.
2897         * configure: Likewise.
2898         * testsuite/Makefile.in: Likewise.
2900 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2902         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2903         consider 'PLUGIN_GCN_CPPFLAGS'.
2904         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2905         'PLUGIN_GCN_LDFLAGS'.
2906         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2907         Remove.
2908         * Makefile.in: Regenerate.
2909         * configure: Likewise.
2910         * testsuite/Makefile.in: Likewise.
2912 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2914         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2915         (HSA_RUNTIME_LDFLAGS): Remove.
2916         * configure: Regenerate.
2918 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2920         * testsuite/lib/libgomp.exp (libgomp_init): Don't
2921         'append always_ld_library_path ":$hsa_runtime_lib"'.
2922         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2924 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
2926         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2927         multi-device testing.
2929 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
2931         * libgomp.map: Added omp_target_is_accessible.
2932         * libgomp.texi: Tagged omp_target_is_accessible as supported.
2933         * omp.h.in: Added omp_target_is_accessible.
2934         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2935         * omp_lib.h.in: Likewise.
2936         * target.c (omp_target_is_accessible): Added implementation of
2937         omp_target_is_accessible.
2938         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2939         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2941 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
2943         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2945 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2947         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2949 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2951         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2953 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
2955         * libgomp.map: Added omp_get_mapped_ptr.
2956         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2957         * omp.h.in: Added omp_get_mapped_ptr.
2958         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2959         * omp_lib.h.in: Likewise.
2960         * target.c (omp_get_mapped_ptr): Added implementation of
2961         omp_get_mapped_ptr.
2962         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2963         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2964         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2965         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2966         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2967         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2968         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2969         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2971 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
2973         PR fortran/104717
2974         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2975         privatization scanning.  For GCN offloading compilation, raise
2976         '-mgang-private-size'.
2978 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
2980         PR libgomp/105358
2981         * work.c (gomp_init_work_share): Don't mask of adjustment for
2982         dynamic long long realignment if struct gomp_work_share has smaller
2983         alignof than long long.
2984         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2985         struct gomp_work_share has smaller alignof than long long or if
2986         sizeof (struct gomp_work_share) is smaller than
2987         INLINE_ORDERED_TEAM_IDS_OFF.
2988         * loop_ull.c (GOMP_loop_ull_start): Likewise.
2989         * sections.c (GOMP_sections2_start): Likewise.
2991 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
2992             Thomas Schwinge  <thomas@codesourcery.com>
2994         PR fortran/104717
2995         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2997 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
2999         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3001 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3003         * plugin/cuda/cuda.h: Remove file.
3004         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3005         "cuda/cuda.h" instead of <cuda.h>.
3006         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3007         'PLUGIN_NVPTX_CPPFLAGS'.
3008         * configure: Regenerate.
3010 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3012         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3014 2022-04-04  Tom de Vries  <tdevries@suse.de>
3016         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3017         on_device_arch_nvptx instead of offload_target_nvptx.
3018         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3020 2022-04-01  Tom de Vries  <tdevries@suse.de>
3022         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3023         and use REC_DEPTH.
3024         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3026 2022-04-01  Tom de Vries  <tdevries@suse.de>
3028         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3029         num_workers check.
3031 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3032             Lulu Cheng  <chenglulu@loongson.cn>
3034         * configure.tgt: Add LoongArch triplet.
3036 2022-03-28  Tom de Vries  <tdevries@suse.de>
3038         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3039         instead of /libexec/.
3040         * configure: Regenerate.
3042 2022-03-25  Tom de Vries  <tdevries@suse.de>
3044         PR libgomp/105042
3045         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3046         execution time.
3047         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3048         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3050 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3052         PR middle-end/104285
3053         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3054         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3055         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3056         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3057         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3058         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3060 2022-03-22  Tom de Vries  <tdevries@suse.de>
3062         PR target/104916
3063         PR target/104783
3064         * testsuite/libgomp.c/pr104783-2.c: New test.
3066 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3068         PR fortran/103039
3069         * testsuite/libgomp.fortran/associate4.f90: New test.
3071 2022-03-18  Tom de Vries  <tdevries@suse.de>
3073         PR target/104952
3074         * testsuite/libgomp.c/pr104952-1.c: New test.
3075         * testsuite/libgomp.c/pr104952-2.c: New test.
3077 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3079         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3080         variable next to pl variable.
3082 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3084         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3085         Enhance.
3086         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3087         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3089 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3091         PR middle-end/90115
3092         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3093         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3095 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3097         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3098         omp_set_max_active_levels.
3099         * testsuite/libgomp.fortran/icv-8.f90: New test.
3101 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3103         PR testsuite/102841
3104         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3106 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3108         * libgomp.texi: Fix typo.
3110 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3112         PR middle-end/100280
3113         PR middle-end/104892
3114         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3115         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3116         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3117         Likewise.
3118         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3119         Likewise.
3120         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3121         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3122         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3123         Likewise.
3125 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3127         PR middle-end/104892
3128         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3129         to PR104892.
3130         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3131         enable '--param=openacc-kernels=decompose' and adjust.
3132         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3133         Likewise.
3134         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3135         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3136         Likewise.
3138 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3140         PR middle-end/90115
3141         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3142         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3143         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3144         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3146 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3148         PR middle-end/100280
3149         PR middle-end/104086
3150         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3151         Merge this...
3152         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3153         ..., and this...
3154         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3155         this, and adjust.
3156         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3157         Extend.
3159 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3161         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3162         trait.  Test last index in w and v array.  Remove redundant
3163         assignment to V(1).  Move alignment checks at the end of
3164         parallel region.
3166 2022-03-10  Tom de Vries  <tdevries@suse.de>
3168         * testsuite/libgomp.c/pr104783.c: New test.
3170 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3172         PR middle-end/90115
3173         PR middle-end/102330
3174         PR middle-end/104774
3175         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3176         Enhance.
3177         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3178         Adjust.
3179         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3180         Likewise.
3181         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3182         Likewise.
3183         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3184         Likewise.
3185         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3186         Likewise.
3187         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3188         Likewise.
3189         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3190         Likewise.
3191         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3192         Likewise.
3193         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3194         Likewise.
3195         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3196         Likewise.
3197         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3198         Likewise.
3199         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3200         Likewise.
3201         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3202         Likewise.
3203         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3204         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3205         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3207 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3209         PR middle-end/90115
3210         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3211         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3212         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3213         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3215 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3217         PR testsuite/104791
3218         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3219         expected diagnostics.
3221 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3223         PR middle-end/104784
3224         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3225         Test with '--param=openacc-kernels=decompose'.
3226         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3227         Likewise.
3228         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3229         Likewise.
3230         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3231         Likewise.
3232         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3233         Likewise.
3234         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3235         Likewise.
3236         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3237         Likewise.
3238         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3239         Likewise.
3240         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3241         Likewise.
3242         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3243         Likewise.
3244         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3245         Likewise.
3246         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3247         Likewise.
3248         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3249         Likewise.
3250         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3251         Likewise.
3252         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3253         Likewise.
3254         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3255         Likewise.
3256         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3257         Likewise.
3258         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3259         Likewise.
3260         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3261         Likewise.
3262         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3263         Likewise.
3264         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3265         Likewise.
3266         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3267         Likewise.
3268         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3269         Likewise.
3270         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3271         Likewise.
3272         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3273         Likewise.
3274         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3275         Likewise.
3276         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3277         Likewise.
3278         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3279         Likewise.
3280         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3281         Likewise.
3282         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3283         Likewise.
3284         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3285         Likewise.
3286         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3287         Likewise.
3288         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3289         Likewise.
3291 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3293         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3294         Test '-fopt-info-omp-all'.
3295         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3296         Likewise.
3297         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3298         Likewise.
3299         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3300         Likewise.
3301         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3302         Likewise.
3303         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3304         Likewise.
3305         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3306         Likewise.
3307         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3308         Likewise.
3309         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3310         Likewise.
3311         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3312         Likewise.
3313         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3314         Likewise.
3315         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3316         Likewise.
3317         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3318         Likewise.
3319         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3320         Likewise.
3321         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3322         Likewise.
3323         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3324         Likewise.
3325         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3326         Likewise.
3327         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3328         Likewise.
3329         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3330         Likewise.
3331         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3332         Likewise.
3333         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3334         Likewise.
3335         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3336         Likewise.
3337         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3338         Likewise.
3339         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3340         Likewise.
3341         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3342         Likewise.
3343         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3344         Likewise.
3345         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3346         Likewise.
3347         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3348         Likewise.
3349         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3350         Likewise.
3351         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3352         Likewise.
3353         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3354         Likewise.
3355         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3356         Likewise.
3357         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3358         Likewise.
3360 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3362         PR middle-end/100280
3363         PR middle-end/104132
3364         PR middle-end/104133
3365         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3366         Extend.
3368 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3370         PR middle-end/100280
3371         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3372         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3373         Likewise.
3375 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3377         PR middle-end/100280
3378         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3379         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3380         Likewise.
3382 2022-02-28  Tom de Vries  <tdevries@suse.de>
3384         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3385         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3386         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3387         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3388         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3389         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3391 2022-02-24  Tom de Vries  <tdevries@suse.de>
3393         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3394         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3395         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3396         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3397         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3398         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3399         * testsuite/libgomp.c/declare-variant-3.h: New header file.
3401 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3403         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3404         gang-redundant execution.
3406 2022-02-22  Tom de Vries  <tdevries@suse.de>
3408         PR target/99555
3409         * config/nvptx/bar.c (generation_to_barrier): New function, copied
3410         from config/rtems/bar.c.
3411         (futex_wait, futex_wake): New function.
3412         (do_spin, do_wait): New function, copied from config/linux/wait.h.
3413         (gomp_barrier_wait_end, gomp_barrier_wait_last)
3414         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3415         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3416         and replace with include of config/linux/bar.c.
3417         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3418         (gomp_barrier_init): Init new fields.
3419         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3420         workarounds.
3421         * testsuite/libgomp.c/pr99555-1.c: Same.
3422         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3424 2022-02-22  Tom de Vries  <tdevries@suse.de>
3426         PR testsuite/104146
3427         * testsuite/libgomp.c++/pr96390.C: Add additional-option
3428         -foffload=-Wa,--verify for nvptx.
3429         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3431 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
3433         * testsuite/libgomp.fortran/depend-4.f90: New test.
3435 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
3437         PR c++/102204
3438         * testsuite/libgomp.c++/target-virtual-1.C: New test.
3440 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
3442         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3443         * target.c (copy_firstprivate_data): Copy only if host address is not
3444         NULL.
3445         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3446         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3447         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3448         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3449         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3450         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3451         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3452         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3453         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3454         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3456 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
3458         PR libgomp/104385
3459         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3460         clear task->parent.
3461         * testsuite/libgomp.c/pr104385.c: New test.
3463 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3465         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3466         STOP of previous commit.
3468 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3470         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3471         from is_64bit_aligned_.
3472         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3473         and use it, more implicit none, remove unused argument.
3475 2022-02-03  David Seifert  <soap@gentoo.org>
3476             Jakub Jelinek  <jakub@redhat.com>
3478         * configure.ac: Support --disable-werror.
3479         * configure: Regenerate.
3481 2022-02-01  Tom de Vries  <tdevries@suse.de>
3483         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3484         PR83812 workaround.
3485         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3486         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3488 2022-02-01  Tom de Vries  <tdevries@suse.de>
3490         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3491         num_workers for nvidia accelerator to fix libgomp error 'insufficient
3492         resources'.
3493         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3494         Same.
3495         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3497 2022-02-01  Tom de Vries  <tdevries@suse.de>
3499         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3500         recursion depth.
3501         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3503 2022-01-31  Martin Liska  <mliska@suse.cz>
3505         * acinclude.m4: Detect *_ld_is_mold and use it.
3506         * configure: Regenerate.
3508 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
3510         * libgomp.texi (OpenMP 5.0): Update implementation status.
3512 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
3514         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3515         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3516         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3517         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3518         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3519         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3520         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3521         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3522         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3523         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3524         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3525         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3526         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3527         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3528         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3530 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
3532         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3533         "static") to make the device num available in the offload image.
3535 2022-01-19  Martin Liska  <mliska@suse.cz>
3536             Thomas Schwinge  <thomas@codesourcery.com>
3538         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3539         patterns.
3540         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3541         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3542         Likewise.
3543         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3544         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3545         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3546         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3547         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3548         Likewise.
3549         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3550         Likewise.
3551         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3552         Likewise.
3553         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3554         Likewise.
3555         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3556         Likewise.
3557         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3558         Likewise.
3559         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3560         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3561         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3563 2022-01-18  Martin Liska  <mliska@suse.cz>
3565         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3566         in dg-warning.
3567         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3568         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3569         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3570         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3571         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3572         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3573         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3574         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3575         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3576         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3577         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3578         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3579         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3580         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3581         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3583 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
3585         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3586         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3587         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3589 2022-01-17  Julian Brown  <julian@codesourcery.com>
3590             Thomas Schwinge  <thomas@codesourcery.com>
3592         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3593         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3594         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3596 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3597             Andrew Stubbs   <ams@codesourcery.com>
3599         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3600         the number of teams and threads if necessary.
3601         (gcn_exec): Automatically set the number of gangs and workers if
3602         necessary.
3604 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3606         * testsuite/libgomp.fortran/allocate-1.c: New test.
3607         * testsuite/libgomp.fortran/allocate-1.f90: New test.
3608         * libgomp.texi: Remove string that says that allocate clause
3609         support is for C/C++ only.
3611 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3613         * testsuite/libgomp.c-c++-common/on_device_arch.h
3614         (any_device_arch, any_device_arch_intel_mic): New.
3615         * testsuite/lib/libgomp.exp
3616         (check_effective_target_offload_device_any_intel_mic): New.
3617         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3618         * testsuite/libgomp.fortran/target10.f90: Likewise.
3620 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3622         PR tree-optimization/102192
3623         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3624         '-Wuninitialized' diagnostics.
3626 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3628         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3629         current '-Wuninitialized' diagnostics.
3630         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3631         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3632         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3633         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3634         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3635         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3636         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3637         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3638         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3639         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3640         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3641         Likewise.
3643 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3645         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3646         for 'offload_device_intel_mic'.
3648 2022-01-13  Julian Brown  <julian@codesourcery.com>
3649             Thomas Schwinge  <thomas@codesourcery.com>
3651         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3652         offloading execution XFAIL.
3654 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3656         PR middle-end/100280
3657         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3658         Update.
3659         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3660         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3661         Likewise.
3663 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3665         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3666         Enhance.
3667         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3668         Likewise.
3669         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3670         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3671         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3672         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3673         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3674         Likewise.
3675         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3676         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3677         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3678         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3680 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
3682         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3683         * testsuite/libgomp.fortran/target10.f90: Likewise.
3685 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
3687         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3688         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3689         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3691 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
3693         * libgomp.texi: Bump @copying's copyright year.
3695 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
3697         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3698         * testsuite/libgomp.fortran/atomic-19.f90: New test.
3700 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
3702         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3703         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3704         table, not individual symbols.
3706 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
3708         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3709         "target offload_device_nonshared_as"
3710         * testsuite/libgomp.c++/target-this-3.C: Likewise.
3711         * testsuite/libgomp.c++/target-this-4.C: Likewise.
3713 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3715         * target.c (gomp_map_vars_existing): Make sure attached pointer is
3716         not overwritten during cross-host/device copying.
3717         (gomp_update): Likewise.
3718         (gomp_exit_data): Likewise.
3719         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3720         * testsuite/libgomp.c++/target-12.C: Likewise.
3721         * testsuite/libgomp.c++/target-15.C: Likewise.
3722         * testsuite/libgomp.c++/target-16.C: Likewise.
3723         * testsuite/libgomp.c++/target-17.C: Likewise.
3724         * testsuite/libgomp.c++/target-21.C: Likewise.
3725         * testsuite/libgomp.c++/target-23.C: Likewise.
3726         * testsuite/libgomp.c/target-23.c: Likewise.
3727         * testsuite/libgomp.c/target-29.c: Likewise.
3728         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3730 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3732         PR middle-end/92120
3733         * libgomp.h (gomp_attach_pointer): Add bool parameter.
3734         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3735         (goacc_enter_data_internal): Likewise.
3736         * target.c (gomp_map_vars_existing): Update assert condition to
3737         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3738         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3739         parameter, add support for mapping a pointer with NULL target.
3740         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3741         parameter, add support for attaching a pointer with NULL target.
3742         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3743         gomp_attach_pointer, add handling for
3744         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3745         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3746         * testsuite/libgomp.c++/target-23.C: New testcase.
3747         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3748         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3749         * testsuite/libgomp.c++/target-this-1.C: New testcase.
3750         * testsuite/libgomp.c++/target-this-2.C: New testcase.
3751         * testsuite/libgomp.c++/target-this-3.C: New testcase.
3752         * testsuite/libgomp.c++/target-this-4.C: New testcase.
3753         * testsuite/libgomp.c++/target-this-5.C: New testcase.
3755 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3757         * libgomp.texi (OpenMP 5.1): Update status.
3759 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3761         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3763 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
3765         PR fortran/90030
3766         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3767         * testsuite/libgomp.fortran/pr90030.f90: New test.
3769 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
3770             Thomas Schwinge  <thomas@codesourcery.com>
3772         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3773         temporary skip.
3775 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
3776             Thomas Schwinge  <thomas@codesourcery.com>
3778         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3779         skip.
3781 2021-11-29  Richard Biener  <rguenther@suse.de>
3783         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3784         return.
3786 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
3788         PR middle-end/103384
3789         * testsuite/libgomp.c/declare-variant-2.c: New test.
3791 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
3793         * alloc.c (gomp_aligned_alloc): Fix typo.
3795 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3797         PR libgomp/102838
3798         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3799         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3800         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3801         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3802         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3803         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3804         gomp_aligned_alloc instead of team_malloc.
3806 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3808         PR libgomp/102838
3809         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3810         memalign over posix_memalign over aligned_alloc over fallback
3811         with malloc instead of aligned_alloc over _aligned_alloc over
3812         posix_memalign over memalign over fallback with malloc.  For
3813         aligned_alloc, round up size up to multiple of al.
3815 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
3817         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3818         construct as implemented.
3820 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
3822         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3824 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3826         * task.c (gomp_create_target_task): Copy args array as well.
3827         * target.c (gomp_target_fallback): Add args argument.
3828         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3829         (GOMP_target): Adjust gomp_target_fallback caller.
3830         (GOMP_target_ext): Likewise.
3831         (gomp_target_task_fn): Likewise.
3832         * config/nvptx/team.c (gomp_nvptx_main): Set
3833         gomp_global_icv.thread_limit_var.
3834         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3836 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3838         * config/nvptx/team.c (__gomp_team_num): Define as
3839         __attribute__((shared)) var.
3840         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3841         * config/nvptx/target.c (__gomp_team_num): Declare as
3842         extern __attribute__((shared)) var.
3843         (GOMP_teams4): Use __gomp_team_num as the team number instead of
3844         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
3845         is bigger than num_blocks, use num_teams_lower teams and arrange for
3846         bumping of __gomp_team_num if !first and returning false once we run
3847         out of teams.
3848         * config/nvptx/teams.c (__gomp_team_num): Declare as
3849         extern __attribute__((shared)) var.
3850         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3852 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3854         * testsuite/libgomp.c/teams-5.c: New test.
3856 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3858         PR target/103201
3859         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3860         to ...
3861         * config/gcn/teams.c: ... here.  New file.
3863 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
3865         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3866         implicit map handling to allow a "superset" existing map as valid case.
3867         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3868         (get_implicit): New function to extract implicit status.
3869         (gomp_map_fields_existing): Adjust arguments in calls to
3870         gomp_map_vars_existing, and add uses of get_implicit.
3871         (gomp_map_vars_internal): Likewise.
3872         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3874 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3876         * libgomp_g.h (GOMP_teams4): Declare.
3877         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3878         * target.c (GOMP_teams4): New function.
3879         * config/nvptx/target.c (GOMP_teams): Remove.
3880         (GOMP_teams4): New function.
3881         * config/gcn/target.c (GOMP_teams): Remove.
3882         (GOMP_teams4): New function.
3883         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3884         teams instead of <= 2.
3885         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3887 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
3889         * testsuite/libgomp.fortran/teams-1.f90: New test.
3891 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3893         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3894         * team.c (struct gomp_thread_start_data): Likewise.
3895         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3896         (gomp_team_start): Initialize start_data->num_teams and
3897         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
3898         * teams.c (gomp_num_teams, gomp_team_num): Remove.
3899         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3900         instead of gomp_num_teams and gomp_team_num.
3901         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3902         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3903         * testsuite/libgomp.c/teams-4.c: New test.
3905 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3907         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3909 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3911         * env.c (parse_gomp_openacc_dim): Restore parsing.
3913 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
3915         PR middle-end/102972
3916         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3917         parallel construct.
3918         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3919         * testsuite/libgomp.c/target-3.c: Likewise.
3920         * testsuite/libgomp.c/target-5.c: Likewise.
3921         * testsuite/libgomp.c/target-6.c: Likewise.
3922         * testsuite/libgomp.c/target-teams-1.c: Likewise.
3923         * testsuite/libgomp.c/teams-1.c: Likewise.
3924         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3925         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3926         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3927         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3928         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3929         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3930         * testsuite/libgomp.fortran/teams1.f90: Likewise.
3932 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
3934         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3935         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3937 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3939         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3940         aren't implemented for Fortran yet.
3942 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3944         * testsuite/libgomp.c/loop-26.c: New test.
3945         * testsuite/libgomp.c/loop-27.c: New test.
3947 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
3949         PR testsuite/102910
3950         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3951         instead of #include <alloca.h> + alloca.
3953 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
3955         * libgomp.texi (Support of strictly structured blocks in Fortran):
3956         Adjust to 'Y'.
3957         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3959 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
3961         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3962         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3964 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
3966         PR libgomp/102838
3967         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3968         (struct gomp_work_share): Only use aligned(64) attribute if
3969         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3970         add padding before lock to ensure lock is at offset 64 bytes
3971         into the structure.
3972         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3973         New poor man's static assertions.
3974         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3975         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3977 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3978             Richard Biener  <rguenther@suse.de>
3980         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3982 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
3984         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3985         && gomp_places_list_len < count after nfirst <= nlast loop condition.
3987 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
3989         PR fortran/102086
3990         PR fortran/92189
3991         PR fortran/92621
3992         PR fortran/101308
3993         PR fortran/101309
3994         PR fortran/101635
3995         PR fortran/92482
3996         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3998 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4000         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4001         type from char [50] to const char *.
4002         (places_array): Add a testcase for simplified syntax place followed
4003         by length or length and stride.
4005 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4007         * env.c (parse_one_place): Handle non-negative-number the same
4008         as { non-negative-number }.  Reject even !number:1 and
4009         !number:1:stride or !place:1 or !place:1:stride instead of just
4010         length other than 1.
4011         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4012         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4013         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4014         as implemented.
4015         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4016         simplified syntax.
4018 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4020         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4021         clearly reject return value 0 as invalid handle the case where end
4022         pointer is the same as first argument as invalid.
4023         (parse_unsigned_long_1): Likewise.
4024         (parse_one_place): Likewise.
4025         (parse_places_var): Likewise.
4026         (parse_stacksize): Likewise.
4027         (parse_spincount): Likewise.
4028         (parse_affinity): Likewise.
4029         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4030         Make code valid C89.
4031         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4032         For strtoul calls which don't clearly reject return value 0 as
4033         invalid handle the case where end pointer is the same as first
4034         argument as invalid.
4035         (gomp_affinity_init_level_1): Likewise.
4036         (gomp_affinity_init_numa_domains): Likewise.
4037         * config/rtems/proc.c (parse_thread_pools): Likewise.
4039 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4041         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4042         after creating count places clean up and return immediately.
4043         * testsuite/libgomp.c/places-6.c: New test.
4044         * testsuite/libgomp.c/places-7.c: New test.
4045         * testsuite/libgomp.c/places-8.c: New test.
4046         * testsuite/libgomp.c/places-9.c: New test.
4047         * testsuite/libgomp.c/places-10.c: New test.
4049 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4051         * env.c (parse_places_var): Handle numa_domains as level 5.
4052         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4053         function.
4054         (gomp_affinity_init_level): Use it instead of
4055         gomp_affinity_init_level_1 for level == 5.
4056         * testsuite/libgomp.c/places-5.c: New test.
4058 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4060         * env.c (parse_places_var): Handle ll_caches as level 4.
4061         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4062         function.
4063         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4064         last level cache.
4065         (gomp_affinity_init_level): Likewise.
4066         * testsuite/libgomp.c/places-1.c: New test.
4067         * testsuite/libgomp.c/places-2.c: New test.
4068         * testsuite/libgomp.c/places-3.c: New test.
4069         * testsuite/libgomp.c/places-4.c: New test.
4071 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4073         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4074         directive.
4076 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4078         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4080 2021-10-12  Julian Brown  <julian@codesourcery.com>
4082         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4083         error path.
4085 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4087         * testsuite/libgomp.fortran/icv-3.f90: New.
4088         * testsuite/libgomp.fortran/icv-4.f90: New.
4090 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4092         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4093         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4094         OMP_TEAMS_THREAD_LIMIT): Document.
4096 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4098         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4099         to avoid makeinfo warnings.
4101 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4103         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4104         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4106 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4108         PR libgomp/102628
4109         PR libgomp/102668
4110         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4111         allocation sizes from 420 to 320 and from 768 to 568.
4112         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4113         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4114         for cr from 16 to 4.
4116 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4118         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4119         * testsuite/libgomp.c/scan-12.c: Likewise.
4120         * testsuite/libgomp.c/scan-13.c: Likewise.
4121         * testsuite/libgomp.c/scan-14.c: Likewise.
4122         * testsuite/libgomp.c/scan-15.c: Likewise.
4123         * testsuite/libgomp.c/scan-16.c: Likewise.
4124         * testsuite/libgomp.c/scan-17.c: Likewise.
4125         * testsuite/libgomp.c/scan-18.c: Likewise.
4126         * testsuite/libgomp.c/scan-19.c: Likewise.
4127         * testsuite/libgomp.c/scan-20.c: Likewise.
4128         * testsuite/libgomp.c/scan-21.c: Likewise.
4129         * testsuite/libgomp.c/scan-22.c: Likewise.
4130         * testsuite/libgomp.c++/scan-9.C: Likewise.
4131         * testsuite/libgomp.c++/scan-10.C: Likewise.
4132         * testsuite/libgomp.c++/scan-11.C: Likewise.
4133         * testsuite/libgomp.c++/scan-12.C: Likewise.
4134         * testsuite/libgomp.c++/scan-13.C: Likewise.
4135         * testsuite/libgomp.c++/scan-14.C: Likewise.
4136         * testsuite/libgomp.c++/scan-15.C: Likewise.
4137         * testsuite/libgomp.c++/scan-16.C: Likewise.
4139 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4141         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4143 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4145         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4146         omp_atv_serialized.
4147         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4148         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4149         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4150         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4152 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4154         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4155         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4156         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4157         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4158         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4159         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4160         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4161         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4162         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4163         omp_set_teams_thread_limit{,_,_8_}.
4164         * icv.c (omp_set_num_teams, omp_get_max_teams,
4165         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4166         functions.
4167         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4168         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4169         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4170         vars.
4171         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4172         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4173         is not specified, use gomp_nteams_var.
4174         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4175         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4176         ialias_redirect.
4177         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4178         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4179         omp_get_teams_thread_limit_): New functions.
4181 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4183         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4184         * testsuite/libgomp.c++/scan-11.C: Ditto.
4185         * testsuite/libgomp.c++/scan-12.C: Ditto.
4186         * testsuite/libgomp.c++/scan-13.C: Ditto.
4187         * testsuite/libgomp.c++/scan-14.C: Ditto.
4188         * testsuite/libgomp.c++/scan-15.C: Ditto.
4189         * testsuite/libgomp.c++/scan-16.C: Ditto.
4190         * testsuite/libgomp.c++/scan-9.C: Ditto.
4191         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4192         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4193         * testsuite/libgomp.c/scan-11.c: Ditto.
4194         * testsuite/libgomp.c/scan-12.c: Ditto.
4195         * testsuite/libgomp.c/scan-13.c: Ditto.
4196         * testsuite/libgomp.c/scan-14.c: Ditto.
4197         * testsuite/libgomp.c/scan-15.c: Ditto.
4198         * testsuite/libgomp.c/scan-16.c: Ditto.
4199         * testsuite/libgomp.c/scan-17.c: Ditto.
4200         * testsuite/libgomp.c/scan-18.c: Ditto.
4201         * testsuite/libgomp.c/scan-19.c: Ditto.
4202         * testsuite/libgomp.c/scan-20.c: Ditto.
4203         * testsuite/libgomp.c/scan-21.c: Ditto.
4204         * testsuite/libgomp.c/scan-22.c: Ditto.
4206 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
4208         * libgomp.texi (OpenMP 5.1): Mention implemented support for
4209         structured block sequences in C/C++.  Mention support for
4210         unconstrained/reproducible modifiers on order clause.
4211         Mention partial (C/C++ only) support of extentensions to atomics
4212         construct.  Mention partial (C/C++ on clause only) support of
4213         align/allocator modifiers on allocate clause.
4215 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
4217         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4218         based on libgomp.c-c++-common/order-reproducible-1.c.
4219         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4220         * testsuite/libgomp.fortran/my-usleep.c: New test.
4222 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
4224         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4225         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4226         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4227         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4228         based on libgomp.c-c++-common/alloc-9.c.
4230 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4232         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4233         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4235 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4237         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4238         ialias_redirect.
4239         * env.c (handle_omp_display_env): Use ialias_call.
4240         * icv-device.c: Move ialias right below each function.
4241         (omp_get_device_num): Use ialias_call.
4242         * fortran.c (omp_fulfill_event): Add ialias_redirect.
4243         * icv.c (omp_get_active_level): Add ialias_redirect.
4245 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4247         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4248         __alloc_align__ (1) attribute.
4249         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4251 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4253         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4254         for -fintrinsic-modules-path= warning of the C compiler.
4255         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4256         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4258 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4260         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4261         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4262         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4263         omp_realloc): Add.
4264         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4265         omp_realloc): Add.
4266         * testsuite/libgomp.fortran/alloc-10.f90: New test.
4267         * testsuite/libgomp.fortran/alloc-6.f90: New test.
4268         * testsuite/libgomp.fortran/alloc-7.c: New test.
4269         * testsuite/libgomp.fortran/alloc-7.f90: New test.
4270         * testsuite/libgomp.fortran/alloc-8.f90: New test.
4271         * testsuite/libgomp.fortran/alloc-9.f90: New test.
4273 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
4275         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4276         omp_realloc): New prototypes.
4277         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4278         attribute.
4279         * allocator.c: Include string.h.
4280         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
4281         variable and use it instead of alignment so that when retrying the old
4282         alignment is used again.  Don't retry if new alignment is the same
4283         as old alignment, unless allocator had pool size.
4284         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4285         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4286         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4287         omp_aligned_calloc and omp_realloc.
4288         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4289         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4290         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4291         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4292         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4293         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4295 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
4297         PR libgomp/96661
4298         * configure.ac: Only check for int-type = 2*size_t support when
4299         building with Fortran support.
4300         * configure: Regenerate.
4302 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
4304         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4305         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4307 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
4309         * team.c: Initialize start_data.
4310         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4311         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4313 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4315         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4316         dg-message back to dg-note.
4318 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4320         PR fortran/94070
4321         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4322         expected dg-note output.
4324 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
4326         PR fortran/55534
4327         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4328         r12-3722 by removing -Wno-missing-include-dirs.
4329         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4331 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
4333         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4334         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4336 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
4338         PR fortran/55534
4339         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4340         to ALWAYS_CFLAGS.
4341         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4343 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
4345         * testsuite/libgomp.c++/default-1.C: New test.
4346         * testsuite/libgomp.c-c++-common/default-1.c: New test.
4347         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4348         to default clause in C and C++" as implemented.
4350 2021-09-17  Julian Brown  <julian@codesourcery.com>
4352         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4354 2021-09-17  Julian Brown  <julian@codesourcery.com>
4356         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4358 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4360         * libgomp.texi (OpenMP 5.1): Spelling fix,
4361         declare variante -> declare variant.
4363 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4365         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4366         Use /* */ comments instead of //.
4367         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4368         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4369         * testsuite/libgomp.c++/atomic-16.C: New test.
4370         * testsuite/libgomp.c++/atomic-17.C: New test.
4372 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
4374         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4375         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4376         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4378 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4380         * libgomp.texi (OpenMP Implementation Status): Extend
4381         OpenMP 5.0 section.
4382         (OpenACC Profiling Interface): Fix typo.
4384 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4386         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4387         not to 4.5; link to new section.
4388         (OpenMP Implementation Status): New.
4390 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
4392         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4394 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
4396         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4397         dg-output.
4398         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4400 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4401             Jakub Jelinek  <jakub@redhat.com>
4403         * testsuite/libgomp.c/address-space-1.c: New file.
4405 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4407         * testsuite/lib/libgomp.exp
4408         (check_effective_target_offload_target_intelmic): Remove 'proc'.
4409         (check_effective_target_offload_device_intel_mic): New 'proc'.
4410         * testsuite/libgomp.c-c++-common/on_device_arch.h
4411         (device_arch_intel_mic, on_device_arch_intel_mic): New.
4412         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4413         'dg-xfail-run-if'.
4414         * testsuite/libgomp.fortran/target10.f90: Likewise.
4416 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
4418         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4419         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4420         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4421         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4423 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
4425         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4426         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4427         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4429 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
4431         * config/nvptx/error.c (fwrite, exit): Override, too.
4432         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4433         of offloading testing.
4434         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4436 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
4438         * testsuite/libgomp.fortran/error-1.f90: New test.
4440 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
4442         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4443         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4444         * error.c (GOMP_warning, GOMP_error): New functions.
4445         * testsuite/libgomp.c-c++-common/error-1.c: New test.
4447 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
4449         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4450         omp_target_free. omp_target_is_present, omp_target_memcpy,
4451         omp_target_memcpy_rect, omp_target_associate_ptr,
4452         omp_target_disassociate_ptr): Add interface.
4453         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4454         omp_target_free. omp_target_is_present, omp_target_memcpy,
4455         omp_target_memcpy_rect, omp_target_associate_ptr,
4456         omp_target_disassociate_ptr): Add interface.
4457         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4458         interface block for omp_alloc + omp_free.
4459         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4460         * testsuite/libgomp.fortran/refcount-1.f90: New test.
4461         * testsuite/libgomp.fortran/target-12.f90: New test.
4463 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
4465         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4467 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
4469         * testsuite/libgomp.fortran/scope-1.f90: New test.
4470         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4472 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
4474         * Makefile.am (libgomp_la_SOURCES): Add scope.c
4475         * Makefile.in: Regenerated.
4476         * libgomp_g.h (GOMP_scope_start): Declare.
4477         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4478         * scope.c: New file.
4479         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4480         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4482 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
4484         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4485         '?:' issues.
4487 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
4489         * testsuite/libgomp.fortran/masked-1.f90: New test.
4491 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
4493         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4495 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
4497         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4499 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
4501         * env.c (parse_bind_var): Accept 'primary' as alias for
4502         'master'.
4503         (omp_display_env): Add TODO comment to
4504         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4505         * libgomp.texi: Change 'master thread' to 'primary thread'
4506         in line with OpenMP 5.1.
4507         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4508         omp_proc_bind_master is an alias of it.
4509         (OMP_PROC_BIND): Mention 'PRIMARY'.
4510         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4511         (omp_proc_bind_primary): Add.
4512         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4513         * omp_lib.f90.in (omp_proc_bind_primary): Add.
4514         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4515         * omp_lib.h.in (omp_proc_bind_primary): Add.
4516         * testsuite/libgomp.c/affinity-1.c: Check that
4517         'primary' works and is identical to 'master'.
4519 2021-08-09  Julian Brown  <julian@codesourcery.com>
4520             Kwok Cheung Yeung  <kcy@codesourcery.com>
4521             Thomas Schwinge  <thomas@codesourcery.com>
4523         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4524         16.
4525         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4526         [acc_device_radeon]: Update.
4527         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4528         [ACC_DEVICE_TYPE_radeon]: Likewise.
4529         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4530         [acc_device_radeon]: Likewise.
4531         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4532         [ACC_DEVICE_TYPE_radeon]: Likewise.
4533         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4534         'openacc_radeon_accel_selected' and '-O0'.
4535         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4537 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
4539         * icv-device.c (omp_get_device_num): New API function, host side.
4540         * fortran.c (omp_get_device_num_): New interface function.
4541         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4542         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4543         omp_get_device_num_.
4544         * libgomp.texi (omp_get_device_num): Add documentation for new API
4545         function.
4546         * omp.h.in (omp_get_device_num): Add declaration.
4547         * omp_lib.f90.in (omp_get_device_num): Likewise.
4548         * omp_lib.h.in (omp_get_device_num): Likewise.
4549         * target.c (gomp_load_image_to_device): If additional entry for device
4550         number exists at end of returned entries from 'load_image_func' hook,
4551         copy the assigned device number over to the device variable.
4552         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4553         (omp_get_device_num): New API function, device side.
4554         * plugin/plugin-gcn.c ("symcat.h"): Add include.
4555         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4556         at end of returned 'target_table' entries.
4557         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4558         (omp_get_device_num): New API function, device side.
4559         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4560         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4561         at end of returned 'target_table' entries.
4562         * testsuite/lib/libgomp.exp
4563         (check_effective_target_offload_target_intelmic): New function for
4564         testing for intelmic offloading.
4565         * testsuite/libgomp.c-c++-common/target-45.c: New test.
4566         * testsuite/libgomp.fortran/target10.f90: New test.
4568 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
4569             Ulrich Drepper  <drepper@redhat.com>
4571         * fortran.c (omp_display_env_, omp_display_env_8_): Only
4572         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4574 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
4575             Julian Brown  <julian@codesourcery.com>
4576             Kwok Cheung Yeung  <kcy@codesourcery.com>
4578         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4579         's%oaccdevlow%oaccloops%g'.
4580         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4581         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4582         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4583         Likewise.
4584         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4585         Likewise.
4586         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4587         Likewise.
4588         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4589         Likewise.
4590         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4591         Likewise.
4592         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4593         Likewise.
4594         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4595         Likewise.
4596         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4597         Likewise.
4598         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4600 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
4602         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4603         threader.
4604         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4606 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
4608         * env.c (wait_policy, stacksize): New static variables,
4609         move out of handle_omp_display_env.
4610         (omp_display_env): New function.  The meat of the old
4611         handle_omp_display_env function.
4612         (handle_omp_display_env): Change to not take parameters
4613         and instead use the global variables.  Only perform
4614         parsing, defer to omp_display_env for the implementation.
4615         (initialize_env): Remove local variables wait_policy and
4616         stacksize.  Don't pass parameters to handle_omp_display_env.
4617         * fortran.c: Add ialias_redirect for omp_display_env.
4618         (omp_display_env_, omp_display_env_8_): New functions.
4619         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
4620         omp_display_env_, and omp_display_env_8_.
4621         * omp.h.in: Declare omp_display_env.
4622         * omp_lib.f90.in: Likewise.
4623         * omp_lib.h.in: Likewise.
4625 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4626             Julian Brown  <julian@codesourcery.com>
4628         * target.c (gomp_coalesce_buf_add): Update comment.
4629         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4630         'aq && cbuf'.
4631         (gomp_map_vars_internal): Only 'if (!aq)', do
4632         'gomp_coalesce_buf_add'.
4633         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4634         XFAIL.
4636 2021-07-27  Julian Brown  <julian@codesourcery.com>
4637             Thomas Schwinge  <thomas@codesourcery.com>
4639         * libgomp.h (gomp_copy_host2dev): Update prototype.
4640         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4641         argument to gomp_copy_host2dev (false).
4642         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4643         (copy_data): Don't free src.
4644         (queue_push_copy): Remove free_src handling.
4645         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4646         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4647         snapshotting.
4648         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4649         queue_push_copy.
4650         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4651         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
4652         data when true, and set up deferred freeing of temporary buffer.
4653         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4654         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4655         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4656         calls to gomp_copy_host2dev with appropriate ephemeral argument.
4657         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4658         XFAIL.
4660 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4661             Tom de Vries  <tom@codesourcery.com>
4663         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4664         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4666 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4668         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4669         sequencing of 'async' data copying vs. profiling events.
4670         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4671         Likewise.
4673 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4674             Julian Brown  <julian@codesourcery.com>
4676         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4677         'async'/'wait' issue.
4678         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4679         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4680         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4682 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
4683             Joseph Myers  <joseph@codesourcery.com>
4684             Cesar Philippidis  <cesar@codesourcery.com>
4686         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4687         file.
4688         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4689         Likewise.
4690         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4691         Likewise.
4692         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4694 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
4696         PR target/101484
4697         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4698         '-Wno-error=array-bounds'.
4699         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4700         * libgomp.h [__AMDGCN__]: Likewise.
4702 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
4704         PR target/101484
4705         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4706         * libgomp.h [__AMDGCN__]: Likewise.
4708 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
4709             Florian Weimer  <fweimer@redhat.com>
4711         * config/linux/sem.h: Don't include limits.h.
4712         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4713         * config/linux/affinity.c: Include limits.h.
4715 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
4717         PR middle-end/94366
4718         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4720 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4722         PR other/67300
4723         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4724         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4725         avoid disabling other offload targets.
4726         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4727         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4728         * testsuite/libgomp.c/target-44.c: Likewise.
4730 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4732         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4733         target has shared memory and disable some scalar pointer/allocatable
4734         checks if not as firstprivate does not work.
4736 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
4738         PR testsuite/101114
4739         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4740         Add "target offload_device_nonshared_as" condition for enabling test.
4742 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
4744         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4745         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4746         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4747         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4749 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
4751         PR middle-end/101167
4752         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4754 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
4756         * hashtab.h (htab_clear): New function with initialization code
4757         factored out from...
4758         (htab_create): ...here, adjust to use htab_clear function.
4759         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4760         special refcount values, add comments.
4761         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4762         (REFCOUNT_LINK): Likewise.
4763         (REFCOUNT_STRUCTELEM): New special refcount range for structure
4764         element siblings.
4765         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4766         sibling maps.
4767         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4768         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
4769         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4770         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4771         (struct splay_tree_key_s): Add structelem_refcount and
4772         structelem_refcount_ptr fields into a union with dynamic_refcount.
4773         Add comments.
4774         (gomp_map_vars): Delete declaration.
4775         (gomp_map_vars_async): Likewise.
4776         (gomp_unmap_vars): Likewise.
4777         (gomp_unmap_vars_async): Likewise.
4778         (goacc_map_vars): New declaration.
4779         (goacc_unmap_vars): Likewise.
4780         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4781         (goacc_enter_datum): Likewise.
4782         (goacc_enter_data_internal): Likewise.
4783         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4784         and goacc_unmap_vars.
4785         (GOACC_data_start): Adjust to use goacc_map_vars.
4786         (GOACC_data_end): Adjust to use goacc_unmap_vars.
4787         * target.c (hash_entry_type): New typedef.
4788         (htab_alloc): New function hook for hashtab.h.
4789         (htab_free): Likewise.
4790         (htab_hash): Likewise.
4791         (htab_eq): Likewise.
4792         (hashtab.h): Add file include.
4793         (gomp_increment_refcount): New function.
4794         (gomp_decrement_refcount): Likewise.
4795         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4796         gomp_increment_refcount.
4797         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4798         to gomp_map_vars_existing.
4799         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4800         variable to guard OpenMP specific paths, adjust calls to
4801         gomp_map_vars_existing, add structure element sibling splay_tree_key
4802         sequence creation code, adjust Fortran map case to avoid increment
4803         under OpenMP.
4804         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4805         local refcount_set if caller passed in NULL, adjust call to
4806         gomp_map_vars_internal.
4807         (gomp_map_vars_async): Adjust and rename into...
4808         (goacc_map_vars): ...this new function, adjust call to
4809         gomp_map_vars_internal.
4810         (gomp_remove_splay_tree_key): New function with code factored out from
4811         gomp_remove_var_internal.
4812         (gomp_remove_var_internal): Add code to handle removing multiple
4813         splay_tree_key sequence for structure elements, adjust code to use
4814         gomp_remove_splay_tree_key for splay-tree key removal.
4815         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4816         gomp_decrement_refcount.
4817         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4818         local refcount_set if caller passed in NULL, adjust call to
4819         gomp_unmap_vars_internal.
4820         (gomp_unmap_vars_async): Adjust and rename into...
4821         (goacc_unmap_vars): ...this new function, adjust call to
4822         gomp_unmap_vars_internal.
4823         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4824         gomp_unmap_vars.
4825         (GOMP_target_ext): Likewise.
4826         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4827         (GOMP_target_data): Likewise.
4828         (GOMP_target_data_ext): Likewise.
4829         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4830         (gomp_exit_data): Add refcount_set parameter, adjust to use
4831         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4832         after main loop.
4833         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4834         gomp_map_vars and gomp_exit_data.
4835         (gomp_target_task_fn): Likewise.
4836         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4837         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4838         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4839         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4840         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4841         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4843 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
4845         PR fortran/92568
4846         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4848 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4849             Thomas Schwinge  <thomas@codesourcery.com>
4851         * libgomp.map (GOACC_2.0.2): New symbol version.
4852         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4853         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4855 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4856             Andrew Stubbs  <ams@codesourcery.com>
4858         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4859         extracted from...
4860         (GOACC_enter_exit_data): ... here.
4861         (GOACC_declare): Use it.
4863 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4865         * oacc-parallel.c (GOACC_declare): Move...
4866         * oacc-mem.c: ... here.
4867         * libgomp_g.h: Adjust.
4869 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4870             Thomas Schwinge  <thomas@codesourcery.com>
4872         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4873         handling.
4875 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
4877         PR tree-optimization/100981
4878         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4879         dsdotr and dsdoti to 0.
4881 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
4883         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4884         if atomic compare-and-swap is supported on 'int'.
4886 2021-06-09  Richard Biener  <rguenther@suse.de>
4888         PR tree-optimization/100981
4889         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4891 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4893         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4894         unconditionally.
4895         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4896         Update.
4897         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4898         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4900 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4902         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4903         '-DACC_MEM_SHARED=0'.
4904         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4905         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4906         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4907         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4908         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4909         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4910         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4911         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4912         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4913         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4914         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4915         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4916         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4917         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4918         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4919         'acc_device_radeon' testing.
4920         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4921         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4922         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4923         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4924         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4925         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4926         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4927         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4928         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4929         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4930         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4931         for non-'openacc_nvidia_accel_selected'.
4932         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4933         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4934         all implement this checking".
4935         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4936         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4937         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4938         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4939         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4941 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4943         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4944         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4946 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4948         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4949         for 'acc_device_radeon'.
4951 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4953         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4954         for non-'acc_device_nvidia'.
4956 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4958         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4959         'acc_device_radeon' testing.
4960         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4961         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4962         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4964 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4966         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4967         require 'openacc_nvidia_accel_selected'.  Fix up for
4968         'ACC_DEVICE_TYPE_radeon'.
4970 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4972         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4973         'openacc_nvidia_accel_selected'.
4974         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4976 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4978         * testsuite/lib/libgomp.exp
4979         (check_effective_target_openacc_radeon_accel_selected):
4980         Streamline.
4982 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4984         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4985         PR80547 workaround.
4987 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4989         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4990         <acc_device_nvidia>: Update comment.
4992 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
4994         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4996 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
4998         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4999         check_effective_target_openacc_cublas,
5000         check_effective_target_openacc_cudart): New.
5001         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5002         target openacc_cublas.
5003         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5004         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5005         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5006         target openacc_cuda.
5007         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5008         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5009         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5010         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5011         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5012         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5013         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5014         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5015         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5016         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5017         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5018         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5019         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5020         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5021         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5022         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5023         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5024         targets openacc_cublas and openacc_cudart.
5025         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5026         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5027         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5028         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5029         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5030         Require effective target openacc_cudart.
5031         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5032         for effective target openacc_cuda and add && defined USE_CUDA_H to
5033         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5034         effective target.
5036 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5038         PR libgomp/100573
5039         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5040         GOMP_target_end_data, GOMP_target_update_ext,
5041         GOMP_target_enter_exit_data): New dummy entrypoints.
5042         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5043         GOMP_target_end_data, GOMP_target_update_ext,
5044         GOMP_target_enter_exit_data): Likewise.
5045         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5046         OMPFROM, OMPTO): Define.
5047         (main): Remove #pragma omp target teams around all the tests.
5048         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5049         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5051 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5053         PR middle-end/99928
5054         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5056 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5058         PR fortran/86470
5059         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5060         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5061         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5063 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5065         PR testsuite/90115
5066         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5067         uninteresting/varying diagnostics.
5069 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5071         PR middle-end/90115
5072         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5073         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5075 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5077         PR middle-end/90115
5078         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5079         file.
5080         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5081         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5082         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5083         Likewise.
5084         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5085         Likewise.
5086         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5087         Likewise.
5088         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5089         Likewise.
5090         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5091         Likewise.
5092         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5093         Likewise.
5094         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5095         Likewise.
5096         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5097         Likewise.
5098         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5099         Likewise.
5100         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5101         Likewise.
5102         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5103         Likewise.
5104         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5105         Likewise.
5106         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5107         Likewise.
5108         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5109         Likewise.
5110         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5111         Likewise.
5112         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5113         Likewise.
5114         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5115         Likewise.
5116         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5117         Likewise.
5118         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5119         Likewise.
5120         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5121         Likewise.
5122         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5123         Likewise.
5124         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5125         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5126         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5127         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5128         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5129         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5130         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5131         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5132         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5133         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5134         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5135         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5136         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5137         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5138         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5139         Likewise.
5140         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5141         Likewise.
5142         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5143         Likewise.
5144         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5145         Likewise.
5146         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5147         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5148         Likewise.
5149         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5150         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5151         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5152         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5153         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5154         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5155         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5156         Likewise.
5157         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5158         Likewise.
5159         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5160         Likewise.
5161         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5162         Likewise.
5163         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5164         Likewise.
5165         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5166         Likewise.
5167         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5168         Likewise.
5169         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5170         Likewise.
5171         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5172         Likewise.
5173         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5174         Likewise.
5175         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5176         Likewise.
5177         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5178         Likewise.
5179         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5180         Likewise.
5181         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5182         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5183         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5184         Likewise.
5185         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5186         Likewise.
5187         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5188         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5189         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5191 2021-05-21  Julian Brown  <julian@codesourcery.com>
5192             Chung-Lin Tang  <cltang@codesourcery.com>
5193             Thomas Schwinge  <thomas@codesourcery.com>
5195         PR middle-end/90115
5196         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5197         test.
5198         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5199         Likewise.
5200         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5201         Likewise.
5203 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5205         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5206         for nvptx offloading.
5208 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
5210         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5212 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5214         PR target/83812
5215         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5217 2021-05-19  Julian Brown  <julian@codesourcery.com>
5219         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5221 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5223         * testsuite/lib/libgomp.exp
5224         (check_effective_target_offload_target_nvptx): Don't shadow global
5225         'offload_targets' variable.
5227 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5229         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5230         '-latomic' to nvptx offloading compilation.
5231         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5233 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5235         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5236         offloading compilation.
5238 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5240         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5241         if new tasks generated.
5242         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5244 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
5246         * testsuite/libgomp.fortran/parallel-master.f90: New test.
5248 2021-05-13  Martin Liska  <mliska@suse.cz>
5250         PR testsuite/100569
5251         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5252         * testsuite/libgomp.c/pr46032-2.c: Likewise.
5253         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5254         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5256 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
5258         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5259         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5261 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
5263         PR middle-end/100471
5264         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5265         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5266         reduction pointer.
5267         * testsuite/libgomp.c/task-reduction-4.c: New test.
5269 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
5270             Tom de Vries  <tdevries@suse.de>
5272         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5273         complex/floating-point || + && reduction with 'omp target'.
5274         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5276 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5278         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5279         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5280         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5281         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5283 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5285         PR testsuite/100397
5286         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5287         declaration to scope of non-'depend'-guarded assignment to avoid races.
5289 2021-05-03  Tom de Vries  <tdevries@suse.de>
5291         PR target/100321
5292         * testsuite/libgomp.c/target-44.c: New test.
5294 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
5296         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5298 2021-04-29  Tom de Vries  <tdevries@suse.de>
5300         * testsuite/libgomp.c/pr81778.c: New test.
5302 2021-04-29  Tom de Vries  <tdevries@suse.de>
5304         PR target/100232
5305         * testsuite/libgomp.c/target-43.c: New file.
5307 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
5308             Tobias Burnus  <tobias@codesourcery.com>
5310         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5311         * target.c (gomp_load_plugin_for_device): If set and if a plugin
5312         can't be dlopened, silently assume it has no devices.
5313         * Makefile.in: Regenerate.
5314         * config.h.in: Regenerate.
5315         * configure: Regenerate.
5317 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5319         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5320         Use [Ww]arning in dg-bogus as FE diagnostic and default
5321         diagnostic differ and the result depends on ENABLE_OFFLOAD.
5322         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5323         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5324         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5326 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5328         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5329         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5330         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5331         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5332         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5334 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5335             Nathan Sidwell  <nathan@codesourcery.com>
5336             Tom de Vries  <vries@codesourcery.com>
5337             Julian Brown  <julian@codesourcery.com>
5338             Kwok Cheung Yeung  <kcy@codesourcery.com>
5340         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5341         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5342         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5343         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5344         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5345         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5346         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5347         Likewise.
5348         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5349         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5350         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5351         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5352         Likewise.
5353         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5354         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5355         Likewise.
5356         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5357         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5358         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5359         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5360         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5361         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5362         Likewise.
5363         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5364         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5365         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5366         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5367         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5368         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5369         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5370         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5371         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5372         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5373         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5375 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5377         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5378         compile with '-w'.
5379         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5380         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5381         Likewise.
5382         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5383         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5384         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5385         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5386         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5387         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5388         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5390 2021-04-22  Richard Biener  <rguenther@suse.de>
5392         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5393         only on nvptx-none.
5395 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5397         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5398         omp_depend_kind instead of defining it as 16.
5400 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5402         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5403         New, based on check_effective_target_offload_target_nvptx.
5404         (check_effective_target_offload_target_nvptx): Call it.
5405         (check_effective_target_offload_target_amdgcn): New.
5406         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5407         Require target offload_target_nvptx || offload_target_amdgcn.
5408         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5409         * testsuite/libgomp.c/pr86416-1.c: Likewise.
5410         * testsuite/libgomp.c/pr86416-2.c: Likewise.
5412 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5414         * testsuite/libgomp.fortran/depobj-1.f90: New test.
5416 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5418         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5419         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5420         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5421         Likewise.
5422         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5423         Likewise.
5424         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5426 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5428         PR target/99555
5429         * testsuite/lib/libgomp.exp
5430         (check_effective_target_offload_device_nvptx): New.
5431         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5432         resolved, make sure that we exit quickly, with error status,
5433         XFAILed.
5434         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5435         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5437 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
5439         PR testsuite/100071
5440         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5441         cp = omp_alloc with cp, p arguments instead of cq, q and call
5442         c_f_pointer after last cq = omp_alloc with cq, q.
5444 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5446         PR middle-end/98088
5447         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5448         for loop with GT/GE condition.
5449         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5451 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
5453         PR middle-end/84991
5454         PR middle-end/84992
5455         PR middle-end/90779
5456         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5458 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
5460         PR libgomp/99984
5461         * team.c (gomp_thread_start): Call pthread_setspecific for
5462         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5463         has been initialized to avoid false positive warning.
5465 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
5467         PR target/99555
5468         * testsuite/lib/on_device_arch.c: Move to ...
5469         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5470         * testsuite/libgomp.fortran/on_device_arch.c: New file;
5471         #include on_device_arch.h.
5472         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5473         on_device_arch.h instead of using dg-additional-source.
5474         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5475         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5476         on_device_arch.c without relative paths.
5478 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5480         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5481         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5482         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5483         * config.h.in: Regenerate.
5484         * configure: Likewise.
5486 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5488         PR target/99555
5489         * testsuite/lib/on_device_arch.c: New file.
5490         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5491         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5492         skip for nvptx offloading, with error status.
5493         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5495 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5497         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5498         OpenACC 'serial' construct diagnostic for nvptx offloading.
5500 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
5502         PR c++/99509
5503         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5505 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
5507         PR fortran/98858
5508         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5510 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
5512         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5513         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5514         checking of -m32 or -mx32 options on the command line.
5515         * config.h.in: Regenerated.
5516         * configure: Regenerated.
5518 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
5520         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5521         support from the target.
5523 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5524             Jakub Jelinek  <jakub@redhat.com>
5526         PR libgomp/98738
5527         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5528         (struct gomp_task): Replace detach and completion_sem fields with
5529         union containing completion_sem and detach_team.  Add deferred_p
5530         field.
5531         (struct gomp_team): Remove task_detach_queue.
5532         * task.c: Include assert.h.
5533         (gomp_init_task): Initialize deferred_p and completion_sem fields.
5534         Rearrange initialization order of fields.
5535         (task_fulfilled_p): Delete.
5536         (GOMP_task): Use address of task as the event handle.  Remove
5537         initialization of detach field.  Initialize deferred_p field.
5538         Use automatic local for completion_sem.  Initialize detach_team field
5539         for deferred tasks.
5540         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5541         Set kind of suspended detach task to GOMP_TASK_DETACHED and
5542         decrement task_running_count.  Move finish_cancelled block out of
5543         else branch.  Relocate call to gomp_team_barrier_done.
5544         (GOMP_taskwait): Handle tasks with completion events that have not
5545         been fulfilled.
5546         (GOMP_taskgroup_end): Likewise.
5547         (omp_fulfill_event): Use address of task as event handle.  Post to
5548         completion_sem for undeferred tasks.  Clear detach_team if task
5549         has not finished.  For finished tasks, handle post-execution tasks,
5550         call gomp_team_barrier_wake if necessary, and free task.
5551         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5552         (free_team): Remove free of task_detach_queue.
5553         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5554         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5555         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5556         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5557         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5558         Change data-sharing of detach events on enclosing parallel to private.
5559         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
5560         taskwait directive.
5561         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5562         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5563         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5564         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5565         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5566         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5567         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5568         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5569         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5570         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5571         Change data-sharing of detach events on enclosing parallel to private.
5572         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
5573         taskwait directive.
5574         * testsuite/libgomp.fortran/task-detach-7.f90: New.
5575         * testsuite/libgomp.fortran/task-detach-8.f90: New.
5576         * testsuite/libgomp.fortran/task-detach-9.f90: New.
5577         * testsuite/libgomp.fortran/task-detach-10.f90: New.
5578         * testsuite/libgomp.fortran/task-detach-11.f90: New.
5580 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
5582         PR fortran/99171
5583         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5585 2021-02-17  Julian Brown  <julian@codesourcery.com>
5587         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5588         expected errors.
5590 2021-02-17  Julian Brown  <julian@codesourcery.com>
5592         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5593         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5595 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5597         * config/linux/x86/futex.h (__futex_wait):
5598         Revert output type back to long.
5599         (__futex_wake): Ditto.
5600         (futex_wait): Update for revert.
5601         (futex_wake): Ditto.
5603 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5605         * config/linux/x86/futex.h (__futex_wait): New static inline
5606         wrapper function.  Correct output type to int and
5607         timeout type to void *.
5608         (__futex_wake): New static inline wrapper function.
5609         Correct output type to int.
5610         (futex_wait): Use __futex_wait.
5611         (futex_wake): Use __futex_wake.
5613 2021-02-10  Julian Brown  <julian@codesourcery.com>
5615         PR fortran/98979
5616         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5617         errors.
5619 2021-02-04  Julian Brown  <julian@codesourcery.com>
5621         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5623 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
5625         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5626         EF_AMDGPU_MACH_AMDGCN_GFX908.
5627         (gcn_gfx908_s): New constant string.
5628         (isa_hsa_name): Add gfx908.
5629         (isa_code): Add gfx908.
5631 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5633         * libgomp.texi (omp_fulfill_event): New entry.
5635 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
5637         * task.c (GOMP_task): Rename priority argument to priority_arg,
5638         add priority automatic variable and modify that variable.  Instead of
5639         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5640         check flags for that bit.
5642 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
5644         PR fortran/98476
5645         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5647 2021-01-18  Andreas Schwab  <schwab@suse.de>
5649         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5651 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5653         * config/rtems/sem.h (gomp_sem_getcount): New function.
5655 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
5657         * config/linux/sem.h (gomp_sem_getcount): New function.
5658         * config/posix/sem.h (gomp_sem_getcount): New function.
5659         * config/posix/sem.c (gomp_sem_getcount): New function.
5660         * config/accel/sem.h (gomp_sem_getcount): New function.
5661         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5662         (omp_fulfill_event): Likewise.
5664 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
5666         * fortran.c (omp_fulfill_event_): New.
5667         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5668         (struct gomp_team): Add task_detach_queue and task_detach_count
5669         fields.
5670         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5671         * libgomp_g.h (GOMP_task): Add extra argument.
5672         * omp.h.in (enum omp_event_handle_t): New.
5673         (omp_fulfill_event): New.
5674         * omp_lib.f90.in (omp_event_handle_kind): New.
5675         (omp_fulfill_event): New.
5676         * omp_lib.h.in (omp_event_handle_kind): New.
5677         (omp_fulfill_event): Declare.
5678         * priority_queue.c (priority_tree_find): New.
5679         (priority_list_find): New.
5680         (priority_queue_find): New.
5681         * priority_queue.h (priority_queue_predicate): New.
5682         (priority_queue_find): New.
5683         * task.c (gomp_init_task): Initialize detach field.
5684         (task_fulfilled_p): New.
5685         (GOMP_task): Add detach argument.  Ignore detach argument if
5686         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
5687         field.  Copy address of completion_sem into detach argument and
5688         into the start of the data record.  Wait for detach event if task
5689         not deferred.
5690         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5691         Remove completed tasks and requeue dependent tasks.
5692         (omp_fulfill_event): New.
5693         * team.c (gomp_new_team): Initialize task_detach_queue and
5694         task_detach_count fields.
5695         (free_team): Free task_detach_queue field.
5696         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5697         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5698         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5699         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5700         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5701         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5702         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5703         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5704         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5705         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5706         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5707         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5709 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
5711         PR target/70454
5712         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5713         be added through preprocessor check on
5714         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5716 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
5718         PR libgomp/65099
5719         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5720         configurations.
5721         * configure: Regenerate.
5722         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5723         check.
5725 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5727         * configure: Re-generate.
5729 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5731         * configure: Re-generate.
5733 2021-01-05  Julian Brown  <julian@codesourcery.com>
5735         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5736         (struct ptx_device): Add omp_stacks struct.
5737         (nvptx_open_device): Initialise cached-stacks housekeeping info.
5738         (nvptx_close_device): Free cached stacks block and mutex.
5739         (nvptx_stacks_free): New function.
5740         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5741         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5742         (nvptx_stacks_alloc): Rename to...
5743         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
5744         size or smaller is required.
5745         (nvptx_stacks_free): Remove.
5746         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5747         during kernel execution.
5749 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
5751         * libgomp.texi: Bump @copying's copyright year.
5753 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
5755         * libgomp.texi (Top): Avoid bad "up" link.
5757 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
5759         * testsuite/libgomp.c/task-6.c: New test.
5761 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
5763         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5764         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5766 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
5768         * testsuite/libgomp.fortran/scan-1.f90: New test.
5770 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
5772         PR target/97865
5773         * configure: Regenerate.
5775 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
5777         * configure: Regenerate.
5779 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
5781         * testsuite/libgomp.oacc-c++/cache-1.C: New.
5782         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5784 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
5786         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5787         expected results.
5789 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
5791         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5792         (reserved): Delete unused define.
5794 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
5796         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5797         Tcl 8.5-specific behavior.
5798         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5800 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5802         * env.c (gomp_global_icv): Remove nest_var field.  Add
5803         max_active_levels_var field.
5804         (gomp_max_active_levels_var): Remove.
5805         (parse_boolean): Return true on success.
5806         (handle_omp_display_env): Express OMP_NESTED in terms of
5807         max_active_levels_var.  Change format specifier for
5808         max_active_levels_var.
5809         (initialize_env): Set max_active_levels_var from
5810         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5811         OMP_PROC_BIND.
5812         * icv.c (omp_set_nested): Express in terms of
5813         max_active_levels_var.
5814         (omp_get_nested): Likewise.
5815         (omp_set_max_active_levels): Use max_active_levels_var field instead
5816         of gomp_max_active_levels_var.
5817         (omp_get_max_active_levels): Likewise.
5818         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
5819         max_active_levels_var field.
5820         (gomp_supported_active_levels): Set to UCHAR_MAX.
5821         (gomp_max_active_levels_var): Delete.
5822         * libgomp.texi (omp_get_nested): Update documentation.
5823         (omp_set_nested): Likewise.
5824         (OMP_MAX_ACTIVE_LEVELS): Likewise.
5825         (OMP_NESTED): Likewise.
5826         (OMP_NUM_THREADS): Likewise.
5827         (OMP_PROC_BIND): Likewise.
5828         * parallel.c (gomp_resolve_num_threads): Replace reference
5829         to nest_var with max_active_levels_var.  Use max_active_levels_var
5830         field instead of gomp_max_active_levels_var.
5832 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
5834         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5835         nvptx_usleep; use also for device={arch(gcn)}.
5837 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
5839         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5840         (foo): Add tests for non-VLA private and firstprivate clauses on
5841         omp task.
5842         (bar): Likewise.  Remove taking of address from private/firstprivate
5843         variables.
5844         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5845         (foo): Add p, q, px and s arguments.  Add tests for array reductions
5846         and for non-VLA private and firstprivate clauses on omp task.
5847         (bar): Removed.
5848         (main): Adjust foo caller.  Don't call bar.
5850 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5851             Thomas Schwinge  <thomas@codesourcery.com>
5853         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5854         New.
5855         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5856         Likewise.
5857         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5858         Likewise.
5859         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5860         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5862 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5863             Thomas Schwinge  <thomas@codesourcery.com>
5865         PR fortran/94358
5866         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5868 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
5870         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5871         for array reductions.
5872         (main): Adjust foo callers.
5874 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
5876         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5877         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5878         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5879         * allocator.c (omp_aligned_alloc): New for now static function,
5880         add alignment argument and handle it.
5881         (omp_alloc): Reimplement using omp_aligned_alloc.
5882         (GOMP_alloc, GOMP_free): New functions.
5883         (omp_free): Add ialias.
5884         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5885         * testsuite/libgomp.c++/allocate-1.C: New test.
5887 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
5889         PR fortran/97782
5890         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5892 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
5894         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5895         usable.
5896         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5897         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5898         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5899         (goacc_enter_data_internal): Likewise.
5900         * target.c (gomp_map_vars_internal):
5901         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5902         of gomp_attach_pointer for OpenMP cases.
5903         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5904         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5905         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5907 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
5908             Kwok Cheung Yeung  <kcy@codesourcery.com>
5910         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5911         * Makefile.in: Regenerate.
5912         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5913         pragmas to ignore -Wdeprecated-declarations warnings.
5914         * icv.c: Likewise.
5915         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5916         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5917         and omp_get_nested with __GOMP_DEPRECATED_5_0.
5918         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5919         deprecated.
5920         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5921         to test options.
5922         * testsuite/libgomp.c/affinity-1.c: Likewise.
5923         * testsuite/libgomp.c/affinity-2.c: Likewise.
5924         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5925         * testsuite/libgomp.c/lib-1.c: Likewise.
5926         * testsuite/libgomp.c/nested-1.c: Likewise.
5927         * testsuite/libgomp.c/nested-2.c: Likewise.
5928         * testsuite/libgomp.c/nested-3.c: Likewise.
5929         * testsuite/libgomp.c/pr32362-1.c: Likewise.
5930         * testsuite/libgomp.c/pr32362-2.c: Likewise.
5931         * testsuite/libgomp.c/pr32362-3.c: Likewise.
5932         * testsuite/libgomp.c/pr35549.c: Likewise.
5933         * testsuite/libgomp.c/pr42942.c: Likewise.
5934         * testsuite/libgomp.c/pr61200.c: Likewise.
5935         * testsuite/libgomp.c/sort-1.c: Likewise.
5936         * testsuite/libgomp.c/target-5.c: Likewise.
5937         * testsuite/libgomp.c/target-6.c: Likewise.
5938         * testsuite/libgomp.c/teams-1.c: Likewise.
5939         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5940         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5941         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5942         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5943         * testsuite/libgomp.fortran/lib1.f90: Likewise.
5944         * testsuite/libgomp.fortran/lib2.f: Likewise.
5945         * testsuite/libgomp.fortran/nested1.f90: Likewise.
5946         * testsuite/libgomp.fortran/teams1.f90: Likewise.
5948 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5950         PR target/85486
5951         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5952         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5953         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5955 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5957         PR testsuite/80219
5958         PR testsuite/85303
5959         * testsuite/lib/libgomp.exp (libgomp_init): Set
5960         'gcc_warning_prefix', 'gcc_error_prefix'.
5962 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
5964         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5965         even in field_tgt_clear initializer.
5967 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5969         * testsuite/libgomp.c/target-42.c: New test.
5971 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5972             Tom de Vries  <tdevries@suse.de>
5974         PR testsuite/81690
5975         * testsuite/libgomp.c/usleep.h: New file.
5976         * testsuite/libgomp.c/target-32.c: Include usleep.h.
5977         (main): Use tgt_usleep instead of usleep.
5978         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5979         (main): Use tgt_usleep instead of usleep.
5981 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5983         PR lto/96680
5984         * testsuite/libgomp.c/declare-variant-1.c: New test.
5986 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5988         * testsuite/libgomp.c/target-41.c: New test.
5990 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5992         * icv.c (omp_get_initial_device): Remove including corresponding
5993         ialias.
5994         * icv-device.c (omp_get_initial_device): New function.  Return
5995         gomp_get_num_devices ().  Add ialias.
5996         * target.c (resolve_device): Don't fail with
5997         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5998         gomp_get_num_devices ().
5999         (omp_target_alloc, omp_target_free, omp_target_is_present,
6000         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6001         omp_target_disassociate_ptr, omp_pause_resource): Use
6002         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6003         first use in the functions, in uses dominated by the
6004         gomp_get_num_devices call use num_devices_openmp instead.
6005         * libgomp.texi (omp_get_initial_device): Document.
6006         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6007         Add ialias.
6008         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6009         * testsuite/libgomp.c/target-40.c: New test.
6011 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6013         * env.c (parse_target_offload): Change new_offload var type to int,
6014         preinitialize to -1, remove found var and test new_offload != -1
6015         instead of found.
6017 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6019         * target.c (gomp_target_init): Inside of the function, use automatic
6020         variables corresponding to num_devices, num_devices_openmp and devices
6021         global variables and update the globals only at the end of the
6022         function.
6024 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6026         * env.c (gomp_target_offload_var): New.
6027         (parse_target_offload): New.
6028         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6029         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6030         * libgomp.h (gomp_target_offload_t): New.
6031         (gomp_target_offload_var): New.
6032         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6033         * target.c (resolve_device): Generate error if device not found and
6034         offloading is mandatory.
6035         (gomp_target_fallback): Generate error if offloading is mandatory.
6036         (GOMP_target): Add argument in call to gomp_target_fallback.
6037         (GOMP_target_ext): Likewise.
6038         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6039         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6040         (GOMP_target_data_ext): Likewise.
6041         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6042         (gomp_target_init): Return early if offloading is disabled.
6044 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6046         * libgomp.texi (omp_get_max_active_levels): Modify description.
6047         (omp_get_supported_active_levels): Make descriptions consistent.
6049 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6051         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6053 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6055         * env.c (gomp_max_active_levels_var): Initialize to
6056         gomp_supported_active_levels.
6057         (initialize_env): Limit gomp_max_active_levels_var to be at most
6058         equal to gomp_supported_active_levels.
6059         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6060         (omp_get_supported_active_levels_): New.
6061         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6062         to at most equal to gomp_supported_active_levels.
6063         (omp_get_supported_active_levels): New.
6064         * libgomp.h (gomp_supported_active_levels): New.
6065         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6066         omp_get_supported_active_levels_.
6067         * libgomp.texi (omp_get_supported_active_levels): New.
6068         (omp_set_max_active_levels): Update.  Add reference to
6069         omp_get_supported_active_levels.
6070         * omp.h.in (omp_get_supported_active_levels): New.
6071         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6072         * omp_lib.h.in (omp_get_supported_active_levels): New.
6073         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6074         against omp_get_supported_active_levels.
6075         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6077 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6079         * config/t-aix: Delete and recreate libgomp before creating
6080         FAT library.
6082 2020-10-08  Tom de Vries  <tdevries@suse.de>
6084         PR libgomp/81802
6085         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6086         dimensions.
6088 2020-10-06  Tom de Vries  <tdevries@suse.de>
6090         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6092 2020-10-06  Tom de Vries  <tdevries@suse.de>
6094         PR middle-end/90861
6095         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6097 2020-10-05  Tom de Vries  <tdevries@suse.de>
6099         PR fortran/95654
6100         * testsuite/libgomp.fortran/pr95654.f90: New test.
6102 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6104         * Makefile.in: Regenerate with automake 1.15.1.
6105         * aclocal.m4: Likewise.
6106         * configure: Likewise.
6107         * testsuite/Makefile.in: Likewise.
6109 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6111         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6112         and amdgcn targets.
6114 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6116         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6118 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6120         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6121         total number of threads is one.
6122         (gomp_team_barrier_wake): Likewise.
6123         (gomp_team_barrier_wait_end): Likewise.
6124         (gomp_team_barrier_wait_cancel_end): Likewise.
6125         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6126         (gomp_team_barrier_wake): Likewise.
6127         (gomp_team_barrier_wait_end): Likewise.
6128         (gomp_team_barrier_wait_cancel_end): Likewise.
6129         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6131 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6133         PR middle-end/96390
6134         * testsuite/libgomp.c++/pr96390.C: New test.
6135         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6137 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6139         * config/t-aix: Use $(AR) without -X32_64.
6141 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6143         * testsuite/libgomp.c/loop-25.c: New test.
6145 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6147         PR fortran/95654
6148         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6150 2020-09-22  Tom de Vries  <tdevries@suse.de>
6152         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6153         fails.
6155 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6157         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6159 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6161         PR fortran/96668
6162         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6164 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6166         PR fortran/96668
6167         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6168         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6169         (gomp_map_vars_existing): Update call to it.
6170         (gomp_map_fields_existing): Likewise
6171         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6172         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6173         remapped.
6174         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6175         GOMP_MAP_POINTER.
6176         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6177         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6179 2020-09-14  Tom de Vries  <tdevries@suse.de>
6181         * config/nvptx/atomic.c: New file.  Add
6182         __sync_val_compare_and_swap_16.
6183         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6184         target offload_target_nvptx.
6186 2020-09-08  Julian Brown  <julian@codesourcery.com>
6188         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6189         iteration-ordering assumptions.
6191 2020-09-08  Julian Brown  <julian@codesourcery.com>
6193         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6194         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6196 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
6198         * plugin/plugin-nvptx.c (nvptx_free):
6199         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6200         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6201         comments.
6203 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
6205         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6207 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6209         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6211 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
6213         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6214         * testsuite/libgomp.c/loop-23.c (main): Likewise.
6215         * testsuite/libgomp.c/loop-24.c: New test.
6217 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
6218             Tobias Burnus  <tobias@codesourcery.com>
6220         PR fortran/93553
6221         * testsuite/libgomp.fortran/pr93553.f90: New test.
6223 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6225         * testsuite/libgomp.c/loop-22.c: New test.
6226         * testsuite/libgomp.c/loop-23.c: New test.
6228 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6230         PR middle-end/96459
6231         * testsuite/libgomp.c/teams-3.c: New test.
6232         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6233         if not defined yet.
6234         (N(test)): Use it before all N(f*) calls.
6235         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6236         (main): Don't call all test_* functions from within
6237         #pragma omp teams reduction(|:err), call them directly.
6239 2020-08-04  Tom de Vries  <tdevries@suse.de>
6241         PR target/96428
6242         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6243         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6245 2020-08-03  Julian Brown  <julian@codesourcery.com>
6246             Thomas Schwinge  <thomas@codesourcery.com>
6248         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6249         shared-memory devices.  Extend with further checking.
6251 2020-08-03  Martin Jambor  <mjambor@suse.cz>
6253         * plugin/Makefrag.am: Remove configuration of HSA plugin.
6254         * aclocal.m4: Regenerated.
6255         * Makefile.in: Regenerated.
6256         * config.h.in: Regenerated.
6257         * configure: Regenerated.
6258         * plugin/configfrag.ac: Likewise.
6259         * plugin/hsa_ext_finalize.h: Removed.
6260         * plugin/plugin-hsa.c: Likewise.
6261         * testsuite/Makefile.in: Regenerated.
6262         * testsuite/lib/libgomp.exp
6263         (offload_target_to_openacc_device_type): Remove hsa case.
6264         (check_effective_target_hsa_offloading_selected_nocache): Removed
6265         (check_effective_target_hsa_offloading_selected): Likewise.
6266         (libgomp_init): Do not add -Wno-hsa to additional_flags.
6267         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6268         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6269         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6270         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6271         * testsuite/libgomp.hsa.c/c.exp: Likewise.
6272         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6273         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6274         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6275         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6276         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6277         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6278         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6279         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6280         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6281         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6282         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6283         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6284         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6285         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6286         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6287         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6288         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6289         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6290         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6292 2020-07-27  Julian Brown  <julian@codesourcery.com>
6293             Thomas Schwinge  <thomas@codesourcery.com>
6295         * libgomp.h (struct target_var_desc): Rename do_detach field to
6296         is_attach.
6297         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
6298         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6299         (goacc_enter_data_internal): Don't affect reference counts
6300         for attach mappings.
6301         (goacc_exit_data_internal): Don't affect reference counts for detach
6302         mappings.
6303         * target.c (gomp_map_vars_existing): Don't affect reference counts for
6304         attach mappings.
6305         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6306         mark attach mappings.
6307         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6308         reference count for attach mappings.
6309         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6310         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6311         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6312         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6313         test as shouldfail.
6314         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6315         gracefully in no-finalize mode.
6316         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6318 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
6320         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6321         use.
6322         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6323         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6325 2020-07-23  Julian Brown  <julian@codesourcery.com>
6326             Thomas Schwinge  <thomas@codesourcery.com>
6328         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6329         finalization for detach operation.
6330         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6331         New test.
6333 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
6335         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6336         * libgomp_f.h.in (omp_check_defines): Check whether
6337         sizeof of determined Fortran kind and C typedef match.
6338         * omp_lib.f90.in: Add omp_depened_kind.
6339         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6340         * configure: Regenerate.
6341         * Makefile.in: Regenerate.
6342         * testsuite/Makefile.in: Regenerate.
6344 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6346         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6347         gcc/testsuite/c-c++-common/gomp/.
6348         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6349         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6350         from gcc/testsuite/gfortran.dg/gomp/.
6351         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6353 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6355         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6356         * omp_lib.h.in: Likewise.
6358 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
6360         PR target/95620
6361         * testsuite/libgomp.c/pr95620.c: New test.
6363 2020-07-16  Julian Brown  <julian@codesourcery.com>
6364             Thomas Schwinge  <thomas@codesourcery.com>
6366         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6367         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6369 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6371         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6372         avoid conversion on 32bit systems from 32bit to 64bit due
6373         to -fdefault-integer-8.
6375 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6377         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6378         variables; add character(kind=4) tests; update TODO comment.
6380 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6382         * allocator.c: Add ialias for omp_init_allocator and
6383         omp_destroy_allocator.
6384         * configure.ac: Set INTPTR_T_KIND.
6385         * configure: Regenerate.
6386         * Makefile.in: Regenerate.
6387         * testsuite/Makefile.in: Regenerate.
6388         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6389         omp_set_default_allocator_, omp_get_default_allocator_): New
6390         functions and ialias_redirect.
6391         * icv.c: Add ialias for omp_set_default_allocator and
6392         omp_get_default_allocator.
6393         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6394         omp_destroy_allocator_, omp_set_default_allocator_ and
6395         omp_get_default_allocator_.
6396         * omp_lib.f90.in: Add allocator traits parameters, declare
6397         allocator routines and add related kind parameters.
6398         * omp_lib.h.in: Likewise.
6399         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6400         * testsuite/libgomp.fortran/alloc-1.F90: New test.
6401         * testsuite/libgomp.fortran/alloc-2.F90: New test.
6402         * testsuite/libgomp.fortran/alloc-3.F: New test.
6403         * testsuite/libgomp.fortran/alloc-4.f90: New test.
6404         * testsuite/libgomp.fortran/alloc-5.f90: New test.
6406 2020-07-14  Tom de Vries  <tom@codesourcery.com>
6407             Cesar Philippidis  <cesar@codesourcery.com>
6408             Thomas Schwinge  <thomas@codesourcery.com>
6409             Kwok Cheung Yeung  <kcy@codesourcery.com>
6411         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6412         New variable.
6413         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
6414         acc_init_state to initializing at the start, and to initialized at the
6415         end.
6416         (self_initializing_p): New function.
6417         (acc_get_device_type): Return acc_device_none if called by thread that
6418         is currently executing acc_init_1.
6419         * libgomp.texi (acc_get_device_type): Update documentation.
6420         (Implementation Status and Implementation-Defined Behavior): Likewise.
6421         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6423 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
6425         * config/t-aix: Set BITS from compiler cpp macro.
6427 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6429         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6431 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6433         PR fortran/67311
6434         * testsuite/libgomp.fortran/target-map-1.f90: New test.
6436 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
6438         * testsuite/libgomp.c/loop-21.c: New test.
6440 2020-07-13  Julian Brown  <julian@codesourcery.com>
6441             Thomas Schwinge  <thomas@codesourcery.com>
6443         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6445 2020-07-10  Julian Brown  <julian@codesourcery.com>
6446             Thomas Schwinge  <thomas@codesourcery.com>
6448         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6449         dynamic_refcount.
6450         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6451         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6452         dynamic_refcount.
6453         (acc_unmap_data): Update comment.
6454         (goacc_map_var_existing, goacc_enter_datum): Adjust for
6455         dynamic_refcount semantics.
6456         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6457         Adjust for dynamic_refcount semantics.
6458         (goacc_enter_data_internal): Implement "present" case of dynamic
6459         memory-map handling here.  Update "non-present" case for
6460         dynamic_refcount semantics.
6461         (goacc_exit_data_internal): Use goacc_exit_datum_1.
6462         * target.c (gomp_map_vars_internal): Remove
6463         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
6464         handling.
6465         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6466         (gomp_load_image_to_device): Substitute dynamic_refcount for
6467         virtual_refcount.
6468         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6469         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6470         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6471         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6472         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6473         trace output.
6474         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6475         trace output.
6476         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6477         test.
6478         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6479         Remove stale comment.
6480         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6481         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6482         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6483         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6484         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6485         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6487 2020-07-10  Julian Brown  <julian@codesourcery.com>
6488             Thomas Schwinge  <thomas@codesourcery.com>
6490         * oacc-mem.c (goacc_map_var_existing): New function.
6491         (goacc_enter_datum): Use above function.
6492         (goacc_exit_datum_1): New function.
6493         (goacc_exit_datum): Use above function.
6495 2020-07-09  Julian Brown  <julian@codesourcery.com>
6496             Thomas Schwinge  <thomas@codesourcery.com>
6498         PR middle-end/95270
6499         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6500         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6502 2020-07-09  Julian Brown  <julian@codesourcery.com>
6504         * oacc-mem.c (find_group_last): Group data-movement clauses
6505         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6506         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
6508 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6510         * testsuite/libgomp.c/loop-19.c: New test.
6511         * testsuite/libgomp.c/loop-20.c: New test.
6513 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6515         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6516         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
6517         it.  Remove __omp_alloctrait_value_max__.
6518         * allocator.c (omp_init_allocator): Handle omp_atv_default for
6519         omp_atk_alignment and omp_atk_pool_size.
6521 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6523         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6524         behavior for 'GOMP_MAP_FORCE_FROM'.
6525         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6527 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6529         * oacc-mem.c (goacc_exit_data_internal): Remove
6530         'GOMP_MAP_ALWAYS_FROM' handling.
6532 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6534         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6535         'scan-assembler' with 'scan-offload-rtl'.
6536         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6537         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6538         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6539         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6541 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6543         * target.c (gomp_map_vars_existing): Assert 'kind !=
6544         GOMP_MAP_ATTACH'.
6545         (gomp_map_vars_internal): Clean up.
6547 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
6549         * testsuite/libgomp.c/loop-17.c: New test.
6550         * testsuite/libgomp.c/loop-18.c: New test.
6552 2020-06-26  Marek Polacek  <polacek@redhat.com>
6554         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6556 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
6558         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6559         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6561 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
6563         * Makefile.am: Use -include.
6564         * Makefile.in: Regenerate.
6566 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
6568         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6569         * Makefile.in: Regenerate
6570         * configure.ac (tmake_file): Substitute.
6571         * configure: Regenerate.
6572         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6573         * config/t-aix: New file.
6575 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
6577         PR lto/94848
6578         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6579         'dg-do run'.
6581 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
6583         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6584         variant for HSA_RUNTIME_LIB name.
6585         (find_executable_symbol_1): Delete.
6586         (find_executable_symbol): Delete.
6587         (init_kernel_properties): Add ".kd" suffix to symbol names.
6588         (find_load_offset): Delete.
6589         (create_and_finalize_hsa_program): Remove relocation handling.
6591 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
6593         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6595 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
6597         PR lto/94848
6598         PR middle-end/95551
6599         * testsuite/libgomp.fortran/target-var.f90: New test.
6601 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6602             Julian Brown  <julian@codesourcery.com>
6604         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6605         special handling.
6607 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6608             Julian Brown  <julian@codesourcery.com>
6610         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6611         Simplify.
6613 2020-06-05  Julian Brown  <julian@codesourcery.com>
6615         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6616         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6618 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6620         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6621         Evaluate 'copyfrom' individually for each entry.
6622         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6624 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6626         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6627         Evaluate 'finalize' individually for each entry.
6628         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6629         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6630         file.
6632 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6634         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6635         usage.
6636         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6638 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6639             Julian Brown  <julian@codesourcery.com>
6641         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6642         checking.
6643         (acc_unmap_data, goacc_exit_data_internal): Restore
6644         'is_tgt_unmapped' checking.
6645         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6646         file.
6647         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6648         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6649         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6650         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6651         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6652         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6654 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6655             Julian Brown  <julian@codesourcery.com>
6657         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6659 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6661         PR libgomp/92854
6662         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6664 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6666         PR libgomp/92854
6667         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6668         more.
6670 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6671             Julian Brown  <julian@codesourcery.com>
6673         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6674         'gomp_map_vars'.
6675         (acc_map_data): Clean up accordingly.
6677 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6679         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6680         of over-eager 'finalize' clause.
6681         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6682         file.
6683         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6684         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6685         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6686         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6687         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6688         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6689         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6690         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6692 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6694         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6696 2020-06-04  Julian Brown  <julian@codesourcery.com>
6698         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6699         error path.
6700         (goacc_detach_internal): Likewise.
6702 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6704         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6705         the checkpoint.
6706         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6707         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6708         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6709         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6710         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6712 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
6714         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6715         defined.
6717 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6719         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6721 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6723         * allocator.c (omp_alloc): For size == 0, return NULL early.
6725 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
6727         PR bootstrap/95413
6728         * configure: Regenerated.
6730 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
6732         PR libfortran/95191
6733         * testsuite/libgomp.fortran/async_io_9.f90: New test.
6735 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
6737         * omp.h.in (omp_uintptr_t): New typedef.
6738         (__GOMP_UINTPTR_T_ENUM): Define.
6739         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6740         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6741         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6742         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6743         omp_get_default_allocator, omp_alloc, omp_free): Declare.
6744         * libgomp.h (struct gomp_team_state): Add def_allocator field.
6745         (gomp_def_allocator): Declare.
6746         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6747         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6748         omp_alloc and omp_free.
6749         * team.c (gomp_team_start): Copy over ts.def_allocator.
6750         * env.c (gomp_def_allocator): New variable.
6751         (parse_wait_policy): Adjust function comment.
6752         (parse_allocator): New function.
6753         (handle_omp_display_env): Print OMP_ALLOCATOR.
6754         (initialize_env): Call parse_allocator.
6755         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6756         * allocator.c: New file.
6757         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6758         functions.
6759         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6760         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6761         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6762         * Makefile.in: Regenerated.
6764 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6766         PR bootstrap/95147
6767         * configure: Regenerated.
6769 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
6771         PR libfortran/95119
6772         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6774 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6776         * configure: Regenerated.
6778 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
6780         * testsuite/libgomp.c-c++-common/target-40.c: New test.
6782 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
6784         PR fortran/94690
6785         * testsuite/libgomp.fortran/pr66199-3.f90: New.
6786         * testsuite/libgomp.fortran/pr66199-4.f90: New.
6787         * testsuite/libgomp.fortran/pr66199-5.f90: New.
6788         * testsuite/libgomp.fortran/pr66199-6.f90: New.
6789         * testsuite/libgomp.fortran/pr66199-7.f90: New.
6790         * testsuite/libgomp.fortran/pr66199-8.f90: New.
6791         * testsuite/libgomp.fortran/pr66199-9.f90: New.
6793 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
6795         * testsuite/libgomp.c/target-39.c: New test.
6797 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6799         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6800         * openacc.f90 (acc_device_current): Likewise.
6801         * openacc.h (acc_device_current): Likewise.
6802         * openacc_lib.h (acc_device_current): Likewise.
6804         PR target/94282
6805         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6806         'dg-allow-blank-lines-in-output'.
6808         * oacc-init.c (get_openacc_name): Handle 'gcn'.
6809         * testsuite/lib/libgomp.exp
6810         (offload_target_to_openacc_device_type) [amdgcn*]: Return
6811         'radeon'.  Adjust all users.
6812         (check_effective_target_openacc_amdgcn_accel_present): Rename
6813         to...
6814         (check_effective_target_openacc_radeon_accel_present): ... this.
6815         Adjust all users.
6816         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6817         (check_effective_target_openacc_radeon_accel_selected): ... this.
6818         Adjust all users.
6820         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6821         'dg-do run'.
6823 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
6825         PR other/94629
6827         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6828         hsa_iterate_agents.
6829         (GOMP_OFFLOAD_init_device): Check return values from both calls to
6830         hsa_agent_iterate_regions.
6832 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6834         PR middle-end/94635
6835         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6836         run'.
6838 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
6840         PR middle-end/94120
6841         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6842         test case.
6844 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
6846         PR middle-end/94635
6847         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6849 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
6851         PR libgomp/92843
6852         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6853         Rename to...
6854         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6855         ... this.
6856         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6857         Rename to...
6858         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6859         ... this.
6860         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6861         Rename to...
6862         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6863         ... this.
6864         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6865         Rename to...
6866         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6867         ... this.
6868         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6869         Rename to...
6870         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6871         ... this.
6872         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6873         Rename to...
6874         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6875         ... this.
6876         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6877         Rename to...
6878         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6879         ... this.
6880         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6881         Rename to...
6882         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6883         ... this.
6884         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6885         Rename to...
6886         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6887         ... this.
6888         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6889         Rename to...
6890         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6891         ... this.
6892         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6893         Rename to...
6894         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6895         ... this.
6896         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6897         Rename to...
6898         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6899         ... this.
6900         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6901         Rename to...
6902         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6903         ... this.
6904         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6905         Rename to...
6906         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6907         ... this.
6908         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6909         Rename to...
6910         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6911         ... this.
6912         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6913         Rename to...
6914         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6915         ... this.
6917 2020-04-10  Julian Brown  <julian@codesourcery.com>
6918             Thomas Schwinge  <thomas@codesourcery.com>
6920         PR libgomp/92843
6921         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6922         New file.
6923         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6924         Likewise.
6925         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6926         Likewise.
6927         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6928         Likewise.
6929         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6930         Likewise.
6931         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6932         Likewise.
6933         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6934         Likewise.
6935         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6936         Likewise.
6937         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6938         Likewise.
6939         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6940         Likewise.
6941         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6942         Likewise.
6943         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6944         Likewise.
6945         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6946         Likewise.
6947         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6948         Likewise.
6949         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6950         Likewise.
6951         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6952         Likewise.
6954 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
6956         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6957         run'.
6959 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
6961         PR middle-end/94120
6962         * libgomp.oacc-c++/declare-pr94120.C: New.
6964 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
6966         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6967         files.
6968         * configure: Regenerate.
6969         * testsuite/libgomp-site-extra.exp.in: New file.
6970         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6971         variable.
6972         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6973         variable.
6974         * testsuite/Makefile.in: Regenerate.
6976 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6978         PR tree-optimization/89713
6979         PR c/94392
6980         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6981         'bar.sync'.
6982         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6984 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
6986         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6987         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6989 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
6991         PR libgomp/81689
6992         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6994 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
6996         PR libgomp/94251
6997         * target.c (gomp_load_image_to_device): Fix link
6998         variable handling.
7000 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7002         PR c++/93931
7003         * testsuite/libgomp.c++/pr93931.C: New test.
7005 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7007         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7008         dg-allow-blank-lines-in-output.
7010 2020-03-18  Julian Brown <julian@codesourcery.com>
7011             Tobias Burnus  <tobias@codesourcery.com>
7013         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7014         it work concurrently.
7016 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7018         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7019         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7020         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7022 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7024         PR middle-end/93566
7025         * testsuite/libgomp.c/pr93566.c: New test.
7027 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7029         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7030         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7031         integer(acc_device_property) for the type of the return value of
7032         acc_get_property.
7034 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7036         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7037         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7038         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7039         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7040         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7041         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7042         corrections; add note about the previous interface and named constant.
7043         (OpenACC library and environment variables): Fix two typos.
7044         * openacc.f90: Use for all procedures the argument names from the spec
7045         as for â€¦_h they are user visible.
7046         (openacc_kinds): Rename acc_device_property to
7047         acc_device_property_kinds and change value to int32 ; and update users.
7048         Re-add acc_device_property for for backward compatibility.
7049         (acc_get_property_string_h): Clean up as acc_device_property_kind
7050         changed.
7051         (acc_get_property_h): Likewise and return c_size_t instead of
7052         acc_device_property.
7053         (openacc): Also export acc_device_property_kinds.
7054         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7055         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7056         handling; check against /= 0 instead of == 1 to match C.
7057         * openacc_lib.h: Use for all procedures the argument names from the spec
7058         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7059         be active also for fixed-form souce form.
7060         (acc_device_current, acc_device_property_kind, acc_device_property,
7061         acc_property_memory, acc_property_free_memory, acc_property_name,
7062         acc_property_vendor, acc_property_driver): New named constants.
7063         (acc_get_property, acc_get_property_string): New generic interface.
7065 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7067         PR libgomp/93481
7068         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7069         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7070         optional.
7071         (gomp_target_task_fn): Assert "devicep->async_run_func".
7072         (clear_unsupported_flags): New function to remove unsupported flags
7073         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7074         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7075         * testsuite/libgomp.c/target-33.c:
7076         Remove xfail for offload_target_nvptx.
7077         * testsuite/libgomp.c/target-34.c: Likewise.
7079 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7081         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7082         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7083         * testsuite/libgomp.c/target-34.c: Likewise.
7084         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7085         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7087 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7089         * testsuite/libgomp.c/target-38.c: New test.
7091 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7093         PR libgomp/93515
7094         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7096 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7098         * testsuite/lib/libgomp.exp
7099         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7100         and not as 'source' argument to libgomp_target_compile.
7102 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7104         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7105         (gcn_gfx801_s): Remove.
7106         (isa_hsa_name): Remove gfx801.
7107         (isa_gcc_name): Remove gfx801/carizzo.
7108         (isa_code): Remove gfx801.
7110 2020-02-03  Julian Brown  <julian@codesourcery.com>
7111             Tobias Burnus  <tobias@codesourcery.com>
7113         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7114         and *_finalize variants; document acc_attach and acc_detach; update
7115         references from OpenACC 2.0 to 2.6.
7116         * openacc.f90 (openacc_version): Update to 201711.
7117         * openacc_lib.h (openacc_version): Update to 201711.
7118         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7119         openacc_version to 201711.
7120         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7122 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7124         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7125         and vgpr_count fields.
7126         (struct kernel_info): Add a field for a hsa_kernel_description.
7127         (run_kernel): Reduce the number of threads/workers if the requested
7128         number would require too many VGPRs.
7129         (init_basic_kernel_info): Initialize description field with
7130         the hsa_kernel_description entry for the kernel.
7132 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7134         PR bootstrap/93409
7135         * plugin/configfrag.ac (enable_offload_targets): Skip
7136         HSA and GCN plugin besides -m32 also for -mx32.
7137         * configure: Regenerate.
7139 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7141         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7143 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7145         * plugin-gcn.c (struct agent_info): Add fields "name" and
7146         "vendor_name" ...
7147         (GOMP_OFFLOAD_init_device): ... and init from here.
7148         (struct hsa_context_info): Add field "driver_version_s" ...
7149         (init_hsa_contest): ... and init from here.
7150         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7151         implementation.
7152         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7153         Enable test execution for amdgcn and host offloading targets.
7154         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7155         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7156         (expect_device_properties): Split function into ...
7157         (expect_device_string_properties): ... this new function ...
7158         (expect_device_memory): ... and this new function.
7159         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7160         Add test.
7162 2020-01-28  Julian Brown  <julian@codesourcery.com>
7164         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7165         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7166         component/non-component variable refs in a single directive.
7167         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7169 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7171         * configure.ac: Handle `--with-toolexeclibdir='.
7172         * Makefile.in: Regenerate.
7173         * aclocal.m4: Regenerate.
7174         * configure: Regenerate.
7175         * testsuite/Makefile.in: Regenerate.
7177 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7179         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7180         (expect_device_properties): Remove "expected_free_mem" argument,
7181         change "expected_total_mem" argument type to size_t;
7182         change types of acc_get_property results to size_t,
7183         adapt format strings.
7184         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7185         Use %zu instead of %zd to print size_t values.
7186         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7187         rename to ...
7188         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7189         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7190         rename to ...
7191         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7193 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
7195         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7196         the device id.
7198 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
7200         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7201         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7202         Adjust test dimensions for amdgcn.
7203         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7204         gang/worker/vector expectations dynamically.
7205         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7206         (main): Likewise.
7207         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7208         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7209         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7210         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7211         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7212         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7213         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7214         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7215         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7216         (acc_gang): Recognise acc_device_radeon.
7217         (acc_worker): Likewise.
7218         (acc_vector): Likewise.
7219         (main): Set expectations for amdgcn.
7220         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7221         (main): Adjust gang/worker/vector expectations dynamically.
7222         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7223         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7224         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7225         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7226         for amdgcn.
7228 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
7230         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7231         acc_device_radeon.
7232         (openacc): Likewise.
7233         * openacc.f90 (openacc_kinds): Likewise.
7234         (openacc): Likewise.
7235         * openacc.h (acc_device_t): Likewise.
7236         * openacc_lib.h: Likewise.
7237         * testsuite/lib/libgomp.exp
7238         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7239         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7240         (cb_compute_construct_end): Likewise.
7241         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7242         (cb_enqueue_launch_start): Likewise.
7243         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7244         (cb_enter_data_end): Likewise.
7245         (cb_exit_data_start): Likewise.
7246         (cb_exit_data_end): Likewise.
7247         (cb_compute_construct_end): Likewise.
7248         (cb_enqueue_launch_start): Likewise.
7249         (cb_enqueue_launch_end): Likewise.
7250         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7251         (main): Likewise.
7253 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7255         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
7256         to use this instead of 'enum gomp_device_property'.
7257         (GOMP_OFFLOAD_get_property): Rename to...
7258         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
7259         * libgomp.h (struct gomp_device_descr): Move
7260         'GOMP_OFFLOAD_openacc_get_property'...
7261         (struct acc_dispatch_t): ... here.  Adjust all users.
7262         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7264         * target.c (gomp_map_vars_internal)
7265         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7266         paths.
7268 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
7270         PR libgomp/93219
7271         * libgomp.h (gomp_print_string): Change return type from void to int.
7272         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
7273         not all characters have been written.
7275 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
7277         * libgomp.texi: Fix typos, use https.
7279 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
7281         * testsuite/libgomp.fortran/optional-map.f90: Add test for
7282         unallocated/disassociated actual arguments to nonallocatable/nonpointer
7283         dummy arguments; those are/shall be regarded as absent arguments.
7284         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7285         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7287 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
7289         Update copyright years.
7291         * libgomp.texi: Bump @copying's copyright year.
7293 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
7295         PR libgomp/93065
7296         * oacc-init.c (goacc_runtime_deinitialize): New function.
7298 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
7300         PR bootstrap/93074
7301         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7302         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
7304 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
7305             Frederik Harwath  <frederik@codesourcery.com>
7306             Thomas Schwinge  <tschwinge@codesourcery.com>
7308         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7309         * libgomp-plugin.h (gomp_device_property_value): New union.
7310         (gomp_device_property_value): New prototype.
7311         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7312         constant.
7313         (acc_device_property_t): New enum.
7314         (acc_get_property, acc_get_property_string): New prototypes.
7315         * oacc-init.c (acc_get_device_type): Also assert that result
7316         is not `acc_device_current'.
7317         (get_property_any, acc_get_property, acc_get_property_string):
7318         New functions.
7319         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7320         `acc_property_memory', `acc_property_free_memory',
7321         `acc_property_name', `acc_property_vendor' and
7322         `acc_property_driver' constants.  Add `acc_device_property' data
7323         type.
7324         (openacc_internal): Add `acc_get_property' and
7325         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
7326         `acc_get_property_string_h', `acc_get_property_l' and
7327         `acc_get_property_string_l'.
7328         * oacc-host.c (host_get_property): New function.
7329         (host_dispatch): Wire it.
7330         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7331         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7332         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7333         * libgomp.texi (OpenACC Runtime Library Routines): Add
7334         `acc_get_property'.
7335         (acc_get_property): New node.
7336         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7337         function (stub).
7338         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7339         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7340         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7341         calls.
7342         (GOMP_OFFLOAD_get_property): New function.
7343         (struct ptx_device): Add new field "name".
7344         (cuda_driver_version_s): Add new static variable ...
7345         (nvptx_init): ... and init from here.
7347         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7348         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7349         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7350         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7351         with test helper functions.
7353         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7355 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
7357         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7358         variable.
7360 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
7362         * target.c (gomp_map_vars_internal): Restore 'omp declare target
7363         link' handling.
7365 2019-12-19  Julian Brown  <julian@codesourcery.com>
7367         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7368         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7369         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7371 2019-12-19  Julian Brown  <julian@codesourcery.com>
7372             Cesar Philippidis  <cesar@codesourcery.com>
7374         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7375         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7376         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7377         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7378         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7379         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7380         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7381         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7382         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7383         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7384         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7385         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7386         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7388 2019-12-19  Julian Brown  <julian@codesourcery.com>
7390         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7391         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7392         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7393         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7394         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7395         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7396         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7397         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7398         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7399         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7400         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7401         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7403 2019-12-19  Julian Brown  <julian@codesourcery.com>
7405         * libgomp.h (struct target_var_desc): Add do_detach flag.
7406         * oacc-init.c (acc_shutdown_1): Free aux block if present.
7407         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7408         struct components.  Tidy up and add some new checks.
7409         (goacc_enter_data_internal): Update call to find_group_last.
7410         (goacc_exit_data_internal): Support detach operations and
7411         GOMP_MAP_STRUCT.
7412         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7413         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
7414         attach/detach in enter/exit data detection code.
7415         * target.c (gomp_map_vars_existing): Initialise do_detach field of
7416         tgt_var_desc.
7417         (gomp_map_vars_internal): Support attach.
7418         (gomp_unmap_vars_internal): Support detach.
7420 2019-12-19  Julian Brown  <julian@codesourcery.com>
7421             Thomas Schwinge  <thomas@codesourcery.com>
7423         * libgomp.h (struct splay_tree_aux): Add attach_count field.
7424         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7425         * libgomp.map (OACC_2.6): New section. Add acc_attach,
7426         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7427         acc_detach_finalize_async.
7428         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7429         acc_detach, acc_detach_async, acc_detach_finalize,
7430         acc_detach_finalize_async): New functions.
7431         * openacc.h (acc_attach, acc_attach_async, acc_detach,
7432         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7433         prototypes.
7434         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7435         (gomp_remove_var_internal): Free attachment counts if present.
7436         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7437         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7439 2019-12-19  Julian Brown  <julian@codesourcery.com>
7440             Cesar Philippidis  <cesar@codesourcery.com>
7442         * libgomp.h (gomp_map_val): Add prototype.
7443         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7444         open-coding device-address calculation.
7445         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7446         non-present case.
7448 2019-12-19  Julian Brown  <julian@codesourcery.com>
7450         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7451         field for virtual_refcount.
7452         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7453         (gomp_free_memmap): Remove prototype.
7454         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7455         instead of calling gomp_free_memmap.
7456         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7457         dynamic_refcount.
7458         (acc_unmap_data): Open code instead of forcing target_mem_desc's
7459         to_free field to NULL then calling gomp_unmap_vars.  Handle
7460         REFCOUNT_INFINITY on target blocks.
7461         (goacc_enter_data): Rename to...
7462         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
7463         handling for mapping groups.  Use virtual_refcount instead of
7464         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7465         map_map_vars_async call.  Re-do lookup for target pointer return value.
7466         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7467         renamed goacc_enter_datum function.
7468         (goacc_exit_data): Rename to...
7469         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
7470         (acc_delete, acc_delete_async, acc_delete_finalize,
7471         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7472         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7473         goacc_exit_datum function.
7474         (gomp_acc_remove_pointer, find_pointer): Remove functions.
7475         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7476         New functions.
7477         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7478         goacc_exit_data_internal helper functions.
7479         * target.c (gomp_map_vars_internal): Handle
7480         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
7481         semantics.
7482         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7483         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7484         virtual_refcount field instead of dynamic_refcount.
7485         (gomp_free_memmap): Remove function.
7486         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7487         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7488         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7490 2019-12-19  Julian Brown  <julian@codesourcery.com>
7491             Thomas Schwinge  <thomas@codesourcery.com>
7493         * libgomp.h (struct splay_tree_aux): New.
7494         (struct splay_tree_key_s): Replace link_key field with aux pointer.
7495         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7496         to aux struct.
7497         (gomp_remove_var_internal): Free aux block if present.
7498         (gomp_load_image_to_device): Zero-initialise aux field instead of
7499         link_key field.
7500         (omp_target_associate_pointer): Zero-initialise aux field.
7502 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
7504         PR middle-end/86416
7505         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7506         q or none.
7507         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7508         L or none.
7510 2019-12-19  Julian Brown  <julian@codesourcery.com>
7511             Maciej W. Rozycki  <macro@codesourcery.com>
7512             Tobias Burnus  <tobias@codesourcery.com>
7513             Thomas Schwinge  <thomas@codesourcery.com>
7515         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7516         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7517         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7518         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7519         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7520         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7521         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7522         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7523         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7525 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
7527         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7528         called...
7529         (goacc_insert_pointer): ... from here, "present" case.
7530         (goacc_insert_pointer): Inline function into...
7531         (GOACC_enter_exit_data): ... here, and simplify.
7533         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7534         called...
7535         (goacc_insert_pointer): ... from here, "not present" case.
7537         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
7538         all users.
7540         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7541         'goacc_enter_data', 'goacc_exit_data'.
7543         * oacc-mem.c (delete_copyout): Refactor into...
7544         (goacc_exit_data): ... this.  Adjust all users.
7546         * oacc-mem.c (present_create_copy): Refactor into...
7547         (goacc_enter_data): ... this.  Adjust all users.
7549         * target.c (gomp_unmap_vars_internal): Add a safeguard to
7550         'gomp_remove_var'.
7552         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7553         like 'GOMP_MAP_FROM'.
7555         PR libgomp/92726
7556         PR libgomp/92970
7557         PR libgomp/92984
7558         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7559         fails.
7560         (GOACC_enter_exit_data): Simplify accordingly.
7561         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7562         subsuming...
7563         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7564         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7565         file.
7566         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7567         subsuming...
7568         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7569         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7570         file.
7571         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7572         subsuming...
7573         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7575         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7576         'finalize' handling.
7578         PR libgomp/92848
7579         * oacc-mem.c (acc_map_data, present_create_copy)
7580         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7581         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7582         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7583         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7584         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7585         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7586         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7587         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7588         Remove "XFAIL"s.
7590         * target.c (gomp_unmap_tgt): Make it 'static'.
7591         * libgomp.h (gomp_unmap_tgt): Remove.
7593 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
7595         PR middle-end/86416
7596         * testsuite/libgomp.c/pr86416-1.c: New.
7597         * testsuite/libgomp.c/pr86416-2.c: New.
7599 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
7601         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7602         all symbols as public except for the 'use â€¦, only' imported symbol,
7603         which is private.
7604         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7605         all symbols from module openacc_kinds as PUBLIC
7606         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7607         fix comment typo.
7608         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7610 2019-12-13  Julian Brown  <julian@codesourcery.com>
7612         PR libgomp/92881
7614         * libgomp.h (gomp_remove_var_async): Add prototype.
7615         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7616         gomp_remove_var.
7617         * target.c (gomp_unref_tgt): Change return type to bool, indicating
7618         whether target_mem_desc was unmapped.
7619         (gomp_unref_tgt_void): New.
7620         (gomp_remove_var): Reimplement in terms of...
7621         (gomp_remove_var_internal): ...this new helper function.
7622         (gomp_remove_var_async): New, implemented using above helper function.
7623         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7624         gomp_unref_tgt.
7626 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
7628         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7629         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7630         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7631         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7632         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7633         Likewise.
7634         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7635         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7637 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
7639         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7640         as public except for the 'use â€¦, only' imported symbol, which is
7641         private.
7642         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7643         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7644         attributes for acc_copyout_finalize and acc_delete_finalize.
7646 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
7648         PR fortran/92899
7649         * testsuite/libgomp.fortran/atomic1.f90: New test.
7651 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7653         PR libgomp/92843
7654         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7655         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
7656         assertions.
7657         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7658         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7659         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7660         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7661         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7663         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7664         * oacc-mem.c: ... here.
7665         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7666         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7667         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7668         Remove.
7669         * libgomp_g.h: Update.
7671         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7672         * oacc-async.c: ... here.
7673         * oacc-int.h (goacc_wait): Declare.
7674         * libgomp_g.h: Update
7676         PR libgomp/92854
7677         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7678         New file.
7679         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7680         Likewise.
7681         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7682         Likewise.
7683         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7684         Likewise.
7685         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7686         Likewise.
7687         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7688         Likewise.
7690 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7691             Julian Brown  <julian@codesourcery.com>
7693         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7694         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7696 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7698         * omp_lib.h.in: Fix spelling of function declaration
7699         omp_get_cancell(l)ation.
7700         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7701         Fix typos.
7702         * env.c: Fix comment typos.
7703         * oacc-host.c: Likewise.
7704         * ordered.c: Likewise.
7705         * task.c: Likewise.
7706         * team.c: Likewise.
7707         * config/gcn/task.c: Likewise.
7708         * config/gcn/team.c: Likewise.
7709         * config/nvptx/task.c: Likewise.
7710         * config/nvptx/team.c: Likewise.
7711         * plugin/plugin-gcn.c: Likewise.
7712         * testsuite/libgomp.fortran/jacobi.f: Likewise.
7713         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7714         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7716 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7718         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7719         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7720         unnecessary 'dg-additional-options "-w"'.
7722 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7723             Julian Brown  <julian@codesourcery.com>
7725         PR libgomp/92116
7726         PR libgomp/92877
7728         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
7729         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7730         Adjust all users.
7731         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7732         Remove XFAIL.
7733         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7734         Likewise.
7735         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7737 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7739         PR libgomp/92503
7740         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7741         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7742         file.
7743         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7744         Likewise.
7745         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7746         Likewise.
7747         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7748         Likewise.
7749         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7750         Likewise.
7751         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7752         Likewise.
7753         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7754         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7755         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7756         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7757         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7758         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7759         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7760         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7761         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7762         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7764         PR libgomp/92840
7765         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7766         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7767         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7768         New file.
7769         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7770         Likewise.
7771         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7772         Likewise.
7773         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7774         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7776         PR libgomp/92511
7777         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7778         this file...
7779         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7780         this file...
7781         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7782         file...
7783         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7784         file...
7785         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7786         ... with their content moved into, and extended in this new file.
7787         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7788         New file.
7789         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7790         Likewise.
7791         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7792         Likewise.
7793         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7794         Likewise.
7796         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7798         PR libgomp/92854
7799         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7801         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7803         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7805 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
7807         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7808         unique.
7809         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7810         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7811         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7812         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7813         Ditto.
7814         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7815         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7817 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
7819         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7821 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
7822             Kwok Cheung Yeung <kcy@codesourcery.com>
7824         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7825         if input it a NULL pointer.
7826         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7827         diagnostic of NULL pointer.
7828         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7829         * testsuite/libgomp.fortran/optional-map.f90: New.
7830         * testsuite/libgomp.fortran/use_device_addr-1.f90
7831         (test_dummy_opt_callee_1_absent): New.
7832         (test_dummy_opt_call_1): Call it.
7833         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7834         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7835         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7836         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7837         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7838         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7839         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7840         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7841         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7842         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7843         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7844         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7845         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7846         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7847         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7848         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7850 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
7852         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7853         expect dg-output of 'Error termination.' for GCN.
7854         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7855         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7857 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
7859         PR fortran/92756
7860         * testsuite/libgomp.fortran/teams1.f90: New test.
7861         * testsuite/libgomp.fortran/teams2.f90: New test.
7863 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
7865         * oacc-init.c (acc_known_device_type): Add function.
7866         (unknown_device_type_error): Add function.
7867         (name_of_acc_device_t): Change to call unknown_device_type_error
7868         on unknown type.
7869         (resolve_device): Use acc_known_device_type.
7870         (acc_init): Fail if acc_device_t argument is not valid.
7871         (acc_shutdown): Likewise.
7872         (acc_get_num_devices): Likewise.
7873         (acc_set_device_type): Likewise.
7874         (acc_get_device_num): Likewise.
7875         (acc_set_device_num): Likewise.
7876         (acc_on_device): Add comment that argument validity is not checked.
7878 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
7880         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7881         Recognize amdgcn.
7882         (check_effective_target_openacc_amdgcn_accel_present): New proc.
7883         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7884         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7885         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7886         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7888 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7890         PR libgomp/91938
7891         * configure.tgt: Avoid IE tls on *-*-musl*.
7893 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
7895         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7896         adding a common-block test case.
7898 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
7900         PR c++/60228
7901         * testsuite/libgomp.c++/udr-20.C: New test.
7902         * testsuite/libgomp.c++/udr-21.C: New test.
7904 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
7906         * testsuite/lib/libgomp.exp
7907         (check_effective_target_offload_target_nvptx): New proc.
7908         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7909         'dg-skip-if'.
7910         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7911         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7912         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7914 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7916         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7917         * testsuite/libgomp.c/pr39591-2.c: Likewise.
7918         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7919         * testsuite/libgomp.c/private-1.c: Likewise.
7920         * testsuite/libgomp.c/task-1.c: Likewise.
7921         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7923 2019-11-20  Julian Brown  <julian@codesourcery.com>
7925         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7926         aq->mutex here.
7927         (queue_push_launch): Lock aq->mutex before calling
7928         wait_for_queue_nonfull.
7929         (queue_push_callback): Likewise.
7930         (queue_push_asyncwait): Likewise.
7931         (queue_push_placeholder): Likewise.
7933 2019-11-20  Julian Brown  <julian@codesourcery.com>
7935         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7936         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7937         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7938         return code.
7940 2019-11-20  Julian Brown  <julian@codesourcery.com>
7942         PR libgomp/92511
7944         * oacc-mem.c (present_create_copy): Fix device pointer return value in
7945         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
7946         in non-present/create case.
7947         (delete_copyout): Change error condition to fail only on copies outside
7948         of mapped block.  Adjust error message accordingly.
7949         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7950         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7951         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7952         message.
7953         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7954         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7955         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7957 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
7959         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7960         libatomic in build-tree testing.
7962 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
7964         * testsuite/Makefile.in: Regenerate.
7966 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
7968         * testsuite/libgomp.c/target-print-1.c: New file.
7969         * testsuite/libgomp.fortran/target-print-1.f90: New file.
7970         * testsuite/libgomp.oacc-c/print-1.c: New file.
7971         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7973 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7974             Kwok Cheung Yeung  <kcy@codesourcery.com>
7975             Julian Brown  <julian@codesourcery.com>
7976             Tom de Vries  <tom@codesourcery.com>
7978         * plugin/Makefrag.am: Add amdgcn plugin support.
7979         * plugin/configfrag.ac: Likewise.
7980         * plugin/plugin-gcn.c: New file.
7981         * configure: Regenerate.
7982         * Makefile.in: Regenerate.
7983         * testsuite/Makefile.in: Regenerate.
7985 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7987         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7988         and use team_malloc variants.
7989         (gomp_gcn_exit_kernel): Use team_free.
7990         * libgomp.h (TEAM_ARENA_SIZE): Define.
7991         (TEAM_ARENA_START): Define.
7992         (TEAM_ARENA_FREE): Define.
7993         (TEAM_ARENA_END): Define.
7994         (team_malloc): New function.
7995         (team_malloc_cleared): New function.
7996         (team_free): New function.
7997         * team.c (gomp_new_team): Initialize and use team_malloc.
7998         (free_team): Use team_free.
7999         (gomp_free_thread): Use team_free.
8000         (gomp_pause_host): Use team_free.
8001         * work.c (gomp_init_work_share): Use team_malloc.
8002         (gomp_fini_work_share): Use team_free.
8004 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8005             Kwok Cheung Yeung  <kcy@codesourcery.com>
8006             Julian Brown  <julian@codesourcery.com>
8007             Tom de Vries  <tom@codesourcery.com>
8009         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8010         * Makefile.in: Regenerate.
8011         * config.h.in (PLUGIN_GCN): Add new undef.
8012         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8013         * config/gcn/affinity-fmt.c: New file.
8014         * config/gcn/bar.c: New file.
8015         * config/gcn/bar.h: New file.
8016         * config/gcn/doacross.h: New file.
8017         * config/gcn/icv-device.c: New file.
8018         * config/gcn/oacc-target.c: New file.
8019         * config/gcn/simple-bar.h: New file.
8020         * config/gcn/target.c: New file.
8021         * config/gcn/task.c: New file.
8022         * config/gcn/team.c: New file.
8023         * config/gcn/time.c: New file.
8024         * configure.ac: Add amdgcn*-*-*.
8025         * configure: Regenerate.
8026         * configure.tgt: Add amdgcn*-*-*.
8027         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8028         * libgomp.h (gcn_thrs): Add amdgcn variant.
8029         (set_gcn_thrs): Likewise.
8030         (gomp_thread): Likewise.
8031         * oacc-int.h (goacc_thread): Likewise.
8032         * oacc-target.c: New file.
8033         * openacc.f90 (acc_device_gcn): New parameter.
8034         * openacc.h (acc_device_t): Add acc_device_gcn.
8035         * team.c (gomp_free_pool_helper): Add amdgcn support.
8037 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8038             Julian Brown  <julian@codesourcery.com>
8040         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8041         parameter.
8042         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8043         queue constructor.
8044         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8045         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8046         device parameter.
8048 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8050         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8051         * config/nvptx/libgomp-plugin.c: Move ...
8052         * config/accel/libgomp-plugin.c: ... to here.
8053         * config/nvptx/lock.c: Move ...
8054         * config/accel/lock.c: ... to here.
8055         * config/nvptx/mutex.c: Move ...
8056         * config/accel/mutex.c: ... to here.
8057         * config/nvptx/mutex.h: Move ...
8058         * config/accel/mutex.h: ... to here.
8059         * config/nvptx/oacc-async.c: Move ...
8060         * config/accel/oacc-async.c: ... to here.
8061         * config/nvptx/oacc-cuda.c: Move ...
8062         * config/accel/oacc-cuda.c: ... to here.
8063         * config/nvptx/oacc-host.c: Move ...
8064         * config/accel/oacc-host.c: ... to here.
8065         * config/nvptx/oacc-init.c: Move ...
8066         * config/accel/oacc-init.c: ... to here.
8067         * config/nvptx/oacc-mem.c: Move ...
8068         * config/accel/oacc-mem.c: ... to here.
8069         * config/nvptx/oacc-plugin.c: Move ...
8070         * config/accel/oacc-plugin.c: ... to here.
8071         * config/nvptx/omp-lock.h: Move ...
8072         * config/accel/omp-lock.h: ... to here.
8073         * config/nvptx/openacc.f90: Move ...
8074         * config/accel/openacc.f90: ... to here.
8075         * config/nvptx/pool.h: Move ...
8076         * config/accel/pool.h: ... to here.
8077         * config/nvptx/proc.c: Move ...
8078         * config/accel/proc.c: ... to here.
8079         * config/nvptx/ptrlock.c: Move ...
8080         * config/accel/ptrlock.c: ... to here.
8081         * config/nvptx/ptrlock.h: Move ...
8082         * config/accel/ptrlock.h: ... to here.
8083         * config/nvptx/sem.c: Move ...
8084         * config/accel/sem.c: ... to here.
8085         * config/nvptx/sem.h: Move ...
8086         * config/accel/sem.h: ... to here.
8087         * config/nvptx/thread-stacksize.h: Move ...
8088         * config/accel/thread-stacksize.h: ... to here.
8090 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8091             Tobias Burnus  <tobias@codesourcery.com>
8092             Frederik Harwath  <frederik@codesourcery.com>
8093             Thomas Schwinge  <thomas@codesourcery.com>
8095         libgomp/
8096         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8097         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8098         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8100 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8101             Kwok Cheung Yeung  <kcy@codesourcery.com>
8103         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8104         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8106 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8108         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8110         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8111         run'.
8112         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8113         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8115 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8117         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8118         Add expected warnings about missing reduction clauses.
8119         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8120         Likewise.
8121         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8122         Likewise.
8123         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8124         Likewise.
8126 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8128         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8129         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8130         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8131         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8132         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8133         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8135 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8137         PR fortran/92305
8138         * testsuite/libgomp.fortran/allocatable2.f90: Use
8139         unique numbers with 'stop'.
8140         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8141         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8142         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8143         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8144         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8146 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8148         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8149         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8150         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8151         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8152         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8153         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8155 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8157         * testsuite/libgomp.fortran/target9.f90: New.
8159 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8161         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8162         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8163         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8164         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8165         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8166         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8167         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8168         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8169         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8170         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8171         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8172         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8173         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8174         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8175         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8176         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8177         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8178         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8179         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8180         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8181         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8182         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8183         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8184         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8185         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8186         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8187         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8188         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8189         * testsuite/libgomp.fortran/character1.f90: Ditto.
8190         * testsuite/libgomp.fortran/character2.f90: Ditto.
8191         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8192         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8193         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8194         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8195         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8196         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8197         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8198         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8199         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8200         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8201         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8202         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8203         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8204         * testsuite/libgomp.fortran/do1.f90: Ditto.
8205         * testsuite/libgomp.fortran/do2.f90: Ditto.
8206         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8207         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8208         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8209         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8210         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8211         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8212         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8213         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8214         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8215         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8216         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8217         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8218         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8219         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8220         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8221         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8222         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8223         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8224         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8225         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8226         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8227         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8228         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8229         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8230         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8231         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8232         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8233         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8234         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8235         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8236         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8237         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8238         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8239         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8240         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8241         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8242         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8243         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8244         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8245         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8246         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8247         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8248         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8249         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8250         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8251         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8252         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8253         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8254         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8255         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8256         * testsuite/libgomp.fortran/lib1.f90: Ditto.
8257         * testsuite/libgomp.fortran/lib4.f90: Ditto.
8258         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8259         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8260         * testsuite/libgomp.fortran/nested1.f90: Ditto.
8261         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8262         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8263         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8264         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8265         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8266         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8267         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8268         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8269         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8270         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8271         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8272         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8273         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8274         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8275         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8276         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8277         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8278         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8279         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8280         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8281         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8282         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8283         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8284         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8285         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8286         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8287         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8288         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8289         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8290         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8291         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8292         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8293         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8294         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8295         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8296         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8297         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8298         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8299         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8300         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8301         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8302         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8303         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8304         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8305         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8306         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8307         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8308         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8309         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8310         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8311         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8312         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8313         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8314         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8315         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8316         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8317         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8318         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8319         * testsuite/libgomp.fortran/reference1.f90: Ditto.
8320         * testsuite/libgomp.fortran/reference2.f90: Ditto.
8321         * testsuite/libgomp.fortran/retval1.f90: Ditto.
8322         * testsuite/libgomp.fortran/retval2.f90: Ditto.
8323         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8324         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8325         * testsuite/libgomp.fortran/simd1.f90: Ditto.
8326         * testsuite/libgomp.fortran/simd2.f90: Ditto.
8327         * testsuite/libgomp.fortran/simd3.f90: Ditto.
8328         * testsuite/libgomp.fortran/simd4.f90: Ditto.
8329         * testsuite/libgomp.fortran/simd5.f90: Ditto.
8330         * testsuite/libgomp.fortran/simd6.f90: Ditto.
8331         * testsuite/libgomp.fortran/simd7.f90: Ditto.
8332         * testsuite/libgomp.fortran/stack.f90: Ditto.
8333         * testsuite/libgomp.fortran/strassen.f90: Ditto.
8334         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8335         * testsuite/libgomp.fortran/tabs2.f: Ditto.
8336         * testsuite/libgomp.fortran/target1.f90: Ditto.
8337         * testsuite/libgomp.fortran/target2.f90: Ditto.
8338         * testsuite/libgomp.fortran/target3.f90: Ditto.
8339         * testsuite/libgomp.fortran/target4.f90: Ditto.
8340         * testsuite/libgomp.fortran/target5.f90: Ditto.
8341         * testsuite/libgomp.fortran/target6.f90: Ditto.
8342         * testsuite/libgomp.fortran/target7.f90: Ditto.
8343         * testsuite/libgomp.fortran/target8.f90: Ditto.
8344         * testsuite/libgomp.fortran/task1.f90: Ditto.
8345         * testsuite/libgomp.fortran/task2.f90: Ditto.
8346         * testsuite/libgomp.fortran/task3.f90: Ditto.
8347         * testsuite/libgomp.fortran/task4.f90: Ditto.
8348         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8349         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8350         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8351         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8352         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8353         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8354         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8355         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8356         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8357         * testsuite/libgomp.fortran/udr1.f90: Ditto.
8358         * testsuite/libgomp.fortran/udr10.f90: Ditto.
8359         * testsuite/libgomp.fortran/udr11.f90: Ditto.
8360         * testsuite/libgomp.fortran/udr12.f90: Ditto.
8361         * testsuite/libgomp.fortran/udr13.f90: Ditto.
8362         * testsuite/libgomp.fortran/udr14.f90: Ditto.
8363         * testsuite/libgomp.fortran/udr15.f90: Ditto.
8364         * testsuite/libgomp.fortran/udr2.f90: Ditto.
8365         * testsuite/libgomp.fortran/udr3.f90: Ditto.
8366         * testsuite/libgomp.fortran/udr4.f90: Ditto.
8367         * testsuite/libgomp.fortran/udr5.f90: Ditto.
8368         * testsuite/libgomp.fortran/udr6.f90: Ditto.
8369         * testsuite/libgomp.fortran/udr7.f90: Ditto.
8370         * testsuite/libgomp.fortran/udr8.f90: Ditto.
8371         * testsuite/libgomp.fortran/udr9.f90: Ditto.
8372         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8373         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8374         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8375         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8376         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8377         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8378         * testsuite/libgomp.fortran/vla7.f90: Ditto.
8379         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8380         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8381         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8383 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8385         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8386         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8387         Ditto; add 'dg-do run' for torture testing.
8388         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
8389         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8390         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8391         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8392         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8393         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8394         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8395         * testsuite/libgomp.fortran/task2.f90: Ditto.
8396         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8397         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8398         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8399         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8400         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8401         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8403 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
8405         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8406         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8407         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8408         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8409         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8410         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8411         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8412         Use 'stop' not abort().
8413         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8414         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8415         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8416         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8417         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8418         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8419         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8420         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8421         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8422         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8423         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8424         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8425         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8426         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8427         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8428         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8429         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8430         Ditto.
8431         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8432         Ditto.
8433         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8434         Ditto.
8435         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8436         Ditto.
8437         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8438         Ditto.
8439         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8440         Ditto.
8441         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8442         Ditto.
8443         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8444         Ditto.
8445         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8446         Ditto.
8447         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8448         Ditto.
8449         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8450         Ditto.
8451         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8452         Ditto.
8453         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8454         Ditto.
8455         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8456         Ditto.
8457         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8458         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8459         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8460         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8461         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8462         Likewise and also add 'dg-do run'.
8463         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8464         Ditto.
8466 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8467             Tobias Burnus  <tobias@codesourcery.com>
8469         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8470         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8471         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8473 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
8475         PR libgomp/92081
8476         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8477         than 0.
8479 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8481         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8482         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8484 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
8486         PR middle-end/92036
8487         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8488         file.
8490 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
8492         PR testsuite/91884
8493         * testsuite/libgomp.fortran/fortran.exp: Conditionally
8494         add -lquadmath.
8495         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8497 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
8499         PR libgomp/92028
8500         * target.c (gomp_map_vars_internal): Readd the previous
8501         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8502         though do that just in the !not_found_cnt case.
8504 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
8506         * gfortran.dg/gomp/target-simd.f90: New.
8508 2019-10-02  Julian Brown  <julian@codesourcery.com>
8509             Cesar Philippidis  <cesar@codesourcery.com>
8511         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8512         * target.c (FIELD_TGT_EMPTY): Define.
8513         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
8514         as switch instead of list of ifs.
8515         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8517 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
8519         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8520         include. Replace alloca () with __builtin_alloca ().
8521         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8523 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
8525         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8526         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8527         * oacc-parallel.c: Don't include "libgomp_g.h".
8528         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8529         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8530         * aclocal.m4: Regenerated.
8531         * config.h.in: Regenerated.
8532         * configure: Regenerated.
8533         * Makefile.in: Regenerated.
8535 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
8537         * libgomp_g.h: Include stdint.h instead of gstdint.h.
8539 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
8541         * configure: Regenerate.
8543 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
8545         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8546         string is initialized.
8548 2019-09-06  Florian Weimer  <fweimer@redhat.com>
8550         * configure: Regenerate.
8552 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
8554         PR other/79543
8555         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8556         scanning to conform to the GNU Coding Standards.
8557         * configure: Regenerate.
8559 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
8561         PR libgomp/91530
8562         * testsuite/libgomp.c/scan-21.c: New test.
8563         * testsuite/libgomp.c/scan-22.c: New test.
8565 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
8567         PR libgomp/91530
8568         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8569         targets.
8570         * testsuite/libgomp.c/scan-12.c: Likewise.
8571         * testsuite/libgomp.c/scan-13.c: Likewise.
8572         * testsuite/libgomp.c/scan-14.c: Likewise.
8573         * testsuite/libgomp.c/scan-15.c: Likewise.
8574         * testsuite/libgomp.c/scan-16.c: Likewise.
8575         * testsuite/libgomp.c/scan-17.c: Likewise.
8576         * testsuite/libgomp.c/scan-18.c: Likewise.
8577         * testsuite/libgomp.c/scan-19.c: Likewise.
8578         * testsuite/libgomp.c/scan-20.c: Likewise.
8579         * testsuite/libgomp.c++/scan-9.C: Likewise.
8580         * testsuite/libgomp.c++/scan-10.C: Likewise.
8581         * testsuite/libgomp.c++/scan-11.C: Likewise.
8582         * testsuite/libgomp.c++/scan-12.C: Likewise.
8583         * testsuite/libgomp.c++/scan-14.C: Likewise.
8584         * testsuite/libgomp.c++/scan-15.C: Likewise.
8585         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
8586         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8587         * testsuite/libgomp.c++/scan-16.C: Likewise.
8589 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
8591         PR fortran/91473
8592         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8593         -std=legacy so invalid code in the test case is accepted.
8595 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8597         PR fortran/91422
8598         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8599         dimension.
8601 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8603         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8604         perform the lookup in the first loop only if !not_found_cnt, otherwise
8605         perform lookups for it in the second loop guarded with
8606         if (not_found_cnt || has_firstprivate).
8607         * testsuite/libgomp.c/target-37.c: New test.
8608         * testsuite/libgomp.c++/target-22.C: New test.
8610 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8612         * testsuite/libgomp.c/target-18.c (struct S): New type.
8613         (foo): Use use_device_addr clause instead of use_device_ptr clause
8614         where required by OpenMP 5.0, add further tests for both use_device_ptr
8615         and use_device_addr clauses.
8616         * testsuite/libgomp.c++/target-9.C (struct S): New type.
8617         (foo): Use use_device_addr clause instead of use_device_ptr clause
8618         where required by OpenMP 5.0, add further tests for both use_device_ptr
8619         and use_device_addr clauses.  Add t and u arguments.
8620         (main): Adjust caller.
8622 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8624         * testsuite/libgomp.c++/loop-13.C: New test.
8625         * testsuite/libgomp.c++/loop-14.C: New test.
8626         * testsuite/libgomp.c++/loop-15.C: New test.
8628 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8630         PR middle-end/91301
8631         * testsuite/libgomp.c++/for-27.C: New test.
8633 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
8635         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8636         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8638 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8640         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8642 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
8644         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8645         * testsuite/libgomp.c++/scan-16.C: Likewise.
8647 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
8649         * testsuite/libgomp.c/scan-19.c: New test.
8650         * testsuite/libgomp.c/scan-20.c: New test.
8652         * testsuite/libgomp.c/scan-11.c: New test.
8653         * testsuite/libgomp.c/scan-12.c: New test.
8654         * testsuite/libgomp.c/scan-13.c: New test.
8655         * testsuite/libgomp.c/scan-14.c: New test.
8656         * testsuite/libgomp.c/scan-15.c: New test.
8657         * testsuite/libgomp.c/scan-16.c: New test.
8658         * testsuite/libgomp.c/scan-17.c: New test.
8659         * testsuite/libgomp.c/scan-18.c: New test.
8660         * testsuite/libgomp.c++/scan-9.C: New test.
8661         * testsuite/libgomp.c++/scan-10.C: New test.
8662         * testsuite/libgomp.c++/scan-11.C: New test.
8663         * testsuite/libgomp.c++/scan-12.C: New test.
8664         * testsuite/libgomp.c++/scan-13.C: New test.
8665         * testsuite/libgomp.c++/scan-14.C: New test.
8666         * testsuite/libgomp.c++/scan-15.C: New test.
8667         * testsuite/libgomp.c++/scan-16.C: New test.
8669 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
8671         * testsuite/libgomp.c/scan-9.c: New test.
8672         * testsuite/libgomp.c/scan-10.c: New test.
8674 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
8676         * testsuite/libgomp.c++/scan-1.C: New test.
8677         * testsuite/libgomp.c++/scan-2.C: New test.
8678         * testsuite/libgomp.c++/scan-3.C: New test.
8679         * testsuite/libgomp.c++/scan-4.C: New test.
8680         * testsuite/libgomp.c++/scan-5.C: New test.
8681         * testsuite/libgomp.c++/scan-6.C: New test.
8682         * testsuite/libgomp.c++/scan-7.C: New test.
8683         * testsuite/libgomp.c++/scan-8.C: New test.
8684         * testsuite/libgomp.c/scan-1.c: New test.
8685         * testsuite/libgomp.c/scan-2.c: New test.
8686         * testsuite/libgomp.c/scan-3.c: New test.
8687         * testsuite/libgomp.c/scan-4.c: New test.
8688         * testsuite/libgomp.c/scan-5.c: New test.
8689         * testsuite/libgomp.c/scan-6.c: New test.
8690         * testsuite/libgomp.c/scan-7.c: New test.
8691         * testsuite/libgomp.c/scan-8.c: New test.
8693 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8695         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8696         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8697         Likewise.
8699         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8700         check.
8702 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
8704         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8705         file.
8707 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8709         PR fortran/90743
8710         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8711         case.
8712         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8713         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8714         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8715         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8717         PR testsuite/90861
8718         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8720         PR middle-end/90862
8721         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8723 2019-06-16  Tom de Vries  <tdevries@suse.de>
8725         PR tree-optimization/89376
8726         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8728 2019-06-15  Tom de Vries  <tdevries@suse.de>
8730         PR tree-optimization/89713
8731         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8732         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8734 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
8736         PR middle-end/90779
8737         * testsuite/libgomp.c/pr90779.c: New test.
8738         * testsuite/libgomp.fortran/pr90779.f90: New test.
8740 2019-06-15  Tom de Vries  <tdevries@suse.de>
8742         PR tree-optimization/90009
8743         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8745 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
8747         PR tree-optimization/89713
8748         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8750 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
8752         PR target/90811
8753         * testsuite/libgomp.c/pr90811.c: New test.
8755 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
8757         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8758         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8760 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
8762         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8763         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8764         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8765         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8767 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8769         * configure.ac: Call AX_COUNT_CPUS.
8770         Substitute CPU_COUNT.
8771         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8772         count fallback.
8773         * aclocal.m4: Regenerate.
8774         * configure: Regenerate.
8775         * Makefile.in, testsuite/Makefile.in: Regenerate.
8777 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
8779         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8780         to ...
8781         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8782         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8783         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8785 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
8787         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8789         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8791         PR libgomp/90641
8792         * work.c (gomp_init_work_share): Instead of aligning final ordered
8793         value to multiples of long long alignment, align to that the
8794         first part (ordered team ids) and if inline_ordered_team_ids
8795         is not on a long long alignment boundary within the structure,
8796         use __alignof__ (long long) - 1 pad size always.
8797         * loop.c (GOMP_loop_start): Fix *mem computation if
8798         inline_ordered_team_ids is not aligned on long long alignment boundary
8799         within the structure.
8800         * loop-ull.c (GOMP_loop_ull_start): Likewise.
8801         * sections.c (GOMP_sections2_start): Likewise.
8803 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
8805         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8806         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8808         PR libgomp/90585
8809         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
8810         HAVE_INTTYPES_H is defined.
8811         (print_uint64_t): New typedef.
8812         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8813         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8814         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8815         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
8816         before casting to void *.
8817         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8818         * oacc-mem.c: Don't include config.h nor stdint.h.
8819         * target.c: Don't include config.h.
8820         * oacc-cuda.c: Likewise.
8821         * oacc-host.c: Don't include stdint.h.
8823 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
8825         PR libgomp/90527
8826         * alloc.c (_GNU_SOURCE): Define.
8828 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
8830         * acc_prof.h: New file.
8831         * oacc-profiling.c: Likewise.
8832         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8833         Add these, respectively.
8834         * Makefile.in: Regenerate.
8835         * env.c (initialize_env): Call goacc_profiling_initialize.
8836         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8837         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8838         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8839         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8840         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8841         acc_prof_register, acc_prof_unregister, and acc_register_library.
8842         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8843         GOMP_PLUGIN_goacc_thread.
8844         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8845         prof_callbacks_enabled members.
8846         (goacc_prof_enabled, goacc_profiling_initialize)
8847         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8848         (goacc_profiling_dispatch): Declare.
8849         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8850         (GOACC_PROFILING_SETUP_P): Define.
8851         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8852         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8853         OpenACC Profiling Interface.
8854         * oacc-cuda.c (acc_get_current_cuda_device)
8855         (acc_get_current_cuda_context, acc_get_cuda_stream)
8856         (acc_set_cuda_stream): Likewise.
8857         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8858         (acc_init, acc_set_device_type, acc_get_device_type)
8859         (acc_get_device_num, goacc_lazy_initialize): Likewise.
8860         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8861         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8862         (acc_unmap_data, present_create_copy, delete_copyout)
8863         (update_dev_host): Likewise.
8864         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8865         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8866         Likewise.
8867         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8868         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8869         Likewise.
8870         * libgomp.texi: Update.
8871         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8872         file.
8873         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8874         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8875         Likewise.
8876         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8877         Likewise.
8878         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8879         Likewise.
8880         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8881         Likewise.
8883 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
8885         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8886         (struct goacc_asyncqueue_list): Likewise.
8887         (goacc_aq): Likewise.
8888         (goacc_aq_list): Likewise.
8889         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8890         (GOMP_OFFLOAD_openacc_async_test): Remove.
8891         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8892         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8893         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8894         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8895         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8896         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8897         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8898         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8899         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8900         (GOMP_OFFLOAD_openacc_async_exec): Declare.
8901         (GOMP_OFFLOAD_openacc_async_construct): Declare.
8902         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8903         (GOMP_OFFLOAD_openacc_async_test): Declare.
8904         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8905         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8906         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8907         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8908         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8910         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8911         (gomp_acc_insert_pointer): Adjust declaration.
8912         (gomp_copy_host2dev): New declaration.
8913         (gomp_copy_dev2host): Likewise.
8914         (gomp_map_vars_async): Likewise.
8915         (gomp_unmap_tgt): Likewise.
8916         (gomp_unmap_vars_async): Likewise.
8917         (gomp_fini_device): Likewise.
8919         * oacc-async.c (get_goacc_thread): New function.
8920         (get_goacc_thread_device): New function.
8921         (lookup_goacc_asyncqueue): New function.
8922         (get_goacc_asyncqueue): New function.
8923         (acc_async_test): Adjust code to use new async design.
8924         (acc_async_test_all): Likewise.
8925         (acc_wait): Likewise.
8926         (acc_wait_async): Likewise.
8927         (acc_wait_all): Likewise.
8928         (acc_wait_all_async): Likewise.
8929         (goacc_async_free): New function.
8930         (goacc_init_asyncqueues): Likewise.
8931         (goacc_fini_asyncqueues): Likewise.
8932         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8933         design.
8934         (acc_set_cuda_stream): Likewise.
8935         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8936         (host_openacc_register_async_cleanup): Remove.
8937         (host_openacc_async_exec): New function.
8938         (host_openacc_async_test): Adjust parameters.
8939         (host_openacc_async_test_all): Remove.
8940         (host_openacc_async_wait): Remove.
8941         (host_openacc_async_wait_async): Remove.
8942         (host_openacc_async_wait_all): Remove.
8943         (host_openacc_async_wait_all_async): Remove.
8944         (host_openacc_async_set_async): Remove.
8945         (host_openacc_async_synchronize): New function.
8946         (host_openacc_async_serialize): New function.
8947         (host_openacc_async_host2dev): New function.
8948         (host_openacc_async_dev2host): New function.
8949         (host_openacc_async_queue_callback): New function.
8950         (host_openacc_async_construct): New function.
8951         (host_openacc_async_destruct): New function.
8952         (struct gomp_device_descr host_dispatch): Remove initialization of old
8953         interface, add initialization of new async sub-struct.
8954         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8955         (goacc_attach_host_thread_to_device): Remove old async code usage.
8956         * oacc-int.h (goacc_init_asyncqueues): New declaration.
8957         (goacc_fini_asyncqueues): Likewise.
8958         (goacc_async_copyout_unmap_vars): Likewise.
8959         (goacc_async_free): Likewise.
8960         (get_goacc_asyncqueue): Likewise.
8961         (lookup_goacc_asyncqueue): Likewise.
8962         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8963         design.
8964         (present_create_copy): Adjust code to use new async design.
8965         (delete_copyout): Likewise.
8966         (update_dev_host): Likewise.
8967         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8968         async design.
8969         (gomp_acc_remove_pointer): Adjust code to use new async design.
8970         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8971         design.
8972         (GOACC_enter_exit_data): Likewise.
8973         (goacc_wait): Likewise.
8974         (GOACC_update): Likewise.
8975         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8976         when called, warn as obsolete in comment.
8977         * target.c (goacc_device_copy_async): New function.
8978         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8979         add goacc_device_copy_async case.
8980         (gomp_copy_dev2host): Likewise.
8981         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8982         (gomp_map_pointer): Likewise.
8983         (gomp_map_fields_existing): Likewise.
8984         (gomp_map_vars_internal): New always_inline function, renamed from
8985         gomp_map_vars.
8986         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8987         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8988         passing goacc_asyncqueue argument.
8989         (gomp_unmap_tgt): Remove static, add attribute_hidden.
8990         (gomp_unref_tgt): New function.
8991         (gomp_unmap_vars_internal): New always_inline function, renamed from
8992         gomp_unmap_vars.
8993         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8994         (gomp_unmap_vars_async): Implement by calling
8995         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8996         (gomp_fini_device): New function.
8997         (gomp_exit_data): Adjust gomp_copy_dev2host call.
8998         (gomp_load_plugin_for_device): Remove old interface, adjust to load
8999         new async interface.
9000         (gomp_target_fini): Adjust code to call gomp_fini_device.
9002         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9003         (struct ptx_stream): Remove.
9004         (struct nvptx_thread): Remove current_stream field.
9005         (cuda_map_create): Remove.
9006         (cuda_map_destroy): Remove.
9007         (map_init): Remove.
9008         (map_fini): Remove.
9009         (map_pop): Remove.
9010         (map_push): Remove.
9011         (struct goacc_asyncqueue): Define.
9012         (struct nvptx_callback): Define.
9013         (struct ptx_free_block): Define.
9014         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9015         stream_lock, and next fields.
9016         (enum ptx_event_type): Remove.
9017         (struct ptx_event): Remove.
9018         (ptx_event_lock): Remove.
9019         (ptx_events): Remove.
9020         (init_streams_for_device): Remove.
9021         (fini_streams_for_device): Remove.
9022         (select_stream_for_async): Remove.
9023         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9024         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9025         case.
9026         (nvptx_open_device): Add free_blocks initialization, remove
9027         init_streams_for_device call.
9028         (nvptx_close_device): Remove fini_streams_for_device call, add
9029         free_blocks destruct code.
9030         (event_gc): Remove.
9031         (event_add): Remove.
9032         (nvptx_exec): Adjust parameters and code.
9033         (nvptx_free): Likewise.
9034         (nvptx_host2dev): Remove.
9035         (nvptx_dev2host): Remove.
9036         (nvptx_set_async): Remove.
9037         (nvptx_async_test): Remove.
9038         (nvptx_async_test_all): Remove.
9039         (nvptx_wait): Remove.
9040         (nvptx_wait_async): Remove.
9041         (nvptx_wait_all): Remove.
9042         (nvptx_wait_all_async): Remove.
9043         (nvptx_get_cuda_stream): Remove.
9044         (nvptx_set_cuda_stream): Remove.
9045         (GOMP_OFFLOAD_alloc): Adjust code.
9046         (GOMP_OFFLOAD_free): Likewise.
9047         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9048         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9049         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9050         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9051         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9052         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9053         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9054         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9055         (cuda_free_argmem): New function.
9056         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9057         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9058         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9059         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9060         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9061         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9062         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9063         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9064         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9065         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9066         (cuda_callback_wrapper): New function.
9067         (cuda_memcpy_sanity_check): New function.
9068         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9069         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9070         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9071         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9073 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9075         PR target/87835
9076         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9078 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9080         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9082 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9084         * team.c (gomp_team_start): Initialize pool->threads[0].
9086 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9088         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9089         "-foffload=$offload_target".
9090         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9091         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9092         * testsuite/lib/libgomp.exp
9093         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9094         as (conceptually) merged into
9095         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9096         users.
9098         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9099         * testsuite/libgomp-test-support.exp.in: Adjust.
9100         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9101         openacc_device_types_s.
9102         (offload_target_to_openacc_device_type): New proc.
9103         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9104         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9105         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9106         * Makefile.in: Regenerate.
9107         * configure: Likewise.
9108         * testsuite/Makefile.in: Likewise.
9110         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9111         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9112         instead of OFFLOAD_TARGETS.
9113         * target.c (gomp_target_init): Adjust.
9114         * testsuite/libgomp-test-support.exp.in: Likewise.
9115         * testsuite/lib/libgomp.exp: Likewise.  Populate
9116         openacc_device_types_s instead of offload_targets_s_openacc.
9117         (check_effective_target_openacc_nvidia_accel_selected)
9118         (check_effective_target_openacc_host_selected): Adjust.
9119         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9120         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9121         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9122         * Makefile.in: Regenerate.
9123         * config.h.in: Likewise.
9124         * configure: Likewise.
9125         * testsuite/Makefile.in: Likewise.
9127         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9128         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9129         "offloading: supported, but hardware not accessible".
9130         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9131         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9133 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9135         PR c/87924
9136         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9137         goacc_wait().
9138         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9139         and related adjustment.
9141 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9143         PR c++/88988
9144         * testsuite/libgomp.c++/pr88988.C: New test.
9146 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9148         PR middle-end/89002
9149         * testsuite/libgomp.c/pr89002.c: New test.
9151 2019-01-28  Richard Biener  <rguenther@suse.de>
9153         PR testsuite/89064
9154         PR tree-optimization/86865
9155         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9157 2019-01-24  Tom de Vries  <tdevries@suse.de>
9159         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9160         once instantiated_devices drops to 0.
9162 2019-01-23  Tom de Vries  <tdevries@suse.de>
9164         PR target/PR88946
9165         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9166         cuMemFree.
9167         (nvptx_exec): Don't call map_push if mapnum == 0.
9168         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9170 2019-01-23  Tom de Vries  <tdevries@suse.de>
9172         PR target/88941
9173         PR target/88939
9174         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9175         (map_fini): Remove "assert (!s->map->active)".
9176         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9178 2019-01-23  Tom de Vries  <tdevries@suse.de>
9180         PR target/87835
9181         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9182         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9184 2019-01-15  Tom de Vries  <tdevries@suse.de>
9186         PR target/80547
9187         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9188         New test.
9190 2019-01-12  Tom de Vries  <tdevries@suse.de>
9192         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9193         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9194         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9195         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9197 2019-01-12  Tom de Vries  <tdevries@suse.de>
9199         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9201 2019-01-12  Tom de Vries  <tdevries@suse.de>
9203         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9204         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9205         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9207 2019-01-12  Tom de Vries  <tdevries@suse.de>
9209         PR target/85486
9210         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9211         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9213 2019-01-12  Tom de Vries  <tdevries@suse.de>
9215         PR target/85381
9216         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9217         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9219 2019-01-12  Tom de Vries  <tdevries@suse.de>
9221         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9222         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9223         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9225 2019-01-12  Tom de Vries  <tdevries@suse.de>
9227         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9228         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9229         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9231 2019-01-12  Tom de Vries  <tdevries@suse.de>
9233         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9234         resources diagnostic.
9236 2019-01-12  Tom de Vries  <tdevries@suse.de>
9238         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9239         vector length to be 128.
9240         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9241         length 2097152 to be reduced to 1024 instead of 32.
9243 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
9244             James Norris  <jnorris@codesourcery.com>
9246         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9247         Library Routines", and "Environment Variables".
9249 2019-01-11  Tom de Vries  <tdevries@suse.de>
9251         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9252         num_workers 16.
9254 2019-01-11  Tom de Vries  <tdevries@suse.de>
9256         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9257         -foffload=-w.
9258         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9259         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9260         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9261         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9263 2019-01-11  Tom de Vries  <tdevries@suse.de>
9265         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9266         test.
9268 2019-01-10  Nathan Sidwell  <nathan@acm.org>
9269             Julian Brown  <julian@codesourcery.com>
9271         PR lto/71959
9272         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9273         * testsuite/libgomp.oacc-c++/pr71959.C: New.
9275 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9277         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9278         and paste code.
9280 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9282         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
9283         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9284         write.
9286 2019-01-09  Tom de Vries  <tdevries@suse.de>
9288         PR target/88756
9289         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9290         #define instead of "const int".
9291         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9292         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9293         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9294         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9296 2019-01-09  Tom de Vries  <tdevries@suse.de>
9298         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9299         one worker.
9301 2019-01-07  Tom de Vries  <tdevries@suse.de>
9303         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9304         GOMP_OPENACC_DIM argument.
9306 2019-01-03  Tom de Vries  <tdevries@suse.de>
9308         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9309         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9311 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9313         Update copyright years.
9315 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9317         * libgomp.texi: Bump @copying's copyright year.
9319 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9321         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9322         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9323         (GOACC_declare): Redefine the "device" argument to "flags".
9325 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9326             Cesar Philippidis  <cesar@codesourcery.com>
9328         * target.c (struct gomp_coalesce_chunk): New structure.
9329         (struct gomp_coalesce_buf): Update the chunks member to use that
9330         type.  Adjust all users.
9332 2018-12-19  Tom de Vries  <tdevries@suse.de>
9334         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9335         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9336         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9338 2018-12-19  Tom de Vries  <tdevries@suse.de>
9340         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9341         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9342         gcc/testsuite/gcc.dg/goacc.
9343         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9345 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9346             Chung-Lin Tang  <cltang@codesourcery.com>
9348         * oacc-mem.c (acc_present_or_create): Remove definition and change
9349         to alias of acc_create.
9350         (acc_present_or_copyin): Remove definition and change to alias of
9351         acc_copyin.
9352         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9353         of acc_present_or_create.
9354         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9355         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9356         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9357         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9358         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9359         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9360         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9361         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9362         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9363         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9364         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9365         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9366         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9367         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9368         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9369         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9371 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9373         PR libgomp/88495
9374         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9375         "identical parameters".
9376         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9377         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9379         PR libgomp/88484
9380         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9381         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9383         PR libgomp/88407
9384         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9385         (nvptx_wait_async): Unseen async-argument is a no-op.
9386         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9387         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9388         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9389         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9390         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9391         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9392         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
9393         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9394         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
9396         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9397         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9399 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
9401         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9402         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9403         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9405 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9407         PR libgomp/88370
9408         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9409         (acc_set_cuda_stream): Clarify.
9410         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9411         "async_valid_p".
9412         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9413         acc_async_sync".
9414         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9415         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9416         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9417         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9419 2018-12-14  Tom de Vries  <tdevries@suse.de>
9421         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9422         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9423         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9424         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9425         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9427 2018-12-13  Tom de Vries  <tdevries@suse.de>
9429         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9430         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9431         * fortran.c (omp_display_affinity_): ... here.
9432         * libgomp.h (gomp_print_string): Declare.
9433         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
9434         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9435         write.
9437 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
9439         PR libgomp/88460
9440         * testsuite/libgomp.c++/for-24.C (results): Include it in
9441         omp declare target region.
9442         (main): Use map (always, tofrom: results) instead of
9443         map (tofrom: results).
9445 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
9447         PR fortran/88463
9448         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9449         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9451         * testsuite/libgomp.c-c++-common/for-16.c: New test.
9453 2018-12-12  Andreas Schwab  <schwab@suse.de>
9455         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9456         clobbered.
9458 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
9460         PR fortran/88411
9461         * testsuite/libgomp.fortran/async_io_8.f90: New test.
9463 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9464             Jakub Jelinek  <jakub@redhat.com>
9466         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9467         devicep->host2dev_func.
9469 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
9471         PR libgomp/87995
9472         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9473         tls_runtime effective target.
9474         (t): New threadprivate variable.
9475         (main): Set t in threads which execute iterations of the worksharing
9476         loop.  Propagate that to the task after the loop and don't abort
9477         if the current taskgroup hasn't been cancelled.
9479 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
9481         * testsuite/libgomp.c/task-reduction-3.c: New test.
9483         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9485 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
9487         PR libgomp/88288
9488         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9489         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9491 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
9493         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9495 2018-10-19  Richard Biener  <rguenther@suse.de>
9497         PR tree-optimization/88182
9498         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9500 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
9502         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9503         (RUNTEST): Don't define.
9504         (RUNTESTDEFAULTFLAGS): Add.
9505         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9506         (distclean-am): Depend on distclean-DEJAGNU.
9507         (check-am): If -j% option is present in MFLAGS and if
9508         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9509         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9510         * testsuite/Makefile.in: Regenerated.
9512 2018-11-26  Richard Biener  <rguenther@suse.de>
9514         PR tree-optimization/88182
9515         * testsuite/libgomp.c++/pr88182.C: New testcase.
9517 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
9519         PR bootstrap/88106
9520         * config/mingw32/affinity-fmt.c: New file.
9522 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
9524         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9525         (gomp_display_affinity): Use __builtin_choose_expr to handle
9526         properly handle argument having integral, or pointer or some other
9527         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
9528         with uint64_t type instead of %llx and unsigned long long.
9530         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9531         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9533 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9535         * affinity.c: Include <string.h>, <stdio.h>.
9536         (gomp_display_affinity_place): Remove cpusetp.
9537         * teams.c: Include <limits.h>.
9539 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
9541         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9542         in_reduction clause for s[0].
9544         * affinity.c (gomp_display_affinity_place): New function.
9545         * affinity-fmt.c: New file.
9546         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9547         * config/linux/affinity.c (gomp_display_affinity_place): New function.
9548         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9549         Move these functions to ...
9550         * config/nvptx/teams.c: ... here.  New file.
9551         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9552         New functions.
9553         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9554         functions.
9555         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9556         and _aligned_malloc.
9557         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9558         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9559         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9560         gomp_affinity_format_len): New variables.
9561         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9562         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
9563         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9564         modifiers.  Display (non-default) chunk sizes.  Print
9565         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9566         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
9567         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9568         * fortran.c: Include stdio.h and string.h.
9569         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9570         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9571         (omp_set_affinity_format_, omp_get_affinity_format_,
9572         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9573         omp_pause_resource_all_): New functions.
9574         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9575         switch.
9576         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9577         functions to ...
9578         * teams.c: ... here.  New file.
9579         * libgomp_g.h: Include gstdint.h.
9580         (GOMP_loop_nonmonotonic_runtime_start,
9581         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9582         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9583         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9584         GOMP_parallel_loop_nonmonotonic_runtime,
9585         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9586         GOMP_loop_ull_nonmonotonic_runtime_start,
9587         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9588         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9589         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9590         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9591         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9592         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9593         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9594         GOMP_teams_reg): Declare.
9595         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9596         gomp_aligned_alloc uses fallback implementation.
9597         (gomp_aligned_alloc, gomp_aligned_free): Declare.
9598         (enum gomp_schedule_type): Add GFS_MONOTONIC.
9599         (struct gomp_doacross_work_share): Add extra field.
9600         (struct gomp_work_share): Add task_reductions field.
9601         (struct gomp_taskgroup): Add workshare and reductions fields.
9602         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9603         (gomp_thread_handle): New typedef.
9604         (gomp_display_affinity_place, gomp_set_affinity_format,
9605         gomp_display_string, gomp_display_affinity,
9606         gomp_display_affinity_thread): Declare.
9607         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9608         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9609         gomp_workshare_task_reduction_register): Declare.
9610         (gomp_team_start): Add taskgroup argument.
9611         (gomp_pause_host): Declare.
9612         (gomp_init_work_share, gomp_work_share_start): Change bool argument
9613         to size_t.
9614         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9615         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9616         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9617         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9618         GOMP_loop_ull_doacross_start,
9619         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9620         GOMP_loop_maybe_nonmonotonic_runtime_next,
9621         GOMP_loop_maybe_nonmonotonic_runtime_start,
9622         GOMP_loop_nonmonotonic_runtime_next,
9623         GOMP_loop_nonmonotonic_runtime_start,
9624         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9625         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9626         GOMP_loop_ull_nonmonotonic_runtime_next,
9627         GOMP_loop_ull_nonmonotonic_runtime_start,
9628         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9629         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9630         GOMP_taskgroup_reduction_register,
9631         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9632         GOMP_teams_reg and GOMP_taskwait_depend.
9633         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9634         omp_{capture,display}_affinity{,_}, and
9635         omp_[gs]et_affinity_format{,_}.
9636         * loop.c: Include string.h.
9637         (GOMP_loop_runtime_next): Add ialias.
9638         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9639         (gomp_loop_static_start, gomp_loop_dynamic_start,
9640         gomp_loop_guided_start, gomp_loop_ordered_static_start,
9641         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9642         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9643         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9644         or gomp_doacross_init callers.
9645         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9646         GOMP_loop_doacross_start): New functions.
9647         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9648         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9649         Mask off GFS_MONOTONIC bit.
9650         (GOMP_loop_maybe_nonmonotonic_runtime_next,
9651         GOMP_loop_maybe_nonmonotonic_runtime_start,
9652         GOMP_loop_nonmonotonic_runtime_next,
9653         GOMP_loop_nonmonotonic_runtime_start,
9654         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9655         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9656         functions.
9657         (gomp_parallel_loop_start): Pass NULL as taskgroup to
9658         gomp_team_start.
9659         * loop_ull.c: Include string.h.
9660         (GOMP_loop_ull_runtime_next): Add ialias.
9661         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9662         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9663         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9664         gomp_loop_ull_ordered_dynamic_start,
9665         gomp_loop_ull_ordered_guided_start,
9666         gomp_loop_ull_doacross_static_start,
9667         gomp_loop_ull_doacross_dynamic_start,
9668         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9669         and gomp_doacross_ull_init callers.
9670         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9671         GOMP_loop_ull_doacross_start): New functions.
9672         (GOMP_loop_ull_runtime_start,
9673         GOMP_loop_ull_ordered_runtime_start,
9674         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9675         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9676         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9677         GOMP_loop_ull_nonmonotonic_runtime_next,
9678         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9679         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9680         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9681         (omp_pause_resource_t, omp_depend_t): New typedefs.
9682         (enum omp_lock_hint_t): Renamed to ...
9683         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
9684         enumerators using numbers and omp_lock_hint_* as their aliases.
9685         (omp_lock_hint_t): New typedef.  Rename to ...
9686         (omp_sync_hint_t): ... this.
9687         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9688         omp_sync_hint_t instead of omp_lock_hint_t.
9689         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9690         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9691         Declare.
9692         (omp_target_is_present, omp_target_disassociate_ptr):
9693         Change first argument from void * to const void *.
9694         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9695         from void * to const void *.
9696         (omp_target_associate_ptr): Change first and second arguments from
9697         void * to const void *.
9698         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9699         omp_pause_hard): New parameters.
9700         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9701         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9702         New interfaces.
9703         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9704         omp_pause_hard): New parameters.
9705         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9706         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9707         New externals.
9708         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9709         EXTRA argument.  If not needed to prepare array, if extra is 0,
9710         clear ws->doacross, otherwise allocate just doacross structure and
9711         extra payload.  If array is needed, allocate also extra payload.
9712         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9713         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9714         doacross == NULL.
9715         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9716         gomp_team_start.
9717         (GOMP_parallel): Likewise.  Formatting fix.
9718         (GOMP_parallel_reductions): New function.
9719         (GOMP_cancellation_point): If taskgroup has workshare
9720         flag set, check cancelled of prev taskgroup if any.
9721         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9722         on prev taskgroup if any.
9723         * sections.c: Include string.h.
9724         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9725         (GOMP_sections_start): Adjust gomp_work_share_start caller.
9726         (GOMP_sections2_start): New function.
9727         (GOMP_parallel_sections_start, GOMP_parallel_sections):
9728         Pass NULL as taskgroup to gomp_team_start.
9729         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9730         gomp_work_share_start callers.
9731         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9732         If taskgroup has workshare flag set, check cancelled on prev
9733         taskgroup if any.  Guard all cancellation tests with
9734         gomp_cancel_var test.
9735         (omp_target_is_present, omp_target_disassociate_ptr):
9736         Change ptr argument from void * to const void *.
9737         (omp_target_memcpy): Change src argument from void * to const void *.
9738         (omp_target_memcpy_rect): Likewise.
9739         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
9740         instead of char * where needed.
9741         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9742         from void * to const void *.
9743         (omp_pause_resource, omp_pause_resource_all): New functions.
9744         * task.c (gomp_task_handle_depend): Handle new depend array format
9745         in addition to the old.  Handle mutexinoutset kinds the same as
9746         inout for now, handle unspecified kinds.
9747         (gomp_create_target_task): If taskgroup has workshare flag set, check
9748         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9749         gomp_cancel_var test.  Handle new depend array format count in
9750         addition to the old.
9751         (GOMP_task): Likewise.  Adjust function comment.
9752         (gomp_task_run_pre): If taskgroup has workshare flag set, check
9753         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9754         gomp_cancel_var test.
9755         (GOMP_taskwait_depend): New function.
9756         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9757         format in addition to the old.  Handle mutexinoutset kinds the same as
9758         inout for now, handle unspecified kinds.  Fix a function comment typo.
9759         (gomp_taskgroup_init): New function.
9760         (GOMP_taskgroup_start): Use it.
9761         (gomp_reduction_register, gomp_create_artificial_team,
9762         GOMP_taskgroup_reduction_register,
9763         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9764         gomp_parallel_reduction_register,
9765         gomp_workshare_task_reduction_register,
9766         gomp_workshare_taskgroup_start,
9767         GOMP_workshare_task_reduction_unregister): New functions.
9768         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9769         check cancelled on prev taskgroup if any.  Guard all cancellation
9770         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
9771         by calling GOMP_taskgroup_reduction_register.
9772         * team.c (gomp_thread_attr): Remove comment.
9773         (struct gomp_thread_start_data): Add handle field.
9774         (gomp_thread_start): Call pthread_detach.
9775         (gomp_new_team): Adjust gomp_init_work_share caller.
9776         (gomp_free_pool_helper): Call pthread_detach.
9777         (gomp_team_start): Add taskgroup argument, initialize implicit
9778         tasks' taskgroup field to that.  Don't call
9779         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
9780         (gomp_team_end): Determine nesting by thr->ts.level != 0
9781         rather than thr->ts.team != NULL.
9782         (gomp_pause_pool_helper, gomp_pause_host): New functions.
9783         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9784         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9785         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9786         if more than 1 allocate also extra payload at the end of array.  Never
9787         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9788         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9789         return true instead of ws.
9790         * Makefile.in: Regenerated.
9791         * configure: Regenerated.
9792         * config.h.in: Regenerated.
9793         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9794         in some cases.
9795         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9796         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9797         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9798         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9799         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9800         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9801         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9802         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9803         * testsuite/libgomp.c-c++-common/for-10.c: New test.
9804         * testsuite/libgomp.c-c++-common/for-11.c: New test.
9805         * testsuite/libgomp.c-c++-common/for-12.c: New test.
9806         * testsuite/libgomp.c-c++-common/for-13.c: New test.
9807         * testsuite/libgomp.c-c++-common/for-14.c: New test.
9808         * testsuite/libgomp.c-c++-common/for-15.c: New test.
9809         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9810         define a different N(test), don't define N(f0) to N(f14), but instead
9811         define N(f20) to N(f34) using != comparisons.
9812         * testsuite/libgomp.c-c++-common/for-7.c: New test.
9813         * testsuite/libgomp.c-c++-common/for-8.c: New test.
9814         * testsuite/libgomp.c-c++-common/for-9.c: New test.
9815         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9816         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9817         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9818         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9819         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9820         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9821         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9822         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9823         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9824         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9825         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9826         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9827         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9828         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9829         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9830         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9831         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9832         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9833         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9834         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9835         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9836         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9837         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9838         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9839         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9840         * testsuite/libgomp.c++/depend-1.C: New test.
9841         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9842         * testsuite/libgomp.c++/depobj-1.C: New test.
9843         * testsuite/libgomp.c++/for-16.C: New test.
9844         * testsuite/libgomp.c++/for-21.C: New test.
9845         * testsuite/libgomp.c++/for-22.C: New test.
9846         * testsuite/libgomp.c++/for-23.C: New test.
9847         * testsuite/libgomp.c++/for-24.C: New test.
9848         * testsuite/libgomp.c++/for-25.C: New test.
9849         * testsuite/libgomp.c++/for-26.C: New test.
9850         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9851         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9852         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9853         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9854         * testsuite/libgomp.c++/task-reduction-10.C: New test.
9855         * testsuite/libgomp.c++/task-reduction-11.C: New test.
9856         * testsuite/libgomp.c++/task-reduction-12.C: New test.
9857         * testsuite/libgomp.c++/task-reduction-13.C: New test.
9858         * testsuite/libgomp.c++/task-reduction-14.C: New test.
9859         * testsuite/libgomp.c++/task-reduction-15.C: New test.
9860         * testsuite/libgomp.c++/task-reduction-16.C: New test.
9861         * testsuite/libgomp.c++/task-reduction-17.C: New test.
9862         * testsuite/libgomp.c++/task-reduction-18.C: New test.
9863         * testsuite/libgomp.c++/task-reduction-19.C: New test.
9864         * testsuite/libgomp.c/task-reduction-1.c: New test.
9865         * testsuite/libgomp.c++/task-reduction-1.C: New test.
9866         * testsuite/libgomp.c/task-reduction-2.c: New test.
9867         * testsuite/libgomp.c++/task-reduction-2.C: New test.
9868         * testsuite/libgomp.c++/task-reduction-3.C: New test.
9869         * testsuite/libgomp.c++/task-reduction-4.C: New test.
9870         * testsuite/libgomp.c++/task-reduction-5.C: New test.
9871         * testsuite/libgomp.c++/task-reduction-6.C: New test.
9872         * testsuite/libgomp.c++/task-reduction-7.C: New test.
9873         * testsuite/libgomp.c++/task-reduction-8.C: New test.
9874         * testsuite/libgomp.c++/task-reduction-9.C: New test.
9875         * testsuite/libgomp.c/teams-1.c: New test.
9876         * testsuite/libgomp.c/teams-2.c: New test.
9877         * testsuite/libgomp.c/thread-limit-4.c: New test.
9878         * testsuite/libgomp.c/thread-limit-5.c: New test.
9879         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9881 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
9883         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9884         acc_memcpy_to/from_device functions, now with async parameter.
9885         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9886         (acc_memcpy_from_device): Likewise.
9887         (acc_memcpy_to_device_async): New API function.
9888         (acc_memcpy_from_device_async): Likewise.
9889         (present_create_copy): Add async parameter and async setting/unsetting.
9890         (acc_create): Adjust present_create_copy call.
9891         (acc_copyin): Likewise.
9892         (acc_present_or_create): Likewise.
9893         (acc_present_or_copyin): Likewise.
9894         (acc_create_async): New API function.
9895         (acc_copyin_async): New API function.
9896         (delete_copyout): Add async parameter and async setting/unsetting.
9897         (acc_delete): Adjust delete_copyout call.
9898         (acc_copyout): Likewise.
9899         (acc_delete_async): New API function.
9900         (acc_copyout_async): Likewise.
9901         (update_dev_host): Add async parameter and async setting/unsetting.
9902         (acc_update_device): Adjust update_dev_host call.
9903         (acc_update_self): Likewise.
9904         (acc_update_device_async): New API function.
9905         (acc_update_self_async): Likewise.
9906         * openacc.h (acc_copyin_async): Declare new API function.
9907         (acc_create_async): Likewise.
9908         (acc_copyout_async): Likewise.
9909         (acc_delete_async): Likewise.
9910         (acc_update_device_async): Likewise.
9911         (acc_update_self_async): Likewise.
9912         (acc_memcpy_to_device_async): Likewise.
9913         (acc_memcpy_from_device_async): Likewise.
9914         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9915         (acc_copyin_async_64_h): New subroutine.
9916         (acc_copyin_async_array_h): New subroutine.
9917         (acc_create_async_32_h): New subroutine.
9918         (acc_create_async_64_h): New subroutine.
9919         (acc_create_async_array_h): New subroutine.
9920         (acc_copyout_async_32_h): New subroutine.
9921         (acc_copyout_async_64_h): New subroutine.
9922         (acc_copyout_async_array_h): New subroutine.
9923         (acc_delete_async_32_h): New subroutine.
9924         (acc_delete_async_64_h): New subroutine.
9925         (acc_delete_async_array_h): New subroutine.
9926         (acc_update_device_async_32_h): New subroutine.
9927         (acc_update_device_async_64_h): New subroutine.
9928         (acc_update_device_async_array_h): New subroutine.
9929         (acc_update_self_async_32_h): New subroutine.
9930         (acc_update_self_async_64_h): New subroutine.
9931         (acc_update_self_async_array_h): New subroutine.
9932         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9933         (acc_copyin_async_64_h): New subroutine.
9934         (acc_copyin_async_array_h): New subroutine.
9935         (acc_create_async_32_h): New subroutine.
9936         (acc_create_async_64_h): New subroutine.
9937         (acc_create_async_array_h): New subroutine.
9938         (acc_copyout_async_32_h): New subroutine.
9939         (acc_copyout_async_64_h): New subroutine.
9940         (acc_copyout_async_array_h): New subroutine.
9941         (acc_delete_async_32_h): New subroutine.
9942         (acc_delete_async_64_h): New subroutine.
9943         (acc_delete_async_array_h): New subroutine.
9944         (acc_update_device_async_32_h): New subroutine.
9945         (acc_update_device_async_64_h): New subroutine.
9946         (acc_update_device_async_array_h): New subroutine.
9947         (acc_update_self_async_32_h): New subroutine.
9948         (acc_update_self_async_64_h): New subroutine.
9949         (acc_update_self_async_array_h): New subroutine.
9950         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9951         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9952         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9953         acc_memcpy_to_device_async*, acc_update_device_async*, and
9954         acc_update_self_async* entries.
9955         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9956         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9957         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9959 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
9961         PR bootstrap/82856
9962         * Makefile.am: Include multilib.am
9963         (AUTOMAKE_OPTIONS): Add info-in-builddir.
9964         (CLEANFILES): Remove libgomp.info.
9965         * configure.ac: Remove AC_PREREQ.
9966         * testsuite/Makefile.am (RUNTEST): Remove quotes.
9967         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9968         Regenerate.
9970 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
9971             Julian Brown  <julian@codesourcery.com>
9973         * testsuite/libgomp.oacc-c++/this.C: New.
9975 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
9977         * plugin/plugin-nvptx.c (struct cuda_map): New.
9978         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9979         h_tail with (cuda_map *) map.
9980         (cuda_map_create): New function.
9981         (cuda_map_destroy): New function.
9982         (map_init): Update to use a linked list of cuda_map objects.
9983         (map_fini): Likewise.
9984         (map_pop): Likewise.
9985         (map_push): Likewise.  Return CUdeviceptr instead of void.
9986         (init_streams_for_device): Remove stales references to ptx_stream
9987         members.
9988         (select_stream_for_async): Likewise.
9989         (nvptx_exec): Update call to map_init.
9991 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
9992             Julian Brown  <julian@codesourcery.com>
9994         PR middle-end/86336
9995         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9997 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
9998         Thomas Koenig <tkoenig@gcc.gnu.org>
10000         PR fortran/25829
10001         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10002         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10003         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10004         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10005         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10006         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10007         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10009 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10010             Tom de Vries  <tdevries@suse.de>
10012         PR target/85590
10013         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10014         (cuOccupancyMaxPotentialBlockSize): Declare.
10015         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10016         CUDA_ONE_CALL_MAYBE_NULL.
10017         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10018         CUoccupancyB2DSize and declare
10019         cuOccupancyMaxPotentialBlockSize.
10020         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10021         default num_gangs and num_workers when the driver supports it.
10023 2018-08-08  Tom de Vries  <tdevries@suse.de>
10025         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10026         CUDA_ONE_CALL_MAYBE_NULL.
10027         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10028         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10029         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10030         are not found.
10032 2018-08-08  Tom de Vries  <tdevries@suse.de>
10034         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10035         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10036         present.
10038 2018-08-08  Tom de Vries  <tdevries@suse.de>
10040         * plugin/plugin-nvptx.c
10041         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10042         (nvptx_open_device): Use
10043         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10045 2018-08-08  Tom de Vries  <tdevries@suse.de>
10047         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10048         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10050 2018-08-07  Tom de Vries  <tdevries@suse.de>
10052         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10053         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10054         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10055         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10056         CUDA_ONE_CALL_MAYBE_NULL.
10057         (CUDA_CALL_EXISTS): Define.
10059 2018-08-07  Tom de Vries  <tdevries@suse.de>
10061         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10062         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10063         corresponding undefs right after.
10065 2018-08-04  Tom de Vries  <tdevries@suse.de>
10067         * plugin/configfrag.ac: For --without-cuda-driver, set
10068         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10069         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10070         * configure: Regenerate.
10072 2018-08-02  Tom de Vries  <tdevries@suse.de>
10074         PR target/86660
10075         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10076         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10077         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10078         Same.
10079         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10080         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10081         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10083 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10084             Thomas Schwinge <thomas@codesourcery.com>
10086         * config/nvptx/oacc-parallel.c: Truncate.
10088 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10089             James Norris <jnorris@codesourcery.com>
10091         * plugin/plugin-nvptx.c (struct map): Removed.
10092         (map_init, map_pop): Remove use of struct map.
10093         (map_push): Likewise and change argument list.
10094         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10096 2018-08-01  Tom de Vries  <tdevries@suse.de>
10098         * plugin/cuda-lib.def: New file.  Factor out of ...
10099         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10100         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10101         using CUDA_CALLS.
10103 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10105         Revert 'AsyncI/O patch committed'.
10106         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10107                 Thomas Koenig <tkoenig@gcc.gnu.org>
10109         PR fortran/25829
10110         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10111         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10112         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10113         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10114         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10115         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10116         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10118 2018-07-30  Tom de Vries  <tdevries@suse.de>
10120         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10121         (nvptx_exec): Ensure worker and vector default dims don't exceed
10122         targ_fn->max_threads_per_block.
10124 2018-07-30  Tom de Vries  <tdevries@suse.de>
10126         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10127         (nvptx_open_device): Init default_dims for device.
10128         (nvptx_exec): Use default_dims from device.
10130 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10132         PR testsuite/86660
10133         * testsuite/libgomp.c++/for-15.C (results): Include it in
10134         omp declare target region.
10135         (main): Use map (always, tofrom: results) instead of
10136         map (tofrom: results).
10138         PR middle-end/86660
10139         * testsuite/libgomp.c/pr86660.c: New test.
10141 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10142             Tom de Vries  <tdevries@suse.de>
10144         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10145         sufficient resources to launch a kernel, and give a hint on how to fix
10146         it.
10148 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10149             Tom de Vries  <tdevries@suse.de>
10151         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10152         max_threads_per_block and max_threads_per_multiprocessor fields.
10153         (nvptx_open_device): Initialize new fields.
10154         (nvptx_exec): Use num_sms, and new fields.
10156 2018-07-26  Tom de Vries  <tdevries@suse.de>
10158         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10159         to correct locations.  Remove xfail.
10161 2018-07-26  Tom de Vries  <tdevries@suse.de>
10163         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10164         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10165         xfail.
10167 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10168         Thomas Koenig <tkoenig@gcc.gnu.org>
10170         PR fortran/25829
10171         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10172         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10173         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10174         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10175         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10176         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10177         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10179 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10181         PR middle-end/86542
10182         * testsuite/libgomp.c++/pr86542.C: New test.
10184         PR middle-end/86539
10185         * testsuite/libgomp.c++/pr86539.C: New test.
10187 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
10189         PR c++/86443
10190         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10191         (results): Make sure the variable is not inside declare target region.
10192         (qux): Remove unused function.
10194 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
10196         PR c++/86443
10197         * testsuite/libgomp.c++/for-15.C: New test.
10199 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
10201         PR c++/86291
10202         * testsuite/libgomp.c++/pr86291.C: New test.
10204 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
10206         * libgomp.texi (Top): Move www.openmp.org to https.
10207         (Enabling OpenMP): Ditto.
10208         (omp_get_active_level): Ditto.
10209         (omp_get_ancestor_thread_num): Ditto.
10210         (omp_get_cancellation): Ditto.
10211         (omp_get_default_device): Ditto.
10212         (omp_get_dynamic): Ditto.
10213         (omp_get_level): Ditto.
10214         (omp_get_max_active_levels): Ditto.
10215         (omp_get_max_task_priority): Ditto.
10216         (omp_get_max_threads): Ditto.
10217         (omp_get_nested): Ditto.
10218         (omp_get_num_devices): Ditto.
10219         (omp_get_num_procs): Ditto.
10220         (omp_get_num_teams): Ditto.
10221         (omp_get_num_threads): Ditto.
10222         (omp_get_proc_bind): Ditto.
10223         (omp_get_schedule): Ditto.
10224         (omp_get_team_num): Ditto.
10225         (omp_get_team_size): Ditto.
10226         (omp_get_thread_limit): Ditto.
10227         (omp_get_thread_num): Ditto.
10228         (omp_in_parallel): Ditto.
10229         (omp_in_final): Ditto.
10230         (omp_is_initial_device): Ditto.
10231         (omp_set_default_device): Ditto.
10232         (omp_set_dynamic): Ditto.
10233         (omp_set_max_active_levels): Ditto.
10234         (omp_set_nested): Ditto.
10235         (omp_set_num_threads): Ditto.
10236         (omp_set_schedule): Ditto.
10237         (omp_init_lock): Ditto.
10238         (omp_set_lock): Ditto.
10239         (omp_test_lock): Ditto.
10240         (omp_unset_lock): Ditto.
10241         (omp_destroy_lock): Ditto.
10242         (omp_init_nest_lock): Ditto.
10243         (omp_set_nest_lock): Ditto.
10244         (omp_test_nest_lock): Ditto.
10245         (omp_unset_nest_lock): Ditto.
10246         (omp_destroy_nest_lock): Ditto.
10247         (omp_get_wtick): Ditto.
10248         (omp_get_wtime): Ditto.
10249         (OMP_CANCELLATION): Ditto.
10250         (OMP_DISPLAY_ENV): Ditto.
10251         (OMP_DEFAULT_DEVICE): Ditto.
10252         (OMP_DYNAMIC): Ditto.
10253         (OMP_MAX_ACTIVE_LEVELS): Ditto.
10254         (OMP_MAX_TASK_PRIORITY): Ditto.
10255         (OMP_NESTED): Ditto.
10256         (OMP_NUM_THREADS): Ditto.
10257         (OMP_PROC_BIND): Ditto.
10258         (OMP_PLACES): Ditto.
10259         (OMP_STACKSIZE): Ditto.
10260         (OMP_SCHEDULE): Ditto.
10261         (OMP_THREAD_LIMIT): Ditto.
10262         (OMP_WAIT_POLICY): Ditto.
10264 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
10265             James Norris  <jnorris@codesourcery.com>
10266             Julian Brown  <julian@codesourcery.com>
10267             Thomas Schwinge  <thomas@codesourcery.com>
10268             Tom de Vries  <tom@codesourcery.com>
10270         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10271         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10272         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10273         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10274         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10275         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10276         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10277         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10278         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10279         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10280         Likewise.
10281         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10282         Likewise.
10283         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10284         Likewise.
10285         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10286         Likewise.
10287         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10288         Likewise.
10289         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10290         Likewise.
10291         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10292         Likewise.
10293         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10294         Likewise.
10295         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10296         Likewise.
10297         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10298         Likewise.
10299         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10300         Likewise.
10301         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10302         Likewise.
10303         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10304         Likewise.
10305         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10306         Likewise.
10307         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10308         Likewise.
10309         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10310         Likewise.
10311         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10312         Likewise.
10313         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10314         Likewise.
10315         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10316         Likewise.
10317         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10318         Likewise.
10319         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10320         Likewise.
10321         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10322         Likewise.
10323         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10324         Likewise.
10325         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10326         Likewise.
10327         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10328         Likewise.
10329         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10330         Likewise.
10331         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10332         Likewise.
10333         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10334         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10335         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10336         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10337         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10338         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10339         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10340         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10341         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10342         Likewise.
10343         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10344         Likewise.
10345         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10346         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10347         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10348         Likewise.
10349         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10350         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10351         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10352         Likewise.
10353         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10354         Likewise.
10355         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10356         Likewise.
10357         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10358         Likewise.
10359         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10360         Likewise.
10361         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10362         Likewise.
10363         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10364         Likewise.
10365         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10366         Likewise.
10367         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10368         Likewise.
10369         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10370         Likewise.
10371         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10372         Likewise.
10373         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10374         Likewise.
10375         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10376         Likewise.
10377         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10378         Likewise.
10379         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10380         Likewise.
10381         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10382         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10383         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10384         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10385         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10386         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10387         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10389 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
10390             Thomas Schwinge <thomas@codesourcery.com>
10391             Cesar Philippidis  <cesar@codesourcery.com>
10393         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10394         (gomp_acc_remove_pointer): Update declaration.
10395         (gomp_acc_declare_allocate): Declare.
10396         (gomp_remove_var): Declare.
10397         * libgomp.map (OACC_2.5): Define.
10398         * oacc-mem.c (acc_map_data): Update refcount.
10399         (acc_unmap_data): Likewise.
10400         (present_create_copy): Likewise.
10401         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10402         (acc_copyin): Likewise.
10403         (FLAG_FINALIZE): Define.
10404         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10405         (acc_delete_finalize): New function.
10406         (acc_delete_finalize_async): New function.
10407         (acc_copyout_finalize): New function.
10408         (acc_copyout_finalize_async): New function.
10409         (gomp_acc_insert_pointer): Update refcounts.
10410         (gomp_acc_remove_pointer): Return if data is not present on the
10411         accelerator.
10412         * oacc-parallel.c (find_pset): Rename to find_pointer.
10413         (find_pointer): Add support for GOMP_MAP_POINTER.
10414         (handle_ftn_pointers): New function.
10415         (GOACC_parallel_keyed): Update refcounts of variables.
10416         (GOACC_enter_exit_data): Add support for finalized data mappings.
10417         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10418         of fortran arrays.
10419         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10420         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10421         for GOMP_MAP_FORCE_FROM.
10422         * openacc.f90 (module openacc_internal): Add
10423         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10424         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10425         acc_copyout_finalize and acc_delete_finalize.
10426         (acc_copyout_finalize_32_h): New subroutine.
10427         (acc_copyout_finalize_64_h): New subroutine.
10428         (acc_copyout_finalize_array_h): New subroutine.
10429         (acc_delete_finalize_32_h): New subroutine.
10430         (acc_delete_finalize_64_h): New subroutine.
10431         (acc_delete_finalize_array_h): New subroutine.
10432         * openacc.h (acc_copyout_finalize): Declare.
10433         (acc_copyout_finalize_async): Declare.
10434         (acc_delete_finalize): Declare.
10435         (acc_delete_finalize_async): Declare.
10436         * openacc_lib.h (acc_copyout_finalize): New interface.
10437         (acc_delete_finalize): New interface.
10438         * target.c (gomp_map_vars): Update dynamic_refcount.
10439         (gomp_remove_var): New function.
10440         (gomp_unmap_vars): Use it.
10441         (gomp_unload_image_from_device): Likewise.
10442         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10443         case to utilize OpenACC 2.5 data clause semantics.
10444         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10445         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10446         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10447         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10448         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10449         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10450         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10451         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10452         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10453         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10454         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10455         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10456         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10457         utilize OpenACC 2.5 data clause semantics.
10458         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10459         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10460         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10461         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10462         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10463         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10464         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10465         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10466         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10468 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
10470         PR fortran/85841
10471         PR testsuite/85865
10472         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10473         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10474         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10475         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10476         * testsuite/libgomp.fortran/task2.f90: Ditto.
10477         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10478         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10479         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10480         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10481         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10482         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10483         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10484         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10485         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10487 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
10489         PR c++/85782
10490         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10492 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10494         PR libgomp/82901
10495         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10496         to GOACC_enter_exit_data.
10498 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10500         PR libgomp/83792
10501         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10502         (async_synchronous_p): New function.
10503         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10504         async_valid_p.
10505         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10506         async_valid_stream_id_p.
10507         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10508         * oacc-parallel.c (GOACC_parallel_keyed): Same.
10510 2018-05-07  Tom de Vries  <tom@codesourcery.com>
10512         PR testsuite/85677
10513         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10514         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10516 2018-05-03  Tom de Vries  <tom@codesourcery.com>
10518         PR testsuite/85106
10519         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10520         extra_tool_flags if it contains an -foffload=-fdump-* flag.
10521         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10522         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10524 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10526         PR libgomp/85411
10527         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10528         GOMP_OPENACC_DIM ...
10529         * env.c (parse_gomp_openacc_dim): ... here.  New function.
10530         (initialize_env): Call parse_gomp_openacc_dim.
10531         (goacc_default_dims): Define.
10532         * libgomp.h (goacc_default_dims): Declare.
10533         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10534         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10535         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10536         GOMP_PLUGIN_acc_default_dim.
10537         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10538         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10540 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10542         PR testsuite/83791
10543         * testsuite/libgomp.c++/udr-9.C: Update.
10544         * testsuite/libgomp.c++/atomic-16.C: Remove.
10545         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10546         * testsuite/libgomp.c++/loop-13.C: Remove.
10547         * testsuite/libgomp.c++/loop-14.C: Remove.
10548         * testsuite/libgomp.c++/loop-15.C: Remove.
10549         * testsuite/libgomp.c++/monotonic-1.C: Remove.
10550         * testsuite/libgomp.c++/monotonic-2.C: Remove.
10551         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10552         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10553         * testsuite/libgomp.c++/ordered-1.C: Remove.
10554         * testsuite/libgomp.c++/pr45784.C: Remove.
10555         * testsuite/libgomp.c++/pr64824.C: Remove.
10556         * testsuite/libgomp.c++/pr64868.C: Remove.
10557         * testsuite/libgomp.c++/pr66199-1.C: Remove.
10558         * testsuite/libgomp.c++/pr66199-2.C: Remove.
10559         * testsuite/libgomp.c++/pr66199-3.C: Remove.
10560         * testsuite/libgomp.c++/pr66199-4.C: Remove.
10561         * testsuite/libgomp.c++/pr66199-5.C: Remove.
10562         * testsuite/libgomp.c++/pr66199-6.C: Remove.
10563         * testsuite/libgomp.c++/pr66199-7.C: Remove.
10564         * testsuite/libgomp.c++/pr66199-8.C: Remove.
10565         * testsuite/libgomp.c++/pr66199-9.C: Remove.
10566         * testsuite/libgomp.c++/pr69389.C: Remove.
10567         * testsuite/libgomp.c++/simd10.C: Remove.
10568         * testsuite/libgomp.c++/simd11.C: Remove.
10569         * testsuite/libgomp.c++/simd12.C: Remove.
10570         * testsuite/libgomp.c++/simd13.C: Remove.
10571         * testsuite/libgomp.c++/target-1.C: Remove.
10572         * testsuite/libgomp.c++/target-3.C: Remove.
10573         * testsuite/libgomp.c++/target-4.C: Remove.
10574         * testsuite/libgomp.c++/target-5.C: Remove.
10575         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10576         * testsuite/libgomp.c++/taskloop-1.C: Remove.
10577         * testsuite/libgomp.c++/taskloop-2.C: Remove.
10578         * testsuite/libgomp.c++/taskloop-3.C: Remove.
10579         * testsuite/libgomp.c++/taskloop-4.C: Remove.
10580         * testsuite/libgomp.c++/udr-9.C: Remove.
10581         * testsuite/libgomp.c++/for-10.C: Remove.
10582         * testsuite/libgomp.c++/for-11.C: Remove.
10583         * testsuite/libgomp.c++/for-12.C: Remove.
10584         * testsuite/libgomp.c++/for-13.C: Remove.
10585         * testsuite/libgomp.c++/for-14.C: Remove.
10586         * testsuite/libgomp.c++/for-9.C: Remove.
10587         * testsuite/libgomp.c/atomic-18.c: Move ...
10588         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10589         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10590         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10591         * testsuite/libgomp.c/loop-13.c: Move ...
10592         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10593         * testsuite/libgomp.c/loop-14.c: Move ...
10594         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10595         * testsuite/libgomp.c/loop-15.c: Remove.
10596         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10597         * testsuite/libgomp.c/monotonic-1.c: Move ...
10598         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10599         * testsuite/libgomp.c/monotonic-2.c: Move ...
10600         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10601         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10602         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10603         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10604         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10605         * testsuite/libgomp.c/ordered-4.c: Move ...
10606         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10607         * testsuite/libgomp.c/pr45784.c: Move ...
10608         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10609         * testsuite/libgomp.c/pr64824.c: Move ...
10610         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10611         * testsuite/libgomp.c/pr64868.c: Move ...
10612         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10613         * testsuite/libgomp.c/pr66199-1.c: Move ...
10614         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10615         * testsuite/libgomp.c/pr66199-2.c: Move ...
10616         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10617         * testsuite/libgomp.c/pr66199-3.c: Move ...
10618         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10619         * testsuite/libgomp.c/pr66199-4.c: Move ...
10620         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10621         * testsuite/libgomp.c/pr66199-5.c: Move ...
10622         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10623         * testsuite/libgomp.c/pr66199-6.c: Move ...
10624         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10625         * testsuite/libgomp.c/pr66199-7.c: Move ...
10626         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10627         * testsuite/libgomp.c/pr66199-8.c: Move ...
10628         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10629         * testsuite/libgomp.c/pr66199-9.c: Move ...
10630         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10631         * testsuite/libgomp.c/pr69389.c: Move ...
10632         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10633         * testsuite/libgomp.c/simd-14.c: Move ...
10634         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10635         * testsuite/libgomp.c/simd-15.c: Move ...
10636         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10637         * testsuite/libgomp.c/simd-16.c: Move ...
10638         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10639         * testsuite/libgomp.c/simd-17.c: Move ...
10640         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10641         * testsuite/libgomp.c/target-1.c: Move ...
10642         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10643         * testsuite/libgomp.c/target-10.c: Move ...
10644         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10645         * testsuite/libgomp.c/target-13.c: Move ...
10646         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10647         * testsuite/libgomp.c/target-2.c: Move ...
10648         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10649         * testsuite/libgomp.c/taskgroup-1.c: Move ...
10650         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10651         * testsuite/libgomp.c/taskloop-1.c: Move ...
10652         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10653         * testsuite/libgomp.c/taskloop-2.c: Move ...
10654         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10655         * testsuite/libgomp.c/taskloop-3.c: Move ...
10656         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10657         * testsuite/libgomp.c/taskloop-4.c: Move ...
10658         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10659         * testsuite/libgomp.c/udr-1.c: Move ...
10660         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10661         * testsuite/libgomp.c/for-1.c: Move ...
10662         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10663         * testsuite/libgomp.c/for-1.h: Move ...
10664         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10665         * testsuite/libgomp.c/for-2.c: Move ...
10666         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10667         * testsuite/libgomp.c/for-2.h: Move ...
10668         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10669         * testsuite/libgomp.c/for-3.c: Move ...
10670         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10671         * testsuite/libgomp.c/for-4.c: Move ...
10672         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10673         * testsuite/libgomp.c/for-5.c: Move ...
10674         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10675         * testsuite/libgomp.c/for-6.c: Move ...
10676         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10678 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10680         PR libgomp/82428
10681         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10682         __builtin_goacc_parlevel_{id,size}.
10683         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10684         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10685         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10686         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10687         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10688         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10689         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10690         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10691         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10692         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10693         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10694         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10695         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10696         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10697         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10698         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10699         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10700         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10701         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10702         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10703         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10704         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10705         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10707 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10709         PR testsuite/85106
10710         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10712 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10714         PR testsuite/85106
10715         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10717 2018-04-29  Julian Brown  <julian@codesourcery.com>
10718             Tom de Vries  <tom@codesourcery.com>
10720         PR testsuite/85527
10721         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10722         arbitrary order for iterations of atomic subtract check.
10724 2018-04-28  Tom de Vries  <tom@codesourcery.com>
10726         PR testsuite/85527
10727         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10728         atomic capture results obtained in parallel loop to an array, instead of
10729         to a scalar.
10731 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10733         PR libgomp/84020
10734         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10735         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10736         (process_GOMP_NVPTX_JIT): New function.
10737         (link_ptx): Use process_GOMP_NVPTX_JIT.
10739 2018-04-26  Richard Biener <rguenther@suse.de>
10740             Tom de Vries  <tom@codesourcery.com>
10742         PR lto/85422
10743         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10745 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10747         PR target/85519
10748         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10749         recursion depth from 25 to 23.
10750         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10752 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
10754         * configure: Regenerated.
10756 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
10757             Tom de Vries  <tom@codesourcery.com>
10759         PR target/85445
10760         * testsuite/libgomp.oacc-c++/ref-1.C: New.
10762 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
10764         PR libgomp/85463
10765         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10766         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10767         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10768         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10769         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10770         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10772         PR libfortran/85166
10773         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10774         abort".
10775         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10777 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
10779         * configure: Regenerated.
10781 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
10783         PR jit/85384
10784         * configure: Regenerate.
10786 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
10787             Tom de Vries  <tom@codesourcery.com>
10789         PR middle-end/84955
10790         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10791         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10793 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
10795         PR fortran/83064
10796         PR testsuite/85346
10797         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10798         test from gfortran.dg to here.
10800 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10802         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10803         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10805 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10807         PR middle-end/84955
10808         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10809         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10811 2018-04-05  Tom de Vries  <tom@codesourcery.com>
10813         PR target/85204
10814         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10816 2018-03-26  Tom de Vries  <tom@codesourcery.com>
10818         PR tree-optimization/85063
10819         * testsuite/libgomp.c/switch-conversion-2.c: New test.
10820         * testsuite/libgomp.c/switch-conversion.c: New test.
10821         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10822         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10824 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
10826         PR fortran/84381
10827         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10828         call abort by STOP n.
10829         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10830         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10831         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10832         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10833         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10834         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10835         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10836         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10837         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10838         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10839         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10840         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10841         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10842         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10843         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10844         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10845         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10846         * testsuite/libgomp.fortran/associate1.f90: Likewise.
10847         * testsuite/libgomp.fortran/associate2.f90: Likewise.
10848         * testsuite/libgomp.fortran/associate3.f90: Likewise.
10849         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10850         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10851         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10852         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10853         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10854         * testsuite/libgomp.fortran/character1.f90: Likewise.
10855         * testsuite/libgomp.fortran/character2.f90: Likewise.
10856         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10857         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10858         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10859         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10860         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10861         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10862         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10863         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10864         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10865         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10866         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10867         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10868         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10869         * testsuite/libgomp.fortran/do1.f90: Likewise.
10870         * testsuite/libgomp.fortran/do2.f90: Likewise.
10871         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10872         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10873         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10874         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10875         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10876         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10877         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10878         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10879         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10880         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10881         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10882         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10883         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10884         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10885         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10886         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10887         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10888         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10889         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10890         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10891         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10892         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10893         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10894         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10895         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10896         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10897         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10898         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10899         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10900         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10901         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10902         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10903         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10904         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10905         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10906         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10907         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10908         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10909         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10910         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10911         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10912         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10913         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10914         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10915         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10916         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10917         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10918         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10919         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10920         * testsuite/libgomp.fortran/lib1.f90: Likewise.
10921         * testsuite/libgomp.fortran/lib2.f: Likewise.
10922         * testsuite/libgomp.fortran/lib3.f: Likewise.
10923         * testsuite/libgomp.fortran/lib4.f90: Likewise.
10924         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10925         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10926         * testsuite/libgomp.fortran/nested1.f90: Likewise.
10927         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10928         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10929         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10930         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10931         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10932         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10933         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10934         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10935         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10936         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10937         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10938         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10939         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10940         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10941         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10942         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10943         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10944         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10945         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10946         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10947         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10948         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10949         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10950         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10951         * testsuite/libgomp.fortran/pr25162.f: Likewise.
10952         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10953         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10954         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10955         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10956         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10957         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10958         * testsuite/libgomp.fortran/pr28390.f: Likewise.
10959         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10960         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10961         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10962         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10963         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10964         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10965         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10966         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10967         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10968         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10969         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10970         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10971         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10972         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10973         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10974         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10975         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10976         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10977         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10978         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10979         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10980         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10981         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10982         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10983         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10984         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10985         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10986         * testsuite/libgomp.fortran/reference1.f90: Likewise.
10987         * testsuite/libgomp.fortran/reference2.f90: Likewise.
10988         * testsuite/libgomp.fortran/retval1.f90: Likewise.
10989         * testsuite/libgomp.fortran/retval2.f90: Likewise.
10990         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10991         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10992         * testsuite/libgomp.fortran/simd1.f90: Likewise.
10993         * testsuite/libgomp.fortran/simd2.f90: Likewise.
10994         * testsuite/libgomp.fortran/simd3.f90: Likewise.
10995         * testsuite/libgomp.fortran/simd4.f90: Likewise.
10996         * testsuite/libgomp.fortran/simd5.f90: Likewise.
10997         * testsuite/libgomp.fortran/simd6.f90: Likewise.
10998         * testsuite/libgomp.fortran/simd7.f90: Likewise.
10999         * testsuite/libgomp.fortran/stack.f90: Likewise.
11000         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11001         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11002         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11003         * testsuite/libgomp.fortran/target1.f90: Likewise.
11004         * testsuite/libgomp.fortran/target2.f90: Likewise.
11005         * testsuite/libgomp.fortran/target3.f90: Likewise.
11006         * testsuite/libgomp.fortran/target4.f90: Likewise.
11007         * testsuite/libgomp.fortran/target5.f90: Likewise.
11008         * testsuite/libgomp.fortran/target6.f90: Likewise.
11009         * testsuite/libgomp.fortran/target7.f90: Likewise.
11010         * testsuite/libgomp.fortran/target8.f90: Likewise.
11011         * testsuite/libgomp.fortran/task1.f90: Likewise.
11012         * testsuite/libgomp.fortran/task2.f90: Likewise.
11013         * testsuite/libgomp.fortran/task3.f90: Likewise.
11014         * testsuite/libgomp.fortran/task4.f90: Likewise.
11015         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11016         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11017         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11018         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11019         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11020         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11021         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11022         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11023         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11024         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11025         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11026         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11027         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11028         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11029         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11030         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11031         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11032         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11033         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11034         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11035         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11036         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11037         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11038         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11039         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11040         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11041         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11042         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11043         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11044         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11045         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11046         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11047         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11048         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11049         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11050         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11051         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11052         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11053         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11054         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11055         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11056         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11057         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11058         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11059         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11060         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11061         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11062         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11063         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11064         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11065         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11066         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11067         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11068         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11069         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11070         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11071         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11072         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11073         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11074         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11075         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11076         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11077         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11078         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11079         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11080         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11081         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11082         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11083         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11084         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11085         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11086         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11087         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11088         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11089         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11090         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11091         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11092         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11093         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11094         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11095         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11096         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11097         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11098         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11099         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11100         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11101         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11102         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11103         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11104         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11105         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11106         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11107         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11108         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11109         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11110         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11111         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11112         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11113         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11114         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11115         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11116         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11117         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11118         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11119         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11120         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11121         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11122         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11123         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11124         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11125         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11126         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11127         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11128         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11129         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11130         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11131         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11132         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11133         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11134         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11135         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11136         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11137         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11138         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11139         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11140         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11142 2018-03-20  Richard Biener  <rguenther@suse.de>
11144         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11145         parallelizable loop.
11147 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11149         PR target/84148
11150         * configure: Regenerate.
11152 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11154         PR fortran/84418
11155         * libgomp.fortran/pr84418-1.f90: New test.
11156         * libgomp.fortran/pr84418-2.f90: New test.
11158 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11160         PR fortran/84313
11161         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11162         -std=f2003 -fall-intrinsics into dg-additional-options.
11164 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11166         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11167         clonable.
11169 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11171         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11173 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11175         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11176         [__cplusplus]: Declare extern "C".
11178 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11180         PR libgomp/84217
11181         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11183 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11184             Jakub Jelinek  <jakub@redhat.com>
11186         PR libgomp/84096
11187         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11188         instead of omp_lock_t.
11190 2018-01-25  Tom de Vries  <tom@codesourcery.com>
11192         PR target/84028
11193         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11195 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11197         PR target/83589
11198         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11200 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11202         PR target/81352
11203         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11205 2018-01-19  Tom de Vries  <tom@codesourcery.com>
11206             Cesar Philippidis  <cesar@codesourcery.com>
11208         PR target/83920
11209         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11210         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11212 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11214         Update copyright years.
11216         * libgomp.texi: Bump @copying's copyright year.
11218 2017-12-30  Tom de Vries  <tom@codesourcery.com>
11220         PR libgomp/83046
11221         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11222         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11224 2017-12-27  Tom de Vries  <tom@codesourcery.com>
11226         PR c++/83046
11227         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11228         (test_nonstatic): Fix return type to workaround PR83046.
11230 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
11232         PR testsuite/83281
11233         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11234         j suffix instead of i.
11235         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11236         Likewise.
11238 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
11240         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11241         call to acc_wait (1).
11243 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
11245         PR fortran/81304
11246         * testsuite/libgomp.fortran/pr81304.f90: New test.
11248 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
11250         PR fortran/81841
11251         * libgomp.fortran/pr81841.f90: New test.
11253 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
11255         PR libgomp/83106
11256         * target.c (gomp_target_init): Compute lengths just once and
11257         use them in both malloc size and subsequent copying.
11259 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11261         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11262         * acinclude.m4: Add cet.m4.
11263         * configure: Regenerate.
11264         * Makefile.in: Likewise.
11265         * testsuite/Makefile.in: Likewise.
11267 2017-11-15  Tom de Vries  <tom@codesourcery.com>
11269         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11270         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
11271         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11272         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
11273         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11274         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
11276 2017-11-14  Tom de Vries  <tom@codesourcery.com>
11278         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11279         non-nvidia devices.
11281 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
11283         PR c++/82835
11284         * testsuite/libgomp.c++/pr82835.C: New test.
11286 2017-11-06  Martin Liska  <mliska@suse.cz>
11288         * testsuite/libgomp.c++/loop-2.C: Return a value
11289         for functions with non-void return type, or change type to void,
11290         or add -Wno-return-type for test.
11291         * testsuite/libgomp.c++/loop-4.C: Likewise.
11292         * testsuite/libgomp.c++/parallel-1.C: Likewise.
11293         * testsuite/libgomp.c++/shared-1.C: Likewise.
11294         * testsuite/libgomp.c++/single-1.C: Likewise.
11295         * testsuite/libgomp.c++/single-2.C: Likewise.
11297 2017-10-31  Tom de Vries  <tom@codesourcery.com>
11299         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11300         "do {} while (false)".
11301         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11302         after HSA_DEBUG call.
11304 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
11306         * target.c (struct gomp_coalesce_buf): New type.
11307         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11308         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11309         (gomp_copy_host2dev): Add CBUF argument, if copying into
11310         the cached ranges, memcpy into buffer instead of copying
11311         into device.
11312         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11313         Add CBUF argument, pass it through to other calls.
11314         (gomp_map_vars): Aggregate copies from host to device if small enough
11315         and with small enough gaps in between into memcpy into a buffer and
11316         fewer host to device copies from the buffer.
11317         (gomp_update): Adjust gomp_copy_host2dev caller.
11319 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
11321         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11322         run" directive.
11323         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11324         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11325         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11326         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11328 2017-10-16  Tom de Vries  <tom@codesourcery.com>
11330         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11331         openacc_nvidia_accel_selected.
11332         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11333         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11334         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11335         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11336         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11337         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11338         openacc_nvidia_accel_selected. Skip for shared memory device.
11339         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11340         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11342 2017-10-09  Martin Jambor  <mjambor@suse.cz>
11344         PR hsa/82416
11345         * testsuite/libgomp.hsa.c/pr82416.c: New test.
11347 2017-10-07  Tom de Vries  <tom@codesourcery.com>
11349         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11350         Remove acc_device_nvidia references.
11351         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11352         Same.
11354 2017-10-05  Tom de Vries  <tom@codesourcery.com>
11356         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11357         vector_length(32) clause from acc parallel directive.
11358         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11360 2017-10-04  Tom de Vries  <tom@codesourcery.com>
11362         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11363         (main): Reduce sum of arr elements.  Assert that hres is exactly
11364         representable in 32-bit floating point.
11365         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11366         (main): Reduce sum of arr elements.  Assert that hres and hmres are
11367         exactly representable in 32-bit floating point.
11368         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11370 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11372         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11373         setting.
11374         * testsuite/libgomp.c++/pr69393.C: Same.
11375         * testsuite/libgomp.c++/taskloop-1.C: Same.
11376         * testsuite/libgomp.c++/taskloop-3.C: Same.
11377         * testsuite/libgomp.c++/taskloop-4.C: Same.
11378         * testsuite/libgomp.c/for-4.c: Same.
11379         * testsuite/libgomp.c/pr66199-3.c: Same.
11380         * testsuite/libgomp.c/pr66199-4.c: Same.
11381         * testsuite/libgomp.c/pr66199-6.c: Same.
11382         * testsuite/libgomp.c/taskloop-1.c: Same.
11383         * testsuite/libgomp.c/taskloop-3.c: Same.
11384         * testsuite/libgomp.c/taskloop-4.c: Same.
11385         * testsuite/libgomp.fortran/aligned1.f03: Same.
11386         * testsuite/libgomp.fortran/condinc1.f: Same.
11387         * testsuite/libgomp.fortran/condinc3.f90: Same.
11388         * testsuite/libgomp.fortran/crayptr1.f90: Same.
11389         * testsuite/libgomp.fortran/crayptr2.f90: Same.
11390         * testsuite/libgomp.fortran/crayptr3.f90: Same.
11391         * testsuite/libgomp.fortran/omp_cond1.f: Same.
11392         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11393         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11394         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11395         * testsuite/libgomp.fortran/recursion1.f90: Same.
11396         * testsuite/libgomp.fortran/target2.f90: Same.
11397         * testsuite/libgomp.fortran/target5.f90: Same.
11398         * testsuite/libgomp.fortran/task3.f90: Same.
11400 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11402         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11403         vector_length(32) clause from acc parallel directive.
11404         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11406 2017-09-27  Tom de Vries  <tom@codesourcery.com>
11408         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11409         Remove acc_device_nvidia references.
11411 2017-09-16  Tom de Vries  <tom@codesourcery.com>
11413         PR c/81875
11414         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11416 2017-09-14  Tom de Vries  <tom@codesourcery.com>
11418         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11419         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11420         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11421         * testsuite/libgomp.c/c.exp: Include test-cases from
11422         libgomp.c-c++-common.
11423         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
11424         files.
11426 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
11428         PR c++/81314
11429         * testsuite/libgomp.c++/pr81314.C: New test.
11431 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
11433         * libgomp.texi (Top): www.openacc.org now uses https.
11434         (Enabling OpenACC): Ditto.
11435         (acc_get_num_devices): Ditto.
11436         (acc_set_device_type): Ditto.
11437         (acc_get_device_type): Ditto.
11438         (acc_set_device_num): Ditto.
11439         (acc_get_device_num): Ditto.
11440         (acc_async_test): Ditto.
11441         (acc_async_test_all): Ditto.
11442         (acc_wait): Ditto.
11443         (acc_wait_all): Ditto.
11444         (acc_wait_all_async): Ditto.
11445         (acc_wait_async): Ditto.
11446         (acc_init): Ditto.
11447         (acc_shutdown): Ditto.
11448         (acc_on_device): Ditto.
11449         (acc_malloc): Ditto.
11450         (acc_free): Ditto.
11451         (acc_copyin): Ditto.
11452         (acc_present_or_copyin): Ditto.
11453         (acc_create): Ditto.
11454         (acc_present_or_create): Ditto.
11455         (acc_copyout): Ditto.
11456         (acc_delete): Ditto.
11457         (acc_update_device): Ditto.
11458         (acc_update_self): Ditto.
11459         (acc_map_data): Ditto.
11460         (acc_unmap_data): Ditto.
11461         (acc_deviceptr): Ditto.
11462         (acc_hostptr): Ditto.
11463         (acc_is_present): Ditto.
11464         (acc_memcpy_to_device): Ditto.
11465         (acc_memcpy_from_device): Ditto.
11466         (acc_get_current_cuda_device): Ditto.
11467         (acc_get_current_cuda_context): Ditto.
11468         (acc_get_cuda_stream): Ditto.
11469         (acc_set_cuda_stream): Ditto.
11470         (ACC_DEVICE_TYPE): Ditto.
11471         (ACC_DEVICE_NUM): Ditto.
11472         (OpenACC Library Interoperability): Ditto.
11474 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11476         PR c/81687
11477         * testsuite/libgomp.c/pr81687-1.c: New test.
11478         * testsuite/libgomp.c/pr81687-2.c: New test.
11480 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11482         PR c/69389
11483         * testsuite/libgomp.c/pr69389.c: New test.
11484         * testsuite/libgomp.c++/pr69389.C: New test.
11486 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11488         PR middle-end/78266
11489         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11490         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11492 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
11494         PR c/45784
11495         * testsuite/libgomp.c/pr45784.c: New test.
11496         * testsuite/libgomp.c++/pr45784.C: New test.
11498 2017-07-19  Tom de Vries  <tom@codesourcery.com>
11500         * testsuite/libgomp.oacc-c/vec.c: New test.
11502 2017-07-03  Tom de Vries  <tom@codesourcery.com>
11504         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11506 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11508         * plugin/plugin-nvptx.c (notify_var): New function.
11509         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11511 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11513         * env.c (parse_unsigned_long_1): Factor out of ...
11514         (parse_unsigned_long): ... here.
11515         (parse_int_1): Factor out of ...
11516         (parse_int): ... here.
11517         (parse_int_secure): New function.
11518         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11519         * secure_getenv.h: Factor out of ...
11520         * plugin/plugin-hsa.c: ... here.
11521         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11523 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
11525         PR c++/81130
11526         * testsuite/libgomp.c++/pr81130.C: New test.
11528 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11530         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11531         default args.
11532         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11533         dg-xfail-run-if default args.
11535 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11537         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11538         * testsuite/libgomp.c/pr39591-3.c: Likewise.
11540 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
11542         PR libgomp/80822
11543         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11544         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
11545         sibling lists, depending on level just pick up what CPUs to put
11546         together into a place vs. whether add multiple ordered places.
11548 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
11550         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11551         * libgomp.map (OACC_2.0.1): Add these.
11552         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11553         for "acc_wait", and "acc_wait_all", respectively.
11554         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11555         for "acc_wait", and "acc_wait_all", respectively.
11556         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11557         * libgomp.texi (acc_wait, acc_wait_all): Update.
11558         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11559         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11560         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11562         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11563         acc_present_or_copyin and acc_present_or_create procedures,
11564         respectively.
11565         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11566         generally different variants of OpenACC Runtime Library functions.
11567         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11569         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11570         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11572         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11573         of preprocessor definitions.
11574         * libgomp.h (strong_alias): Guard by "#ifdef
11575         HAVE_ATTRIBUTE_ALIAS".
11576         * oacc-mem.c: Provide "acc_pcreate" as alias for
11577         "acc_present_or_create", and "acc_pcopyin" as alias for
11578         "acc_present_or_copyin".
11579         * libgomp.map: New version "OACC_2.0.1".
11580         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11581         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11582         its content into...
11583         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11584         Extend testing.
11586         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11587         when disabling nvptx offloading.
11589 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11591         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11592         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11593         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11595         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11596         * testsuite/lib/libgomp.exp
11597         (check_effective_target_openacc_nvidia_accel_configured): New
11598         proc.
11599         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11600         (check_effective_target_c++): New procs.
11601         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11602         (check_effective_target_c++): Likewise.
11604 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11606         PR middle-end/80809
11607         * testsuite/libgomp.c/pr80809-2.c: New test.
11608         * testsuite/libgomp.c/pr80809-3.c: New test.
11610         PR middle-end/80809
11611         * testsuite/libgomp.c/pr80809-1.c: New test.
11613         PR middle-end/80853
11614         * testsuite/libgomp.c/pr80853.c: New test.
11616 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11618         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11619         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11620         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11621         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11622         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11624         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11625         Debug output for failure.
11627 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11629         * testsuite/lib/libgomp.exp: Load scanlang.exp.
11631 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
11633         PR bootstrap/80531
11634         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11635         bootstrap compare failures.
11637 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11639         * testsuite/libgomp.c/target-36.c: New testcase.
11641 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11643         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11644         instead of char.
11646 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11648         PR libgomp/80394
11649         * testsuite/libgomp.c/pr80394.c: New test.
11651 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
11653         PR libgomp/79876
11654         * config/posix/thread-stacksize.h: New file.
11655         * config/darwin/thread-stacksize.h: New file.
11656         * config/nvptx/thread-stacksize.h: New file.
11657         * env.c: Include thread-stacksize.h.
11658         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11659         instead of 0.  Call pthread_attr_setstacksize even if
11660         GOMP_DEFAULT_STACKSIZE is non-zero.
11662 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
11664         * env.c (initialize_env): Initialize stacksize to 0.
11666 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
11668         PR c++/80029
11669         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11671 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11673         PR c/79940
11674         * testsuite/libgomp.c/pr79940.c: New test.
11676 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11678         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11679         targets.
11680         Add __float128 options.
11682 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
11684         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11685         hppa*-*-* dg-skip-if directive.
11687 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11689         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11690         dg-skip-if directive into a comment.
11692 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11693             Chung-Lin Tang  <cltang@codesourcery.com>
11695         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11696         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11697         add additional case.
11698         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11699         "openacc_nvidia_accel_selected".
11700         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11701         Add num_workers(8) clause.
11703 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
11705         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11706         hppa*-*-*.
11707         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11708         include complex.h on hppa*-*-hpux*.
11709         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11711 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11713         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11715         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11716         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
11717         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11718         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
11719         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11720         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
11721         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11722         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
11723         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11724         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
11726 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
11728         * libgomp-plugin.h: #include <stdbool.h>.
11729         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11730         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11731         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11732         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11733         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11734         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11735         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11736         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11737         (GOMP_OFFLOAD_openacc_register_async_cleanup)
11738         (GOMP_OFFLOAD_openacc_async_test)
11739         (GOMP_OFFLOAD_openacc_async_test_all)
11740         (GOMP_OFFLOAD_openacc_async_wait)
11741         (GOMP_OFFLOAD_openacc_async_wait_async)
11742         (GOMP_OFFLOAD_openacc_async_wait_all)
11743         (GOMP_OFFLOAD_openacc_async_wait_all_async)
11744         (GOMP_OFFLOAD_openacc_async_set_async)
11745         (GOMP_OFFLOAD_openacc_create_thread_data)
11746         (GOMP_OFFLOAD_openacc_destroy_thread_data)
11747         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11748         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11749         (GOMP_OFFLOAD_openacc_get_cuda_stream)
11750         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11751         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11752         these.
11753         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11754         (GOMP_OFFLOAD_unload_image): Fix argument types.
11756 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
11758         * testsuite/lib/libgomp.exp
11759         (check_effective_target_hsa_offloading_selected_nocache): Fix up
11760         check_compile invocation.  Fix up removal of executable.  Drop
11761         bogus "2>&1" argument.
11763         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11764         directive.
11766 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
11767             Martin Jambor  <mjambor@suse.cz>
11769         * plugin/hsa.h: Moved to top level include.
11770         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11772 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
11774         PR other/79046
11775         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11776         of cat to get version from BASE-VER file.
11777         * testsuite/Makefile.in: Regenerated.
11779 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
11781         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11782         for _WIN64.
11784 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11786         * plugin/hsa.h: Add GCC runtime library exception.
11787         * plugin/hsa_ext_finalize.h: Likewise.
11789         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11790         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
11791         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11792         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11793         plugin/include/cuda as include dir and -ldl instead of -lcuda as
11794         library to link ptx plugin against.
11795         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11796         (CUDA_CALLS): Define.
11797         (cuda_lib, cuda_lib_inited): New variables.
11798         (init_cuda_lib): New function.
11799         (CUDA_CALL_PREFIX): Define.
11800         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11801         (CUDA_CALL): Use FN instead of (FN).
11802         (CUDA_CALL_NOCHECK): Define.
11803         (cuda_error, fini_streams_for_device, select_stream_for_async,
11804         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11805         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11806         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11807         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11808         CUDA_CALL_NOCHECK.
11809         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
11810         CUDA_CALL_NOCHECK.
11811         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11812         Use CUDA_CALL_NOCHECK.
11813         * plugin/cuda/cuda.h: New file.
11814         * config.h.in: Regenerated.
11815         * configure: Regenerated.
11817         PR other/79046
11818         * configure.ac: Add GCC_BASE_VER.
11819         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11820         get version from BASE-VER file.
11821         * testsuite/Makefile.in: Regenerated.
11822         * configure: Regenerated.
11823         * Makefile.in: Regenerated.
11825 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11827         PR libgomp/60670
11828         * Makefile.am: Make fincludedir multilib-aware.
11829         * Makefile.in: Regenerate.
11831 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
11833         Update copyright years.
11835         * libgomp.texi: Bump @copying's copyright year.
11837 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11839         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11840         pthread_spinlock_t instead of gomp_mutex_t lock.
11841         (gomp_get_thread_pool): Likewise.
11842         (gomp_release_thread_pool): Likewise.
11843         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11844         Likewise.
11846 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11848         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11849         thread pool in case nthreads == 1.
11851 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11853         * config/nvptx/env.c: Delete.
11854         * icv.c: Move definitions of ICV variables back ...
11855         * env.c: ...here.  Do not compile environment-related functionality if
11856         LIBGOMP_OFFLOADED_ONLY is set.
11858 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11860         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11861         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11862         * configure: Regenerate.
11863         * config.h.in: Likewise.
11865 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11867         * Makefile.in: Regenerate with automake-1.11.6.
11868         * aclocal.m4: Likewise.
11869         * configure: Likewise.
11870         * testsuite/Makefile.in: Likewise.
11872 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
11874         * config/nvptx/critical.c: Delete to use generic implementation.
11876 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11878         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11879         ../../affinity.c as fallback.
11880         * config/nvptx/affinity.c: Delete to use fallback implementation.
11882 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
11883             Jakub Jelinek  <jakub@redhat.com>
11884             Dmitry Melnik  <dm@ispras.ru>
11886         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11887         * Makefile.in. Regenerate.
11888         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11889         (LIBGOMP_USE_PTHREADS): ...here; new define.
11890         * configure: Regenerate.
11891         * config.h.in: Likewise.
11892         * config/posix/affinity.c: Move to...
11893         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
11894         interface by LIBGOMP_USE_PTHREADS. 
11895         * critical.c: Split out GOMP_atomic_{start,end} into...
11896         * atomic.c: ...here (new file).
11897         * env.c: Split out ICV definitions into...
11898         * icv.c: ...here (new file) and...
11899         * icv-device.c: ...here. New file.
11900         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11901         (gomp_destroy_lock_30): Ditto.
11902         (gomp_set_lock_30): Ditto.
11903         (gomp_unset_lock_30): Ditto.
11904         (gomp_test_lock_30): Ditto.
11905         (gomp_init_nest_lock_30): Ditto.
11906         (gomp_destroy_nest_lock_30): Ditto.
11907         (gomp_set_nest_lock_30): Ditto.
11908         (gomp_unset_nest_lock_30): Ditto.
11909         (gomp_test_nest_lock_30): Ditto.
11910         * lock.c: New.
11911         * config/nvptx/lock.c: New.
11912         * config/nvptx/bar.c: New.
11913         * config/nvptx/bar.h: New.
11914         * config/nvptx/doacross.h: New.
11915         * config/nvptx/error.c: New.
11916         * config/nvptx/icv-device.c: New.
11917         * config/nvptx/mutex.h: New.
11918         * config/nvptx/pool.h: New.
11919         * config/nvptx/proc.c: New.
11920         * config/nvptx/ptrlock.h: New.
11921         * config/nvptx/sem.h: New.
11922         * config/nvptx/simple-bar.h: New.
11923         * config/nvptx/target.c: New.
11924         * config/nvptx/task.c: New.
11925         * config/nvptx/team.c: New.
11926         * config/nvptx/time.c: New.
11927         * config/posix/simple-bar.h: New.
11928         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
11929         (gomp_num_teams_var): Declare.
11930         (struct gomp_thread_pool): Change threads_dock member to
11931         gomp_simple_barrier_t.
11932         [__nvptx__] (gomp_thread): New implementation.
11933         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11934         (gomp_thread_destructor): Ditto.
11935         (gomp_init_thread_affinity): Ditto.
11936         * team.c: Guard uses of Pthreads-specific interfaces by
11937         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
11938         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11939         * config/nvptx/alloc.c: Delete.
11940         * config/nvptx/barrier.c: Ditto.
11941         * config/nvptx/fortran.c: Ditto.
11942         * config/nvptx/iter.c: Ditto.
11943         * config/nvptx/iter_ull.c: Ditto.
11944         * config/nvptx/loop.c: Ditto.
11945         * config/nvptx/loop_ull.c: Ditto.
11946         * config/nvptx/ordered.c: Ditto.
11947         * config/nvptx/parallel.c: Ditto.
11948         * config/nvptx/priority_queue.c: Ditto.
11949         * config/nvptx/sections.c: Ditto.
11950         * config/nvptx/single.c: Ditto.
11951         * config/nvptx/splay-tree.c: Ditto.
11952         * config/nvptx/work.c: Ditto.
11953         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11954         -foffload=-lgfortran in addition to -lgfortran.
11955         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11956         * plugin/plugin-nvptx.c: Include <limits.h>.
11957         (struct targ_fn_descriptor): Add new fields.
11958         (struct ptx_device): Ditto.  Set them...
11959         (nvptx_open_device): ...here.
11960         (nvptx_adjust_launch_bounds): New.
11961         (nvptx_host2dev): Allow NULL 'nvthd'.
11962         (nvptx_dev2host): Ditto.
11963         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11964         (link_ptx): Adjust log sizes.
11965         (nvptx_host2dev): Allow NULL 'nvthd'.
11966         (nvptx_dev2host): Ditto.
11967         (nvptx_set_clocktick): New.  Use it...
11968         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
11969         fields.
11970         (GOMP_OFFLOAD_dev2dev): New.
11971         (nvptx_adjust_launch_bounds): New.
11972         (nvptx_stacks_size): New.
11973         (nvptx_stacks_alloc): New.
11974         (nvptx_stacks_free): New.
11975         (GOMP_OFFLOAD_run): New.
11976         (GOMP_OFFLOAD_async_run): New (stub).
11978 2016-11-23  Martin Jambor  <mjambor@suse.cz>
11980         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11981         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11982         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11984 2016-11-23  Martin Liska  <mliska@suse.cz>
11985             Martin Jambor  <mjambor@suse.cz>
11987         * plugin/hsa.h: New file.
11988         * plugin/hsa_ext_finalize.h: New file.
11989         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
11990         header file unistd.h, and functions secure_getenv, __secure_getenv,
11991         getuid, geteuid, getgid and getegid.
11992         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11993         -D_GNU_SOURCE.
11994         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11995         Handle various cases of secure_getenv presence, add an implementation
11996         when we can test effective UID and GID.
11997         (struct hsa_runtime_fn_info): New structure.
11998         (hsa_runtime_fn_info hsa_fns): New variable.
11999         (hsa_runtime_lib): Likewise.
12000         (support_cpu_devices): Likewise.
12001         (init_enviroment_variables): Load newly introduced ENV
12002         variables.
12003         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12004         (hsa_fatal): Likewise.
12005         (DLSYM_FN): New macro.
12006         (init_hsa_runtime_functions): New function.
12007         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12008         structure.  Depending on environment, also allow CPU devices.
12009         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12010         (get_kernarg_memory_region): Likewise.
12011         (GOMP_OFFLOAD_init_device): Likewise.
12012         (destroy_hsa_program): Likewise.
12013         (init_basic_kernel_info): New function.
12014         (GOMP_OFFLOAD_load_image): Use it.
12015         (create_and_finalize_hsa_program): Call hsa run-time functions via
12016         hsa_fns structure.
12017         (create_single_kernel_dispatch): Likewise.
12018         (release_kernel_dispatch): Likewise.
12019         (init_single_kernel): Likewise.
12020         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12021         (get_group_size): New function.
12022         (run_kernel): Likewise.
12023         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12024         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12025         structure.
12026         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12027         * testsuite/libgomp-test-support.exp.in: Likewise.
12028         * Makefile.in: Regenerated.
12029         * aclocal.m4: Likewise.
12030         * config.h.in: Likewise.
12031         * configure: Likewise.
12032         * testsuite/Makefile.in: Likewise.
12034 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12035             Alexander Monakov  <amonakov@ispras.ru>
12037         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12038         mapping clauses to target constructs.
12039         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12041 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12043         * configure: Regenerate.
12045 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12047         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12048         * omp_lib.h.in (openmp_version): Likewise.
12049         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12050         of 201307.
12051         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12053         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12054         (fib_wrapper): Add map(from: x) clause.
12055         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12056         (e_53_2): Likewise.
12057         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12058         (accum): Add map(tmp) clause.
12059         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12060         (accum): Add map(tofrom: tmp) clause.
12061         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12062         (gramSchmidt): Likewise.
12063         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12064         map(tofrom: sum) clause.
12065         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12066         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12067         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12068         only allowed on the loop iterator.
12069         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12070         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12071         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12072         * testsuite/libgomp.fortran/doacross1.f90: New test.
12073         * testsuite/libgomp.fortran/doacross3.f90: New test.
12074         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12075         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12076         * testsuite/libgomp.fortran/doacross2.f90: New test.
12077         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12078         #pragma omp atomic read.
12079         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12080         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12082 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12083             Nathan Sidwell  <nathan@acm.org>
12085         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12086         to determine default geometry.
12087         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12088         dimension.
12090 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12092         * hashtab.h: Use standard GPLv3 with runtime exception
12093         boilerplate.
12095 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12097         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12098         size when allocating new thread.
12100 2016-09-14  Marek Polacek  <polacek@redhat.com>
12102         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12104 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12106         PR fortran/71014
12107         * testsuite/libgomp.fortran/pr71014.f90: New test.
12109 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12111         PR middle-end/70895
12112         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12113         firstprivate clauses.
12114         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12115         copy clauses.
12116         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12117         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12118         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12119         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12120         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12121         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12122         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12123         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12124         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12125         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12126         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12127         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12129 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12131         PR fortran/70598
12132         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12134 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12136         PR c++/58706
12137         * testsuite/libgomp.c++/pr58706.C: New test.
12139 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12141         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12142         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12143         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12144         Likewise.
12145         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12146         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12147         Likewise.
12148         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12150         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12151         test, and don't hardcode -O0.
12153 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12155         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12157 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12159         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12160         test.
12162 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12164         PR middle-end/71734
12165         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12166         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12168 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12170         PR fortran/71717
12171         * testsuite/libgomp.fortran/associate3.f90: New test.
12173 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12175         * testsuite/libgomp.c++/target-21.C: New test.
12177 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12179         * testsuite/libgomp.c++/target-20.C: New test.
12181 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12182             Cesar Philippidis  <cesar@codesourcery.com>
12184         PR middle-end/71373
12185         * libgomp.oacc-c/nested-function-1.c: New file.
12186         * libgomp.oacc-c/nested-function-2.c: Likewise.
12187         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12188         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12189         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12191 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12193         PR c/71381
12194         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12195         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12196         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12198 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
12200         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12201         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12203 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
12205         PR c/70688
12206         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12208 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12210         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12211         instead of invalid schedule(static, 0).
12212         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12214 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12216         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12217         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12218         parameter, use to set async stream around call to gomp_unmap_vars,
12219         call gomp_unmap_vars() with 'do_copyfrom' set to true.
12220         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12221         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12222         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12223         (event_add): Add int parameter, initialize 'val' field when
12224         adding new ptx_event struct.
12225         (nvptx_evec): Adjust event_add() call arguments.
12226         (nvptx_host2dev): Likewise.
12227         (nvptx_dev2host): Likewise.
12228         (nvptx_wait_async): Likewise.
12229         (nvptx_wait_all_async): Likewise.
12230         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12231         pass to event_add() call.
12232         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12233         parameter.
12234         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12235         call openacc.register_async_cleanup_func() hook.
12236         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12237         * target.c (gomp_copy_from_async): Delete function.
12238         (gomp_map_vars): Remove async_refcount.
12239         (gomp_unmap_vars): Likewise.
12240         (gomp_load_image_to_device): Likewise.
12241         (omp_target_associate_ptr): Likewise.
12242         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12243         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12244         (gomp_copy_from_async): Remove.
12246 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12248         * target.c (gomp_device_copy): New function.
12249         (gomp_copy_host2dev): Likewise.
12250         (gomp_copy_dev2host): Likewise.
12251         (gomp_free_device_memory): Likewise.
12252         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12253         (gomp_map_pointer): Likewise.
12254         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12255         NULL value from alloc_func plugin hook.
12256         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12257         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12258         (gomp_unmap_vars): Likewise.
12259         (gomp_update): Adjust to call gomp_copy_dev2host and
12260         gomp_copy_host2dev functions.
12261         (gomp_unload_image_from_device): Handle false value from
12262         unload_image_func plugin hook.
12263         (gomp_init_device): Handle false value from init_device_func
12264         plugin hook.
12265         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12266         (omp_target_free): Adjust to call gomp_free_device_memory.
12267         (omp_target_memcpy): Handle return values from host2dev_func,
12268         dev2host_func, and dev2dev_func plugin hooks.
12269         (omp_target_memcpy_rect_worker): Likewise.
12270         (gomp_target_fini): Handle false value from fini_device_func
12271         plugin hook.
12272         * libgomp.h (struct gomp_device_descr): Adjust return type of
12273         init_device_func, fini_device_func, unload_image_func, free_func,
12274         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12275         * oacc-init.c (acc_shutdown_1): Handle false value from
12276         fini_device_func plugin hook.
12277         * oacc-host.c (host_init_device): Change return type to bool.
12278         (host_fini_device): Likewise.
12279         (host_unload_image): Likewise.
12280         (host_free): Likewise.
12281         (host_dev2host): Likewise.
12282         (host_host2dev): Likewise.
12283         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12284         (acc_memcpy_to_device): Likewise.
12285         (acc_memcpy_from_device): Likewise.
12286         (delete_copyout): Add libfnname parameter, handle free_func
12287         hook fatal error case.
12288         (acc_delete): Adjust delete_copyout call.
12289         (acc_copyout): Likewise.
12290         (update_dev_host): Move gomp_mutex_unlock to after
12291         host2dev/dev2host hook calls.
12293         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12294         to 'hsa_error_msg', for clarity.
12295         (hsa_fatal): Likewise.
12296         (hsa_error): New function.
12297         (init_hsa_context): Change return type to bool, adjust to return
12298         false on error.
12299         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12300         return value.
12301         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12302         return false on error.
12303         (get_agent_info): Adjust to return NULL on error.
12304         (destroy_hsa_program): Change return type to bool, adjust to
12305         return false on error.
12306         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12307         (destroy_module): Change return type to bool, adjust to
12308         return false on error.
12309         (GOMP_OFFLOAD_unload_image): Likewise.
12310         (GOMP_OFFLOAD_fini_device): Likewise.
12311         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12312         (GOMP_OFFLOAD_free): Change to return false when called.
12313         (GOMP_OFFLOAD_dev2host): Likewise.
12314         (GOMP_OFFLOAD_host2dev): Likewise.
12315         (GOMP_OFFLOAD_dev2dev): Likewise.
12317         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12318         (CUDA_CALL): Likewise.
12319         (CUDA_CALL_ASSERT): Likewise.
12320         (map_init): Change return type to bool, use CUDA_CALL* macros.
12321         (map_fini): Likewise.
12322         (init_streams_for_device): Change return type to bool, adjust
12323         call to map_init.
12324         (fini_streams_for_device): Change return type to bool, adjust
12325         call to map_fini.
12326         (select_stream_for_async): Release stream_lock before calls to
12327         GOMP_PLUGIN_fatal, adjust call to map_init.
12328         (nvptx_init): Use CUDA_CALL* macros.
12329         (nvptx_attach_host_thread_to_device): Change return type to bool,
12330         use CUDA_CALL* macros.
12331         (nvptx_open_device): Use CUDA_CALL* macros.
12332         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12333         macros.
12334         (nvptx_get_num_devices): Use CUDA_CALL* macros.
12335         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12336         (nvptx_exec): Use CUDA_CALL* macros.
12337         (nvptx_alloc): Use CUDA_CALL* macros.
12338         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12339         (nvptx_host2dev): Likewise.
12340         (nvptx_dev2host): Likewise.
12341         (nvptx_wait): Use CUDA_CALL* macros.
12342         (nvptx_wait_async): Likewise.
12343         (nvptx_wait_all): Likewise.
12344         (nvptx_wait_all_async): Likewise.
12345         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12346         use CUDA_CALL* macros, adjust call to map_fini.
12347         (GOMP_OFFLOAD_init_device): Change return type to bool,
12348         adjust code accordingly.
12349         (GOMP_OFFLOAD_fini_device): Likewise.
12350         (GOMP_OFFLOAD_load_image): Adjust calls to
12351         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12352         use CUDA_CALL* macros.
12353         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12354         return code.
12355         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12356         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12357         handle error return.
12358         (GOMP_OFFLOAD_dev2host): Likewise.
12359         (GOMP_OFFLOAD_host2dev): Likewise.
12360         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12361         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12363 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12365         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12366         (acc_free): Likewise.
12367         (acc_memcpy_to_device): Likewise.
12368         (acc_memcpy_from_device): Likewise.
12369         (acc_deviceptr): Likewise.
12370         (acc_hostptr): Likewise.
12371         (acc_is_present): Likewise.
12372         (acc_map_data): Likewise.
12373         (acc_unmap_data): Likewise.
12374         (present_create_copy): Likewise.
12375         (delete_copyout): Likewise.
12376         (update_dev_host): Likewise.
12377         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12378         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12379         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12380         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12381         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12382         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12383         it only runs on nvptx targets.
12384         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12385         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12386         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12387         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12388         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12389         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12390         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12391         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12392         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12393         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12394         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12395         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12396         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12397         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12398         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12399         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12400         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12401         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12402         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12403         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12404         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12405         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12406         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12408 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12410         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12412 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
12414         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12415         to gomp_init_targets_once.
12416         (acc_set_device_type): Remove !cached_base_dev condition on call to
12417         gomp_init_targets_once, move call to before acc_device_lock acquire,
12418         to avoid deadlock.
12419         (acc_get_device_num): Remove !cached_base_dev condition on call to
12420         gomp_init_targets_once.
12421         (acc_set_device_num): Likewise.
12423 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12425         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12427 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12429         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12430         expected partitioning.
12432 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
12434         PR middle-end/70626
12435         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12436         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12437         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12439 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
12441         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12442         non-fatal.
12444 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12446         PR middle-end/70680
12447         * testsuite/libgomp.c/pr70680-1.c: New test.
12448         * testsuite/libgomp.c/pr70680-2.c: New test.
12450 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12452         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12453         pass parameter variables to subroutines.
12455 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12457         PR middle-end/70643
12458         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12460 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
12462         PR testsuite/68242
12463         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12464         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12466 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
12468         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12469         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12470         GOACC_declare prototype.
12472         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12473         Merge this file, and...
12474         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12475         ... this file, and...
12476         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12477         ... this file, and...
12478         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12479         ... this file, and...
12480         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12481         ... this file, and...
12482         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12483         ... this file, and...
12484         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12485         ... this file, and...
12486         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12487         ... this file, and...
12488         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12489         ... this file, and...
12490         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12491         ... this file, and...
12492         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12493         ... this file, and...
12494         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12495         ... this file, and...
12496         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12497         ... this file into...
12498         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12499         file.
12501         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12502         Make failure observable.
12504 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12506         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12507         field.
12508         * target.c (gomp_target_fallback_firstprivate,
12509         gomp_target_unshare_firstprivate): Removed.
12510         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12511         before waiting for dependencies.
12512         (gomp_target_task_fn): Don't copy firstprivate vars here.
12513         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12514         firstprivate_copies here.
12515         (gomp_create_target_task): Don't initialize firstprivate_copies field.
12516         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12517         explicit/implicit firstprivate.
12519 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12521         PR lto/70289
12522         PR ipa/70348
12523         PR tree-optimization/70373
12524         PR middle-end/70533
12525         PR middle-end/70534
12526         PR middle-end/70535
12527         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12528         test.
12529         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12530         test.
12531         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12532         test.
12533         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12534         test.
12535         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12536         test.
12537         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12538         test.
12539         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12540         test.
12541         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12542         test.
12543         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12544         test.
12545         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12546         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12547         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12548         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12549         test.
12550         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12551         test.
12552         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12553         test.
12554         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12555         test.
12556         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12557         coverage.
12558         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12559         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12560         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12561         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12562         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12563         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12564         coverage.
12565         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12566         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12567         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12568         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12569         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12570         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12571         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12572         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12573         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12574         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12575         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12576         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12577         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12578         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12579         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12581 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
12582             James Norris  <jnorris@codesourcery.com>
12583             Nathan Sidwell  <nathan@codesourcery.com>
12584             Julian Brown  <julian@codesourcery.com>
12585             Cesar Philippidis  <cesar@codesourcery.com>
12586             Chung-Lin Tang  <cltang@codesourcery.com>
12587             Tom de Vries  <tom@codesourcery.com>
12589         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12590         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12591         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12592         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12593         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12594         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12595         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12596         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12597         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12598         XFAIL.
12599         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12600         Incorporate...
12601         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12602         file.
12603         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12604         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12605         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12606         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12607         Likewise.
12608         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12609         Likewise.
12610         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12611         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12612         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12613         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12614         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12615         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12616         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12617         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12618         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12619         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12620         Likewise.
12621         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12622         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12623         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12624         file...
12625         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12626         file into...
12627         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12628         file.  Update.
12629         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12630         file.
12631         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12632         Likewise.
12633         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12634         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12635         ... this new file.  Update.
12636         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12637         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12638         ... this new file.  Update.
12639         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12640         file.  Incorporate...
12641         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12642         file, and...
12643         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12644         file, and...
12645         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12646         file.
12647         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12649 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12651         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12652         set-torture-options.
12654 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
12656         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12657         gcc-dg-runtest.
12658         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12659         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12660         -fno-builtin-acc_on_device instead of -O0.
12661         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12662         -O0.
12663         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12664         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12665         Likewise.
12666         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12667         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12668         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12669         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12670         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12671         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12672         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12673         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12674         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12675         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12676         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12677         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12678         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12679         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12680         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12681         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12682         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12683         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12684         Don't specify -O2.
12685         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12686         Likewise.
12687         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12688         Likewise.
12690 2016-03-24  Martin Liska  <mliska@suse.cz>
12692         * plugin/plugin-hsa.c (packet_store_release): New function
12693         that is taken from the HSA runtime manual.
12694         (GOMP_OFFLOAD_run): Use the function.
12696 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12698         PR c++/70376
12699         * testsuite/libgomp.c++/pr70376.C: New test.
12701 2016-03-23  Tom de Vries  <tom@codesourcery.com>
12703         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12704         initialization of lresult and lvresult.
12705         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12707 2016-03-23  James Norris  <jnorris@codesourcery.com>
12708             Daichi Fukuoka <dc-fukuoka@sgi.com>
12710         PR libgomp/69414
12711         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12712         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12713         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12714         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12716 2016-03-23  Martin Liska  <mliska@suse.cz>
12718         PR hsa/70337
12719         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12720         argument just in case a dispatched kernel uses that argument.
12722 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
12724         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12725         -ftree-parallelize-loops/-fopenacc changes.
12726         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12727         Likewise.
12728         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12729         Likewise.
12730         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12731         Likewise.
12732         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12733         Likewise.
12734         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12735         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12737 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
12739         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12740         always_ld_library_path the path to libgcc_s.
12742 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
12744         PR testsuite/70009
12745         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12747 2016-03-09  Tom de Vries  <tom@codesourcery.com>
12749         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12750         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12751         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12752         Same.
12753         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12754         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12755         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12756         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12758 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12760         * testsuite/lib/libgomp.exp
12761         (check_effective_target_hsa_offloading_selected_nocache): New.
12762         (check_effective_target_hsa_offloading_selected): Likewise.
12763         * testsuite/libgomp.hsa.c/c.exp: Likewise.
12764         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12765         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12766         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12767         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12768         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12769         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12770         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12771         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12772         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12773         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12774         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12775         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12776         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12777         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12778         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12779         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12781 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12783         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12784         non-shared memory accelerators.
12785         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12786         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12787         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12788         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12789         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12790         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12791         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12792         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12793         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12795 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12797         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12798         ALWAYS_CFLAGS.
12800 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12802         PR libgomp/69555
12803         * testsuite/libgomp.c++/pr69555-1.C: New test.
12804         * testsuite/libgomp.c++/pr69555-2.C: New test.
12806 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
12807             Martin Jambor  <mjambor@suse.cz>
12809         * testsuite/lib/libgomp.exp
12810         (check_effective_target_offload_device_shared_as): New proc.
12811         * testsuite/libgomp.c++/declare_target-1.C: New test.
12813 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
12815         PR driver/68463
12816         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12818 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
12820         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12821         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12822         dims.
12823         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12824         -ftree-parallelize-loops/-fopenacc changes.
12825         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12826         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12827         Likewise.
12828         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12829         Likewise.
12830         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12831         Likewise.
12832         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12833         Likewise.
12834         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12835         Likewise.
12836         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12837         Likewise.
12838         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12839         Likewise.
12840         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12841         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12842         Likewise.
12843         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12844         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12845         Likewise.
12846         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12847         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12848         Likewise.
12850 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
12852         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12854 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12856         PR driver/69805
12857         * testsuite/libgomp.c/pr69805.c: New test.
12859 2016-02-16  Tom de Vries  <tom@codesourcery.com>
12861         PR lto/67709
12862         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12864 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12866         PR tree-optimization/69599
12867         * testsuite/libgomp.c/omp-nested-3.c: New test.
12868         * testsuite/libgomp.c/pr46032-2.c: New test.
12869         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12870         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12872 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12874         PR lto/69707
12875         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12877 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12879         * testsuite/libgomp.c/target-31.c: Fix testcase.
12881 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12883         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12884         clause.
12885         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12886         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12887         reduction and map clauses.
12888         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12890 2016-02-02  James Norris  <jnorris@codesourcery.com>
12892         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12894 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12896         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12897         * oacc-parallel.c (GOACC_host_data): Remove function definition.
12899         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12900         cases.
12902         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12903         variables.
12904         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12905         (hsa_kmt_lib): Set variables.
12906         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12907         always_ld_library_path.
12908         * Makefile.in: Regenerate.
12909         * configure: Likewise.
12910         * testsuite/Makefile.in: Likewise.
12912         * plugin/configfrag.ac (offload_additional_options)
12913         (offload_additional_lib_paths): Don't amend for hsa offloading.
12914         * configure: Regenerate.
12916         * plugin/configfrag.ac: Don't configure for offloading target if
12917         we don't build the corresponding plugin.
12918         * configure: Regenerate.
12920 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
12922         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12923         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12925 2016-01-26  Tom de Vries  <tom@codesourcery.com>
12927         PR tree-optimization/69110
12928         * testsuite/libgomp.c/pr69110.c: New test.
12930 2016-01-25  Richard Biener  <rguenther@suse.de>
12932         PR lto/69393
12933         * testsuite/libgomp.c++/pr69393.C: New testcase.
12935 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
12937         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12938         function wasn't mapped to the device with non-shared memory.
12940 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
12942         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12944 2016-01-19  Martin Jambor  <mjambor@suse.cz>
12945             Martin Liska  <mliska@suse.cz>
12947         * plugin/Makefrag.am: Add HSA plugin requirements.
12948         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12949         (HSA_RUNTIME_LIB): Likewise.
12950         (HSA_RUNTIME_CPPFLAGS): Likewise.
12951         (HSA_RUNTIME_INCLUDE): New substitution.
12952         (HSA_RUNTIME_LIB): Likewise.
12953         (HSA_RUNTIME_LDFLAGS): Likewise.
12954         (hsa-runtime): New configure option.
12955         (hsa-runtime-include): Likewise.
12956         (hsa-runtime-lib): Likewise.
12957         (PLUGIN_HSA): New substitution variable.
12958         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12959         configure options.
12960         (PLUGIN_HSA_CPPFLAGS): Likewise.
12961         (PLUGIN_HSA_LDFLAGS): Likewise.
12962         (PLUGIN_HSA_LIBS): Likewise.
12963         Check that we have access to HSA run-time.
12964         * libgomp-plugin.h (offload_target_type): New element
12965         OFFLOAD_TARGET_TYPE_HSA.
12966         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12967         args.
12968         (bool gomp_create_target_task): Updated.
12969         (gomp_device_descr): Extra parameter of run_func and async_run_func,
12970         new field can_run_func.
12971         * libgomp_g.h (GOMP_target_ext): Update prototype.
12972         * oacc-host.c (host_run): Added a new parameter args.
12973         * target.c (calculate_firstprivate_requirements): New function.
12974         (copy_firstprivate_data): Likewise.
12975         (gomp_target_fallback_firstprivate): Use them.
12976         (gomp_target_unshare_firstprivate): New function.
12977         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12978         devices.
12979         (GOMP_target): Do host fallback for all shared memory devices.  Do not
12980         pass any args to plugins.
12981         (GOMP_target_ext): Introduce device-specific argument parameter args.
12982         Allow host fallback if device shares memory.  Do not remap data if
12983         device has shared memory.
12984         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
12985         like host fallback for mappings.
12986         (GOMP_target_data): Treat shared memory devices like host fallback.
12987         (GOMP_target_data_ext): Likewise.
12988         (GOMP_target_update): Likewise.
12989         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
12990         gomp_create_target_task.
12991         (GOMP_target_enter_exit_data): Likewise.
12992         (omp_target_alloc): Treat shared memory devices like host fallback.
12993         (omp_target_free): Likewise.
12994         (omp_target_is_present): Likewise.
12995         (omp_target_memcpy): Likewise.
12996         (omp_target_memcpy_rect): Likewise.
12997         (omp_target_associate_ptr): Likewise.
12998         (gomp_load_plugin_for_device): Also load can_run.
12999         * task.c (GOMP_PLUGIN_target_task_completion): Free
13000         firstprivate_copies.
13001         (gomp_create_target_task): Accept new argument args and store it to
13002         ttask.
13003         * plugin/plugin-hsa.c: New file.
13005 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13007         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13008         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13009         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13010         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13011         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13012         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13013         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13014         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13015         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13016         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13017         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13018         Same.
13019         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13020         Same.
13021         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13022         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13023         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13024         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13025         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13026         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13027         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13028         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13029         Same.
13030         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13032 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13034         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13036 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13038         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13040 2016-01-12  James Norris  <jnorris@codesourcery.com>
13042         * libgomp.texi: Updates for OpenACC.
13044 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13046         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13048 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13050         PR fortran/66680
13051         * testsuite/libgomp.fortran/pr66680.f90: New test.
13053 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13055         PR middle-end/68960
13056         * testsuite/libgomp.c/pr68960.c: New test.
13058 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13060         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13061         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13063 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13065         Update copyright years.
13067         * libgomp.texi: Bump @copying's copyright year.
13069 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13071         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13072         dg-additional-options syntax.
13073         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13074         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13075         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13076         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13077         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13078         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13079         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13080         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13081         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13082         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13083         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13084         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13085         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13086         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13087         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13088         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13089         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13090         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13092 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13094         * libgomp.h (REFCOUNT_LINK): Define.
13095         (struct splay_tree_key_s): Add link_key.
13096         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13097         Replace target address of the pointer with target address of newly
13098         mapped object in the splay tree.  Set link pointer on target to the
13099         device address of the mapped object.
13100         (gomp_unmap_vars): Restore target address of the pointer in the splay
13101         tree for REFCOUNT_LINK objects after unmapping.
13102         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13103         declare target link" objects.
13104         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13105         "omp declare target link" objects, which were mapped for the image.
13106         (gomp_exit_data): Restore target address of the pointer in the splay
13107         tree for REFCOUNT_LINK objects after unmapping.
13108         * testsuite/libgomp.c/target-link-1.c: New file.
13110 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13112         * libgomp.h (gomp_device_state): New enum.
13113         (struct gomp_device_descr): Replace is_initialized with state.
13114         (gomp_fini_device): Remove declaration.
13115         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13116         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13117         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13118         (acc_set_device_type): Use state instead of is_initialized.
13119         (acc_set_device_num): Likewise.
13120         * target.c (resolve_device): Use state instead of is_initialized.
13121         Do not initialize finalized device.
13122         (gomp_map_vars): Do nothing if device is finalized.
13123         (gomp_unmap_vars): Likewise.
13124         (gomp_update): Likewise.
13125         (GOMP_offload_register_ver): Use state instead of is_initialized.
13126         (GOMP_offload_unregister_ver): Likewise.
13127         (gomp_init_device): Likewise.
13128         (gomp_unload_device): Likewise.
13129         (gomp_fini_device): Remove.
13130         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13131         (GOMP_target): Go to host fallback if device is finalized.
13132         (GOMP_target_ext): Likewise.
13133         (gomp_exit_data): Do nothing if device is finalized.
13134         (gomp_target_task_fn): Go to host fallback if device is finalized.
13135         (gomp_target_fini): New static function.
13136         (gomp_target_init): Use state instead of is_initialized.
13137         Call gomp_target_fini at exit.
13139 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13141         PR tree-optimization/68716
13142         * testsuite/libgomp.c/omp-nested-2.c: New test.
13144 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13146         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13147         target openacc_nvidia_accel_selected.
13148         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13149         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13150         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13151         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13153 2015-12-01  Julian Brown  <julian@codesourcery.com>
13154             James Norris  <James_Norris@mentor.com>
13156         * oacc-parallel.c (GOACC_host_data): New function.
13157         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13158         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13159         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13160         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13161         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13162         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13163         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13165 2015-11-30  James Norris  <jnorris@codesourcery.com>
13166             Cesar Philippidis  <cesar@codesourcery.com>
13168         libgomp/
13169         * libgomp.oacc-fortran/routine-5.f90: New test.
13170         * libgomp.oacc-fortran/routine-7.f90: New test.
13171         * libgomp.oacc-fortran/routine-9.f90: New test.
13173 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13175         PR tree-optimization/46032
13176         * testsuite/libgomp.c/pr46032.c: New test.
13178 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13180         PR libgomp/68579
13181         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13182         (gomp_create_target_task): Call it before freeing
13183         GOMP_TARGET_TASK_DATA tasks.
13185         PR c/63326
13186         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13187         in between case label and OpenMP standalone directives.
13188         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13190 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
13192         * configure: Regenerate.
13194 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
13196         * testsuite/libgomp.c/target-35.c: New test.
13198 2015-11-22  James Norris  <jnorris@codesourcery.com>
13199             Cesar Philippidis  <cesar@codesourcery.com>
13201         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13202         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13203         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13204         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13205         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13207 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
13209         PR middle-end/68221
13210         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13211         * testsuite/libgomp.c/reduction-12.c: Likewise.
13212         * testsuite/libgomp.c++/reduction-11.C: Likewise.
13213         * testsuite/libgomp.c++/reduction-12.C: Likewise.
13215 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
13217         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13218         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13219         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13220         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13221         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13222         and fix.
13223         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13224         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13226 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
13228         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13229         worker & gang cases.
13230         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13232 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
13234         * config/nvptx/priority_queue.c: New file.
13236 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13238         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13239         sections.
13241 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13242             Aldy Hernandez  <aldyh@redhat.com>
13243             Ilya Verbin  <ilya.verbin@intel.com>
13245         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13246         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13247         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13248         iterators or IV by chunk size.
13249         * parallel.c (gomp_resolve_num_threads): Don't assume that
13250         if thr->ts.team is non-NULL, then pool must be non-NULL.
13251         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13252         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13253         GOMP_PLUGIN_target_task_completion.
13254         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13255         * Makefile.in: Regenerate.
13256         * libgomp.h: Shuffle prototypes and forward definitions around so
13257         priority queues can be defined.
13258         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13259         (enum gomp_target_task_state): New enum.
13260         (struct gomp_target_task): Add state, tgt, task and team fields.
13261         (gomp_create_target_task): Change return type to bool, add
13262         state argument.
13263         (gomp_target_task_fn): Change return type to bool.
13264         (struct gomp_device_descr): Add async_run_func.
13265         (struct gomp_task): Remove children, next_child, prev_child,
13266         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13267         Add pnode field.
13268         (struct gomp_taskgroup): Remove children.
13269         Add taskgroup_queue.
13270         (struct gomp_team): Change task_queue type to a priority queue.
13271         (splay_compare): Define inline.
13272         (priority_queue_offset): New.
13273         (priority_node_to_task): New.
13274         (task_to_priority_node): New.
13275         * oacc-mem.c: Do not include splay-tree.h.
13276         * priority_queue.c: New file.
13277         * priority_queue.h: New file.
13278         * splay-tree.c: Do not include splay-tree.h.
13279         (splay_tree_foreach_internal): New.
13280         (splay_tree_foreach): New.
13281         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13282         (splay_tree_callback): Define typedef.
13283         * target.c (splay_compare): Move to libgomp.h.
13284         (GOMP_target): Don't adjust *thr in any way around running offloaded
13285         task.
13286         (GOMP_target_ext): Likewise.  Handle target nowait.
13287         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13288         return value from gomp_create_target_task, if false, fallthrough
13289         as if no dependencies exist.
13290         (gomp_target_task_fn): Change return type to bool, return true
13291         if the task should have another part scheduled later.  Handle
13292         target nowait.
13293         (gomp_load_plugin_for_device): Initialize async_run.
13294         * task.c (gomp_init_task): Initialize children_queue.
13295         (gomp_clear_parent_in_list): New.
13296         (gomp_clear_parent_in_tree): New.
13297         (gomp_clear_parent): Handle priorities.
13298         (GOMP_task): Likewise.
13299         (priority_queue_move_task_first,
13300         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13301         New functions.
13302         (gomp_create_target_task): Use priority queues.  Change return type
13303         to bool, add state argument, return false if for async
13304         {{enter,exit} data,update} constructs no dependencies need to be
13305         waited for, handle target nowait.  Set task->fn to NULL instead of
13306         gomp_target_task_fn.
13307         (verify_children_queue): Remove.
13308         (priority_list_upgrade_task): New.
13309         (priority_queue_upgrade_task): New.
13310         (verify_task_queue): Remove.
13311         (priority_list_downgrade_task): New.
13312         (priority_queue_downgrade_task): New.
13313         (gomp_task_run_pre): Use priority queues.
13314         Abstract code out to priority_queue_downgrade_task.
13315         (gomp_task_run_post_handle_dependers): Use priority queues.
13316         (gomp_task_run_post_remove_parent): Likewise.
13317         (gomp_task_run_post_remove_taskgroup): Likewise.
13318         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
13319         tasks specially.
13320         (GOMP_taskwait): Likewise.
13321         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
13322         priority-queue_upgrade_task.
13323         (GOMP_taskgroup_start): Use priority queues.
13324         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
13325         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
13326         barrier.
13327         * taskloop.c (GOMP_taskloop): Handle priorities.
13328         * team.c (gomp_new_team): Call priority_queue_init.
13329         (free_team): Call priority_queue_free.
13330         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13331         team created for target nowait in implicit parallel region.
13332         (gomp_team_start): For nested check, test thr->ts.level instead of
13333         thr->ts.team != NULL.
13334         * testsuite/libgomp.c/doacross-3.c: New test.
13335         * testsuite/libgomp.c/ordered-5.c: New test.
13336         * testsuite/libgomp.c/priority.c: New test.
13337         * testsuite/libgomp.c/target-31.c: New test.
13338         * testsuite/libgomp.c/target-32.c: New test.
13339         * testsuite/libgomp.c/target-33.c: New test.
13340         * testsuite/libgomp.c/target-34.c: New test.
13342 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13344         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13346         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13347         loop is sequential.
13349 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13351         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13352         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13354 2015-11-12  James Norris  <jnorris@codesourcery.com>
13355             Joseph Myers  <joseph@codesourcery.com>
13357         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13358         * oacc-parallel.c (GOACC_declare): New function.
13359         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13360         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13361         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13362         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13363         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13365 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
13367         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13369 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
13371         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13372         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13374 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13376         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13377         inadvertent commit.
13379 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13381         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13382         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13383         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13384         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13385         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13387 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
13389         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13390         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13392 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
13393             Ilya Verbin  <ilya.verbin@intel.com>
13395         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13396         GOMP_loop_nonmonotonic_dynamic_start,
13397         GOMP_loop_nonmonotonic_guided_next,
13398         GOMP_loop_nonmonotonic_guided_start,
13399         GOMP_loop_ull_nonmonotonic_dynamic_next,
13400         GOMP_loop_ull_nonmonotonic_dynamic_start,
13401         GOMP_loop_ull_nonmonotonic_guided_next,
13402         GOMP_loop_ull_nonmonotonic_guided_start,
13403         GOMP_parallel_loop_nonmonotonic_dynamic,
13404         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13405         (GOMP_target_41): Renamed to ...
13406         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13407         arguments.
13408         (GOMP_target_data_41): Renamed to ...
13409         (GOMP_target_data_ext): ... this.
13410         (GOMP_target_update_41): Renamed to ...
13411         (GOMP_target_update_ext): ... this.
13412         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13413         GOMP_target_data_ext and GOMP_target_update_ext instead of
13414         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13415         Export GOMP_loop_nonmonotonic_dynamic_next,
13416         GOMP_loop_nonmonotonic_dynamic_start,
13417         GOMP_loop_nonmonotonic_guided_next,
13418         GOMP_loop_nonmonotonic_guided_start,
13419         GOMP_loop_ull_nonmonotonic_dynamic_next,
13420         GOMP_loop_ull_nonmonotonic_dynamic_start,
13421         GOMP_loop_ull_nonmonotonic_guided_next,
13422         GOMP_loop_ull_nonmonotonic_guided_start,
13423         GOMP_parallel_loop_nonmonotonic_dynamic and
13424         GOMP_parallel_loop_nonmonotonic_guided.
13425         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13426         GOMP_parallel_loop_nonmonotonic_guided,
13427         GOMP_loop_nonmonotonic_dynamic_start,
13428         GOMP_loop_nonmonotonic_guided_start,
13429         GOMP_loop_nonmonotonic_dynamic_next,
13430         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13431         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13432         GOMP_loop_ull_nonmonotonic_guided_start,
13433         GOMP_loop_ull_nonmonotonic_dynamic_next,
13434         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13435         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13436         functions.
13437         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
13438         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13439         Use gomp_map_val function.
13440         (gomp_target_fallback_firstprivate): New static function.
13441         (GOMP_target_41): Renamed to ...
13442         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13443         arguments.  Move firstprivate fallback handling into a new
13444         function.
13445         (GOMP_target_data_41): Renamed to ...
13446         (GOMP_target_data_ext): ... this.
13447         (GOMP_target_update_41): Renamed to ...
13448         (GOMP_target_update_ext): ... this.
13449         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13450         gomp_map_0len_lookup instead of gomp_map_lookup.
13451         (omp_target_is_present): Use gomp_map_0len_lookup instead of
13452         gomp_map_lookup.
13453         * testsuite/libgomp.c/target-28.c: Likewise.
13454         * testsuite/libgomp.c/monotonic-1.c: New test.
13455         * testsuite/libgomp.c/monotonic-2.c: New test.
13456         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13457         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13458         * testsuite/libgomp.c/pr66199-5.c: New test.
13459         * testsuite/libgomp.c/pr66199-6.c: New test.
13460         * testsuite/libgomp.c/pr66199-7.c: New test.
13461         * testsuite/libgomp.c/pr66199-8.c: New test.
13462         * testsuite/libgomp.c/pr66199-9.c: New test.
13463         * testsuite/libgomp.c/reduction-11.c: New test.
13464         * testsuite/libgomp.c/reduction-12.c: New test.
13465         * testsuite/libgomp.c/reduction-13.c: New test.
13466         * testsuite/libgomp.c/reduction-14.c: New test.
13467         * testsuite/libgomp.c/reduction-15.c: New test.
13468         * testsuite/libgomp.c/target-12.c (main): Adjust for
13469         omp_target_is_present change for one-past-last element.
13470         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13471         the same var is both mapped and privatized.
13472         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13473         handling of zero-length array sections.
13474         * testsuite/libgomp.c/target-28.c: New test.
13475         * testsuite/libgomp.c/target-29.c: New test.
13476         * testsuite/libgomp.c/target-30.c: New test.
13477         * testsuite/libgomp.c/target-teams-1.c: New test.
13478         * testsuite/libgomp.c++/member-6.C: New test.
13479         * testsuite/libgomp.c++/member-7.C: New test.
13480         * testsuite/libgomp.c++/monotonic-1.C: New test.
13481         * testsuite/libgomp.c++/monotonic-2.C: New test.
13482         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13483         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13484         * testsuite/libgomp.c++/pr66199-3.C: New test.
13485         * testsuite/libgomp.c++/pr66199-4.C: New test.
13486         * testsuite/libgomp.c++/pr66199-5.C: New test.
13487         * testsuite/libgomp.c++/pr66199-6.C: New test.
13488         * testsuite/libgomp.c++/pr66199-7.C: New test.
13489         * testsuite/libgomp.c++/pr66199-8.C: New test.
13490         * testsuite/libgomp.c++/pr66199-9.C: New test.
13491         * testsuite/libgomp.c++/reduction-11.C: New test.
13492         * testsuite/libgomp.c++/reduction-12.C: New test.
13493         * testsuite/libgomp.c++/target-13.C: New test.
13494         * testsuite/libgomp.c++/target-14.C: New test.
13495         * testsuite/libgomp.c++/target-15.C: New test.
13496         * testsuite/libgomp.c++/target-16.C: New test.
13497         * testsuite/libgomp.c++/target-17.C: New test.
13498         * testsuite/libgomp.c++/target-18.C: New test.
13499         * testsuite/libgomp.c++/target-19.C: New test.
13501 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13503         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13504         and reduction copy.
13505         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13506         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13507         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13508         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13509         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13510         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13511         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13512         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13513         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13514         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13515         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13516         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13517         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13518         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13520 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13522         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13523         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13524         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13525         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13526         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13527         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13528         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13529         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13531 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
13533         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13534         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13535         (GOMP_OFFLOAD_openacc_parallel): Likewise.
13536         * oacc-host.c (host_openacc_exec): Likewise.
13537         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13539 2015-11-03  Julian Brown  <julian@codesourcery.com>
13540             Thomas Schwinge  <thomas@codesourcery.com>
13542         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13543         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13544         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13545         Likewise.
13546         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13547         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13549 2015-11-03  James Norris  <jnorris@codesourcery.com>
13551         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13552         file.
13553         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13554         Likewise.
13555         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13556         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13557         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13558         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13559         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13561 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
13563         * openacc.h (enum acc_device_t): Reformat. Ensure layout
13564         compatibility.
13565         (enum acc_async_t): Reformat.
13566         (acc_on_device): Declare compatible with builtin and provide C++
13567         wrapper.
13568         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13570 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
13571             Cesar Philippidis  <cesar@codesourcery.com>
13573         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13574         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13575         ... this.  Add a description of the test at the top of the file.
13576         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13577         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13578         ... this.  Add a description of the test at the top of the file.
13580 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
13582         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13583         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13584         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13585         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13586         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13587         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13589 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
13591         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13592         dimensions.
13594 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
13596         PR testsuite/68063
13597         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13599 2015-10-27  James Norris  <jnorris@codesourcery.com>
13601         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13602         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13604 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
13606         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13607         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13609         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13610         acc_device_nvidia usage.
13611         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13612         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13613         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13615         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13616         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13618         PR libgomp/66518
13619         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13621         PR libgomp/65437
13622         PR libgomp/66518
13623         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13624         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13626 2015-10-23  Tom de Vries  <tom@codesourcery.com>
13628         PR testsuite/68063
13629         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13631 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
13633         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13634         vector_length.
13635         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13637 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
13638             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
13640         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13641         to 0 when mapnum is 0.
13643 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13645         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13646         Cast to int from int32_t.
13648 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
13649             Aldy Hernandez  <aldyh@redhat.com>
13650             Ilya Verbin  <ilya.verbin@intel.com>
13652         * config/linux/affinity.c (omp_get_place_num_procs,
13653         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13654         * config/linux/doacross.h: New file.
13655         * config/posix/affinity.c (omp_get_place_num_procs,
13656         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13657         * config/posix/doacross.h: New file.
13658         * env.c: Include gomp-constants.h.
13659         (struct gomp_task_icv): Rename run_sched_modifier to
13660         run_sched_chunk_size.
13661         (gomp_max_task_priority_var): New variable.
13662         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13663         (handle_omp_display_env): Change _OPENMP value from 201307 to
13664         201511.  Print OMP_MAX_TASK_PRIORITY.
13665         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13666         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13667         chunk_size and run_sched_modifier to run_sched_chunk_size.
13668         (omp_get_max_task_priority, omp_get_initial_device,
13669         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13670         omp_get_partition_place_nums): New functions.
13671         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13672         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13673         to chunk_size.
13674         (omp_get_num_places_, omp_get_place_num_procs_,
13675         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13676         omp_get_place_proc_ids_8_, omp_get_place_num_,
13677         omp_get_partition_num_places_, omp_get_partition_place_nums_,
13678         omp_get_partition_place_nums_8_, omp_get_initial_device_,
13679         omp_get_max_task_priority_): New functions.
13680         * libgomp_g.h (GOMP_loop_doacross_static_start,
13681         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13682         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13683         GOMP_loop_ull_doacross_dynamic_start,
13684         GOMP_loop_ull_doacross_guided_start,
13685         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13686         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13687         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13688         GOMP_target_data_41, GOMP_target_update_41,
13689         GOMP_target_enter_exit_data): New prototypes.
13690         (GOMP_task): Add prototype argument.
13691         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13692         (struct gomp_doacross_work_share): New type.
13693         (struct gomp_work_share): Add doacross field.
13694         (struct gomp_task_icv): Rename run_sched_modifier to
13695         run_sched_chunk_size.
13696         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13697         GOMP_TASK_UNDEFERRED.  Add comments.
13698         (struct gomp_task_depend_entry): Add comments.
13699         (struct gomp_task): Likewise.
13700         (struct gomp_taskgroup): Likewise.
13701         (struct gomp_target_task): New type.
13702         (struct gomp_team): Add comment.
13703         (gomp_get_place_proc_ids_8, gomp_doacross_init,
13704         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13705         gomp_create_target_task, gomp_target_task_fn): New prototypes.
13706         (struct target_var_desc): New type.
13707         (struct target_mem_desc): Adjust comment.  Use struct
13708         target_var_desc instead of splay_tree_key for list.
13709         (REFCOUNT_INFINITY): Define.
13710         (struct splay_tree_key_s): Remove copy_from field.
13711         (struct gomp_device_descr): Add dev2dev_func field.
13712         (enum gomp_map_vars_kind): New enum.
13713         (gomp_map_vars): Add one argument.
13714         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13715         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13716         omp_get_place_num_procs, omp_get_place_num_procs_,
13717         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13718         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13719         omp_get_place_num_, omp_get_partition_num_places,
13720         omp_get_partition_num_places_, omp_get_partition_place_nums,
13721         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13722         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13723         omp_target_free, omp_target_is_present, omp_target_memcpy,
13724         omp_target_memcpy_rect, omp_target_associate_ptr and
13725         omp_target_disassociate_ptr.
13726         (GOMP_4.0.2): Renamed to ...
13727         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
13728         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13729         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13730         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13731         GOMP_loop_doacross_static_start, GOMP_doacross_post,
13732         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13733         GOMP_loop_ull_doacross_guided_start,
13734         GOMP_loop_ull_doacross_runtime_start,
13735         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13736         GOMP_doacross_ull_wait.
13737         * libgomp.texi: Document omp_get_max_task_priority.
13738         Rename modifier argument to chunk_size for omp_set_schedule and
13739         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
13740         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13741         to run_sched_chunk_size renaming.
13742         (GOMP_loop_ordered_runtime_start): Likewise.
13743         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13744         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13745         GOMP_parallel_loop_runtime_start): New functions.
13746         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13747         to run_sched_chunk_size renaming.
13748         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13749         GOMP_loop_doacross_guided_start): New functions or aliases.
13750         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13751         run_sched_modifier to run_sched_chunk_size renaming.
13752         (GOMP_loop_ull_ordered_runtime_start): Likewise.
13753         (gomp_loop_ull_doacross_static_start,
13754         gomp_loop_ull_doacross_dynamic_start,
13755         gomp_loop_ull_doacross_guided_start,
13756         GOMP_loop_ull_doacross_runtime_start): New functions.
13757         (GOMP_loop_ull_doacross_static_start,
13758         GOMP_loop_ull_doacross_dynamic_start,
13759         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13760         * oacc-mem.c (acc_map_data, present_create_copy,
13761         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13762         to gomp_map_vars.
13763         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13764         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13765         instead of false to gomp_map_vars.
13766         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
13767         * omp.h.in (omp_lock_hint_t): New type.
13768         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13769         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13770         omp_get_place_num, omp_get_partition_num_places,
13771         omp_get_partition_place_nums, omp_get_initial_device,
13772         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13773         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13774         omp_target_associate_ptr, omp_target_disassociate_ptr): New
13775         prototypes.
13776         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13777         (omp_lock_hint_none, omp_lock_hint_uncontended,
13778         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13779         omp_lock_hint_speculative): New parameters.
13780         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13781         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13782         omp_get_place_num, omp_get_partition_num_places,
13783         omp_get_partition_place_nums, omp_get_initial_device,
13784         omp_get_max_task_priority): New interfaces.
13785         (omp_set_schedule, omp_get_schedule): Rename modifier argument
13786         to chunk_size.
13787         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13788         (omp_lock_hint_none, omp_lock_hint_uncontended,
13789         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13790         omp_lock_hint_speculative): New parameters.
13791         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13792         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13793         omp_get_place_num, omp_get_partition_num_places,
13794         omp_get_partition_place_nums, omp_get_initial_device,
13795         omp_get_max_task_priority): New functions and subroutines.
13796         * ordered.c: Include stdarg.h and string.h.
13797         (MAX_COLLAPSED_BITS): Define.
13798         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13799         gomp_doacross_ull_init, GOMP_doacross_ull_post,
13800         GOMP_doacross_ull_wait): New functions.
13801         * target.c: Include errno.h.
13802         (resolve_device): If device is not initialized, call
13803         gomp_init_device on it.
13804         (gomp_map_lookup): New function.
13805         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13806         Don't bump refcount if REFCOUNT_INFINITY.  Handle
13807         GOMP_MAP_ALWAYS_TO_P.
13808         (get_kind): Rename is_openacc argument to short_mapkind.
13809         (gomp_map_pointer): Use gomp_map_lookup.
13810         (gomp_map_fields_existing): New function.
13811         (gomp_map_vars): Rename is_openacc argument to short_mapkind
13812         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
13813         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13814         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13815         Adjust for tgt->list changed type and copy_from living in there.
13816         (gomp_copy_from_async): Adjust for tgt->list changed type and
13817         copy_from living in there.
13818         (gomp_unmap_vars): Likewise.
13819         (gomp_update): Likewise.  Rename is_openacc argument to
13820         short_mapkind.  Don't fail if object is not mapped.
13821         (gomp_load_image_to_device): Initialize refcount to
13822         REFCOUNT_INFINITY.
13823         (gomp_target_fallback): New function.
13824         (gomp_get_target_fn_addr): Likewise.
13825         (GOMP_target): Adjust gomp_map_vars caller, use
13826         gomp_get_target_fn_addr and gomp_target_fallback.
13827         (GOMP_target_41): New function.
13828         (gomp_target_data_fallback): New function.
13829         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13830         (GOMP_target_data_41): New function.
13831         (GOMP_target_update): Adjust gomp_update caller.
13832         (GOMP_target_update_41): New function.
13833         (gomp_exit_data, GOMP_target_enter_exit_data,
13834         gomp_target_task_fn, omp_target_alloc, omp_target_free,
13835         omp_target_is_present, omp_target_memcpy,
13836         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13837         omp_target_associate_ptr, omp_target_disassociate_ptr,
13838         gomp_load_plugin_for_device): New functions.
13839         * task.c: Include gomp-constants.h.  Include taskloop.c
13840         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13841         (gomp_task_handle_depend): New function.
13842         (GOMP_task): Use it.  Add priority argument.  Use
13843         gomp-constant.h constants instead of hardcoded numbers.
13844         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13845         (gomp_create_target_task): New function.
13846         (verify_children_queue, verify_taskgroup_queue,
13847         verify_task_queue): New functions.
13848         (gomp_task_run_pre): Call verify_*_queue functions.
13849         If an upcoming tied task is about to leave the sibling or
13850         taskgroup queues in an invalid state, adjust appropriately.
13851         Remove taskgroup argument.  Add comments.
13852         (gomp_task_run_post_handle_dependers): Add comments.
13853         (gomp_task_run_post_remove_parent): Likewise.
13854         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13855         (GOMP_taskwait): Likewise.  Add comments.
13856         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13857         problem such that the first non parent_depends_on task does not
13858         end up at the end of the children queue.
13859         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13860         GOMP_TASK_UNDEFERRED.
13861         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13862         * taskloop.c: New file.
13863         * testsuite/lib/libgomp.exp
13864         (check_effective_target_offload_device_nonshared_as): New proc.
13865         * testsuite/libgomp.c/affinity-2.c: New test.
13866         * testsuite/libgomp.c/doacross-1.c: New test.
13867         * testsuite/libgomp.c/doacross-2.c: New test.
13868         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13869         Add map clause to target.
13870         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13871         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13872         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13873         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13874         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13875         Likewise.
13876         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13877         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13878         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13879         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13880         not defined.  Use those where needed.
13881         * testsuite/libgomp.c/for-4.c: New test.
13882         * testsuite/libgomp.c/for-5.c: New test.
13883         * testsuite/libgomp.c/for-6.c: New test.
13884         * testsuite/libgomp.c/linear-1.c: New test.
13885         * testsuite/libgomp.c/ordered-4.c: New test.
13886         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13887         only allowed on the loop iterator.
13888         * testsuite/libgomp.c/pr66199-3.c: New test.
13889         * testsuite/libgomp.c/pr66199-4.c: New test.
13890         * testsuite/libgomp.c/reduction-7.c: New test.
13891         * testsuite/libgomp.c/reduction-8.c: New test.
13892         * testsuite/libgomp.c/reduction-9.c: New test.
13893         * testsuite/libgomp.c/reduction-10.c: New test.
13894         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13895         map(tofrom:s).
13896         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13897         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13898         * testsuite/libgomp.c/target-11.c: New test.
13899         * testsuite/libgomp.c/target-12.c: New test.
13900         * testsuite/libgomp.c/target-13.c: New test.
13901         * testsuite/libgomp.c/target-14.c: New test.
13902         * testsuite/libgomp.c/target-15.c: New test.
13903         * testsuite/libgomp.c/target-16.c: New test.
13904         * testsuite/libgomp.c/target-17.c: New test.
13905         * testsuite/libgomp.c/target-18.c: New test.
13906         * testsuite/libgomp.c/target-19.c: New test.
13907         * testsuite/libgomp.c/target-20.c: New test.
13908         * testsuite/libgomp.c/target-21.c: New test.
13909         * testsuite/libgomp.c/target-22.c: New test.
13910         * testsuite/libgomp.c/target-23.c: New test.
13911         * testsuite/libgomp.c/target-24.c: New test.
13912         * testsuite/libgomp.c/target-25.c: New test.
13913         * testsuite/libgomp.c/target-26.c: New test.
13914         * testsuite/libgomp.c/target-27.c: New test.
13915         * testsuite/libgomp.c/taskloop-1.c: New test.
13916         * testsuite/libgomp.c/taskloop-2.c: New test.
13917         * testsuite/libgomp.c/taskloop-3.c: New test.
13918         * testsuite/libgomp.c/taskloop-4.c: New test.
13919         * testsuite/libgomp.c++/ctor-13.C: New test.
13920         * testsuite/libgomp.c++/doacross-1.C: New test.
13921         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13922         Replace offload_device with offload_device_nonshared_as.
13923         * testsuite/libgomp.c++/for-12.C: New test.
13924         * testsuite/libgomp.c++/for-13.C: New test.
13925         * testsuite/libgomp.c++/for-14.C: New test.
13926         * testsuite/libgomp.c++/linear-1.C: New test.
13927         * testsuite/libgomp.c++/member-1.C: New test.
13928         * testsuite/libgomp.c++/member-2.C: New test.
13929         * testsuite/libgomp.c++/member-3.C: New test.
13930         * testsuite/libgomp.c++/member-4.C: New test.
13931         * testsuite/libgomp.c++/member-5.C: New test.
13932         * testsuite/libgomp.c++/ordered-1.C: New test.
13933         * testsuite/libgomp.c++/reduction-5.C: New test.
13934         * testsuite/libgomp.c++/reduction-6.C: New test.
13935         * testsuite/libgomp.c++/reduction-7.C: New test.
13936         * testsuite/libgomp.c++/reduction-8.C: New test.
13937         * testsuite/libgomp.c++/reduction-9.C: New test.
13938         * testsuite/libgomp.c++/reduction-10.C: New test.
13939         * testsuite/libgomp.c++/reference-1.C: New test.
13940         * testsuite/libgomp.c++/simd14.C: New test.
13941         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13942         * testsuite/libgomp.c++/target-5.C: New test.
13943         * testsuite/libgomp.c++/target-6.C: New test.
13944         * testsuite/libgomp.c++/target-7.C: New test.
13945         * testsuite/libgomp.c++/target-8.C: New test.
13946         * testsuite/libgomp.c++/target-9.C: New test.
13947         * testsuite/libgomp.c++/target-10.C: New test.
13948         * testsuite/libgomp.c++/target-11.C: New test.
13949         * testsuite/libgomp.c++/target-12.C: New test.
13950         * testsuite/libgomp.c++/taskloop-1.C: New test.
13951         * testsuite/libgomp.c++/taskloop-2.C: New test.
13952         * testsuite/libgomp.c++/taskloop-3.C: New test.
13953         * testsuite/libgomp.c++/taskloop-4.C: New test.
13954         * testsuite/libgomp.c++/taskloop-5.C: New test.
13955         * testsuite/libgomp.c++/taskloop-6.C: New test.
13956         * testsuite/libgomp.c++/taskloop-7.C: New test.
13957         * testsuite/libgomp.c++/taskloop-8.C: New test.
13958         * testsuite/libgomp.c++/taskloop-9.C: New test.
13959         * testsuite/libgomp.fortran/affinity1.f90: New test.
13960         * testsuite/libgomp.fortran/affinity2.f90: New test.
13962 2015-10-13  Tom de Vries  <tom@codesourcery.com>
13964         PR tree-optimization/67476
13965         * testsuite/libgomp.c/autopar-3.c: New test.
13966         * testsuite/libgomp.c/autopar-4.c: New test.
13967         * testsuite/libgomp.c/autopar-5.c: New test.
13968         * testsuite/libgomp.c/autopar-6.c: New test.
13969         * testsuite/libgomp.c/autopar-7.c: New test.
13970         * testsuite/libgomp.c/autopar-8.c: New test.
13972 2015-10-12  James Norris  <jnorris@codesourcery.com>
13974         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13975         initializer.
13977 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
13979         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13980         using load_gcc_lib.
13982 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13984         * oacc-ptx.h: Remove file, moving its content into...
13985         * config/nvptx/fortran.c: ... here...
13986         * config/nvptx/oacc-init.c: ..., here...
13987         * config/nvptx/oacc-parallel.c: ..., and here.
13988         * config/nvptx/openacc.f90: New file.
13989         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13990         (link_ptx): Don't link in predefined bits of PTX code.
13992 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13993             Bernd Schmidt <bernds@codesourcery.com>
13995         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13996         (struct targ_ptx_obj): New.
13997         (nvptx_tdata): Move earlier, change data format.
13998         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
13999         objects.
14000         (GOMP_OFFLOAD_load_image): Adjust.
14002 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14004         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14005         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14006         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14007         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14008         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14009         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14010         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14011         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14012         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14013         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14014         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14015         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14016         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14017         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14018         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14019         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14020         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14021         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14022         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14023         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14024         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14025         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14026         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14027         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14028         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14029         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14030         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14031         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14032         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14033         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14034         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14035         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14036         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14037         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14038         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14039         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14040         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14041         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14042         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14043         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14044         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14045         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14046         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14047         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14048         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14049         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14050         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14051         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14052         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14053         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14054         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14055         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14056         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14057         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14058         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14059         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14060         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14061         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14062         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14063         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14064         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14065         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14066         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14068 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14070         * oacc-init.c (acc_on_device): Force optimization level.
14072 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14074         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14075         (cuda_errlist): Delete.
14076         (cuda_error): Reimplement.
14078 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14080         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14081         array.
14082         * libgomp.map (GOACC_parallel_keyed): New.
14083         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14084         all callers.
14085         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14086         and take keyed varargs list.  Adjust call to exec_func.
14087         (GOACC_parallel): Force host fallback.
14088         * libgomp_g.h (GOACC_parallel): Remove.
14089         (GOACC_parallel_keyed): Declare.
14090         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14091         (struct targ_gn_descriptor): Replace name field with launch field.
14092         (nvptx_exec): Lose separate geometry args, take array.  Process
14093         dynamic dimensions and adjust.
14094         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14095         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14096         data.
14097         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14098         passing.
14099         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14100         passing.
14102 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14104         PR libgomp/67141
14105         * oacc-int.h (goacc_host_init): Add declaration.
14106         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14107         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14109 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14110             Sebastian Pop  <s.pop@samsung.com>
14112         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14113         match o/p.
14114         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14115         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14116         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14117         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14118         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14120 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14122         * configure.tgt: Add missing ;; in between nvptx and rtems
14123         snippets.
14125 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14127         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14128         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14129         (gomp_thread_pool_reservoir): Add priority member.
14130         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14131         priority.
14132         (parse_thread_pools): Likewise.
14133         * team.c (gomp_team_start): Call configuration provided
14134         gomp_adjust_thread_attr(). Destroy thread attributes if
14135         necessary.
14136         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14138 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14140         * config/posix/pool.h: New.
14141         * config/rtems/pool.h: Likewise.
14142         * config/rtems/proc.c: Likewise.
14143         * libgomp.h (gomp_thread_destructor): Declare.
14144         * team.c: Include configuration provided "pool.h".
14145         (gomp_get_thread_pool): Define in configuration.
14146         (gomp_team_end): Call configuration defined
14147         gomp_release_thread_pool().
14149 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14151         * config/rtems/bar.c: New.
14152         * config/rtems/bar.h: Likewise.
14153         * config/rtems/mutex.c: Likewise.
14154         * config/rtems/mutex.h: Likewise.
14155         * config/rtems/sem.c: Likewise.
14156         * config/rtems/sem.h: Likewise.
14157         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14158         <sys/lock.h> header file.
14159         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14160         supported by Newlib.
14161         * configure: Regenerate.
14163 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14165         * team.c (gomp_new_thread_pool): Delete and move content to ...
14166         (gomp_get_thread_pool): ... new function.  Allocate and
14167         initialize thread pool on demand.
14168         (get_last_team): Use gomp_get_thread_pool().
14169         (gomp_team_start): Delete thread pool initialization.
14171 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14173         PR tree-optimization/65637
14174         * testsuite/libgomp.c/autopar-2.c: New test.
14176 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14178         PR tree-optimization/46193
14179         * testsuite/libgomp.c/pr46193.c: New test.
14181 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14183         libgomp/
14184         * libgomp.map: Add 4.0.2 version.
14185         * target.c (offload_image_descr): Add version field.
14186         (gomp_load_image_to_device): Add version argument.  Adjust plugin
14187         call.  Improve load mismatch diagnostic.
14188         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
14189         call.
14190         (GOMP_offload_regster): Make stub function, move bulk to ...
14191         (GOMP_offload_register_ver): ... here.  Process version argument.
14192         (GOMP_offload_unregister): Make stub function, move bulk to ...
14193         (GOMP_offload_unregister_ver): ... here.  Process version argument.
14194         (gomp_init_device): Process version field.
14195         (gomp_unload_device): Process version field.
14196         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14197         macros.  Check plugin version.
14198         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
14199         loader and unloader types.
14200         * oacc-host.c: Include gomp-constants.h.
14201         (host_version): New.
14202         (host_load_image, host_unload_image): Adjust.
14203         (host_dispatch): Add host_version.
14204         * plugin/plugin-nvptx.c: Include gomp-constants.h.
14205         (GOMP_OFFLOAD_version): New.
14206         (GOMP_OFFLOAD_load_image): Add version arg and check it.
14207         (GOMP_OFFLOAD_unload_image): Likewise.
14208         * plugin/plugin-host.c: Include gomp-constants.h.
14209         (GOMP_OFFLOAD_version): New.
14210         (GOMP_OFFLOAD_load_image): Add version arg.
14211         (GOMP_OFFLOAD_unload_image): Likewise.
14213 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14215         PR tree-optimization/65468
14216         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14218 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14220         PR tree-optimization/65468
14221         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14223 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
14225         PR libgomp/66761
14226         PR libgomp/67303
14227         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14228         (gomp_iter_guided_next): Idem.
14229         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14230         (gomp_iter_ull_guided_next): Idem.
14231         * config/linux/wait.h (do_spin): Idem.
14233 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14235         * libgomp-plugin.h (enum offload_target_type): Remove
14236         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14237         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14238         * openacc.h (enum acc_device_t): Likewise.
14239         * openacc_lib.h: Likewise.
14240         * oacc-init.c (name_of_acc_device_t): Don't handle it.
14241         (acc_on_device): Just use __builtin_acc_on_device.
14242         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14243         of acc_on_device builtin.
14244         * plugin/plugin-host.h: Remove file.
14245         * plugin/plugin-host.c: Likewise, but salvage some content into...
14246         * oacc-host.c: ... this file.
14247         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14248         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14249         * Makefile.in: Regenerate.
14250         * configure: Likewise.
14251         * testsuite/lib/libgomp.exp
14252         (check_effective_target_openacc_host_nonshm_selected): Remove.
14253         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14254         ACC_DEVICE_TYPE=host_nonshm.
14255         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14256         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14257         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14258         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14259         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14260         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14262 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14263             Jakub Jelinek  <jakub@redhat.com>
14265         * config/nvptx/affinity.c: New file.
14266         * config/nvptx/alloc.c: Likewise.
14267         * config/nvptx/bar.c: Likewise.
14268         * config/nvptx/barrier.c: Likewise.
14269         * config/nvptx/critical.c: Likewise.
14270         * config/nvptx/env.c: Likewise.
14271         * config/nvptx/error.c: Likewise.
14272         * config/nvptx/fortran.c: Likewise.
14273         * config/nvptx/iter.c: Likewise.
14274         * config/nvptx/iter_ull.c: Likewise.
14275         * config/nvptx/libgomp-plugin.c: Likewise.
14276         * config/nvptx/lock.c: Likewise.
14277         * config/nvptx/loop.c: Likewise.
14278         * config/nvptx/loop_ull.c: Likewise.
14279         * config/nvptx/mutex.c: Likewise.
14280         * config/nvptx/oacc-async.c: Likewise.
14281         * config/nvptx/oacc-cuda.c: Likewise.
14282         * config/nvptx/oacc-host.c: Likewise.
14283         * config/nvptx/oacc-init.c: Likewise.
14284         * config/nvptx/oacc-mem.c: Likewise.
14285         * config/nvptx/oacc-parallel.c: Likewise.
14286         * config/nvptx/oacc-plugin.c: Likewise.
14287         * config/nvptx/omp-lock.h: Likewise.
14288         * config/nvptx/ordered.c: Likewise.
14289         * config/nvptx/parallel.c: Likewise.
14290         * config/nvptx/proc.c: Likewise.
14291         * config/nvptx/ptrlock.c: Likewise.
14292         * config/nvptx/sections.c: Likewise.
14293         * config/nvptx/sem.c: Likewise.
14294         * config/nvptx/single.c: Likewise.
14295         * config/nvptx/splay-tree.c: Likewise.
14296         * config/nvptx/target.c: Likewise.
14297         * config/nvptx/task.c: Likewise.
14298         * config/nvptx/team.c: Likewise.
14299         * config/nvptx/time.c: Likewise.
14300         * config/nvptx/work.c: Likewise.
14301         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14302         * configure: Regenerate.
14303         * configure.tgt (config_path): Set to "nvptx" for target
14304         nvptx*-*-*.
14306 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14308         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14310 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14312         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14313         (cuda_errlist): Constify.
14314         (errmsg):  Move into ...
14315         (cuda_error): ... here.  Make smaller.
14316         (_XSTR, _STR): Delete.
14317         (cuda_synames): Delete.
14318         (verify_device_library): Delete.
14319         (nvptx_init): Don't call it.
14321 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14323         * testsuite/libgomp.c/uns-outer-4.c: New test.
14325 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14327         * testsuite/libgomp.c/pr66714.c: New test.
14329 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14331         PR libgomp/66950
14332         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14333         (fib_ref): New function.
14334         (fib): Correct corner cases in the recursion.
14335         (main): Replace the non-simd loop with fib_ref call.
14336         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14337         subroutine.
14338         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
14339         for the last array element value.  Replace the non-simd loop with
14340         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
14341         of the last array element with according Fibonacci sequence element.
14342         (fib): Correct corner cases in the recursion.
14344 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14346         * target.c (gomp_offload_image_to_device): Rename to ...
14347         (gomp_load_image_to_device): ... here.
14348         (GOMP_offload_register): Adjust call.
14349         (gomp_init_device): Likewise.
14350         (gomp_unload_image_from_device): New.  Broken out of ...
14351         (GOMP_offload_unregister): ... here.  Call it.
14352         (gomp_unload_device): New.
14353         * libgomp.h (gomp_unload_device): Declare.
14354         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14355         mem maps.
14357 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14359         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14360         wait=-specific if.
14361         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14362         !=0 condition.
14363         (goacc_waits): Move !num_waits handling to ...
14364         (GOACC_wait): ... here, the only caller that might have zero waits.
14366         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14367         (struct ptx_image_data): Move earlier, add fns field.
14368         (struct ptx_device): Add images and image_lock fields.
14369         (ptx_images, ptx_image_lock): Delete.
14370         (nvptx_open_device): Initialize images and image_lock fields.
14371         (nvptx_close_device): Destroy image_lock.
14372         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14373         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14374         fields.
14376 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14378         * target.c (GOMP_offload_register): Use int for device type arg.
14379         (GOMP_offload_unregister): Likewise.
14381         * target.c (struct_offload_image_descr): Constify host_table.
14382         (gomp_offload_image_to_device): Likewise.
14383         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14385         * libgomp.h (gomp_device_descr): Constify target data arguments.
14386         * target.c (struct offload_image_descr): Constify target_data.
14387         (gomp_offload_image_to_device): Likewise.
14388         (GOMP_offload_register): Likewise.
14389         (GOMP_offload_unregister): Likewise.
14390         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14391         GOMP_OFFLOAD_unload_image): Constify target data.
14392         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14393         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14395 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14397         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14398         Workaround driver library const error.
14399         (struct nvptx_tdata, nvptx_tdata_t): New.
14400         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14401         type.
14403 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14405         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14406         of EPS parameter from integer to real.
14407         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14408         type of EPS parameter from integer to real.
14410 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14412         * team.c (get_last_team): New.
14413         (gomp_new_team): Recycle last non-nested team if possible.
14414         (gomp_team_end): Move team work share list free lock destruction
14415         to ...
14416         (free_team): ... here.
14418 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14420         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14421         and ref from int to double.  Replaced their comparison with
14422         an inequality of their difference and EPS.
14423         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14424         comparison of pri and a reference number with an inequality of their
14425         difference and EPS.
14426         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14427         the comparison of sum and sum_ref with an inequality of their
14428         difference and EPS.
14429         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14430         the comparison of pri and a reference number with an inequality of
14431         their difference and EPS.
14433 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14435         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14436         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14437         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14438         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14439         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14440         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14441         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14442         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14443         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14444         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14445         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14446         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14447         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14448         variables.
14449         (vec_mult): Likewise.  Add #pragma omp taskwait.
14450         (main): Adjust caller.
14451         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14452         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14453         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14454         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14455         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14456         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14457         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14458         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14459         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14460         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14461         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14462         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14463         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14464         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14465         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14466         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14467         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14468         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14469         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14470         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14471         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14472         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14473         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14474         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14475         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14476         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14477         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14478         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14479         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14480         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14481         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14482         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14483         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14484         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14485         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14486         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14487         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14488         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14489         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14490         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14491         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14492         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14493         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14494         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14495         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14496         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14497         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14498         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14499         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14500         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14501         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14502         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14503         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14504         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14505         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14506         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14507         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14508         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14509         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14510         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14511         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14512         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14513         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14514         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14515         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14516         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14517         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14518         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14519         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14520         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14521         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14522         (vec_mult): Add !$omp taskwait.
14523         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14524         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14525         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14526         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14527         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14528         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14529         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14530         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14531         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14532         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14533         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14534         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14535         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14536         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14537         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14538         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14539         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14540         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14541         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14542         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14543         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14544         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14545         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14546         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14547         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14548         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14549         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14550         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14551         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14552         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14553         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14554         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14555         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14556         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14557         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14558         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14559         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14560         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14561         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14562         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14563         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14564         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14565         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14566         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14567         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14568         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14569         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14570         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14571         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14572         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14573         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14574         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14575         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14576         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14577         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14578         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14579         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14580         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14581         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14582         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14583         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14584         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14585         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14586         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14587         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14588         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14589         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14591 2015-07-10  Tom de Vries  <tom@codesourcery.com>
14593         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14594         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14596 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
14598         PR libgomp/65099
14599         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14600         in a 64-bit configuration.
14601         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14602         offloading testing if no such device is available.
14603         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14604         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14606 2015-07-08  Tom de Vries  <tom@codesourcery.com>
14608         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14609         second call to f.
14610         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14612 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14614         PR tree-optimization/66642
14615         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14616         iteration count case.
14617         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14618         function, factor out of ...
14619         (main): ... here.  Test low iteration count case.
14621 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14623         * libgomp.h (gomp_thread_pool): Comment last_team field.
14625 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
14627         * testsuite/libgomp.c++/pr66702-1.C: Require
14628         vect_simd_clones effective target.
14629         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14631 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14633         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14634         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14635         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14636         "-O2".
14638 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14640         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14641         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14642         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14643         * testsuite/libgomp.c++/pr64824.C: Same.
14644         * testsuite/libgomp.c++/pr64868.C: Same.
14645         * testsuite/libgomp.c++/pr66199-1.C: Same.
14646         * testsuite/libgomp.c++/pr66199-2.C: Same.
14647         * testsuite/libgomp.c++/target-2.C: Same.
14648         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14649         -std=<standard> option.
14650         * testsuite/libgomp.c++/udr-11.C: Same.
14651         * testsuite/libgomp.c++/udr-12.C: Same.
14652         * testsuite/libgomp.c++/udr-13.C: Same.
14653         * testsuite/libgomp.c++/udr-14.C: Same.
14654         * testsuite/libgomp.c++/udr-15.C: Same.
14655         * testsuite/libgomp.c++/udr-16.C: Same.
14656         * testsuite/libgomp.c++/udr-17.C: Same.
14657         * testsuite/libgomp.c++/udr-18.C: Same.
14658         * testsuite/libgomp.c++/udr-19.C: Same.
14659         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14660         * testsuite/libgomp.c++/simd-1.C: Same.
14661         * testsuite/libgomp.c++/simd-2.C: Same.
14662         * testsuite/libgomp.c++/simd-3.C: Same.
14663         * testsuite/libgomp.c++/simd-4.C: Same.
14664         * testsuite/libgomp.c++/simd-5.C: Same.
14665         * testsuite/libgomp.c++/simd-6.C: Same.
14666         * testsuite/libgomp.c++/simd-7.C: Same.
14667         * testsuite/libgomp.c++/simd-8.C: Same.
14668         * testsuite/libgomp.c++/simd-9.C: Same.
14669         * testsuite/libgomp.c++/simd10.C: Same.
14670         * testsuite/libgomp.c++/simd11.C: Same.
14671         * testsuite/libgomp.c++/simd12.C: Same.
14672         * testsuite/libgomp.c++/simd13.C: Same.
14674 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14676         PR middle-end/66702
14677         * testsuite/libgomp.c++/pr66702-1.C: New test.
14678         * testsuite/libgomp.c++/pr66702-2.C: New test.
14680 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14682         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14683         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14684         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14685         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14687 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14689         PR tree-optimization/66652
14690         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14691         using restrict pointers.
14692         (main): Add arguments to calls to f.
14693         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14695 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
14697         * configure.ac: Fix check for header <sys/sysctl.h>.
14698         * configure: Regenerate.
14699         * config.h.in: Likewise.
14701 2015-06-23  Tom de Vries  <tom@codesourcery.com>
14703         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14704         abort.
14705         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14707 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
14709         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14710         acc_device_nvidia.
14712         PR libgomp/66518
14713         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14714         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14716 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14718         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
14719         dg-additional-options for any remaining options.
14720         * testsuite/libgomp.c/atomic-2.c: Same.
14721         * testsuite/libgomp.c/atomic-4.c: Same.
14722         * testsuite/libgomp.c/atomic-5.c: Same.
14723         * testsuite/libgomp.c/atomic-6.c: Same.
14724         * testsuite/libgomp.c/autopar-1.c: Same.
14725         * testsuite/libgomp.c/copyin-1.c: Same.
14726         * testsuite/libgomp.c/copyin-2.c: Same.
14727         * testsuite/libgomp.c/copyin-3.c: Same.
14728         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14729         * testsuite/libgomp.c/nestedfn-5.c: Same.
14730         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14731         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14732         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14733         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14734         * testsuite/libgomp.c/pr32362-1.c: Same.
14735         * testsuite/libgomp.c/pr32362-2.c: Same.
14736         * testsuite/libgomp.c/pr32362-3.c: Same.
14737         * testsuite/libgomp.c/pr39591-1.c: Same.
14738         * testsuite/libgomp.c/pr39591-2.c: Same.
14739         * testsuite/libgomp.c/pr39591-3.c: Same.
14740         * testsuite/libgomp.c/pr58392.c: Same.
14741         * testsuite/libgomp.c/pr58756.c: Same.
14742         * testsuite/libgomp.c/simd-1.c: Same.
14743         * testsuite/libgomp.c/simd-10.c: Same.
14744         * testsuite/libgomp.c/simd-11.c: Same.
14745         * testsuite/libgomp.c/simd-12.c: Same.
14746         * testsuite/libgomp.c/simd-13.c: Same.
14747         * testsuite/libgomp.c/simd-14.c: Same.
14748         * testsuite/libgomp.c/simd-15.c: Same.
14749         * testsuite/libgomp.c/simd-2.c: Same.
14750         * testsuite/libgomp.c/simd-3.c: Same.
14751         * testsuite/libgomp.c/simd-4.c: Same.
14752         * testsuite/libgomp.c/simd-5.c: Same.
14753         * testsuite/libgomp.c/simd-6.c: Same.
14754         * testsuite/libgomp.c/simd-7.c: Same.
14755         * testsuite/libgomp.c/simd-8.c: Same.
14756         * testsuite/libgomp.c/simd-9.c: Same.
14758 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14760         * testsuite/libgomp.c/pr35625.c: Fix typo.
14762 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14764         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14765         in dg-options.
14766         * testsuite/libgomp.c/atomic-3.c: Same.
14767         * testsuite/libgomp.c/debug-1.c: Same.
14768         * testsuite/libgomp.c/nqueens-1.c: Same.
14769         * testsuite/libgomp.c/pr26171.c: Same.
14770         * testsuite/libgomp.c/pr48591.c: Same.
14771         * testsuite/libgomp.c/pr64824.c: Same.
14772         * testsuite/libgomp.c/pr64868.c: Same.
14773         * testsuite/libgomp.c/pr66133.c: Same.
14774         * testsuite/libgomp.c/pr66199-1.c: Same.
14775         * testsuite/libgomp.c/pr66199-2.c: Same.
14776         * testsuite/libgomp.c/target-8.c: Same.
14778 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14780         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14781         -std={gnu99,c99}.
14782         * testsuite/libgomp.c/for-1.c: Same.
14783         * testsuite/libgomp.c/for-2.c: Same.
14784         * testsuite/libgomp.c/for-3.c: Same.
14785         * testsuite/libgomp.c/pr35625.c: Same.
14786         * testsuite/libgomp.c/pr39154.c: Same.
14787         * testsuite/libgomp.c/simd-16.c: Same.
14788         * testsuite/libgomp.c/simd-17.c: Same.
14790 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14792         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14794 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14796         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14797         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14798         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14799         (N): Define.
14800         (main): Use N instead of hardcoded constants.
14802 2015-06-05  Tom de Vries  <tom@codesourcery.com>
14804         merge from gomp4 branch:
14805         2015-05-28  Tom de Vries  <tom@codesourcery.com>
14807         PR tree-optimization/65443
14808         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14809         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14810         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14812 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14814         * testsuite/libgomp.graphite/bounds.c: Adjust for
14815         cleanup-tree-dump removal.
14816         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14817         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14818         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14819         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14820         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14821         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14822         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14823         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14824         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14825         * testsuite/libgomp.graphite/pr41118.c: Likewise.
14827 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
14829         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14830         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14831         (futex_wake) [!__x86_64__]: Ditto.
14833 2015-05-28  Julian Brown  <julian@codesourcery.com>
14835         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14836         function comment. Only call gomp_fatal if new argument is true.
14837         (acc_dev_num_out_of_range): New function.
14838         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14839         acc_dev_num_out_of_range as appropriate.
14840         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14841         (acc_get_device_num, acc_set_device_num): Update calls to
14842         resolve_device.
14843         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14844         output.
14846 2015-05-28  Julian Brown  <julian@codesourcery.com>
14848         PR libgomp/65742
14849         * oacc-init.c (plugin/plugin-host.h): Include.
14850         (acc_on_device): Check whether we're in an offloaded region for
14851         host_nonshm
14852         plugin. Don't use __builtin_acc_on_device.
14853         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14854         nonshm_exec flag in thread-local data.
14855         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14856         data for host_nonshm plugin.
14857         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14858         for host_nonshm plugin.
14859         * plugin/plugin-host.h: New.
14861 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14863         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14865 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14867         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14868         Declare as int.
14869         (FUTEX_PRIVATE_FLAG): Remove L suffix.
14870         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14871         Declare as int.
14873 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14875         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14877 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14879         * target.c (gomp_map_pointer): New function abstracting out
14880         GOMP_MAP_POINTER handling.
14881         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14882         gomp_map_pointer().
14884 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14886         PR middle-end/66199
14887         * testsuite/libgomp.c/pr66199-1.c: New test.
14888         * testsuite/libgomp.c/pr66199-2.c: New test.
14889         * testsuite/libgomp.c++/pr66199-1.C: New test.
14890         * testsuite/libgomp.c++/pr66199-2.C: New test.
14891         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14892         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14894 2015-05-19  Julian Brown  <julian@codesourcery.com>
14896         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14897         on cuInit failure.
14899 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
14901         PR middle-end/66133
14902         * testsuite/libgomp.c/pr66133.c: New test.
14904 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14906         * Makefile.in: Regenerated with automake-1.11.6.
14907         * aclocal.m4: Likewise.
14908         * config.h.in: Likewise.
14909         * configure: Likewise.
14910         * testsuite/Makefile.in: Likewise.
14912 2015-05-08  Jason Merrill  <jason@redhat.com>
14914         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14915         _Complex.
14917         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14919 2015-05-06  Julian Brown  <julian@codesourcery.com>
14921         * oacc-init.c (acc_device_lock): Add explanatory comment.
14922         (resolve_device): Add comment about locking requirement.
14923         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14924         gomp_init_device and gomp_fini_device calls.
14925         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14926         (acc_get_device_num, acc_set_device_num): Add locking around
14927         resolve_device and gomp_init_device calls.
14929 2015-05-06  Julian Brown  <julian@codesourcery.com>
14931         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14932         goacc_thread_lock on error paths.
14933         * oacc-mem.c (lookup_host): Remove locking from function. Note
14934         locking requirement for caller in function comment.
14935         (lookup_dev): Likewise.
14936         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14937         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14938         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14939         Add locking.
14941 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
14943         PR testsuite/65205
14944         PR libgomp/65993
14945         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14946         don't expect "0x" prefix for "%p" format specifier, don't expect
14947         "(nil)" for NULL pointer.
14948         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14949         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14950         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14951         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14952         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14953         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14954         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14955         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14956         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14957         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14958         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14959         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14960         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14961         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14962         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14963         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14964         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14965         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14966         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14967         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14968         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14969         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14970         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14971         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14972         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14973         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14974         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14975         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14976         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14977         accurately specify what we're looking for.
14978         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14979         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14980         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14981         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14982         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14984 2015-04-30  James Norris  <jnorris@codesourcery.com>
14986         PR testsuite/65205
14987         * testsuite/lib/libgomp.exp
14988         (check_effective_target_openacc_host_selected)
14989         (check_effective_target_openacc_host_nonshm_selected): New
14990         procedures.
14991         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14992         dg-shouldfail.
14993         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14994         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14995         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14996         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14997         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14998         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14999         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15000         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15001         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15002         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15003         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15004         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15005         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15006         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15007         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15008         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15009         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15010         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15011         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15012         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15013         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15014         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15015         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15016         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15017         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15018         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15019         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15020         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15021         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15022         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15023         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15024         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15025         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15026         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15027         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15028         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15029         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15030         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15031         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15032         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15033         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15034         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15035         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15037 2015-04-08  Julian Brown  <julian@codesourcery.com>
15039         * libgomp.h (target_mem_desc: Remove mem_map field.
15040         (acc_dispatch_t): Remove open_device_func, close_device_func,
15041         get_device_num_func, set_device_num_func, target_data members.
15042         Change create_thread_data_func argument to device number instead of
15043         generic pointer.
15044         * oacc-async.c (assert.h): Include.
15045         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15046         (acc_wait_all, acc_wait_all_async): Use current host thread's
15047         active device, not base_dev.
15048         * oacc-cuda.c (acc_get_current_cuda_device)
15049         (acc_get_current_cuda_context, acc_get_cuda_stream)
15050         (acc_set_cuda_stream): Likewise.
15051         * oacc-host.c (host_dispatch): Don't set open_device_func,
15052         close_device_func, get_device_num_func or set_device_num_func.
15053         * oacc-init.c (base_dev, init_key): Remove.
15054         (cached_base_dev): New.
15055         (name_of_acc_device_t): New.
15056         (acc_init_1): Initialise default-numbered device, not zeroth.
15057         (acc_shutdown_1): Close all devices of a given type.
15058         (goacc_destroy_thread): Don't use base_dev.
15059         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15060         (goacc_attach_host_thread_to_device): New.
15061         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15062         (acc_get_num_devices): Don't use base_dev.
15063         (acc_set_device_type): Reimplement.
15064         (acc_get_device_type): Don't use base_dev.
15065         (acc_get_device_num): Tweak logic.
15066         (acc_set_device_num): Likewise.
15067         (acc_on_device): Use acc_get_device_type.
15068         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15069         (goacc_lazy_initialize): Reimplement with acc_init and
15070         goacc_attach_host_thread_to_device.
15071         * oacc-int.h (goacc_thread): Add base_dev field.
15072         (base_dev): Remove extern declaration.
15073         (goacc_attach_host_thread_to_device): Add prototype.
15074         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15075         base_dev.
15076         (acc_free): Likewise.
15077         (acc_memcpy_to_device): Likewise.
15078         (acc_memcpy_from_device): Likewise.
15079         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15080         goacc_lazy_initialize (throughout).
15081         (GOACC_parallel): Use tgt_offset to locate target functions.
15082         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15083         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15084         (gomp_load_plugin_for_device): Remove open_device, close_device,
15085         get_device_num, set_device_num openacc hook initialisation. Don't set
15086         openacc.target_data.
15087         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15088         (GOMP_OFFLOAD_openacc_close_device)
15089         (GOMP_OFFLOAD_openacc_get_device_num)
15090         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15091         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15092         to int.
15093         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15094         (instantiated_devices, ptx_dev_lock): New.
15095         (struct ptx_image_data): New.
15096         (ptx_devices, ptx_images, ptx_image_lock): New.
15097         (fini_streams_for_device): Reorder cuStreamDestroy call.
15098         (nvptx_get_num_devices): Remove forward declaration.
15099         (nvptx_init): Change return type to bool.
15100         (nvptx_fini): Remove.
15101         (nvptx_attach_host_thread_to_device): New.
15102         (nvptx_open_device): Return struct ptx_device* instead of void*.
15103         (nvptx_close_device): Change argument type to struct ptx_device*,
15104         return type to void.
15105         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15106         (kernel_target_data, kernel_host_table): Remove static globals.
15107         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15108         (GOMP_OFFLOAD_init_device): Reimplement.
15109         (GOMP_OFFLOAD_fini_device): Likewise.
15110         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15111         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15112         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15113         (GOMP_OFFLOAD_openacc_open_device)
15114         (GOMP_OFFLOAD_openacc_close_device)
15115         (GOMP_OFFLOAD_openacc_set_device_num)
15116         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15117         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15118         (device number).
15120         testsuite/
15121         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15123 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15125         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15126         * libgomp.h (struct gomp_memory_mapping): Remove.
15127         (struct target_mem_desc): Change type of mem_map from
15128         gomp_memory_mapping * to splay_tree_s *.
15129         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15130         Add load_image_func, unload_image_func.
15131         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15132         Remove offload_regions_registered.
15133         (gomp_init_tables): Remove.
15134         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15135         to splay_tree_s *.
15136         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15137         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15138         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15139         offload_regions_registered.
15140         Initialize load_image_func, unload_image_func, mem_map.root.
15141         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15142         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15143         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15144         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15145         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15146         (lookup_dev): Use dev's lock.
15147         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15148         (acc_is_present): Likewise.
15149         (acc_map_data): Likewise.
15150         (acc_unmap_data): Likewise.  Use dev's lock.
15151         (present_create_copy): Likewise.
15152         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15153         (update_dev_host): Likewise.
15154         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15155         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15156         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15157         (GOMP_OFFLOAD_get_table): Remove
15158         (GOMP_OFFLOAD_load_image): New function.
15159         (GOMP_OFFLOAD_unload_image): New function.
15160         * target.c (register_lock): New mutex for offload image registration.
15161         (num_devices): Do not guard with PLUGIN_SUPPORT.
15162         (gomp_realloc_unlock): New static function.
15163         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15164         before gomp_fatal.
15165         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15166         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15167         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15168         mem_map's.
15169         (gomp_unmap_vars): Likewise.
15170         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15171         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15172         (gomp_offload_image_to_device): New static function.
15173         (GOMP_offload_register): Add mutex lock.
15174         Call gomp_offload_image_to_device for all initialized devices.
15175         Replace gomp_realloc with gomp_realloc_unlock.
15176         (GOMP_offload_unregister): New function.
15177         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15178         get_table_func from the plugin with calls to init_device_func and
15179         gomp_offload_image_to_device.
15180         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15181         to splay_tree_s *.
15182         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15183         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15184         (GOMP_target_data): Do not call gomp_init_tables.
15185         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
15186         (gomp_load_plugin_for_device): Replace register_image and get_table
15187         with load_image and unload_image in DLSYM ().
15188         (gomp_register_images_for_device): Remove function.
15189         (gomp_target_init): Do not initialize current_device.mem_map.*,
15190         current_device.offload_regions_registered.
15191         Remove call to gomp_register_images_for_device.
15192         Do not free offload_images and num_offload_images.
15194 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15196         PR fortran/65597
15197         * testsuite/libgomp.fortran/pr65597.f90: New test.
15199 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15201         PR testsuite/65594
15202         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15203         (init, check): New function.
15204         (foo): Change return type to void.
15205         (main): Call init and check.
15207 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15209         PR testsuite/65594
15210         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15211         (foo): Use M for non-inner loops to scale down test-case.
15213 2015-03-25  Kai Tietz  <ktietz@redhat.com>
15215         PR libgomp/64972
15216         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15217         (GOACC_data_start): Likewise.
15218         * target.c (gomp_map_vars): Likewise.
15220 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
15222         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15223         hppa*-*-hpux*.
15225 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15227         * testsuite/libgomp.c/target-10.c: New test.
15228         * testsuite/libgomp.c++/target-4.C: New test.
15230 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15232         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15233         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15235 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15237         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15238         * configure.ac (*-*-rtems*): Assume Pthread is supported.
15239         (pthread.h): Check for this header file.
15240         * configure: Regenerate.
15242 2015-02-25  Tom de Vries  <tom@codesourcery.com>
15244         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15245         (check_reduction_op, check_reduction_macro, max, min):
15246         Declare.
15247         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15248         function.
15249         (main): Use new functions.
15251 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
15253         * target.c (gomp_load_plugin_for_device): Use const char * instead of
15254         char * for variables holding dlerror return values.
15255         (DLSYM_OPT): Ditto.
15257 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15259         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15261 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15262             Cesar Philippidis  <cesar@codesourcery.com>
15264         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15265         GOACC_ctaid, and GOACC_nctaid routines.
15267 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15269         PR c/64824
15270         * testsuite/libgomp.c/atomic-18.c: New test.
15271         * testsuite/libgomp.c++/atomic-16.C: New test.
15273 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15275         PR c/64824
15276         PR c/64868
15277         * testsuite/libgomp.c/pr64824.c: New test.
15278         * testsuite/libgomp.c/pr64868.c: New test.
15279         * testsuite/libgomp.c++/pr64824.C: New test.
15280         * testsuite/libgomp.c++/pr64868.C: New test.
15282 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15284         PR libgomp/64635
15285         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15286         Link with -lpthread.
15287         * config/aix/plugin-suffix.h: Delete.
15289 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
15291         PR libgomp/64635
15292         * configure.tgt (*-*-aix*): Use config_path "aix posix".
15293         (*-*-darwin*): Use config_path "bsd darwin posix".
15294         (*-*-hpux*): Use config_path "hpux posix".
15295         * target.c: Add include of plugin-suffix.h and use
15296         SONAME_SUFFIX macro.
15297         * config/aix/plugin-suffix.h: New file.
15298         * config/darwin/plugin-suffix.h: New file.
15299         * config/hpux/plugin-suffix.h: New file.
15300         * config/posix/plugin-suffix.h: New file.
15302 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15304         PR middle-end/64734
15305         * libgomp.c/pr64734.c: New test.
15307 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15309         PR libgomp/64672
15310         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15312 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15314         PR libgomp/64707
15315         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15316         dg-options.
15318 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15320         PR libgomp/64625
15321         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15322         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15323         formal parameter.  Update all users.
15324         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15325         Document unused formal parameter.
15327 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
15329         * oacc-parallel.c: Don't include <alloca.h>.
15330         (GOACC_parallel): Use gomp_alloca instead of alloca.
15332 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
15334         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15336 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15337             James Norris  <jnorris@codesourcery.com>
15338             Tom de Vries  <tom@codesourcery.com>
15339             Julian Brown  <julian@codesourcery.com>
15340             Cesar Philippidis  <cesar@codesourcery.com>
15341             Nathan Sidwell  <nathan@codesourcery.com>
15342             Tobias Burnus  <burnus@net-b.de>
15344         * Makefile.am (search_path): Add $(top_srcdir)/../include.
15345         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15346         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15347         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15348         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15349         Include $(top_srcdir)/plugin/Makefrag.am.
15350         (nodist_libsubinclude_HEADERS): Add openacc.h.
15351         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15352         openacc.f90, openacc.mod, openacc_kinds.mod.
15353         (omp_lib.mod): Generalize into...
15354         (%.mod): ... this new rule.
15355         (openacc_kinds.mod, openacc.mod): New rules.
15356         * plugin/configfrag.ac: New file.
15357         * configure.ac: Move plugin/offloading support into it.  Include
15358         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
15359         * plugin/Makefrag.am: New file.
15360         * testsuite/Makefile.am (OFFLOAD_TARGETS)
15361         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15362         export.
15363         (libgomp-test-support.exp): New rule.
15364         (all-local): Depend on it.
15365         * Makefile.in: Regenerate.
15366         * testsuite/Makefile.in: Regenerate.
15367         * config.h.in: Likewise.
15368         * configure: Likewise.
15369         * configure.tgt: Harden shell syntax.
15370         * env.c: Include "oacc-int.h".
15371         (parse_acc_device_type): New function.
15372         (gomp_debug_var, goacc_device_type, goacc_device_num): New
15373         variables.
15374         (initialize_env): Initialize those.  Call
15375         goacc_runtime_initialize.
15376         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15377         (gomp_fatal): Call gomp_vfatal.
15378         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15379         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15380         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15381         (splay_tree_node, splay_tree, splay_tree_key)
15382         (struct target_mem_desc, struct splay_tree_key_s)
15383         (struct gomp_memory_mapping, struct acc_dispatch_t)
15384         (struct gomp_device_descr, gomp_acc_insert_pointer)
15385         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15386         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15387         (gomp_free_memmap, gomp_fini_device): New declarations.
15388         (gomp_vdebug, gomp_debug): New macros.
15389         Include "splay-tree.h".
15390         * libgomp.map (OACC_2.0): New symbol version.  Use for
15391         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15392         acc_set_device_type_h_, acc_get_device_type,
15393         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15394         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15395         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15396         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15397         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15398         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15399         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15400         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15401         acc_copyin_array_h_, acc_present_or_copyin,
15402         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15403         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15404         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15405         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15406         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15407         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15408         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15409         acc_update_device, acc_update_device_32_h_,
15410         acc_update_device_64_h_, acc_update_device_array_h_,
15411         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15412         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15413         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15414         acc_is_present_64_h_, acc_is_present_array_h_,
15415         acc_memcpy_to_device, acc_memcpy_from_device,
15416         acc_get_current_cuda_device, acc_get_current_cuda_context,
15417         acc_get_cuda_stream, acc_set_cuda_stream.
15418         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
15419         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15420         GOACC_update, GOACC_wait, GOACC_get_thread_num,
15421         GOACC_get_num_threads.
15422         (GOMP_PLUGIN_1.0): New symbol version.  Use for
15423         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15424         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15425         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15426         GOMP_PLUGIN_acc_thread.
15427         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15428         environment variable.
15429         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15430         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15431         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15432         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15433         (splay_tree_remove): New declarations.
15434         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15435         (splay_tree_remove, splay_tree_lookup): Move into...
15436         * splay-tree.c: ... this new file.
15437         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15438         (splay_tree_node, splay_tree, splay_tree_key)
15439         (struct target_mem_desc, struct splay_tree_key_s)
15440         (struct gomp_device_descr): Don't declare.
15441         (num_devices_openmp): New variable.
15442         (gomp_get_num_devices ): Use it.
15443         (gomp_init_targets_once): New function.
15444         (gomp_get_num_devices ): Use it.
15445         (get_kind, gomp_copy_from_async, gomp_free_memmap)
15446         (gomp_fini_device, gomp_register_image_for_device): New functions.
15447         (gomp_map_vars): Add devaddrs parameter.
15448         (gomp_update): Add mm parameter.
15449         (gomp_init_device): Move most of it into...
15450         (gomp_init_tables): ... this new function.
15451         (gomp_register_images_for_device): Remove function.
15452         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15453         Make them hidden instead of static.
15454         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15455         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15456         (GOMP_target_end_data, GOMP_target_update)
15457         (gomp_load_plugin_for_device, gomp_target_init): Update for
15458         OpenACC changes.
15459         * oacc-async.c: New file.
15460         * oacc-cuda.c: Likewise.
15461         * oacc-host.c: Likewise.
15462         * oacc-init.c: Likewise.
15463         * oacc-int.h: Likewise.
15464         * oacc-mem.c: Likewise.
15465         * oacc-parallel.c: Likewise.
15466         * oacc-plugin.c: Likewise.
15467         * oacc-plugin.h: Likewise.
15468         * oacc-ptx.h: Likewise.
15469         * openacc.f90: Likewise.
15470         * openacc.h: Likewise.
15471         * openacc_lib.h: Likewise.
15472         * plugin/plugin-host.c: Likewise.
15473         * plugin/plugin-nvptx.c: Likewise.
15474         * libgomp-plugin.c: Likewise.
15475         * libgomp-plugin.h: Likewise.
15476         * libgomp_target.h: Remove file after merging content into the
15477         former file.  Update all users.
15478         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15479         (offload_targets_s, offload_targets_s_openacc): New variables.
15480         (check_effective_target_openacc_nvidia_accel_present)
15481         (check_effective_target_openacc_nvidia_accel_selected): New
15482         procedures.
15483         (libgomp_init): Update for OpenACC changes.
15484         * testsuite/libgomp-test-support.exp.in: New file.
15485         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15486         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15487         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15488         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15489         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15490         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15491         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15492         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15493         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15494         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15495         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15496         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15497         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15498         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15499         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15500         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15501         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15502         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15503         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15504         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15505         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15506         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15507         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15508         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15509         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15510         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15511         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15512         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15513         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15514         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15515         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15516         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15517         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15518         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15519         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15520         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15521         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15522         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15523         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15524         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15525         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15526         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15527         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15528         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15529         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15530         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15531         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15532         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15533         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15534         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15535         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15536         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15537         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15538         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15539         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15540         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15541         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15542         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15543         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15544         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15545         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15546         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15547         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15548         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15549         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15550         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15551         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15552         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15553         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15554         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15555         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15556         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15557         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15558         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15559         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15560         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15561         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15562         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15563         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15564         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15565         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15566         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15567         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15568         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15569         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15570         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15571         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15572         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15573         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15574         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15575         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15576         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15577         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15578         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15579         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15580         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15581         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15582         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15583         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15584         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15585         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15586         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15587         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15588         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15589         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15590         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15591         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15592         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15593         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15594         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15595         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15596         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15597         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15598         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15599         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15600         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15601         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15602         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15603         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15604         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15605         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15606         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15607         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15608         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15609         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15610         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15611         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15612         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15613         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15614         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15615         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15616         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15617         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15618         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15619         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15620         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15621         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15622         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15623         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15624         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15625         Likewise.
15626         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15627         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15628         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15629         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15630         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15631         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15632         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15633         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15634         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15635         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15636         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15637         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15638         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15639         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15640         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15641         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15642         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15643         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15644         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15645         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15646         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15647         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15648         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15649         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15650         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15651         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15652         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15653         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15654         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15655         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15656         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15657         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15658         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15659         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15660         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15661         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15662         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15663         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15664         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15665         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15666         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15667         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15668         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15669         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15670         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15671         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15672         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15673         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15674         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15675         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15676         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15677         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15678         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15679         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15680         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15681         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15682         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15683         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15684         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15685         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15687 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15688             Julian Brown  <julian@codesourcery.com>
15689             David Malcolm  <dmalcolm@redhat.com>
15691         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15692         to "GNU Offloading and Multi Processing Runtime Library".  Change
15693         all users.
15694         * configure: Regenerate.
15695         * libgomp.texi: Update.
15697 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15699         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15700         "$tgt_dir/lib32".
15701         * configure: Regenerate.
15703         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15704         "intelmic" in $offload_targets.
15706 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15708         Update copyright years.
15710         * libgomp.texi: Bump @copying's copyright year.
15712 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15714         * testsuite/lib/libgomp.exp: Load target-utils.exp.
15715         Move load of target-supports.exp earlier.
15717 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
15719         * testsuite/libgomp.c/target-9.c: New test.
15721 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
15723         * config.h.in: Regenerate.
15724         * configure: Regenerate.
15725         * configure.ac: Add GCC_CHECK_EMUTLS.
15726         * libgomp.h: Add check for USE_EMUTLS: this case
15727         is equal to HAVE_TLS.
15728         * team.c: Likewise.
15730 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
15732         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15734 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15735             Ilya Verbin  <ilya.verbin@intel.com>
15737         * testsuite/libgomp.c/target-critical-1.c: New test.
15739 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
15741         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15742         to dg-options unless expensive testing is on.
15743         (TESTITERS): Define to N if not defined.
15744         (main): Use TESTITERS instead of N.
15745         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15746         dg-additional-options depending on whether expensive testing is on.
15747         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15748         Decrease N to 100000 and CHUNKSZ to 10000.
15750 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
15752         PR fortran/63938
15753         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15754         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15756 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
15758         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15760 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15762         PR bootstrap/63784
15763         * configure: Regenerated.
15765 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
15767         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15768         vect_simd_clones effective target.
15769         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15771 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
15773         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15774         of 32 as block_size.
15775         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15776         instead of 32 as block_size.
15778 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15779             Ilya Verbin  <ilya.verbin@intel.com>
15781         * Makefile.in: Regenerate.
15782         * configure: Regenerate.
15783         * configure.ac: Set up offload_additional_options,
15784         offload_additional_lib_paths and offload_targets.
15785         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15786         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15787         * testsuite/Makefile.in: Regenerate.
15788         * testsuite/lib/libgomp.exp (libgomp_init): Append
15789         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
15790         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
15791         build directory to LD_LIBRARY_PATH for intelmic offload targets.
15793 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15794             Ilya Verbin  <ilya.verbin@intel.com>
15795             Kirill Yukhin  <kirill.yukhin@intel.com>
15796             Ilya Tocar  <ilya.tocar@intel.com>
15798         * testsuite/lib/libgomp.exp
15799         (check_effective_target_offload_device): New.
15800         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15801         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15802         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15803         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15804         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15805         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15806         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15807         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15808         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15809         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15810         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15811         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15812         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15813         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15814         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15815         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15816         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15817         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15818         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15819         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15820         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15821         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15822         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15823         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15824         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15825         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15826         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15827         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15828         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15829         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15830         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15831         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15832         * testsuite/libgomp.c/target-7.c: Fix test.
15833         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15834         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15835         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15836         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15837         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15838         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15839         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15840         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15841         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15842         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15843         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15844         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15845         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15846         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15847         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15848         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15849         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15850         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15851         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15852         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15853         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15854         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15855         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15856         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15857         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15858         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15859         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15860         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15861         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15862         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15863         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15865 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
15866             Ilya Verbin  <ilya.verbin@intel.com>
15867             Thomas Schwinge  <thomas@codesourcery.com>
15868             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15870         * libgomp.map (GOMP_4.0.1): New symbol version.
15871         Add GOMP_offload_register.
15872         * libgomp_target.h: New file.
15873         * splay-tree.h: New file.
15874         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15875         (gomp_target_init): New forward declaration.
15876         (gomp_is_initialized): New static variable.
15877         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15878         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15879         New structures.
15880         (offload_images, num_offload_images, devices, num_devices): New static
15881         variables.
15882         (splay_compare): New static function.
15883         (struct gomp_device_descr): New structure.
15884         (gomp_get_num_devices): Call gomp_target_init.
15885         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15886         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15887         (GOMP_offload_register): New function.
15888         (GOMP_target): Arrange for host callback to be performed in a separate
15889         initial thread and contention group, inheriting ICVs from
15890         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
15891         Add device initialization and lookup for target function in splay tree.
15892         (GOMP_target_data): Add device initialization and call gomp_map_vars.
15893         (GOMP_target_end_data): Call gomp_unmap_vars.
15894         (GOMP_target_update): Add device initialization and call gomp_update.
15895         (gomp_load_plugin_for_device, gomp_register_images_for_device)
15896         (gomp_target_init): New static functions.
15898 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
15899             Thomas Schwinge  <thomas@codesourcery.com>
15900             Ilya Verbin  <ilya.verbin@intel.com>
15901             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15903         * config.h.in: Regenerate.
15904         * configure: Regenerate.
15905         * configure.ac: Check for libdl, required for plugin support.
15906         (PLUGIN_SUPPORT): Define if plugins are supported.
15907         (enable_offload_targets): Support Intel MIC targets.
15908         (OFFLOAD_TARGETS): List of target names suitable for offloading.
15910 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15912         PR target/63610
15913         * configure: Regenerate.
15915 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15917         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15919 2014-10-06  Marek Polacek  <polacek@redhat.com>
15921         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15922         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15923         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15924         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15926 2014-10-06  Marek Polacek  <polacek@redhat.com>
15928         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15929         * testsuite/libgomp.c/nqueens-1.c: Likewise.
15930         * testsuite/libgomp.c/pr26943-3.c: Likewise.
15931         * testsuite/libgomp.c/pr26943-4.c: Likewise.
15932         * testsuite/libgomp.c/pr36802-2.c: Likewise.
15933         * testsuite/libgomp.c/pr36802-3.c: Likewise.
15934         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15935         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15936         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15937         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15938         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15939         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15940         * testsuite/libgomp.c/omp-single-1.c: Likewise.
15941         * testsuite/libgomp.c/omp-single-2.c: Likewise.
15942         * testsuite/libgomp.c/omp_matvec.c: Likewise.
15943         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15944         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15945         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
15946         declarations.
15948 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
15950         PR libgomp/61200
15951         * testsuite/libgomp.c/pr61200.c: New test.
15953 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
15955         PR c++/63248
15956         * testsuite/libgomp.c++/pr63248.C: New test.
15958 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
15960         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15961         is not zero, but taskgroup->children is NULL and there are
15962         any task->children, schedule those instead of waiting.
15963         * testsuite/libgomp.c/depend-6.c: New test.
15964         * testsuite/libgomp.c/depend-7.c: New test.
15965         * testsuite/libgomp.c/depend-8.c: New test.
15966         * testsuite/libgomp.c/depend-9.c: New test.
15967         * testsuite/libgomp.c/depend-10.c: New test.
15969 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
15971         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15972         (struct gomp_taskwait): New type.
15973         (struct gomp_task): Add taskwait and parent_depends_on, remove
15974         in_taskwait and taskwait_sem fields.
15975         (gomp_finish_task): Don't destroy taskwait_sem.
15976         * task.c (gomp_init_task): Don't init in_taskwait, instead init
15977         taskwait and parent_depends_on.
15978         (GOMP_task): For if (0) tasks with depend clause that depend on
15979         earlier tasks don't defer them, instead call
15980         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15981         Initialize redundant_out field, for redundant out entries just
15982         move them at the end of linked list instead of removing them
15983         completely, and set redundant_out flag instead of redundant.
15984         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15985         that task.
15986         (gomp_task_run_post_handle_dependers): If parent is in
15987         gomp_task_maybe_wait_for_dependencies and newly runnable task
15988         is not parent_depends_on, queue it in parent->children linked
15989         list after all runnable tasks with parent_depends_on set.
15990         Adjust for addition of taskwait indirection.
15991         (gomp_task_run_post_remove_parent): If parent is in
15992         gomp_task_maybe_wait_for_dependencies and task to be removed
15993         is parent_depends_on, decrement n_depend and if needed awake
15994         parent.  Adjust for addition of taskwait indirection.
15995         (GOMP_taskwait): Adjust for addition of taskwait indirection.
15996         (gomp_task_maybe_wait_for_dependencies): New function.
15997         * testsuite/libgomp.c/depend-5.c: New test.
15999 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16001         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16002         with TS 18508/Fortran 2015.
16004 2014-07-06  Marek Polacek  <polacek@redhat.com>
16006         PR c/6940
16007         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16009 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16011         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16012         matches regex $lang_source_re, add $lang_include_flags to options.
16013         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16014         * testsuite/libgomp.c++/c++.exp: Likewise.
16015         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16016         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16017         ALWAYS_CFLAGS.
16018         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16020 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16022         * testsuite/libgomp.fortran/fortran.exp: Explain
16023         gfortran-dg-runtest usage.
16025 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16027         * testsuite/libgomp.fortran/simd5.f90: New test.
16028         * testsuite/libgomp.fortran/simd6.f90: New test.
16029         * testsuite/libgomp.fortran/simd7.f90: New test.
16031 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16033         * testsuite/libgomp.c/for-2.c: Define SC to static for
16034         #pragma omp for simd testing.
16035         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16036         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16037         SC macro.
16038         * testsuite/libgomp.c/simd-14.c: New test.
16039         * testsuite/libgomp.c/simd-15.c: New test.
16040         * testsuite/libgomp.c/simd-16.c: New test.
16041         * testsuite/libgomp.c/simd-17.c: New test.
16042         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16043         #pragma omp for simd testing.
16044         * testsuite/libgomp.c++/simd10.C: New test.
16045         * testsuite/libgomp.c++/simd11.C: New test.
16046         * testsuite/libgomp.c++/simd12.C: New test.
16047         * testsuite/libgomp.c++/simd13.C: New test.
16049         * testsuite/libgomp.fortran/aligned1.f03: New test.
16050         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16051         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16052         tasks with !$omp parallel !$omp single.
16053         * testsuite/libgomp.fortran/target8.f90: New test.
16054         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16055         not to use trim in the combiner, instead call elemental function.
16056         (fn): New elemental function.
16057         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16058         Make elemental.
16059         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16060         omp_in): Likewise.
16061         * testsuite/libgomp.fortran/udr12.f90: New test.
16062         * testsuite/libgomp.fortran/udr13.f90: New test.
16063         * testsuite/libgomp.fortran/udr14.f90: New test.
16064         * testsuite/libgomp.fortran/udr15.f90: New test.
16066 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16068         * omp_lib.f90.in (openmp_version): Set to 201307.
16069         * omp_lib.h.in (openmp_version): Likewise.
16070         * testsuite/libgomp.c/target-8.c: New test.
16071         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16072         and inbranch clauses.
16073         * testsuite/libgomp.fortran/depend-3.f90: New test.
16074         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16075         openmp_version.
16076         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16077         * testsuite/libgomp.fortran/target1.f90: New test.
16078         * testsuite/libgomp.fortran/target2.f90: New test.
16079         * testsuite/libgomp.fortran/target3.f90: New test.
16080         * testsuite/libgomp.fortran/target4.f90: New test.
16081         * testsuite/libgomp.fortran/target5.f90: New test.
16082         * testsuite/libgomp.fortran/target6.f90: New test.
16083         * testsuite/libgomp.fortran/target7.f90: New test.
16085 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16087         PR fortran/60928
16088         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16089         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16090         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16091         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16092         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16093         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16094         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16095         * testsuite/libgomp.fortran/associate1.f90: New test.
16096         * testsuite/libgomp.fortran/associate2.f90: New test.
16097         * testsuite/libgomp.fortran/procptr1.f90: New test.
16099 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16101         * testsuite/libgomp.fortran/simd1.f90: New test.
16102         * testsuite/libgomp.fortran/udr1.f90: New test.
16103         * testsuite/libgomp.fortran/udr2.f90: New test.
16104         * testsuite/libgomp.fortran/udr3.f90: New test.
16105         * testsuite/libgomp.fortran/udr4.f90: New test.
16106         * testsuite/libgomp.fortran/udr5.f90: New test.
16107         * testsuite/libgomp.fortran/udr6.f90: New test.
16108         * testsuite/libgomp.fortran/udr7.f90: New test.
16109         * testsuite/libgomp.fortran/udr8.f90: New test.
16110         * testsuite/libgomp.fortran/udr9.f90: New test.
16111         * testsuite/libgomp.fortran/udr10.f90: New test.
16112         * testsuite/libgomp.fortran/udr11.f90: New test.
16114 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16116         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16117         vect_simd_clones effective target.
16118         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16120 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16122         PR middle-end/61252
16123         * testsuite/libgomp.c++/simd-9.C: New test.
16125 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16127         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16128         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16129         texts according to their @menu entry positions.
16131 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16133         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16134         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16135         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16136         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16137         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16138         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16139         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16140         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16141         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16142         * testsuite/libgomp.fortran/depend-1.f90: New test.
16143         * testsuite/libgomp.fortran/depend-2.f90: New test.
16144         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16145         * testsuite/libgomp.fortran/simd1.f90: New test.
16146         * testsuite/libgomp.fortran/simd2.f90: New test.
16147         * testsuite/libgomp.fortran/simd3.f90: New test.
16148         * testsuite/libgomp.fortran/simd4.f90: New test.
16149         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16151 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16153         * testsuite/libgomp.c/simd-10.c: New test.
16154         * testsuite/libgomp.c/simd-11.c: New test.
16155         * testsuite/libgomp.c/simd-12.c: New test.
16156         * testsuite/libgomp.c/simd-13.c: New test.
16158 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16160         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16161         atomic type clauses in any order and optional comma in between.
16162         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16163         * testsuite/libgomp.c/atomic-17.c: Likewise.
16165         * testsuite/libgomp.c/simd-7.c: New test.
16166         * testsuite/libgomp.c/simd-8.c: New test.
16167         * testsuite/libgomp.c/simd-9.c: New test.
16168         * testsuite/libgomp.c/loop-16.c: New test.
16170 2014-04-02  Richard Henderson  <rth@redhat.com>
16172         * config/linux/futex.h (futex_wait): Get error value from errno.
16173         (futex_wake): Likewise.
16175 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16177         PR c++/60331
16178         * testsuite/libgomp.c++/udr-11.C: New test.
16179         * testsuite/libgomp.c++/udr-12.C: New test.
16180         * testsuite/libgomp.c++/udr-13.C: New test.
16181         * testsuite/libgomp.c++/udr-14.C: New test.
16182         * testsuite/libgomp.c++/udr-15.C: New test.
16183         * testsuite/libgomp.c++/udr-16.C: New test.
16184         * testsuite/libgomp.c++/udr-17.C: New test.
16185         * testsuite/libgomp.c++/udr-18.C: New test.
16186         * testsuite/libgomp.c++/udr-19.C: New test.
16188 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16190         Update copyright years
16192 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16194         * hashtab.h: Use the standard form for the copyright notice.
16196 2014-01-02  Tobias Burnus  <burnus@net-b.de>
16198         * libgomp.texi: Bump @copying's copyright year.
16200 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
16202         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16203         alloca () with __builtin_alloca ().
16204         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16205         * testsuite/libgomp.c/lock-3.c: Likewise.
16206         * testsuite/libgomp.c/pr48591.c: Likewise.
16208 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
16210         PR testsuite/59534
16211         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16212         comparisons.
16214 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
16216         PR libgomp/58756
16217         * testsuite/libgomp.c/pr58756.c: New test.
16219 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
16221         PR libgomp/59467
16222         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16223         !$omp parallel.
16225 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
16227         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16228         ALWAYS_CFLAGS.
16229         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16230         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16231         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16232         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16233         Likewise.
16235         * libgomp_g.h: Include <stddef.h> for size_t.
16237         * libgomp.spec.in: Update comment about libgomp's dependencies.
16238         * configure.ac: Likewise.
16239         * configure: Regenerate.
16241 2013-10-16  Tobias Burnus  <burnus@net-b.de>
16243         * libgomp.texi: (Runtime Library Routines): Update references for
16244         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16245         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16246         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16247         (Environment Variables): Update references for OpenMP 4.0. Add
16248         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16249         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16250         order.
16252 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
16254         * env.c (parse_bind_var): Initialize value to avoid
16255         (false positive) warning.
16257 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
16259         PR libgomp/58691
16260         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16261         to check variable.
16262         (gomp_init_num_threads): Move i variable declaration into
16263         #ifdef CPU_ALLOC_SIZE block.
16264         * config/linux/affinity.c (gomp_affinity_init_level): Test
16265         gomp_places_list_len == 0 rather than gomp_places_list == 0
16266         when checking for topology reading error.
16267         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16268         * env.c (parse_affinity): Add ignore argument, if true, don't populate
16269         gomp_places_list, only parse env var and always return false.
16270         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
16271         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16272         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16273         and either of these variables were parsed correctly into a places
16274         list.
16276 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16277             Jakub Jelinek  <jakub@redhat.com>
16279         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16280         of 5 loopfn matches.
16281         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16282         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16283         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16284         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16285         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16286         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16287         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16288         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16290 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16292         * Makefile.am (omp_lib.mod): Streamline rule.
16293         * Makefile.in: Regenerate.
16295         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16296         exceptions.
16298         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16299         * testsuite/libgomp.fortran/lib1.f90: Likewise.
16300         * testsuite/libgomp.fortran/lib2.f: Likewise.
16301         * testsuite/libgomp.fortran/lib3.f: Likewise.
16303         * configure.ac: Typo fix.
16304         * configure: Regenerate.
16306         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16307         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16309         * omp.h.in: Don't touch the user's namespace.
16311 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
16312             Tobias Burnus  <burnus@net-b.de>
16313             Richard Henderson  <rth@redhat.com>
16315         * target.c: New file.
16316         * Makefile.am (libgomp_la_SOURCES): Add target.c.
16317         * Makefile.in: Regenerated.
16318         * libgomp_g.h (GOMP_task): Add depend argument.
16319         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16320         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16321         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16322         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16323         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16324         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16325         GOMP_taskgroup_start, GOMP_taskgroup_end,
16326         GOMP_parallel_sections): New prototypes.
16327         * fortran.c (omp_is_initial_device): Add ialias_redirect.
16328         (omp_is_initial_device_): New function.
16329         (ULP, STR1, STR2, ialias_redirect): Removed.
16330         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16331         omp_set_default_device_8_, omp_get_default_device_,
16332         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16333         functions.
16334         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16335         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16336         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16337         @@GOMP_4.0.
16338         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16339         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16340         omp_set_default_device, omp_set_default_device_,
16341         omp_set_default_device_8_, omp_get_default_device,
16342         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16343         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16344         omp_get_team_num_): Export @@OMP_4.0.
16345         * team.c (struct gomp_thread_start_data): Add place field.
16346         (gomp_thread_start): Clear thr->thread_pool and
16347         thr->task before returning.  Use gomp_team_barrier_wait_final
16348         instead of gomp_team_barrier_wait.  Initialize thr->place.
16349         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16350         team_cancelled and task_queued_count fields.
16351         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16352         before calling pthread_exit.
16353         (gomp_free_thread): No longer static.  Use
16354         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16355         (gomp_team_start): Add flags argument.  Set
16356         thr->thread_pool->threads_busy to nthreads immediately after creating
16357         new pool.  Use gomp_managed_threads_lock instead of
16358         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
16359         (gomp_team_end): Use gomp_managed_threads_lock instead of
16360         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
16361         of gomp_team_barrier_wait.  If team->team_cancelled, call
16362         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16363         rather than thr->ts.work_share.
16364         (initialize_team): Don't call gomp_sem_init here.
16365         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16366         caller.
16367         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16368         * env.c (gomp_global_icv): Add default_device_var, target_data and
16369         bind_var initializers.
16370         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16371         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16372         gomp_places_list_len): New variables.
16373         (parse_bind_var, parse_one_place, parse_places_var): New functions.
16374         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16375         sized places.
16376         (gomp_cancel_var): New global variable.
16377         (parse_int): New function.
16378         (handle_omp_display_env): New function.
16379         (initialize_env): Use it.  Initialize default_device_var.
16380         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
16381         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
16382         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
16383         been successfully parsed (and call gomp_init_affinity in that case).
16384         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16385         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16386         omp_get_team_num, omp_is_initial_device): New functions.
16387         * libgomp.h: Include stdlib.h.
16388         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16389         Define.
16390         (struct target_mem_desc): Forward declare.
16391         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16392         and thread_limit_var fields.
16393         (gomp_get_num_devices): New prototype.
16394         (gomp_cancel_var): New extern decl.
16395         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16396         team_cancelled and task_queued_count fields.  Add comments about
16397         task_{,queued_,running_}count.
16398         (gomp_cancel_kind): New enum.
16399         (gomp_work_share_end_cancel): New prototype.
16400         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16401         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16402         and depend fields.
16403         (struct gomp_taskgroup): New type.
16404         (struct gomp_task_depend_entry,
16405         struct gomp_dependers_vec): New types.
16406         (gomp_finish_task): Free depend_hash if non-NULL.
16407         (struct gomp_team_state): Add place_partition_off
16408         and place_partition_len fields.
16409         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16410         gomp_places_list_len): New extern decls.
16411         (struct gomp_thread): Add place field.
16412         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16413         (gomp_init_thread_affinity): Add place argument.
16414         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16415         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16416         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16417         gomp_affinity_init_level, gomp_affinity_print_place): New
16418         prototypes.
16419         (gomp_team_start): Add flags argument.
16420         (gomp_thread_limit_var, gomp_remaining_threads_count,
16421         gomp_remaining_threads_lock): Remove.
16422         (gomp_managed_threads_lock): New variable.
16423         (struct gomp_thread_pool): Add threads_busy field.
16424         (gomp_free_thread): New prototype.
16425         * task.c: Include hashtab.h.
16426         (hash_entry_type): New typedef.
16427         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16428         (gomp_init_task): Clear dependers, depend_hash, depend_count,
16429         copy_ctors_done and taskgroup fields.
16430         (GOMP_task): Add depend argument, handle depend clauses.  If
16431         gomp_team_barrier_cancelled or if it's taskgroup has been
16432         cancelled, don't queue or start new tasks.  Set copy_ctors_done
16433         field if needed.  Initialize taskgroup field.  If copy_ctors_done
16434         and already cancelled, don't discard the task.  If taskgroup is
16435         non-NULL, enqueue the task into taskgroup queue.  Increment
16436         num_children field in taskgroup.  Increment task_queued_count.
16437         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16438         gomp_task_run_post_remove_taskgroup): New inline functions.
16439         (gomp_task_run_post_handle_depend_hash,
16440         gomp_task_run_post_handle_dependers,
16441         gomp_task_run_post_handle_depend): New functions.
16442         (GOMP_taskwait): Use them.  If more than one new tasks
16443         have been queued, wake other threads if needed.
16444         (gomp_barrier_handle_tasks): Likewise.  If
16445         gomp_team_barrier_cancelled, don't start any new tasks, just free
16446         all tasks.
16447         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16448         * omp_lib.f90.in
16449         (omp_proc_bind_kind, omp_proc_bind_false,
16450         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16451         omp_proc_bind_spread): New params.
16452         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16453         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16454         omp_get_team_num, omp_is_initial_device): New interfaces.
16455         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16456         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16457         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16458         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16459         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16460         useless use omp_lib_kinds.
16461         * omp.h.in (omp_proc_bind_t): New typedef.
16462         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16463         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16464         omp_get_team_num, omp_is_initial_device): New prototypes.
16465         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16466         through to gomp_team_start.
16467         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16468         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16469         Adjust gomp_parallel_loop_start callers.
16470         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16471         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16472         GOMP_loop_end_cancel): New functions.
16473         (GOMP_parallel_end): Add ialias_redirect.
16474         * hashtab.h: New file.
16475         * libgomp.texi (Environment Variables): Minor cleanup,
16476         update section refs to OpenMP 4.0rc2.
16477         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16478         environment variables.
16479         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16480         team->work_shares_to_free to thr->ts.work_share before calling
16481         free_work_share.
16482         (gomp_work_share_end_cancel): New function.
16483         * config/linux/proc.c: Include errno.h.
16484         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16485         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16486         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
16487         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
16488         gomp_cpuset_size is sizeof (cpu_set_t).
16489         (gomp_init_num_threads): Initialize gomp_cpuset_size,
16490         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16491         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16492         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
16493         contain any logical CPUs.
16494         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16495         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
16496         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16497         pthread_getaffinity_np.  Check gomp_places_list instead of
16498         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
16499         * config/linux/bar.c (gomp_barrier_wait_end,
16500         gomp_barrier_wait_last): Use BAR_* defines.
16501         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
16502         from state where needed.  Set work_share_cancelled to 0 on last
16503         thread.
16504         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16505         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16506         functions.
16507         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16508         Add cpusetsize argument.
16509         (gomp_cpuset_size, gomp_cpusetp): Declare.
16510         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16511         (affinity_counter): Remove.
16512         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16513         if CPU_ALLOC_SIZE isn't defined.
16514         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16515         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16516         bind current thread to the first place.
16517         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
16518         pthread_setaffinity_np to gomp_places_list[place].
16519         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16520         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16521         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16522         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16523         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16524         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16525         (gomp_barrier_t): Add awaited_final field.
16526         (gomp_barrier_init): Initialize awaited_final field.
16527         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16528         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16529         prototypes.
16530         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
16531         defines.
16532         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16533         gomp_team_barrier_cancelled): New inline functions.
16534         (gomp_barrier_last_thread,
16535         gomp_team_barrier_set_task_pending,
16536         gomp_team_barrier_clear_task_pending,
16537         gomp_team_barrier_set_waiting_for_tasks,
16538         gomp_team_barrier_waiting_for_tasks,
16539         gomp_team_barrier_done): Use BAR_* defines.
16540         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16541         (gomp_barrier_wait_end): Use BAR_* defines.
16542         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16543         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16544         Use BAR_* defines.
16545         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16546         gomp_team_barrier_cancel): New functions.
16547         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16548         argument.
16549         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16550         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16551         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16552         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16553         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16554         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16555         (gomp_barrier_t): Add cancellable field.
16556         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16557         gomp_team_barrier_cancel): New prototypes.
16558         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16559         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16560         gomp_team_barrier_cancelled): New inline functions.
16561         (gomp_barrier_wait_start, gomp_barrier_last_thread,
16562         gomp_team_barrier_set_task_pending,
16563         gomp_team_barrier_clear_task_pending,
16564         gomp_team_barrier_set_waiting_for_tasks,
16565         gomp_team_barrier_waiting_for_tasks,
16566         gomp_team_barrier_done): Use BAR_* defines.
16567         * barrier.c (GOMP_barrier_cancel): New function.
16568         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16569         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16570         omp_proc_bind_spread): New params.
16571         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16572         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16573         omp_get_team_num, omp_is_initial_device): New externals.
16574         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16575         New functions.
16576         (gomp_resolve_num_threads): Adjust for thread_limit now being in
16577         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16578         infinity.  If not nested, just return minimum of max_num_threads
16579         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16580         to the returned value.  Otherwise, don't update atomically
16581         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16582         (GOMP_parallel_end): Adjust for thread_limit now being in
16583         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16584         infinity.  Adjust threads_busy in the pool rather than
16585         gomp_remaining_threads_count.  Remember team->nthreads and call
16586         gomp_team_end before adjusting threads_busy, if not nested
16587         afterwards, just set it to 1 non-atomically.  Add ialias.
16588         (GOMP_parallel_start): Adjust gomp_team_start caller.
16589         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16590         * testsuite/libgomp.c/affinity-1.c: New test.
16591         * testsuite/libgomp.c/atomic-15.c: New test.
16592         * testsuite/libgomp.c/atomic-16.c: New test.
16593         * testsuite/libgomp.c/atomic-17.c: New test.
16594         * testsuite/libgomp.c/cancel-for-1.c: New test.
16595         * testsuite/libgomp.c/cancel-for-2.c: New test.
16596         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16597         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16598         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16599         * testsuite/libgomp.c/cancel-sections-1.c: New test.
16600         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16601         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16602         * testsuite/libgomp.c/depend-1.c: New test.
16603         * testsuite/libgomp.c/depend-2.c: New test.
16604         * testsuite/libgomp.c/depend-3.c: New test.
16605         * testsuite/libgomp.c/depend-4.c: New test.
16606         * testsuite/libgomp.c/for-1.c: New test.
16607         * testsuite/libgomp.c/for-1.h: New file.
16608         * testsuite/libgomp.c/for-2.c: New test.
16609         * testsuite/libgomp.c/for-2.h: New file.
16610         * testsuite/libgomp.c/for-3.c: New test.
16611         * testsuite/libgomp.c/pr58392.c: New test.
16612         * testsuite/libgomp.c/simd-1.c: New test.
16613         * testsuite/libgomp.c/simd-2.c: New test.
16614         * testsuite/libgomp.c/simd-3.c: New test.
16615         * testsuite/libgomp.c/simd-4.c: New test.
16616         * testsuite/libgomp.c/simd-5.c: New test.
16617         * testsuite/libgomp.c/simd-6.c: New test.
16618         * testsuite/libgomp.c/target-1.c: New test.
16619         * testsuite/libgomp.c/target-2.c: New test.
16620         * testsuite/libgomp.c/target-3.c: New test.
16621         * testsuite/libgomp.c/target-4.c: New test.
16622         * testsuite/libgomp.c/target-5.c: New test.
16623         * testsuite/libgomp.c/target-6.c: New test.
16624         * testsuite/libgomp.c/target-7.c: New test.
16625         * testsuite/libgomp.c/taskgroup-1.c: New test.
16626         * testsuite/libgomp.c/thread-limit-1.c: New test.
16627         * testsuite/libgomp.c/thread-limit-2.c: New test.
16628         * testsuite/libgomp.c/thread-limit-3.c: New test.
16629         * testsuite/libgomp.c/udr-1.c: New test.
16630         * testsuite/libgomp.c/udr-2.c: New test.
16631         * testsuite/libgomp.c/udr-3.c: New test.
16632         * testsuite/libgomp.c++/affinity-1.C: New test.
16633         * testsuite/libgomp.c++/atomic-10.C: New test.
16634         * testsuite/libgomp.c++/atomic-11.C: New test.
16635         * testsuite/libgomp.c++/atomic-12.C: New test.
16636         * testsuite/libgomp.c++/atomic-13.C: New test.
16637         * testsuite/libgomp.c++/atomic-14.C: New test.
16638         * testsuite/libgomp.c++/atomic-15.C: New test.
16639         * testsuite/libgomp.c++/cancel-for-1.C: New test.
16640         * testsuite/libgomp.c++/cancel-for-2.C: New test.
16641         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16642         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16643         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16644         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16645         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16646         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16647         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16648         * testsuite/libgomp.c++/cancel-test.h: New file.
16649         * testsuite/libgomp.c++/for-9.C: New test.
16650         * testsuite/libgomp.c++/for-10.C: New test.
16651         * testsuite/libgomp.c++/for-11.C: New test.
16652         * testsuite/libgomp.c++/simd-1.C: New test.
16653         * testsuite/libgomp.c++/simd-2.C: New test.
16654         * testsuite/libgomp.c++/simd-3.C: New test.
16655         * testsuite/libgomp.c++/simd-4.C: New test.
16656         * testsuite/libgomp.c++/simd-5.C: New test.
16657         * testsuite/libgomp.c++/simd-6.C: New test.
16658         * testsuite/libgomp.c++/simd-7.C: New test.
16659         * testsuite/libgomp.c++/simd-8.C: New test.
16660         * testsuite/libgomp.c++/target-1.C: New test.
16661         * testsuite/libgomp.c++/target-2.C: New test.
16662         * testsuite/libgomp.c++/target-2-aux.cc: New file.
16663         * testsuite/libgomp.c++/target-3.C: New test.
16664         * testsuite/libgomp.c++/taskgroup-1.C: New test.
16665         * testsuite/libgomp.c++/udr-1.C: New test.
16666         * testsuite/libgomp.c++/udr-2.C: New test.
16667         * testsuite/libgomp.c++/udr-3.C: New test.
16668         * testsuite/libgomp.c++/udr-4.C: New test.
16669         * testsuite/libgomp.c++/udr-5.C: New test.
16670         * testsuite/libgomp.c++/udr-6.C: New test.
16671         * testsuite/libgomp.c++/udr-7.C: New test.
16672         * testsuite/libgomp.c++/udr-8.C: New test.
16673         * testsuite/libgomp.c++/udr-9.C: New test.
16675 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
16677         PR testsuite/57605
16678         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16679         ALWAYS_CFLAGS.
16681 2013-09-20  Alan Modra  <amodra@gmail.com>
16683         * configure: Regenerate.
16685 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
16687         * testsuite/libgomp.c/sections-2.c: New test.
16689 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16691         * testsuite/libgomp.fortran/strassen.f90:
16692         Add dg-skip-if aarch64_tiny.
16694 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
16695             Cesar Philippidis  <cesar@codesourcery.com>
16697         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16698         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16699         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16700         * testsuite/libgomp.fortran/fortran.exp: Likewise.
16701         * testsuite/libgomp.graphite/graphite.exp: Likewise.
16702         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16703         Use dg-runtest rather than gfortran-dg-runtest.
16705 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16707         * testsuite/libgomp.c/icv-2.c: Extend current handling of
16708         Linux-based x86 systems to cover all GNU systems.
16709         * testsuite/libgomp.c/lock-3.c: Likewise.
16710         * testsuite/libgomp.c/pr48591.c: Likewise.
16712 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
16714         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16715         GNU/Hurd, as done for Linux-based systems.
16717         * config/posix/ptrlock.h: Fix comment.
16719 2013-05-27  Tobias Burnus  <burnus@net-b.de>
16721         PR fortran/57423
16722         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16723         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16724         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16725         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16726         omp_destroy_nest_lock): Correct arguments to match the one in
16727         the OpenMP spec.
16728         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16729         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16730         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16731         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16733 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
16735         * testsuite/libgomp.c/loop-13.c: New test.
16736         * testsuite/libgomp.c/loop-14.c: New test.
16737         * testsuite/libgomp.c/loop-15.c: New test.
16738         * testsuite/libgomp.c++/loop-13.C: New test.
16739         * testsuite/libgomp.c++/loop-14.C: New test.
16740         * testsuite/libgomp.c++/loop-15.C: New test.
16742 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
16744         PR middle-end/56217
16745         * testsuite/libgomp.c++/pr56217.C: New test.
16747 2013-02-01  Alan Modra  <amodra@gmail.com>
16749         * task.c (GOMP_task, GOMP_taskwait): Comment.
16751 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
16752             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
16754         PR libgomp/55561
16755         * config/linux/wait.h (do_spin): Use atomic load for addr.
16756         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16757         for intptr and ptrlock.
16758         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16759         for ptrlock.
16761 2013-01-22  Alan Modra  <amodra@gmail.com>
16763         PR libgomp/51376
16764         PR libgomp/56073
16765         * task.c (GOMP_task): Revert 2011-12-09 change.
16766         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
16767         barrier to read task->children..
16768         (gomp_barrier_handle_tasks): ..and matching atomic store with
16769         release barrier here when setting parent->children to NULL.
16771 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
16772             Tobias Burnus  <burnus@net-b.de>
16774         PR driver/55884
16775         * testsuite/libgomp.fortran/fortran.exp: Use
16776         -fintrinsic-modules-path= instead of
16777         -fintrinsic-modules-path.
16779 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
16781         Update copyright years.
16783 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16785         * testsuite/libgomp.fortran/fortran.exp: Set
16786         -fintrinsic-modules-path.
16788 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16790         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16791         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16793 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
16795         PR libgomp/55411
16796         * team.c (gomp_free_thread): Decrease gomp_managed_threads
16797         if pool had any threads_used.
16799 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
16801         * testsuite/libgomp.c++/pr24455.C: Use
16802         -Wl,-undefined,dynamic_lookup on darwin.
16804 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
16806         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16808 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
16810         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16812 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
16813             Jim MacArthur  <jim.macarthur@arm.com>
16814             Marcus Shawcroft  <marcus.shawcroft@arm.com>
16815             Nigel Stephens  <nigel.stephens@arm.com>
16816             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16817             Richard Earnshaw  <rearnsha@arm.com>
16818             Sofiane Naci  <sofiane.naci@arm.com>
16819             Stephen Thomas  <stephen.thomas@arm.com>
16820             Tejas Belagod  <tejas.belagod@arm.com>
16821             Yufeng Zhang  <yufeng.zhang@arm.com>
16823         * configure.tgt: Add AArch64.
16825 2012-10-04  Jason Merrill  <jason@redhat.com>
16827         * testsuite/libgomp.c++/tls-init1.C: New.
16829 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
16831         * configure: Regenerated.
16833 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
16835         * config/linux/mips/futex.h (sys_futex0): Change to static
16836         function with noinline, nomips16 attributes under MIPS16. Adjust
16837         asm statement to place 'li v0,SYS_futex' immediately before
16838         syscall insn.
16840 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
16842         * libgomp.texi (Library Index): Renamed from "Index" to prevent
16843         conflict with index.html on case-insensitive file systems.
16845 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
16847         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16848         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16850 2012-07-02  Richard Guenther  <rguenther@suse.de>
16851             Michael Matz  <matz@suse.de>
16852             Tobias Grosser <tobias@grosser.es>
16853             Sebastian Pop <sebpop@gmail.com>
16855         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16856         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16857         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16858         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16860 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
16862         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16864 2012-06-22  Richard Guenther  <rguenther@suse.de>
16866         Merge from graphite branch
16867         2012-01-13  Tobias Grosser  <tobias@grosser.es>
16869         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16870         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16872 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
16874         PR middle-end/53580
16875         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16876         use GOMP_barrier () call instead.
16877         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16878         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16879         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16880         call GOMP_barrier instead.
16881         * testsuite/libgomp.fortran/vla5.f90: Likewise.
16883 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
16885         PR libgomp/52993
16886         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16887         argument to memset call.
16889 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16891         * configure: Regenerated.
16893 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16895         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16897 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
16899         PR bootstrap/52812
16900         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16902 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
16904         PR middle-end/52547
16905         * testsuite/libgomp.c/pr52547.c: New test.
16907 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16909         * testsuite/lib/libgomp.exp: load fortran-modules.exp
16911 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16913         * configure.tgt (mips-sgi-irix6*): Remove.
16915 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16917         * configure.tgt (alpha*-dec-osf*): Remove.
16919         * config/osf/sem.h: Remove.
16920         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16922 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16924         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16926 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16928         PR libstdc++/52188
16929         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16930         Remove ENABLE_SYMVERS_SOL2.
16931         * configure: Regenerate.
16932         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16933         (PREPROCESS): New variable.
16934         (libgomp.ver): New target.
16935         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16936         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16937         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16938         Use libgomp.ver.
16939         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16940         * Makefile.in: Regenerate.
16942 2012-02-14  Walter Lee  <walt@tilera.com>
16944         * configure.tgt: Handle tilegx and tilepro.
16945         * config/linux/tile/futex.h: New file.
16947 2012-02-08  Richard Guenther  <rguenther@suse.de>
16949         PR tree-optimization/46886
16950         * testsuite/libgomp.c/pr46886.c: New testcase.
16952 2012-01-25  Matthias Klose  <doko@ubuntu.com>
16954         * config/linux/arm: Remove empty directory.
16955         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16957 2011-12-09  Alan Modra  <amodra@gmail.com>
16959         PR libgomp/51376
16960         * task.c (GOMP_taskwait): Don't access task->children outside of
16961         task_lock mutex region.
16962         (GOMP_task): Likewise.
16964 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
16966         PR libgomp/51132
16967         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16968         to file scope.
16969         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16970         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16971         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16972         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16973         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16975 2011-12-02  Alan Modra  <amodra@gmail.com>
16977         * config/linux/affinity.c: Use atomic rather than sync builtin.
16978         * config/linux/lock.c: Likewise.
16979         * config/linux/ptrlock.h: Likewise.
16980         * config/linux/ptrlock.c: Likewise.
16981         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16982         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16983         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16984         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16985         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16986         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16987         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16988         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16989         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16990         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16992 2011-11-30  Alan Modra  <amodra@gmail.com>
16994         PR libgomp/51298
16995         * config/linux/bar.h: Use atomic rather than sync builtins.
16996         * config/linux/bar.c: Likewise.  Add missing acquire
16997         synchronisation on generation field.
16998         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16999         double unlock.
17001 2011-11-30  Alan Modra  <amodra@gmail.com>
17003         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17004         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17005         * config/linux/mutex.h: Use atomic rather than sync builtins.
17006         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17007         * config/linux/omp-lock.h: Comment fix.
17008         * config/linux/arm/mutex.h: Delete.
17009         * config/linux/powerpc/mutex.h: Delete.
17010         * config/linux/ia64/mutex.h: Delete.
17011         * config/linux/mips/mutex.h: Delete.
17013 2011-11-30  Alan Modra  <amodra@gmail.com>
17015         PR libgomp/51249
17016         * config/linux/sem.h: Rewrite.
17017         * config/linux/sem.c: Rewrite.
17019 2011-11-28  Richard Henderson  <rth@redhat.com>
17021         * libgomp.h (enum memmodel): New.
17023 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17025         * configure: Regenerate.
17027 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17029         * config/posix95: Remove empty directory.
17031 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17033         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17035 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17037         PR fortran/49792
17038         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17039         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17041 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17043         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17045 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17047         PR libgomp/49965
17048         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17050 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17052         * config/linux/proc.h: New.
17053         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17054         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17055         (gomp_init_num_threads): Update call to cpuset_popcount.
17056         (get_num_procs): Ditto.
17057         * config/linux/affinity.c (gomp_init_affinity): Call
17058         gomp_cpuset_popcount.
17060 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17062         PR fortran/42041
17063         PR fortran/46752
17064         * omp.h.in (omp_in_final): New prototype.
17065         * omp_lib.f90.in (omp_in_final): New interface.
17066         (omp_integer_kind, omp_logical_kind): Remove
17067         and replace all its uses in the module with 4.
17068         (openmp_version): Change to 201107.
17069         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17070         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17071         kind for the parameters.
17072         (omp_in_final): New external.
17073         (openmp_version): Change to 201107.
17074         * task.c (omp_in_final): New function.
17075         (gomp_init_task): Initialize final_task.
17076         (GOMP_task): Remove unused attribute from flags.  Handle final
17077         tasks.
17078         (GOMP_taskyield): New function.
17079         (omp_in_final): Return true if if (false) or final (true) task
17080         or descendant of final (true).
17081         * fortran.c (omp_in_final_): New function.
17082         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17083         (GOMP_3.0): Export GOMP_taskyield.
17084         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17085         variables.
17086         (parse_unsigned_long_list): New function.
17087         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17088         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17089         even if parse_affinity returned false.
17090         * config/linux/affinity.c (gomp_init_affinity): Handle
17091         gomp_cpu_affinity_len == 0.
17092         * libgomp_g.h (GOMP_taskyield): New prototype.
17093         * libgomp.h (struct gomp_task): Add final_task field.
17094         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17095         * team.c (gomp_team_start): Override new task's nthreads_var icv
17096         if list form OMP_NUM_THREADS has been used and it has value for
17097         the new nesting level.
17099         * testsuite/libgomp.c/atomic-11.c: New test.
17100         * testsuite/libgomp.c/atomic-12.c: New test.
17101         * testsuite/libgomp.c/atomic-13.c: New test.
17102         * testsuite/libgomp.c/atomic-14.c: New test.
17103         * testsuite/libgomp.c/reduction-6.c: New test.
17104         * testsuite/libgomp.c/task-5.c: New test.
17105         * testsuite/libgomp.c++/atomic-2.C: New test.
17106         * testsuite/libgomp.c++/atomic-3.C: New test.
17107         * testsuite/libgomp.c++/atomic-4.C: New test.
17108         * testsuite/libgomp.c++/atomic-5.C: New test.
17109         * testsuite/libgomp.c++/atomic-6.C: New test.
17110         * testsuite/libgomp.c++/atomic-7.C: New test.
17111         * testsuite/libgomp.c++/atomic-8.C: New test.
17112         * testsuite/libgomp.c++/atomic-9.C: New test.
17113         * testsuite/libgomp.c++/task-8.C: New test.
17114         * testsuite/libgomp.c++/reduction-4.C: New test.
17115         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17116         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17117         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17118         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17119         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17120         * testsuite/libgomp.fortran/pointer1.f90: New test.
17121         * testsuite/libgomp.fortran/pointer2.f90: New test.
17122         * testsuite/libgomp.fortran/task4.f90: New test.
17124 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17126         * libgomp.texi: Update OpenMP spec references to 3.1.
17127         (omp_in_final,OMP_PROC_BIND): New sections.
17128         (OMP_NUM_THREADS): Document that the value can be now a list.
17129         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17131 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17133         * config/linux/x86/futex.h: Check __x86_64__ instead of
17134         __LP64__.
17136 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17138         PR middle-end/49897
17139         PR middle-end/49898
17140         * testsuite/libgomp.c/pr49897-1.c: New test.
17141         * testsuite/libgomp.c/pr49897-2.c: New test.
17142         * testsuite/libgomp.c/pr49898-1.c: New test.
17143         * testsuite/libgomp.c/pr49898-2.c: New test.
17145 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17147         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17148         for ia32 instead of ilp32.
17150         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17151         * testsuite/libgomp.c/atomic-6.c: Likewise.
17153 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17155         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17156         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17158 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17160         PR libgomp/45351
17161         * config/osf/sem.h: New file.
17162         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17164 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17166         PR target/49541
17167         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17168         ldflags.
17170 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17172         * config/linux/wait.h (do_spin): New inline, largely copied
17173         from do_wait, just don't do futex_wait here, instead return true if
17174         it should be done.
17175         (do_wait): Implement using do_spin.
17176         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17177         to prototype.
17178         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17179         __sync_bool_compare_and_swap, pass the oldval to
17180         gomp_mutex_lock_slow.
17181         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17182         If all mutex contenders are just spinning and not sleeping, don't
17183         change state to 2 unnecessarily.  Optimize the loop when state has
17184         already become 2 to use just one atomic operation per loop instead
17185         of two.
17186         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17187         to prototype.
17188         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17189         __sync_bool_compare_and_swap, pass the oldval to
17190         gomp_mutex_lock_slow.
17192 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17194         PR libgomp/49490
17195         * iter.c (gomp_iter_static_next): For chunk size 0
17196         only use n ceil/ nthreads size for the first
17197         n % nthreads threads in the team instead of
17198         all threads except for the last few ones which
17199         get less work or none at all.
17200         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17201         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17202         chunk argument, set run_sched_modifier to 0 for static
17203         resp. 1 for other kinds.  If chunk argument is 0
17204         and not static, set value to 1.
17206 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17208         PR c++/49043
17209         * testsuite/libgomp.c++/pr49043.C: New test.
17211         PR c++/48869
17212         * testsuite/libgomp.c++/pr48869.C: New test.
17214 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17216         PR fortran/48894
17217         * fortran.c: Include limits.h.
17218         (TO_INT): Define.
17219         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17220         *set.
17221         (omp_set_num_threads_8_, omp_set_schedule_8_,
17222         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17223         omp_get_team_size_8_): Use TO_INT macro.
17224         * testsuite/libgomp.fortran/pr48894.f90: New test.
17226 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17228         PR middle-end/48591
17229         * testsuite/libgomp.c/pr48591.c: New test.
17231 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17233         PR bootstrap/48135
17234         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17235         * configure: Regenerate.
17237 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
17239         PR fortran/47886
17240         * testsuite/libgomp.fortran/task3.f90: New test.
17242 2011-02-24  Tobias Burnus  <burnus@net-b.de>
17244         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17246 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
17248         PR libgomp/47854
17249         * libgomp.texi (omp_get_wtime): Don't say time in the past
17250         must be Unix Epoch.
17252 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17254         PR libgomp/47804
17255         * testsuite/libgomp.fortran/fortran.exp: Check for both
17256         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
17257         but $blddir != "", still append ${blddir}/${lang_library_path}
17258         to ld_library_path.
17260 2011-02-16  Tobias Burnus  <burnus@net-b.de>
17262         PR libgomp/47758
17263         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17264         of libquadmath.a before adding its libpath to ldflags.
17266 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17268         PR libgomp/47731
17269         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17270         to FUTEX_WAIT futex syscall.
17271         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17273 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17275         * configure: Regenerate.
17277 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
17279         PR libstdc++/36104
17280         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17282 2011-01-16  Gerald Pfeifer
17284         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17286 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
17288         PR fortran/46874
17289         * libgomp.fortran/allocatable6.f90: New test.
17291 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17293         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17294         * configure: Regenerate.
17296 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17298         PR target/40125
17299         PR lto/46695
17300         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17301         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17302         * aclocal.m4: Regenerate.
17303         * configure: Regenerate.
17304         * Makefile.in: Regenerate.
17305         * testsuite/Makefile.in: Regenerate.
17307 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
17309         PR fortran/46753
17310         * libgomp.fortran/pr46753.f90: New test.
17312         PR libgomp/43706
17313         * env.c (initialize_env): Default to spin count 300000
17314         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17315         is specified.
17317         PR libgomp/45240
17318         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17319         at the end if sync builtins aren't supported.
17321 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17323         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17325 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17327         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17329 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
17331         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17333 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17334             Tobias Burnus  <burnus@net-b.de>
17336         PR fortran/32049
17337         * configure.ac:
17338         * configure: Regenerate.
17340 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17342         * config/linux/futex.h: New.
17343         * config/linux/arm/mutex.h: New.
17344         * configure.tgt (arm*-*-linux*): Add config path.
17346 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
17348         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17350 2010-09-23  Tobias Burnus  <burnus@net-b.de>
17352         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17353         Change Fortran datatype to LOGICAL.
17354         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17355         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17357 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17359         * configure: Regenerate.
17361 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
17363         * libgomp.texi: Add function keyword to a couple of Fortran
17364         interfaces, use integer instead of int for Fortran.
17366 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
17368         * libgomp.texi: Fix spelling and pasto problems throughout.
17369         Adjust prototypes to match code.
17371 2010-07-24  Tobias Burnus  <burnus@net-b.de>
17373         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17374         silence -fwhole-file warning.
17376 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17378         * configure.tgt (*-*-solaris2.[56]*): Removed.
17380 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17382         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17383         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17384         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17385         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17386         targetting solaris2*.
17387         * configure: Regenerate.
17388         * config.h.in: Regenerate.
17390         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17391         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17392         Add libgomp_version_dep.
17393         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17394         versioning.
17395         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17396         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17397         * Makefile.in: Regenerate.
17399         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17400         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17401         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17402         to common block, protected by
17403         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17405 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17407         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
17409 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
17411         PR bootstrap/43170
17412         * configure: Regenerate.
17414 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17416         PR other/43620
17417         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17418         * configure: Regenerate.
17419         * Makefile.in: Regenerate.
17420         * testsuite/Makefile.in: Regenerate.
17422 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17424         PR c/43893
17425         * testsuite/libgomp.c/pr43893.c: New test.
17426         * testsuite/libgomp.c++/pr43893.C: New test.
17428 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17430         PR middle-end/43570
17431         * testsuite/libgomp.fortran/vla8.f90: New test.
17433 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17435         PR libgomp/43706
17436         * config/linux/affinity.c (gomp_init_affinity): Decrease
17437         gomp_available_cpus if affinity mask confines the process to fewer
17438         CPUs.
17439         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17440         non-NULL, just return gomp_available_cpus.
17442         PR libgomp/43569
17443         * sections.c (gomp_sections_init): Initialize ws->mode.
17445 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17447         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17448         not unused bar variable.
17449         * configure: Regenerate.
17451 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17453         * Makefile.in: Regenerate.
17454         * aclocal.m4: Regenerate.
17455         * testsuite/Makefile.in: Regenerate.
17457 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17459         PR libgomp/42942
17460         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17461         (initialize_env): Adjust callers.
17462         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17463         when the argument is 0.
17465         * testsuite/libgomp.c/pr42942.c: New test.
17467 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17469         PR middle-end/42644
17470         PR middle-end/42130
17471         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17472         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17474 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17476         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17477         * testsuite/libgomp.c++/task-6.C: Likewise.
17479 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
17481         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17483 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
17485         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17486         * configure: Regenerate.
17488 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17490         PR fortran/42866
17491         * testsuite/libgomp.fortran/allocatable5.f90: New test.
17493 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
17495         * configure.ac: Test for executability of GFORTRAN.
17496         * configure: Regenerate.
17498 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17500         * configure: Regenerate.
17502 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17504         PR libgomp/42602
17505         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17507 2010-01-03  Richard Guenther  <rguenther@suse.de>
17509         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17511 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
17513         * testsuite/libgomp.graphite/pr4118.c: New.
17515 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17517         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17518         for darwin, protect the test with require-effective-target tls_runtime.
17519         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17521 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17523         PR target/41605
17524         * testsuite/lib/libgomp.exp: Provide -B options to allow for
17525         link spec %s substitutions for static libraries.
17527 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
17529         PR testsuite/42135
17530         * libgomp.graphite/force-parallel-2.c: Reduce array size.
17532 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17534         * Makefile.in: Regenerate.
17535         * configure: Regenerate.
17536         * testsuite/Makefile.in: Regenerate.
17538 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17540         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17541         settings for LC_ALL and LANG.
17543 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
17545         PR fortran/42162
17546         * testsuite/libgomp.fortran/pr42162.f90: New test.
17548 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
17550         PR middle-end/42029
17551         * testsuite/libgomp.c/pr42029.c: New test.
17553 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
17555         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17556         *s.  Accept ld version without text in ()s.
17557         * configure: Regenerated.
17559 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
17561         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17563 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17565         PR libgomp/41418
17566         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17567         or a hyphen (happens with fortran language disabled).
17568         * configure: Regenerate.
17570 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17572         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17573         use sed script portable to Solaris /bin/sed for extracting ld
17574         version.
17575         * configure: Regenerate.
17577 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
17579         * testsuite/libgomp.graphite/bounds.c: New test.
17581 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17583         * Makefile.am (libgomp_la_LINK): New.
17584         * Makefile.in: Regenerate.
17586 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17588         * configure.ac (AC_PREREQ): Bump to 2.64.
17590 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17592         * Makefile.am (install-html, install-pdf): Remove.
17593         * Makefile.in: Regenerate.
17595         * Makefile.in: Regenerate.
17596         * aclocal.m4: Regenerate.
17597         * config.h.in: Regenerate.
17598         * configure: Regenerate.
17599         * testsuite/Makefile.in: Regenerate.
17601 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17603         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17604         * Makefile.in: Regenerate.
17606 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
17608         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17609         * Makefile.in: Regenerate.
17611 2009-08-19  Tobias Burnus  <burnus@net-b.de>
17613         PR fortran/41102
17614         omp_lib.h.in: Fix -std=f95 errors.
17616 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
17618         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17619         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17620         * testsuite/libgomp.graphite/graphite.exp: New.
17622 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
17624         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17625         only build.
17627 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
17629         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17630         needed memory barrier semantics.
17631         * config/linux/mips/mutex.h: New file.
17633 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17635         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17637 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
17639         * configure: Regenerate.
17641 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
17643         PR testsuite/40699
17644         PR testsuite/40707
17645         PR testsuite/40709
17646         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17647         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17648         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17650 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17652         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17653         options when choosing a multilib.
17655 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
17657         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17658         ld_library_path.  Use add_path.  Add just find_libgcc_s to
17659         ld_library_path, not every libgcc multilib directory.
17660         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17661         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17662         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17663         Use add_path.
17664         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17666 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
17668         * Makefile.am (LTLDFLAGS): Define.
17669         (LINK): Define.
17670         * Makefile.in: Regenerate.
17672 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
17674         PR fortran/39718
17675         * testsuite/libgomp.fortran/fortran.exp: Don't link with
17676         libgfortranbegin, check existence of libgfortran.a instead of
17677         libgfortranbegin.a.
17679 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
17681         PR libgomp/40174
17682         * team.c (gomp_thread_start): Destroy thr->release semaphore.
17683         (gomp_free_pool_helper): Likewise.
17685 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
17686             Jakub Jelinek  <jakub@redhat.com>
17688         PR fortran/35423
17689         * testsuite/libgomp.fortran/workshare2.f90: New test.
17691 2009-04-09  Nick Clifton  <nickc@redhat.com>
17693         * iter.c: Change copyright header to refer to version 3 of the
17694         GNU General Public License with version 3.1 of the GCC Runtime
17695         Library Exception and to point readers at the COPYING3 and
17696         COPYING3.RUNTIME files and the FSF's license web page.
17697         * alloc.c: Likewise.
17698         * barrier.c: Likewise.
17699         * config/bsd/proc.c: Likewise.
17700         * config/linux/affinity.c: Likewise.
17701         * config/linux/alpha/futex.h: Likewise.
17702         * config/linux/bar.c: Likewise.
17703         * config/linux/bar.h: Likewise.
17704         * config/linux/ia64/futex.h: Likewise.
17705         * config/linux/ia64/mutex.h: Likewise.
17706         * config/linux/lock.c: Likewise.
17707         * config/linux/mips/futex.h: Likewise.
17708         * config/linux/mutex.c: Likewise.
17709         * config/linux/mutex.h: Likewise.
17710         * config/linux/powerpc/futex.h: Likewise.
17711         * config/linux/proc.c: Likewise.
17712         * config/linux/ptrlock.c: Likewise.
17713         * config/linux/ptrlock.h: Likewise.
17714         * config/linux/s390/futex.h: Likewise.
17715         * config/linux/sem.c: Likewise.
17716         * config/linux/sem.h: Likewise.
17717         * config/linux/sparc/futex.h: Likewise.
17718         * config/linux/wait.h: Likewise.
17719         * config/linux/x86/futex.h: Likewise.
17720         * config/mingw32/proc.c: Likewise.
17721         * config/mingw32/time.c: Likewise.
17722         * config/posix/affinity.c: Likewise.
17723         * config/posix/bar.c: Likewise.
17724         * config/posix/bar.h: Likewise.
17725         * config/posix/lock.c: Likewise.
17726         * config/posix/mutex.h: Likewise.
17727         * config/posix/proc.c: Likewise.
17728         * config/posix/ptrlock.h: Likewise.
17729         * config/posix/sem.c: Likewise.
17730         * config/posix/sem.h: Likewise.
17731         * config/posix/time.c: Likewise.
17732         * config/posix95/lock.c: Likewise.
17733         * critical.c: Likewise.
17734         * env.c: Likewise.
17735         * error.c: Likewise.
17736         * fortran.c: Likewise.
17737         * iter_ull.c: Likewise.
17738         * libgomp.h: Likewise.
17739         * libgomp_f.h.in: Likewise.
17740         * libgomp_g.h: Likewise.
17741         * loop.c: Likewise.
17742         * loop_ull.c: Likewise.
17743         * omp.h.in: Likewise.
17744         * omp_lib.f90.in: Likewise.
17745         * omp_lib.h.in: Likewise.
17746         * ordered.c: Likewise.
17747         * parallel.c: Likewise.
17748         * sections.c: Likewise.
17749         * single.c: Likewise.
17750         * task.c: Likewise.
17751         * team.c: Likewise.
17752         * work.c: Likewise.
17754 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
17756         * testsuite/config/default.exp: Change copyright header to refer to
17757         version 3 of the GNU General Public License and to point readers
17758         at the COPYING3 file and the FSF's license web page.
17760 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
17762         PR middle-end/39573
17763         * libgomp.c++/pr39573.C: New test.
17765 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
17767         PR other/39591
17768         * testsuite/libgomp.c/pr39591-1.c: New test.
17769         * testsuite/libgomp.c/pr39591-2.c: New test.
17770         * testsuite/libgomp.c/pr39591-3.c: New test.
17772 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
17774         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17775         * testsuite/libgomp.c/atomic-6.c: Ditto.
17777 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17779         PR c/39495
17780         * testsuite/libgomp.c/loop-12.c: New test.
17781         * testsuite/libgomp.c/loop-11.c: New test.
17782         * testsuite/libgomp.c++/loop-11.C: New test.
17783         * testsuite/libgomp.c++/loop-12.C: New test.
17784         * testsuite/libgomp.c++/for-8.C: New test.
17786 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17788         * configure: Regenerate.
17790 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
17792         PR middle-end/39154
17793         * testsuite/libgomp.c/pr39154.c: New test.
17795 2009-01-30  Ian Lance Taylor  <iant@google.com>
17797         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17798         libgomp_ld_is_gold.  Get gold version number.
17799         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17800         * configure: Rebuild.
17802 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17804         * testsuite/lib/libgomp.exp: Add -B option for targets that
17805         use libgfortran.a%s in their specs.
17807 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
17809         PR libgomp/38086
17810         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17811         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17812         HAVE_AS_SYMVER_DIRECTIVE is not defined.
17813         * configure: Regenerated.
17814         * config.h.in: Likewise.
17816 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
17818         PR c++/38650
17819         * testsuite/libgomp.c/pr38650.c: New test.
17820         * testsuite/libgomp.c++/pr38650.C: New test.
17822 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
17824         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17826 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
17828         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17830 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17832         * configure: Regenerate.
17834 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
17836         PR middle-end/36802
17837         * testsuite/libgomp.c/pr36802-1.c: New test.
17838         * testsuite/libgomp.c/pr36802-2.c: New test.
17839         * testsuite/libgomp.c/pr36802-3.c: New test.
17841 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
17843         PR libgomp/38270
17844         * config/linux/powerpc/mutex.h: New.
17846 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
17848         PR c++/38257
17849         * testsuite/libgomp.c++/for-7.C: New test.
17851         PR c++/38348
17852         * testsuite/libgomp.c++/for-6.C: New test.
17854 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
17856         PR testsuite/28870
17857         * testsuite/lib/libgomp.exp: Include new timeout library files.
17858         (libgomp_target_compile): Set timeout value from new proc.
17860 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
17862         PR libgomp/37938
17863         * config/linux/ia64/mutex.h: New.
17865 2008-11-04  Tobias Burnus  <burnus@net-b.de>
17867         PR libgomp/37935
17868         * libgomp.texi (Runtime library routines, environment variables):
17869         Update for OpenMP version 3.0.
17871 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
17872             Steve Ellcey  <sje@cup.hp.com>
17874         * configure: Regenerate for new libtool.
17875         * Makefile.in: Ditto.
17876         * testsuite/Makefile.in: Ditto.
17878 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
17879             Andreas Tobler  <a.tobler@schweiz.org>
17881         * config/bsd/proc.c: New file.
17882         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17883         * configure.ac: Check for header <sys/sysctl.h>
17884         * configure: Regenerate.
17885         * config.h.in: Likewise.
17887 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
17889         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17891 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17893         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17894         * Makefile.in: Regenerated.
17895         * testsuite/Makefile.in: Regenerated.
17897 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
17899         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17900         depend on blddir if blddir exists.
17901         (libgomp_target_compile): Likewise.
17902         * testsuite/libgomp.c++/c++.exp: Likewise.
17903         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17905 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17907         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
17908         Do not list GPL as Invariant Section.
17910 2008-07-28  Ilie Garbacea  <ilie@mips.com>
17911             Chao-ying Fu  <fu@mips.com>
17913         * configure.tgt: Enable futex for MIPS.
17914         * config/linux/mips/futex.h: New file.
17916 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
17918         * team.c (gomp_team_end): Free team immediately if it has
17919         just one thread.
17921 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
17923         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17924         * testsuite/libgomp.fortran/fortran.exp: Same.
17925         * testsuite/libgomp.c/c.exp: Same.
17926         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17927         directory to library path first.
17929 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
17931         * env.c (parse_stacksize): Add cast to avoid warning.
17932         (parse_spincount): Likewise.
17934 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
17936         * testsuite/libgomp.c/loop-10.c: New test.
17937         * libgomp.c/loop-3.c (main): Add lastprivate clause.
17938         * libgomp.c++/loop-6.C (main): Likewise.
17940         PR debug/36617
17941         * testsuite/libgomp.c/debug-1.c: New test.
17943 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
17945         * testsuite/libgomp.c/nqueens-1.c: New test.
17947         PR c++/36523
17948         * testsuite/libgomp.c++/task-7.C: New function.
17950 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17952         * configure: Regenerate.
17954 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17956         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17957         mutex when HAVE_SYNC_BUILTINS isn't defined.
17959 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17961         * libgomp.texi (omp_test_lock): Fix typo.
17963 2008-06-12  Tobias Burnus  <burnus@net-b.de>
17965         * omp_lib.f90.in: Add "implicit none".
17967 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
17969         PR middle-end/36506
17970         * testsuite/libgomp.c/reduction-5.c: New test.
17972 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
17974         * libgomp.h (struct gomp_task): Add in_tied_task field.
17975         * task.c (gomp_init_task): Initialize it.
17976         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
17977         unconditionally.  Don't call gomp_team_barrier_wake if
17978         current task is implicit or if(0) from implicit and number of
17979         running tasks is equal to nthreads - 1.
17981         PR libgomp/36471
17982         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17983         omp_get_team_size_8): Fix pastos.
17985         PR libgomp/36469
17986         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17987         * configure: Regenerated.
17988         * config.h.in: Regenerated.
17989         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17990         defined.
17992 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
17994         PR bootstrap/36452
17995         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17996         (GOMP_loop_ull_dynamic_start): Likewise.
17997         (GOMP_loop_ull_guided_start): Likewise.
17998         (GOMP_loop_ull_ordered_static_start): Likewise.
17999         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18000         (GOMP_loop_ull_ordered_guided_start): Likewise.
18002 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18003             Richard Henderson  <rth@redhat.com>
18004             Ulrich Drepper  <drepper@redhat.com>
18005             Jakob Blomer  <jakob.blomer@ira.uka.de>
18007         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18008         Substitute also OMP_*LOCK_25*.
18009         * configure: Regenerated.
18010         * config.h.in: Regenerated.
18011         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18012         ptrlock.c and task.c.
18013         * Makefile.in: Regenerated.
18014         * testsuite/Makefile.in: Regenerated.
18015         * task.c: New file.
18016         * loop_ull.c: New file.
18017         * iter_ull.c: New file.
18018         * libgomp.h: Include ptrlock.h.
18019         (enum gomp_task_kind): New type.
18020         (struct gomp_team): Add task_lock, task_queue, task_count,
18021         task_running_count, single_count fields.  Add
18022         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18023         Remove work_share_lock, generation_mask,
18024         oldest_live_gen, num_live_gen and init_work_shares fields, add
18025         work work_share_list_alloc, work_share_list_free and work_share_chunk
18026         fields.  Change work_shares from pointer to pointers into an array.
18027         Change ordered_release field into gomp_sem_t ** from flexible array
18028         member.  Add implicit_task and initial_work_shares fields.
18029         Move close to the end of the struct.
18030         (struct gomp_team_state): Add single_count, last_work_share,
18031         active_level and level fields, remove work_share_generation.
18032         (gomp_barrier_handle_tasks): New prototype.
18033         (gomp_finish_task): New inline function.
18034         (struct gomp_work_share): Move chunk_size, end, incr into
18035         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18036         next_ll fields.  Reshuffle fields.  Add next_alloc,
18037         next_ws, next_free and inline_ordered_team_ids fields, change
18038         ordered_team_ids into pointer from flexible array member.
18039         Add mode field.  Put lock and next into a different cache line
18040         from most of the write-once fields.
18041         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18042         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18043         gomp_iter_ull_guided_next): New prototypes.
18044         (gomp_new_icv): New prototype.
18045         (struct gomp_thread): Add thread_pool and task fields.
18046         (struct gomp_thread_pool): New type.
18047         (gomp_new_team): New prototype.
18048         (gomp_team_start): Change type of last argument.
18049         (gomp_new_work_share): Removed.
18050         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18051         (gomp_work_share_init_done): New static inline.
18052         (gomp_throttled_spin_count_var, gomp_available_cpus,
18053         gomp_managed_threads): New extern decls.
18054         (gomp_init_task): New prototype.
18055         (gomp_spin_count_var): New extern var decl.
18056         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18057         or no alias support, or if not PIC.
18058         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18059         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18060         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18061         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18062         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18063         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18064         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18065         gomp_test_nest_lock_25): New prototypes.
18066         (omp_lock_symver, strong_alias): Define.
18067         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18068         decls.
18069         (gomp_end_task): New.
18070         (struct gomp_task_icv, gomp_global_icv): New.
18071         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18072         (struct gomp_task): New.
18073         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18074         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18075         (gomp_icv): New.
18076         (gomp_schedule_type): Reorder enum to match
18077         omp_sched_t.
18078         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18079         fields.
18080         (gomp_thread_start): Add gomp_team_barrier_wait call.
18081         For non-nested case remove clearing of docked thread thr fields.
18082         Use pool fields instead of global gomp_* variables.  Use
18083         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18084         Create tasks for each member thread.
18085         (free_team): Only destroy team barrier, task_lock here and free it.
18086         (gomp_free_thread): Free last_team if non-NULL.
18087         (gomp_team_end): Call gomp_team_barrier_wait instead of
18088         gomp_barrier_wait.  For nested case call one extra
18089         gomp_barrier_wait.  Move here some destruction from free_team.
18090         Call free_team on pool->last_team if any, rather than freeing
18091         current team.  Destroy work_share_list_free_lock ifndef
18092         HAVE_SYNC_BUILTINS.
18093         (gomp_new_icv): New function.
18094         (gomp_threads, gomp_threads_size, gomp_threads_used,
18095         gomp_threads_dock): Removed.
18096         (gomp_thread_destructor): New variable.
18097         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18098         functions.
18099         (gomp_team_start): Create new pool if current thread doesn't have
18100         one.  Use pool fields instead of global gomp_* variables.
18101         Initialize thread_pool field for new threads.  Clear single_count.
18102         Change last argument from ws to team, don't create
18103         new team, set ts.work_share to &team->work_shares[0] and clear
18104         ts.last_work_share.  Don't clear ts.work_share_generation.
18105         If number of threads changed, adjust atomically gomp_managed_threads.
18106         Use gomp_init_task instead of gomp_new_task,
18107         set thr->task to the corresponding implicit_task array entry.
18108         Create tasks for each member thread.  Initialize ts.level.
18109         (initialize_team): Call pthread_key_create on
18110         gomp_thread_destructor.
18111         (team_destructor): New function.
18112         (new_team): Removed.
18113         (gomp_new_team): New function.
18114         (free_team): Free gomp_work_share blocks chained through next_alloc,
18115         instead of freeing work_shares and destroying work_share_lock.
18116         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18117         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18118         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18119         of gomp_barrier_wait.
18120         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18121         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18122         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18123         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18124         of gomp_barrier_wait.
18125         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18126         gomp_work_share_init_done if gomp_work_share_start returned true.
18127         Don't unlock ws->lock.
18128         * work.c: Include stddef.h.
18129         (free_work_share): Use work_share_list_free_lock instead
18130         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18131         Call gomp_fini_work_share and then either free ws if orphaned, or
18132         put it into work_share_list_free list of the current team.
18133         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18134         functions.
18135         (gomp_work_share_start, gomp_work_share_end,
18136         gomp_work_share_end_nowait): Rewritten.
18137         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18138         (openmp_version): Set to 200805.
18139         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18140         omp_sched_guided, omp_sched_auto): New parameters.
18141         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18142         omp_set_max_active_levels, omp_get_max_active_levels,
18143         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18144         omp_get_active_level): New interfaces.
18145         * omp_lib.h.in (openmp_version): Set to 200805.
18146         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18147         omp_sched_guided, omp_sched_auto): New parameters.
18148         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18149         omp_set_max_active_levels, omp_get_max_active_levels,
18150         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18151         omp_get_active_level): New externals.
18152         * loop.c: Include limits.h.
18153         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18154         GFS_AUTO.
18155         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18156         Likewise.  Use gomp_icv.
18157         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18158         ts.static_trip here.
18159         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18160         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18161         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18162         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18163         don't unlock ws->lock, otherwise lock it.
18164         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18165         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18166         (gomp_parallel_loop_start): Call gomp_new_team instead of
18167         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18168         Adjust gomp_team_start caller.  Pass 0 as second argument to
18169         gomp_resolve_num_threads.
18170         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18171         If adding ws->chunk_size nthreads + 1 times after end won't
18172         overflow, set ws->mode to 1.
18173         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18174         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18175         GOMP_loop_ull_ordered_static_start,
18176         GOMP_loop_ull_ordered_dynamic_start,
18177         GOMP_loop_ull_ordered_guided_start,
18178         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18179         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18180         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18181         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18182         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18183         prototypes.
18184         * libgomp.map: Export lock routines also @@OMP_2.0.
18185         (GOMP_loop_ordered_dynamic_first,
18186         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18187         GOMP_loop_ordered_static_first): Remove.
18188         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18189         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18190         GOMP_loop_ull_ordered_dynamic_next,
18191         GOMP_loop_ull_ordered_dynamic_start,
18192         GOMP_loop_ull_ordered_guided_next,
18193         GOMP_loop_ull_ordered_guided_start,
18194         GOMP_loop_ull_ordered_runtime_next,
18195         GOMP_loop_ull_ordered_runtime_start,
18196         GOMP_loop_ull_ordered_static_next,
18197         GOMP_loop_ull_ordered_static_start,
18198         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18199         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18200         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18201         (omp_set_schedule, omp_get_schedule,
18202         omp_get_thread_limit, omp_set_max_active_levels,
18203         omp_get_max_active_levels, omp_get_level,
18204         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18205         omp_set_schedule_, omp_set_schedule_8_,
18206         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18207         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18208         omp_get_max_active_levels_, omp_get_level_,
18209         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18210         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18211         New exports @@OMP_3.0.
18212         * omp.h.in (omp_sched_t): New type.
18213         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18214         omp_set_max_active_levels, omp_get_max_active_levels,
18215         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18216         omp_get_active_level): New prototypes.
18217         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18218         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18219         gomp_thread_limit_var, gomp_remaining_threads_count,
18220         gomp_remaining_threads_lock): New variables.
18221         (parse_spincount): New function.
18222         (initialize_env): Call gomp_init_num_threads unconditionally.
18223         Initialize gomp_available_cpus.  Call parse_spincount,
18224         initialize gomp_{,throttled_}spin_count_var
18225         depending on presence and value of OMP_WAIT_POLICY and
18226         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
18227         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18228         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
18229         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
18230         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
18231         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18232         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18233         (gomp_global_icv): New.
18234         (parse_schedule): Use it.  Parse "auto".
18235         (omp_set_num_threads): Use gomp_icv.
18236         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18237         Likewise.
18238         (omp_get_max_threads): Move from parallel.c.
18239         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18240         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18241         add ialias.
18242         (parse_stacksize, parse_wait_policy): New functions.
18243         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18244         both wrappers for compatibility and new locks.
18245         (omp_set_schedule, omp_get_schedule,
18246         omp_get_thread_limit, omp_set_max_active_levels,
18247         omp_get_max_active_levels, omp_get_level,
18248         omp_get_ancestor_thread_num, omp_get_team_size,
18249         omp_get_active_level): New ialias_redirect.
18250         (omp_set_schedule_, omp_set_schedule_8_,
18251         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18252         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18253         omp_get_max_active_levels_, omp_get_level_,
18254         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18255         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18256         New functions.
18257         * parallel.c: Include limits.h.
18258         (gomp_resolve_num_threads): Add count argument.  Rewritten.
18259         (GOMP_parallel_start): Call gomp_new_team and pass that as last
18260         argument to gomp_team_start.  Pass 0 as second argument to
18261         gomp_resolve_num_threads.
18262         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18263         if gomp_thread_limit_var != ULONG_MAX.
18264         (omp_in_parallel): Implement using ts.active_level.
18265         (omp_get_max_threads): Move to env.c.
18266         (omp_get_level, omp_get_ancestor_thread_num,
18267         omp_get_team_size, omp_get_active_level): New functions,
18268         add ialias.
18269         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18270         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
18271         gomp_iter_dynamic_next instead of the _locked variant and don't take
18272         lock around it, otherwise acquire it before calling
18273         gomp_iter_dynamic_next_locked.
18274         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18275         gomp_iter_dynamic_next instead of the _locked variant and don't take
18276         lock around it.
18277         (GOMP_parallel_sections_start): Call gomp_new_team instead of
18278         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
18279         Adjust gomp_team_start caller.  Pass count as second argument to
18280         gomp_resolve_num_threads, don't adjust num_threads after the call.
18281         Use gomp_icv.
18282         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18283         ws->chunk_size by incr.
18284         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
18285         code.
18286         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18287         types.
18288         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18289         (omp_check_defines): Check even the compat defines.
18290         * config/linux/ptrlock.c: New file.
18291         * config/linux/ptrlock.h: New file.
18292         * config/linux/wait.h: New file.
18293         * config/posix/ptrlock.c: New file.
18294         * config/posix/ptrlock.h: New file.
18295         * config/linux/bar.h (gomp_team_barrier_wait,
18296         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18297         (gomp_team_barrier_set_task_pending,
18298         gomp_team_barrier_clear_task_pending,
18299         gomp_team_barrier_set_waiting_for_tasks,
18300         gomp_team_barrier_waiting_for_tasks,
18301         gomp_team_barrier_done): New inlines.
18302         (gomp_barrier_t): Rewritten.
18303         (gomp_barrier_state_t): New typedef.
18304         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18305         gomp_barrier_wait_start): Rewritten.
18306         (gomp_barrier_wait_end): Change second argument to
18307         gomp_barrier_state_t.
18308         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18309         inlines.
18310         * config/linux/bar.c: Include wait.h instead of libgomp.h and
18311         futex.h.
18312         (gomp_barrier_wait_end): Rewritten.
18313         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18314         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18315         * config/posix/bar.h (gomp_barrier_t): Add generation field.
18316         (gomp_barrier_state_t): New typedef.
18317         (gomp_team_barrier_wait,
18318         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18319         (gomp_barrier_wait_start): Or all but low 2 bits from generation
18320         into the return value.  Return gomp_barrier_state_t.
18321         (gomp_team_barrier_set_task_pending,
18322         gomp_team_barrier_clear_task_pending,
18323         gomp_team_barrier_set_waiting_for_tasks,
18324         gomp_team_barrier_waiting_for_tasks,
18325         gomp_team_barrier_done): New inlines.
18326         (gomp_barrier_wait_end): Change second argument to
18327         gomp_barrier_state_t.
18328         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18329         inlines.
18330         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18331         (gomp_barrier_wait_end): Change second argument to
18332         gomp_barrier_state_t.
18333         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18334         gomp_team_barrier_wake): New functions.
18335         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18336         futex.h.
18337         (gomp_futex_wake, gomp_futex_wait): New variables.
18338         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18339         * config/linux/lock.c: Rewrite to make locks task owned,
18340         for backwards compatibility provide the old entrypoints
18341         if symbol versioning.  Include wait.h instead of libgomp.h and
18342         futex.h.
18343         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18344         * config/posix95/lock.c: Rewrite to make locks task owned,
18345         for backwards compatibility provide the old entrypoints
18346         if symbol versioning.
18347         * config/posix/lock.c: Rewrite to make locks task owned,
18348         for backwards compatibility provide the old entrypoints
18349         if symbol versioning.
18350         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18351         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18352         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18353         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18354         (sys_futex0): Return error code.
18355         (futex_wake, futex_wait): If ENOSYS was returned, clear
18356         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18357         (cpu_relax, atomic_write_barrier): New static inlines.
18358         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18359         (futex_wake, futex_wait): If ENOSYS was returned, clear
18360         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18361         (cpu_relax, atomic_write_barrier): New static inlines.
18362         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18363         (sys_futex0): Return error code.
18364         (futex_wake, futex_wait): If ENOSYS was returned, clear
18365         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18366         (cpu_relax, atomic_write_barrier): New static inlines.
18367         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18368         (sys_futex0): Return error code.
18369         (futex_wake, futex_wait): If ENOSYS was returned, clear
18370         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18371         (cpu_relax, atomic_write_barrier): New static inlines.
18372         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18373         (sys_futex0): Return error code.
18374         (futex_wake, futex_wait): If ENOSYS was returned, clear
18375         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18376         (cpu_relax, atomic_write_barrier): New static inlines.
18377         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18378         (sys_futex0): Return error code.
18379         (futex_wake, futex_wait): If ENOSYS was returned, clear
18380         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18381         (cpu_relax, atomic_write_barrier): New static inlines.
18382         * config/linux/sem.c: Include wait.h instead of libgomp.h and
18383         futex.h.
18384         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18385         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18386         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18387         types.
18388         (omp_nest_lock_t): Change owner into void *, add lock field.
18389         * config/posix95/omp-lock.h: Include semaphore.h.
18390         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18391         (omp_lock_t): Use sem_t instead of mutex if semaphores
18392         aren't broken.
18393         (omp_nest_lock_t): Likewise.  Change owner to void *.
18394         * config/posix/omp-lock.h: Include semaphore.h.
18395         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18396         (omp_lock_t): Use sem_t instead of mutex if semaphores
18397         aren't broken.
18398         (omp_nest_lock_t): Likewise.  Add owner field.
18400 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18402         * testsuite/libgomp.c/collapse-1.c: New test.
18403         * testsuite/libgomp.c/collapse-2.c: New test.
18404         * testsuite/libgomp.c/collapse-3.c: New test.
18405         * testsuite/libgomp.c/icv-1.c: New test.
18406         * testsuite/libgomp.c/icv-2.c: New test.
18407         * testsuite/libgomp.c/lib-2.c: New test.
18408         * testsuite/libgomp.c/lock-1.c: New test.
18409         * testsuite/libgomp.c/lock-2.c: New test.
18410         * testsuite/libgomp.c/lock-3.c: New test.
18411         * testsuite/libgomp.c/loop-4.c: New test.
18412         * testsuite/libgomp.c/loop-5.c: New test.
18413         * testsuite/libgomp.c/loop-6.c: New test.
18414         * testsuite/libgomp.c/loop-7.c: New test.
18415         * testsuite/libgomp.c/loop-8.c: New test.
18416         * testsuite/libgomp.c/loop-9.c: New test.
18417         * testsuite/libgomp.c/nested-3.c: New test.
18418         * testsuite/libgomp.c/nestedfn-6.c: New test.
18419         * testsuite/libgomp.c/sort-1.c: New test.
18420         * testsuite/libgomp.c/task-1.c: New test.
18421         * testsuite/libgomp.c/task-2.c: New test.
18422         * testsuite/libgomp.c/task-3.c: New test.
18423         * testsuite/libgomp.c/task-4.c: New test.
18424         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18425         to C++ testsuite default compiler options.
18426         * testsuite/libgomp.c++/collapse-1.C: New test.
18427         * testsuite/libgomp.c++/collapse-2.C: New test.
18428         * testsuite/libgomp.c++/ctor-10.C: New test.
18429         * testsuite/libgomp.c++/for-1.C: New test.
18430         * testsuite/libgomp.c++/for-2.C: New test.
18431         * testsuite/libgomp.c++/for-3.C: New test.
18432         * testsuite/libgomp.c++/for-4.C: New test.
18433         * testsuite/libgomp.c++/for-5.C: New test.
18434         * testsuite/libgomp.c++/loop-8.C: New test.
18435         * testsuite/libgomp.c++/loop-9.C: New test.
18436         * testsuite/libgomp.c++/loop-10.C: New test.
18437         * testsuite/libgomp.c++/task-1.C: New test.
18438         * testsuite/libgomp.c++/task-2.C: New test.
18439         * testsuite/libgomp.c++/task-3.C: New test.
18440         * testsuite/libgomp.c++/task-4.C: New test.
18441         * testsuite/libgomp.c++/task-5.C: New test.
18442         * testsuite/libgomp.c++/task-6.C: New test.
18443         * testsuite/libgomp.fortran/allocatable1.f90: New test.
18444         * testsuite/libgomp.fortran/allocatable2.f90: New test.
18445         * testsuite/libgomp.fortran/allocatable3.f90: New test.
18446         * testsuite/libgomp.fortran/allocatable4.f90: New test.
18447         * testsuite/libgomp.fortran/collapse1.f90: New test.
18448         * testsuite/libgomp.fortran/collapse2.f90: New test.
18449         * testsuite/libgomp.fortran/collapse3.f90: New test.
18450         * testsuite/libgomp.fortran/collapse4.f90: New test.
18451         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18452         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18453         * testsuite/libgomp.fortran/lib4.f90: New test.
18454         * testsuite/libgomp.fortran/lock-1.f90: New test.
18455         * testsuite/libgomp.fortran/lock-2.f90: New test.
18456         * testsuite/libgomp.fortran/nested1.f90: New test.
18457         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18458         * testsuite/libgomp.fortran/strassen.f90: New test.
18459         * testsuite/libgomp.fortran/tabs1.f90: New test.
18460         * testsuite/libgomp.fortran/tabs2.f: New test.
18461         * testsuite/libgomp.fortran/task1.f90: New test.
18462         * testsuite/libgomp.fortran/task2.f90: New test.
18463         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18464         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18465         * testsuite/libgomp.c/pr26943-2.c: Likewise.
18466         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18467         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18469 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
18471         PR c++/36308
18472         * testsuite/libgomp.c++/ctor-11.C: New test.
18473         * testsuite/libgomp.c++/ctor-12.C: New test.
18475 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18477         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18479 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
18481         PR middle-end/36106
18482         * testsuite/libgomp.c/atomic-5.c: New test.
18483         * testsuite/libgomp.c/atomic-6.c: New test.
18484         * testsuite/libgomp.c/autopar-1.c: New test.
18486 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18488         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18489         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18490         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18491         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18492         * configure: Regenerate.
18493         * Makefile.in, testsuite/Makefile.in: Likewise.
18495 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18497         PR bootstrap/35457
18498         * aclocal.m4: Regenerate.
18499         * configure: Regenerate.
18501 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18503         PR middle-end/35611
18504         * testsuite/libgomp.c/atomic-4.c: New test.
18506         PR libgomp/35625
18507         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18508         (gomp_iter_guided_next): Likewise.
18509         * testsuite/libgomp.c/pr35625.c: New test.
18511 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18513         * aclocal.m4: Regenerate.
18514         * configure: Likewise.
18515         * Makefile.in: Likewise.
18516         * testsuite/Makefile.in: Likewise.
18518 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18520         PR middle-end/35185
18521         * testsuite/libgomp.c++/pr35185.C: New test.
18523 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18525         PR middle-end/35549
18526         * testsuite/libgomp.c/pr35549.c: New test.
18528 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18530         * testsuite/libgomp.c/atomic-3.c: New test.
18532 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18534         PR fortran/33197
18535         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18536         .F08 file suffixes.
18538 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
18540         PR libgomp/33131
18541         * configure.ac: Add ACX_HEADER_STRING.
18542         * env.c: Include strings.h.
18543         * aclocal.m4: Regenerate.
18544         * config.h.in: Regenerate.
18545         * configure: Regenerate.
18546         * Makefile.in: Regenerate.
18547         * testsuite/Makefile.in: Regenerate.
18549 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
18551         PR middle-end/35196
18552         * testsuite/libgomp.c/pr35196.c: New test.
18554         PR middle-end/35130
18555         * testsuite/libgomp.fortran/pr35130.f90: New test.
18556         * testsuite/libgomp.c/pr35130.c: New test.
18558 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18560         PR middle-end/33880
18561         * testsuite/libgomp.c/pr33880.c: New test.
18562         * testsuite/libgomp.fortran/pr33880.f90: New test.
18564 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
18566         * configure: Regenerate.
18568 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18570         * configure.ac: Move futex checking into ../config/futex.m4.
18571         * configure: Rebuilt.
18572         * aclocal.m4: Rebuilt.
18573         * Makefile.in: Rebuilt.
18575         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18576         2007-10-15 ../config/tls.m4 change.
18578 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
18580         PR c++/34513
18581         * testsuite/libgomp.c/pr34513.c: New test.
18582         * testsuite/libgomp.c++/pr34513.C: New test.
18584 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
18586         PR target/32765
18587         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18589 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
18591         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
18593 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
18595         * testsuite/libgomp.c/private-1.c: New test.
18597 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
18598             Paolo Bonzini  <bonzini@gnu.org>
18600         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
18601         instead of 'VPATH ='.
18602         * Makefile.in: Regenerate.
18604 2007-11-23  Matthias Klose  <doko@ubuntu.com>
18606         * configure.ac: Adjust makeinfo version check.
18607         * configure: Regenerate.
18609 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
18611         PR fortran/34020
18612         * testsuite/libgomp.fortran/pr34020.f90: New test.
18614 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
18616         PR c++/33894
18617         * testsuite/libgomp.c++/atomic-1.C: New test.
18619 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
18621         PR libgomp/33275
18622         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18623         Make x and y integers rather than (implicit) reals.  Add private (j)
18624         clause to the last omp parallel.
18626 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
18628         * configure: Regenerate following changes to ../config/tls.m4.
18630 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
18632         * testsuite/libgomp.fortran/stack.f90: New test.
18634 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
18636         * config/mingw32/proc.c: New file.
18638 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
18640         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18641         (main): Use __get_cpuid to get i386 target fetaures.
18642         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18643         (main): Use __get_cpuid to get x86_64 target fetaures.
18645 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
18647         PR target/32765
18648         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18649         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18651 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
18653         PR fortran/32550
18654         * testsuite/libgomp.fortran/pr32550.f90: New test.
18655         * testsuite/libgomp.fortran/crayptr2.f90: New test.
18657 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
18659         * aclocal.m4: Regenerated.
18661 2007-07-05  Tobias Burnus  <burnus@net-b.de>
18663         PR fortran/32359
18664         * testsuite/libgomp.fortran/pr32359.f90: New.
18666 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
18668         PR libgomp/32468
18669         * sections.c (GOMP_parallel_sections_start): Only decrease
18670         number of threads to COUNT if dyn_var is true.
18671         * testsuite/libgomp.c/pr32468.c: New test.
18673 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18675         PR libgomp/26308
18676         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18678 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
18680         PR middle-end/32362
18681         * testsuite/libgomp.c/pr32362-1.c: New test.
18682         * testsuite/libgomp.c/pr32362-2.c: New test.
18683         * testsuite/libgomp.c/pr32362-3.c: New test.
18685 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
18687         * team.c (gomp_team_start): Fix setting up thread_attr
18688         stack size.
18690 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
18692         * configure: Regenerate.
18694 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
18696         * Makefile.in: Regenerate.
18697         * configure: Regenerate.
18698         * aclocal.m4: Regenerate.
18699         * testsuite/Makefile.in: Regenerate.
18701 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
18703         * config/linux/proc.c: New file.
18705         PR libgomp/28482
18706         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18708 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
18710         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18712 2007-04-16  Matthias Klose  <doko@debian.org>
18714         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18715         flags if not building with -m64.
18716         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18717         flag for i?86-*-* targets, if current target matches -m64.
18719 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
18721         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18722         * Makefile.in: Regenerate.
18724 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18726         PR testsuite/31369
18727         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18728         ld_library_path.
18729         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18731 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
18733         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18734         decls.
18735         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18736         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18737         (parse_affinity): New function.
18738         (initialize_env): Call it and gomp_init_affinity.
18739         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18740         create new pthread_attr_t and call gomp_init_thread_affinity
18741         on it for each thread before passing the attribute to pthread_create.
18742         * config/linux/affinity.c: New file.
18743         * config/posix/affinity.c: New file.
18744         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18745         * configure: Rebuilt.
18746         * config.h.in: Rebuilt.
18747         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18748         * Makefile.in: Rebuilt.
18750 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
18752         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18753         *-*-darwin*.
18754         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18755         and use it if found.
18757 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
18759         * testsuite/config/default.exp: New file.
18760         * testsuite/lib/libgomp.exp: New file.
18761         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18762         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18763         load_lib *, load_gcc_lib *): Move to libgomp.exp.
18764         (libgomp_load): Remove.
18765         * testsuite/lib/libgomp.exp (libgomp_init): Compute
18766         always_ld_library_path, not ld_library_path.  Set additional_flags
18767         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18768         (target_compile): Do not call libgomp_init.  Append lang_library_path
18769         and lang_link_flags to options.
18770         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
18771         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
18772         here.
18773         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18774         always_ld_library_path.  Set LD_LIBRARY_PATH here.
18775         * testsuite/libgomp.fortran/fortran.exp: Ditto.
18776         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18777         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18778         CX8 flag.
18779         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18780         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18781         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18782         * testsuite/libgomp.c/pr29947-1.c: Ditto.
18783         * testsuite/libgomp.c/atomic-10.c: Ditto.
18785 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
18787         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18788         dg-final cleanup-modules line.
18789         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18790         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18791         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18792         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18793         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18794         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18795         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18797 2007-03-18  Andreas Schwab  <schwab@suse.de>
18799         * acinclude.m4: Adjust regular expression for ld version
18800         extraction.
18801         * configure: Regenerate.
18803 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
18805         * Makefile.am: Add install-pdf target as copied from
18806         automake v1.10 rules.
18807         * Makefile.in: Regenerate
18809 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
18811         PR libgomp/28486
18812         * configure: Regenerate.
18814         PR c++/30703
18815         * testsuite/libgomp.c++/pr30703.C: New test.
18817 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
18819         Revert:
18820         2006-07-05  Eric Christopher  <echristo@apple.com>
18821         * configure.ac: Depend addition of -pthread on host OS.
18822         * configure: Regenerate.
18824 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18826         * libgomp.texi: Fix spacing after abbreviations.
18828 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
18830         PR libgomp/30546
18831         * configure.ac: Add check for makeinfo
18832         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18833         if an appropriate version of makeinfo is found.
18834         * aclocal.m4: Regenerated.
18835         * configure: Regenerated.
18836         * Makefile.in: Regenerated.
18837         * testsuite/Makefile.in: Regenerated.
18839 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
18841         PR libgomp/30540
18842         * libgomp.texi: More about implementation-dependent settings.
18844 2007-01-26  Tobias Burnus  <burnus@net-b.de>
18846         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18848 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
18850         PR middle-end/30494
18851         * testsuite/libgomp.c/pr30494.c: New test.
18853 2007-01-15  Tom Tromey  <tromey@redhat.com>
18855         * configure: Rebuilt.
18856         * configure.ac: Fixed comment.
18858 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
18860         * libgomp.texi: Document implementation specific default values of
18861         environment variables.
18863 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
18865         PR libgomp/28209
18866         * libgomp.texi: New file.
18867         * configure.ac: Add --enable-generated-files-in-srcdir option.
18868         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18869         files to srcdir.
18870         * Makefile.in: Regenerated.
18871         * config.h.in: Regenerated.
18872         * testsuite/Makefile.in: Regenerated.
18873         * NOTES: Removed.
18875 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
18877         PR libgomp/29949
18878         * env.c (omp_set_num_threads): Set illegal thread count to 1.
18880 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
18882         * configure: Regenerate.
18884 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
18886         PR libgomp/29947
18887         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
18888         start if there shouldn't be any loop iterations.
18889         (gomp_loop_ordered_static_start): Remove start == end test.
18890         * testsuite/libgomp.c/pr29947-1.c: New test.
18891         * testsuite/libgomp.c/pr29947-2.c: New test.
18893 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
18895         * configure.tgt: Force initial-exec TLS model on Linux only.
18897 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
18899         * configure: Regenerated.
18901 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
18903         * env.c (parse_schedule): Reject out of range values.
18904         (parse_unsigned_long): Reject out of range, negative or zero values.
18906 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
18908         PR fortran/29629
18909         * testsuite/libgomp.fortran/pr29629.f90: New test.
18911 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
18913         PR libgomp/29494
18914         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18915         * config/posix95: New directory.
18916         * config/posix95/omp-lock.h: New file.
18917         * config/posix95/lock.c: Likewise.
18919 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
18921         * aclocal.m4: Regenerate.
18922         * configure: Regenerate.
18924 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18926         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18927         '<' to '<='.
18929 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18931         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18932         test.
18933         * configure: Regenerate.
18934         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18936 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
18938         PR middle-end/25261
18939         PR middle-end/28790
18940         * testsuite/libgomp.c/nestedfn-4.c: New test.
18941         * testsuite/libgomp.c/nestedfn-5.c: New test.
18942         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18944         PR fortran/29097
18945         * testsuite/libgomp.fortran/condinc1.f: New test.
18946         * testsuite/libgomp.fortran/condinc2.f: New test.
18947         * testsuite/libgomp.fortran/condinc3.f90: New test.
18948         * testsuite/libgomp.fortran/condinc4.f90: New test.
18949         * testsuite/libgomp.fortran/condinc1.inc: New file.
18951 2006-09-18  Tom Tromey  <tromey@redhat.com>
18953         * configure: Rebuilt.
18955 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
18957         PR c/28768
18958         PR preprocessor/14634
18959         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18960         to AC_DEFINE.
18961         * configure: Regenerate.
18963 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18965         * testsuite/libgomp.fortran/reduction3.f90: Change
18966         -2147483648 to -huge(i)-1 to avoid overflow.
18967         * testsuite/libgomp.fortran/reduction4.f90: Change
18968         Z'ffffffff' to not(0) to avoid overflow.
18970 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
18972         PR libgomp/25938
18973         * Makefile.am (libsubincludedir): New.
18974         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18975         * Makefile.in: Regenerate.
18977 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
18979         PR libgomp/28725
18980         * env.c: Include ctype.h.
18981         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18982         leading and/or trailing whitespace and compare strings case
18983         insensitively.
18985 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
18987         PR fortran/28390
18988         * testsuite/libgomp.fortran/pr28390.f: New test.
18990 2006-07-05  Eric Christopher  <echristo@apple.com>
18992         * configure.ac: Depend addition of -pthread on host OS.
18993         * configure: Regenerate.
18995 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
18997         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18998         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18999         defined.
19001 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19003         PR libgomp/26175
19004         PR libgomp/26477
19005         * configure.ac: If neither --enable-linux-futex nor
19006         --disable-linux-futex is passed, determine the default by checking
19007         for compiling and/or running against NPTL.  With --enable-linux-futex,
19008         check if SYS_gettid and SYS_futex are defined.
19009         * configure: Rebuilt.
19011 2006-06-14  Richard Henderson  <rth@redhat.com>
19013         PR libgomp/28008
19014         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19015         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19017 2006-06-09  Richard Henderson  <rth@redhat.com>
19019         * env.c (gomp_nthreads_var): Change to unsigned long.
19020         (gomp_run_sched_chunk): Likewise.
19021         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19022         (initialize_env): Initialize gomp_thread_attr.
19023         * libgomp.h (gomp_nthreads_var): Update decl.
19024         (gomp_run_sched_chunk): Likewise.
19025         (gomp_thread_attr): Declare.
19026         * team.c (gomp_thread_attr): Export.
19027         (initialize_team): Don't initialize it.
19029 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19031         PR fortran/27916
19032         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19033         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19035 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19037         * config/mingw32/time.c: New file.
19038         * configure.tgt: Use it.
19040 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19042         * Makefile.am: Add install-html target. Add install-html to .PHONY
19043         * Makefile.in: Regenerate.
19045 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19047         PR libgomp/27612
19048         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19049         * testsuite/libgomp.c/critical-1.c: Likewise.
19050         * testsuite/libgomp.c/loop-1.c: Likewise.
19051         * testsuite/libgomp.c/loop-2.c: Likewise.
19052         * testsuite/libgomp.c/single-1.c: Likewise.
19053         * testsuite/libgomp.c/ordered-1.c: Likewise.
19054         * testsuite/libgomp.c/ordered-2.c: Likewise.
19056 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19058         PR middle-end/27416
19059         * libgomp.fortran/pr27416-1.f90: New test.
19061 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19063         PR fortran/27395
19064         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19065         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19067 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19069         PR c++/26943
19070         * testsuite/libgomp.c/pr26943-1.c: New test.
19071         * testsuite/libgomp.c/pr26943-2.c: New test.
19072         * testsuite/libgomp.c/pr26943-3.c: New test.
19073         * testsuite/libgomp.c/pr26943-4.c: New test.
19074         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19075         * testsuite/libgomp.c++/pr26943.C: New test.
19077 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19079         PR middle-end/27337
19080         * testsuite/libgomp.c++/pr27337.C: New test.
19082 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19084         PR c/26171
19085         * testsuite/libgomp.c/pr26171.c: New test.
19087 2006-04-25  Richard Henderson  <rth@redhat.com>
19089         PR libgomp/25865
19090         * configure.ac: Use GCC_CHECK_TLS.
19091         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19092         * Makefile.in, aclocal.m4, configure: Regenerate.
19094 2006-04-10  Matthias Klose  <doko@debian.org>
19096         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19097         directory names containing underscores.
19099 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19101         PR c++/26691
19102         * testsuite/libgomp.c++/pr26691.C: New test.
19104 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19106         * testsuite/libgomp.fortran/retval2.f90: New test.
19108 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19110         * testsuite/libgomp.c++: New directory.
19112 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19114         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19115         * config/posix/sem.c: Implement the above.
19117 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19119         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19120         define HAVE_BROKEN_POSIX_SEMAPHORES.
19121         * configure: Rebuilt.
19122         * config.h.in: Rebuilt.
19124 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19126         PR bootstrap/26161
19127         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19128         for the other pthread check.
19129         * configure: Regenerate.
19130         * config.h.in: Regenerate.
19132 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19134         PR libgomp/25938
19135         PR libgomp/25984
19136         * Makefile.am (fincludedir): New variable.
19137         (nodist_include_HEADERS): Remove Fortran files.
19138         (nodist_finclude_HEADERS): New variable.
19139         * Makefile.in: Regenerated.
19141 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19143         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19144         Remove tests for returning assumed character length arrays.
19146 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19147             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19149         PR libgomp/25936
19150         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19152 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19154         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19156 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19158         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19159         part of LD_LIBRARY_PATH manually.
19161 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19163         PR libgomp/25852
19164         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19165         libgomp_init.
19167 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19169         PR libgomp/25884
19170         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19171         * configure.ac (PERL): Don't set.
19172         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19173         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19174         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19175         * omp.h.in: Wrap the new configure substitutions with @ characters.
19176         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19177         * aclocal.m4, configure, Makefile.in: Regenerate.
19178         * mkomp_h.pl: Delete.
19180 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19182         PR libgomp/25259
19183         * configure.ac: Use GCC_HEADER_STDINT.
19184         * libgomp.h: Include gstdint.h.
19185         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19186         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19188 2006-01-24  Richard Henderson  <rth@redhat.com>
19190         PR libgomp/25942
19191         * configure.ac: Add AM_MAINTAINER_MODE.
19192         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19194 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
19196         * Makefile.in: Regenerate.
19197         * testsuite/Makefile.in: Regenerate.
19198         * aclocal.m4: Regenerate.
19200 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
19202         * config/posix/proc.c: Conditional include of sys/loadavg.h for
19203         Solaris.
19204         * configure.ac: Add check for loadavg.h.
19205         (link_gomp): Adjust comment.
19206         * configure: Regenerate.
19207         * config.h.in: Regenerate.
19209 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
19211         PR libgomp/25877
19212         * configure.ac: Remove check for alloca.h.
19213         * configure: Regenerate.
19214         * config.h.in: Regenerate.
19215         * libgomp.h: define gomp_alloca to be __builtin_alloca.
19216         * team.c: Remove use of alloca.h.
19217         Call gomp_alloca instead of alloca.
19219 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
19221         PR libgomp/25877
19222         * team.c: Add include of alloca.h.
19223         * configure.ac: Add check for alloca.h.
19224         * configure: Regenerate.
19225         * config.h.in: Regenerate.
19227 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
19229         PR fortran/25219
19230         * testsuite/libgomp.fortran/pr25219.f90: New test.
19232 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
19234         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19235         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19236         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19237         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19238         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19239         testsuite/libgomp.fortran/threadprivate1.f90,
19240         testsuite/libgomp.fortran/threadprivate2.f90,
19241         testsuite/libgomp.fortran/threadprivate3.f90,
19242         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19243         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19244         testsuite/libgomp.fortran/omp_parse3.f90: Change required
19245         effective-target to TLS runtime.
19247         * testsuite/libgomp.fortran/pr25162.f: Require
19248         effective-target TLS runtime.
19250 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
19252         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19253         * testsuite/libgomp.c/nestedfn-3.c: New test.
19255 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
19257         PR fortran/25162
19258         * testsuite/libgomp.fortran/pr25162.f: New test.
19260 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
19262         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19263         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19265 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
19267         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19268         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19269         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19270         single.c, team.c, work.c, config/linux/alpha/futex.h,
19271         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19272         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19273         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19274         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19275         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19276         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19277         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19278         FSF address.
19280 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19282         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19283         to nodist_noinst_HEADERS.
19284         * Makefile.in: Rebuilt.
19286         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19287         add integer count field.
19288         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19289         omp_nest_lock_t type change.
19290         (omp_init_nest_lock): Likewise.  Initialize count to 0.
19291         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19292         Increment count.
19293         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19294         Decrement count.
19295         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19296         Increment count if successful and return the new nesting level.
19297         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19298         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19299         * testsuite/libgomp.c/lib-1.c: New test.
19300         * testsuite/libgomp.fortran/lib1.f90: New test.
19301         * testsuite/libgomp.fortran/lib2.f: New test.
19302         * testsuite/libgomp.fortran/lib3.f: New test.
19304 2005-11-17  Richard Henderson  <rth@redhat.com>
19306         PR 24845
19307         * Makefile.am (nodist_toolexeclib_HEADERS): New.
19308         * configure.ac (link_gomp): New.  Substitute it.
19309         (AC_CONFIG_FILES): Add libgomp.spec.
19310         * libgomp.spec.in: New file.
19311         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19312         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19314 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19316         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19317         reduction(-:var) behaving the same as reduction(+:var).
19318         * testsuite/libgomp.c/reduction-4.c: New test.
19320 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
19322         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19323         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19324         testsuite/libgomp.c/copyin-3.c,
19325         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19326         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19327         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19328         testsuite/libgomp.c++/pr24455.C,
19329         testsuite/libgomp.fortran/threadprivate1.f90,
19330         testsuite/libgomp.fortran/threadprivate2.f90,
19331         testsuite/libgomp.fortran/threadprivate3.f90,
19332         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19333         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19334         testsuite/libgomp.fortran/omp_parse3.f90: Require
19335         effective-target TLS.
19337 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
19339         * HEADER: Remove.
19341 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
19343         PR libgomp/24797
19344         * team.c (initialize_team): Pass NULL rather than free as
19345         pthread_key_create destructor.  Initialize thread specific data
19346         pointer in initial thread to a static local variable rather than
19347         malloced memory.
19349 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
19351         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19352         its location to ld_library_path.
19354 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19356         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19358 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19360         * testsuite/libgomp.c: Rename from libgomp.dg.
19362 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
19364         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19365         threadprivate variable 'i'.
19367 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
19369         * config/linux/s390/futex.h: New file.
19370         * configure.tgt: Use it.
19372         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19373         before the parallel.
19375 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
19377         PR c++/24734
19378         * testsuite/libgomp.c++/master-1.C: New test.
19380 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19382         * testsuite/libgomp.dg/copyin-3.c: New test.
19384 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19386         * testsuite/libgomp.fortran/retval1.f90: New test.
19387         * testsuite/libgomp.fortran/vla7.f90: New test.
19389 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
19391         * testsuite/libgomp.fortran/vla2.f90: New test.
19392         * testsuite/libgomp.fortran/vla3.f90: New test.
19393         * testsuite/libgomp.fortran/vla4.f90: New test.
19394         * testsuite/libgomp.fortran/vla5.f90: New test.
19395         * testsuite/libgomp.fortran/vla6.f90: New test.
19397 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
19399         * config/linux/sparc/futex.h: New file.
19400         * configure.tgt: Use it.
19401         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19403         * critical.c: Include stdlib.h.
19404         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19405         ignoring return value.
19406         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19407         LIBGOMP_CHECK_SYNC_BUILTINS check.
19408         * configure: Rebuilt.
19410 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19412         * testsuite/libgomp.fortran/vla1.f90: New test.
19414 2005-10-31  Richard Henderson  <rth@redhat.com>
19416         * testsuite/libgomp.fortran/character2.f90: Fix race condition
19417         setting 's' in different threads.
19419 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19421         * libgomp.h (attribute_hidden, ialias): Define.
19422         * config/posix/proc.c (omp_get_num_procs): Add ialias.
19423         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19424         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19425         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19426         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19427         omp_test_lock, omp_test_nest_lock): Likewise.
19428         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19429         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19430         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19431         omp_test_lock, omp_test_nest_lock): Likewise.
19432         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19433         omp_get_dynamic, omp_get_nested): Likewise.
19434         * parallel.c (omp_get_num_threads, omp_get_max_threads,
19435         omp_get_thread_num, omp_in_parallel): Likewise.
19436         * fortran.c (ialias_redirect): Define.
19437         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19438         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19439         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19440         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19441         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19442         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19443         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19444         omp_get_wtime): Add ialias_redirect.
19446 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
19448         * fortran.c: Include stdlib.h.
19450 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
19452         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19453         * Makefile.in: Regenerated.
19455 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
19457         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19458         * libgomp_f.h.in (omp_check_defines): New function.
19459         * env.c: Include libgomp_f.h.
19460         (initialize_env): Call omp_check_defines.
19462         * testsuite/libgomp.dg/copyin-2.c: New test.
19463         * testsuite/libgomp.c++/copyin-2.C: New test.
19464         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19466         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19467         * testsuite/libgomp.fortran/sharing2.f90: New test.
19469         * testsuite/libgomp.dg/copyin-1.c: New test.
19470         * testsuite/libgomp.c++/copyin-1.C: New test.
19472 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
19474         * testsuite/libgomp.fortran/crayptr1.f90: New test.
19476         * testsuite/libgomp.fortran/workshare1.f90: New test.
19478         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19479         only test.
19480         * libgomp.fortran/sharing1.f90: New test.
19482 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
19484         PR c++/24502
19485         * testsuite/libgomp.c++/loop-7.C: New test.
19487         * testsuite/libgomp.dg/nestedfn-2.c: New test.
19489         * testsuite/libgomp.dg/nestedfn-1.c: New test.
19490         * testsuite/libgomp.fortran/reduction6.f90: New test.
19491         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19493 2005-10-23  Richard Henderson  <rth@redhat.com>
19495         * testsuite/libgomp.c++/ctor-1.C: New.
19496         * testsuite/libgomp.c++/ctor-2.C: New.
19497         * testsuite/libgomp.c++/ctor-3.C: New.
19498         * testsuite/libgomp.c++/ctor-4.C: New.
19499         * testsuite/libgomp.c++/ctor-5.C: New.
19500         * testsuite/libgomp.c++/ctor-6.C: New.
19501         * testsuite/libgomp.c++/ctor-7.C: New.
19502         * testsuite/libgomp.c++/ctor-8.C: New.
19503         * testsuite/libgomp.c++/ctor-9.C: New.
19505 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
19507         PR 24455
19508         * testsuite/libgomp.c++/pr24455-1.C: New test.
19509         * testsuite/libgomp.c++/pr24455.C: New test.
19510         * testsuite/libgomp.dg/pr24455-1.c: New test.
19511         * testsuite/libgomp.dg/pr24455.c: New test.
19513 2005-10-20  Richard Henderson  <rth@redhat.com>
19515         * testsuite/libgomp.c++/loop-6.C: New.
19516         * testsuite/libgomp.dg/loop-3.c: New.
19518 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
19520         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19521         explicitly private.
19522         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19523         explicitly shared.
19525 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
19527         * testsuite/libgomp.fortran/jacobi.f: New test.
19529 2005-10-19  Richard Henderson  <rth@redhat.com>
19531         * configure.tgt (i?86-linux): Default to with_arch instead of
19532         CFLAGS.  Add -mtune to match target_cpu.
19533         (x86_64-linux): Tune to i686.
19535         * fortran.c (omp_test_nest_lock_): Fix typo.
19537 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
19539         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19540         gomp_ordered_sync): Do nothing if team->nthreads == 1.
19541         * testsuite/libgomp.dg/ordered-3.c: New test.
19543         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19544         Remove volatile keyword.
19546         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19547         in COMMON block to avoid warnings on 64-bit targets.
19549 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
19551         * testsuite/libgomp.dg/shared-3.c: New test.
19553 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19555         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19556         * testsuite/libgomp.fortran/reduction5.f90: New test.
19558 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19560         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19561         dg-options.
19562         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
19563         flush loop now that __sync_synchronize has proper memory barrier.
19564         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19565         Add -ffixed-form to dg-options.
19567 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19569         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19570         from subdirectories.
19571         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19572         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19573         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19574         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19575         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19576         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19577         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19578         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19579         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19580         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19581         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19582         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19583         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19584         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19585         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19586         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19587         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19588         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19589         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19590         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19591         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19592         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19593         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19594         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19595         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19597 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
19599         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19600         lang_library_path exists.  Use find instead of glob to gather tests.
19601         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19603 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19605         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19606         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19607         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19608         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19609         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19610         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19611         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19612         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19613         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19614         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19615         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19616         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19617         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19619 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
19621         * testsuite/libgomp.dg/vla-1.c: New test.
19623         * testsuite/libgomp.fortran/reference2.f90: New test.
19625         * testsuite/libgomp.fortran/character2.f90: Remove explicit
19626         declaration of omp_get_thread_num.
19627         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
19628         use omp_lib.
19630         * testsuite/libgomp.fortran/reduction1.f90: New test.
19631         * testsuite/libgomp.fortran/reduction2.f90: New test.
19632         * testsuite/libgomp.fortran/reduction3.f90: New test.
19633         * testsuite/libgomp.fortran/reduction4.f90: New test.
19635 2005-10-13  Richard Henderson  <rth@redhat.com>
19637         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19638         * Makefile.in: Regenerate.
19639         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19640         * libgomp.h: Include bar.h.
19641         (struct gomp_barrier): Remove.
19642         (struct gomp_team): Add barrier.  Replace master_barrier with
19643         master_release.  Replace threads with ordered_release.
19644         (struct gomp_thread): Replace barrier with release.
19645         * ordered.c (gomp_ordered_first): Update for ordered_release change.
19646         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19647         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19648         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19649         (GOMP_single_copy_end): Likewise.
19650         * team.c (gomp_threads_dock): New.
19651         (gomp_barrier_init, gomp_barrier_destroy): Remove.
19652         (gomp_thread_start): Use gomp_barrier_wait.
19653         (new_team, free_team): Update for gomp_team changes.
19654         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19655         (gomp_team_end): Use gomp_barrier_wait.
19656         (initialize_team): Update for gomp_thread changes.
19657         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19658         (gomp_work_share_end_nowait): Use atomic ops when available.
19659         * config/linux/bar.c, config/linux/bar.h: New files.
19660         * config/posix/bar.c, config/posix/bar.h: New files.
19662 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
19664         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19665         * testsuite/libgomp.dg/single-2.c: New test.
19667         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19668         lang_link_flags): Unset, so that they aren't inherited from previously
19669         sourced *.exp.
19671         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19673 2005-10-12  Richard Henderson  <rth@redhat.com>
19675         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19676         (libgomp_init): Use lang_test_file, lang_library_path, and
19677         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
19679         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19680         (lang_test_file, lang_link_flags): New.
19681         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19683         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19684         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19685         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19686         testsuite/libgomp.c++/parallel-1.C,
19687         testsuite/libgomp.c++/reduction-1.C,
19688         testsuite/libgomp.c++/reduction-2.C,
19689         testsuite/libgomp.c++/reduction-3.C,
19690         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19691         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19692         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19693         New files, largely cribbed from the C testsuite.
19695 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
19697         * testsuite/libgomp.fortran/character1.f90: New test.
19698         * testsuite/libgomp.fortran/character2.f90: New test.
19700         * testsuite/libgomp.dg/nested-1.c: New test.
19701         * testsuite/libgomp.dg/nested-2.c: New test.
19702         * testsuite/libgomp.fortran/do1.f90: New test.
19703         * testsuite/libgomp.fortran/do2.f90: New test.
19705         * testsuite/libgomp.fortran/reference1.f90: New test.
19707 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
19709         * testsuite/libgomp.dg/reduction-1.c: New test.
19710         * testsuite/libgomp.dg/reduction-2.c: New test.
19711         * testsuite/libgomp.dg/reduction-3.c: New test.
19713 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
19715         * testsuite/libgomp.dg/atomic-1.c: New test.
19716         * testsuite/libgomp.dg/atomic-2.c: New test.
19718 2005-10-09  Richard Henderson  <rth@redhat.com>
19720         * critical.c (atomic_lock): New.
19721         (initialize_critical): Initialize it.
19722         (GOMP_atomic_start, GOMP_atomic_end): New.
19723         * libgomp.map: Export them.
19724         * libgomp_g.h: Declare them.
19726         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19728 2005-10-02  Richard Henderson  <rth@redhat.com>
19730         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
19731         to XCFLAGS instead of CFLAGS.
19733 2005-09-30  Richard Henderson  <rth@redhat.com>
19735         * configure.ac: Determine whether -pthread or -lpthread is needed.
19736         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19737         * Makefile.in, configure: Rebuild.
19739 2005-09-28  Richard Henderson  <rth@redhat.com>
19741         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19742         * testsuite/libgomp.dg/omp-single-3.c: New test.
19744 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
19746         * testsuite/libgomp.dg/omp-single-2.c: New test.
19747         * testsuite/libgomp.dg/shared-2.c: Fix return code.
19749 2005-09-27  Richard Henderson  <rth@redhat.com>
19751         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19752         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19754 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
19756         * testsuite/libgomp.dg/omp-loop03.c: New test.
19758 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19760         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19762 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19764         * testsuite/libgomp.dg/omp-single-1.c: New test.
19765         * testsuite/libgomp.dg/shared-1.c: Return 0.
19766         Add prototype for abort.
19767         * testsuite/libgomp.dg/shared-2.c: Likewise.
19769 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
19771         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19772         constructs.
19774 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
19776         * testsuite/libgomp.dg/shared-1.c: New test.
19777         * testsuite/libgomp.dg/shared-2.c: New test.
19779 2005-09-24  Richard Henderson  <rth@redhat.com>
19781         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19783 2005-09-24  Richard Henderson  <rth@redhat.com>
19785         * iter.c (gomp_iter_static_next): Round up when computing number
19786         of iterations.  Don't bother distributing a remainder equally.
19788         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19789         Don't call srand.  Zero b before testing.
19790         (main): New.
19792 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
19794         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19795         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19797 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
19799         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19800         without !$omp end do, followed immediately by subroutine end.
19802 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
19804         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19806 2005-09-22  Richard Henderson  <rth@redhat.com>
19808         * critical.c (GOMP_critical_name_start): Change argument to void**.
19809         Reuse the pointer space if the mutex fits.
19810         (GOMP_critical_name_end): Likewise.
19811         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19812         * libgomp_g.h (GOMP_critical_name_start): Update decl.
19813         (GOMP_critical_name_end): Likewise.
19814         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19815         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19817 2005-09-20  Richard Henderson  <rth@redhat.com>
19819         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19820         (create_lock_lock): New.
19821         (initialize_critical): Initialize it.
19822         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19823         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19825 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19827         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19829 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19831         * testsuite/libgomp.dg/omp-loop01.c: New test.
19832         * testsuite/libgomp.dg/omp-loop02.c: New test.
19834 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
19836         * configure.ac (AC_PROG_FC): Add.
19837         (USE_FORTRAN): New automake conditional.
19838         * configure: Rebuilt.
19839         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19840         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19841         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19842         Add rules to build them.
19843         * Makefile.in: Rebuilt.
19844         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19845         OMP_NEST_LOCK_KIND.
19846         * libgomp.map: Add Fortran wrappers.
19847         * libgomp_f.h.in: New file.
19848         * omp_lib.h.in: New file.
19849         * omp_lib.f90.in: New file.
19850         * fortran.c: New file.
19851         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19852         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19853         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19854         libgfortran has been built.
19855         * testsuite/libgomp.fortran/fortran.exp: New file.
19856         * testsuite/libgomp.fortran/omp_cond1.f: New test.
19857         * testsuite/libgomp.fortran/omp_cond2.f: New test.
19858         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19859         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19860         * testsuite/libgomp.fortran/omp_hello.f: New test.
19861         * testsuite/libgomp.fortran/omp_orphan.f: New test.
19862         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19863         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19864         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19865         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19866         * testsuite/libgomp.fortran/omp_reduction.f: New test.
19867         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19868         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19870 2005-08-30  Richard Henderson  <rth@redhat.com>
19872         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19873         function for when aliases are not usable.
19874         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19875         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19876         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19877         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19878         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19879         GOMP_loop_ordered_guided_next): Likewise.
19880         * ordered.c (GOMP_ordered_start): Likewise.
19882 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
19884         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19885         * testsuite/libgomp.dg/omp_hello.c: Fix return code
19886         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19887         * testsuite/libgomp.dg/omp_orphan.c: Likewise
19888         * testsuite/libgomp.dg/omp_reduction.c: Likewise
19889         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19890         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19891         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19892         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19894 2005-07-07  Eric Christopher  <echristo@redhat.com>
19895             Diego Novillo  <dnovillo@redhat.com>
19897         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19898         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19899         up code.
19900         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19901         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19902         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19903         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19904         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19905         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19906         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19908 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
19910         * TOPLEVEL.patch: Remove.
19912 2005-05-16  Richard Henderson  <rth@redhat.com>
19914         * configure.ac: Test for clock_gettime.
19915         * config.h.in, configure: Rebuild.
19916         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19917         (omp_get_wtime): Use clock_gettime if available.
19918         (omp_get_wtick): Use clock_getres if available.
19920 2005-05-11  Richard Henderson  <rth@redhat.com>
19922         * config/linux/ia64/futex.h: New file.
19923         * configure.tgt: Use it.
19925         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19927 2005-05-07  Richard Henderson  <rth@redhat.com>
19929         * config/linux/powerpc/futex.h: New file.
19930         * configure.tgt: Use it.
19932         * config/linux/i486/futex.h: Merge ...
19933         * config/linux/x86_64/futex.h: ... into ...
19934         * config/linux/x86/futex.h: ... here.
19935         * configure.tgt: Update to match.
19937 2005-05-06  Richard Henderson  <rth@redhat.com>
19939         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19940         * config/linux/i486/futex.h: Likewise.
19941         * config/linux/x86_64/futex.h: Likewise.
19943         * config/linux/lock.c: New file.
19944         * config/linux/omp-lock.h: New file.
19946         * critical.c, env.h: Don't include omp.h
19947         * config/posix/lock.c: Include libgomp.h instead of omp.h.
19948         * config/posix/time.c: Likewise.
19949         * config/posix/omp-lock.h: New file.
19950         * libgomp.h: Include omp-lock.h and omp.h.
19951         * Makefile.am (nodist_include_HEADERS): New.
19952         (omp.h): New rule.
19953         * configure.ac (PERL): New.
19954         * mkomp_h.pl: New file.
19955         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19956         with templates.
19957         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19959         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19960         build directory.  Re-add -march=i486 hack.
19962         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19963         (libgomp_link_flags): Remove.
19964         (libgomp_initialized): Remove.
19965         (libgomp_init): Don't protect from reinitialization.  Copy code
19966         from libstdc++ for getting the multilib set correctly.
19968 2005-05-05  Richard Henderson  <rth@redhat.com>
19970         * config/linux/alpha/futex.h: New file.
19971         * configure.tgt (alpha*-*-linux*): Use it.
19973         * config/posix/mutex.c: New file.
19974         * config/posix/sem.c: Use libgomp.h.
19976         * configure.tgt (x86_64-linux): Also test CC for -m32.
19977         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19979         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19980         after $gccpath.
19982         * Makefile.am (SUBDIRS): New.
19983         (libgomp_la_LDFLAGS): Add -lpthread.
19984         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19985         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19987         * libgomp_g.h: New file.
19988         * libgomp.h: Split out all public declarations to libgomp_g.h.
19989         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19990         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19991         * config/linux/sem.h: Likewise.
19992         * config/posix/sem.h: Likewise.
19994         * Makefile.am (AM_LDFLAGS): New.
19995         (libgomp_version_script): Split out from ...
19996         (libgomp_la_LDFLAGS): ... here.
19997         (libgomp_version_info): New.
19998         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19999         (LIBGOMP_ENABLE): New.
20000         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20001         (LIBGOMP_ENABLE_SYMVERS): New.
20002         * configure.ac (AC_INIT): Version 1.0.
20003         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20004         (enable-linux-futex): Likewise.  Rename from enable-futex.
20005         (libtool_VERSION): New.
20006         (LIBGOMP_ENABLE_SYMVERS): Use it.
20007         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20008         * Makefile.in, aclocal.m4, configure: Rebuild.
20010         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20011         (gomp_mutex_unlock_slow): Fix typo.
20012         * config/linux/sem.c: Similarly.
20013         (gomp_sem_post_slow): Fix typo.
20014         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20015         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20016         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20018         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20019         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20020         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20021         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20022         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20023         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20024         LDFLAGS.  Pull enable_futex check to top-level.
20025         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20026         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20028         First attempt at real configury.
20029         * Makefile, config.h: Remove file.
20030         * Makefile.am, Makefile.in: New file.
20031         * acinclude.m4 aclocal.m4: New file.
20032         * configure.ac, configure.tgt, configure: New file.
20034         * config/posix/lock.c: Rename from sys-lock.c.
20035         * config/posix/mutex.h: Rename from sys-mutex.h.
20036         * config/posix/sem.c: Rename from sys-sem.c.
20037         * config/posix/sem.h: Rename from sys-sem.h.
20038         * config/posix/proc.c: Rename from sys-proc.c.
20039         * config/posix/time.c: Rename from sys-proc.c.
20041         * config/linux/mutex.c: New file.
20042         * config/linux/mutex.h: New file.
20043         * config/linux/sem.c: New file.
20044         * config/linux/sem.h: New file.
20045         * config/linux/i486/futex.h: New file.
20046         * config/linux/x86_64/futex.h: New file.
20048 2005-05-04  Richard Henderson  <rth@redhat.com>
20050         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20051         * libgomp.h: Declare them.
20052         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20053         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20055 2005-05-04  Richard Henderson  <rth@redhat.com>
20057         * libgomp-1 code drop
20059 2005-05-04  Richard Henderson  <rth@redhat.com>
20061         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20062         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20063         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20064         (gomp_iter_static_next): Update.
20065         (gomp_ordered_static_next): Update.
20066         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20067         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20068         totally empty range.
20069         (gomp_loop_ordered_static_next): Refine test for calling
20070         gomp_ordered_static_next.
20071         * testsuite/ordered-1.c: Add case for more threads than iterations.
20073         * iter.c (gomp_iter_runtime_next_locked): Remove.
20074         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20075         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20076         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20077         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20078         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20079         gomp_loop_ordered_guided_next): Downcase name, make static, add
20080         an external alias with the old name.
20081         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20082         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20083         switch and call one of the above static functions.
20084         * libgomp.h: Update.
20086         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20087         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20088         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20089         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20090         GOMP_loop_ordered_guided_start): Update to match.
20091         * sections.c (GOMP_sections_start): Likewise.
20092         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20094         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20095         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20096         Use bounds check instead of modulus.
20097         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20098         (gomp_ordered_last): Don't sync with ordered_owner here.
20099         (gomp_ordered_next): Likewise.
20100         (gomp_ordered_static_loop_next): Likewise.
20101         * loop.c, libgomp.h: Update to match.
20103         * libgomp.h (GOMP_barrier): Declare.
20105         * testsuite/barrier-1.c: New file.
20106         * testsuite/critical-1.c: New file.
20107         * testsuite/ordered-2.c: New file.
20108         * testsuite/ordered-1.c: New file.
20109         * testsuite/sections-1.c: New file.
20110         * testsuite/single-1.c: New file.
20111         * testsuite/Makefile (TESTS): Add them.
20113 2005-05-04  Richard Henderson  <rth@redhat.com>
20115         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20116         * loop.c (GOMP_loop_static_start): If not the startup thread,
20117         acquire the mutex to wait for initialization complete.
20118         (GOMP_loop_ordered_static_start): Likewise.
20119         (GOMP_loop_ordered_runtime_start): Likewise.
20120         (GOMP_loop_ordered_static_first): Remove.
20121         (GOMP_loop_ordered_dynamic_first): Remove.
20122         (GOMP_loop_ordered_guided_first): Remove.
20123         (GOMP_loop_ordered_runtime_first): Remove.
20124         * ordered.c (gomp_ordered_loop_first): Post to own release when
20125         we're the first thread.
20126         (gomp_ordered_loop_last): Wait on release if not owner.
20127         (gomp_ordered_loop_next): Likewise.
20128         (gomp_ordered_static_loop_init): New.
20129         (gomp_ordered_static_loop_next): Use ordered_owner.
20130         (GOMP_ordered_start): Likewise.
20131         * work.c (gomp_new_work_share): Initialize ordered_owner.
20133 2005-05-03  Richard Henderson  <rth@redhat.com>
20135         * Makefile (OPT): New.
20136         (CFLAGS): Use it.
20138         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20139         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20140         * libgomp.h, libgomp.map, NOTES: Update to match.
20142         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20143         Add initialized and thr members.
20144         (gomp_thread_start): Pause when initially spawned to wait for
20145         the whole team to be created.
20146         (gomp_team_start): Release team members at the end.
20148         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20149         (f_foo_1): Use GOMP_loop_end.
20150         (f_foo_2): Use GOMP_loop_end_nowait.
20152         * testsuite/loop-2.c: New file.
20153         * testsuite/Makefile (TESTS): Add it.
20155 2005-05-03  Richard Henderson  <rth@redhat.com>
20157         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20158         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20159         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20160         initial work_share.
20162         * testsuite/Makefile: New file.
20163         * testsuite/loop-1.c: New file.
20165 2005-05-03  Richard Henderson  <rth@redhat.com>
20167         Initial implementation and checkin.
20169 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20171 Copying and distribution of this file, with or without modification,
20172 are permitted in any medium without royalty provided the copyright
20173 notice and this notice are preserved.