Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blob9407eb6130c0174ff6ed6fd24eb39907660591f4
1 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
3         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
4         the traits. Add crossref to 'Memory allocation'.
5         (Memory allocation): Refer to OMP_ALLOCATOR for the available
6         traits and allocators/mem spaces; document the default value
7         for the pool_size trait.
9 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
11         * allocator.c (omp_init_allocator): Check whether symbol from
12         dlopened libnuma is available before using libnuma for
13         allocations.
15 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
17         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
18         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
19         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
21 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
23         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
24         'Memory allocation' section which contains the full status.
25         (TR11): Remove differently worded duplicated entry.
27 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
29         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
30         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
31         add GOMP_MEMKIND_LIBNUMA.
32         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
33         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
34         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
35         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
36         needed.
37         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
38         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
39         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
40         updated for libnuma usage.
41         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
42         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
44 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
46         * allocator.c (omp_init_allocator): Use malloc for
47         omp_high_bw_mem_space when the memkind lib is unavailable
48         instead of returning omp_null_allocator.
49         * libgomp.texi (OpenMP 5.0): Fix typo.
50         (Memory allocation with libmemkind): Document implementation
51         in more detail.
53 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
55         * libgomp.texi: Use @var for ICV vars.
56         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
57         document which ICV is set and which scope the ICV has; extend/cleanup
58         some @ref.
59         (Implementation-defined ICV Initialization): New.
60         (nvptx): Document the implementation-defined used per-warp stack size.
62 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
64         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
65         error.
67 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
69         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
70         as expected dg-output.
72 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
74         PR middle-end/110270
75         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
76         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
77         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
78         * testsuite/libgomp.c/target-19.c: Update expected value.
79         * testsuite/libgomp.c++/target-18.C: Likewise.
80         * testsuite/libgomp.c++/target-19.C: Likewise.
81         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
82         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
83         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
85 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
87         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
88         gomp_init_targets_once was called before using default-device-var.
89         * testsuite/libgomp.c/target-55.c: New test.
90         * testsuite/libgomp.c/target-55a.c: New test.
92 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
94         * env.c (gomp_def_allocator_envvar): New var.
95         (parse_allocator): Handle OpenMP 5.1 syntax.
96         (cleanup_env): New.
97         (omp_display_env): Output gomp_def_allocator_envvar
98         for an allocator with traits.
99         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
100         OMP_DISPLAY_AFFINITY): New.
101         * testsuite/libgomp.c/allocator-1.c: New test.
102         * testsuite/libgomp.c/allocator-2.c: New test.
103         * testsuite/libgomp.c/allocator-3.c: New test.
104         * testsuite/libgomp.c/allocator-4.c: New test.
105         * testsuite/libgomp.c/allocator-5.c: New test.
106         * testsuite/libgomp.c/allocator-6.c: New test.
108 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
110         * target.c (resolve_device): Align a
111         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
112         * testsuite/libgomp.c/target-51.c: Adjust.
114 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
116         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
117         set.
118         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
119         Likewise.
120         * testsuite/libgomp.c/simd-math-1.c: Remove
121         '-foffload-options=-lm'.
122         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
123         Likewise.
124         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
125         Likewise.
127 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
129         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
130         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
131         Likewise.
133 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
135         * testsuite/libgomp.c/target-51.c: Fix typo.
137 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
139         * env.c (gomp_default_icv_values): Init default_device_var to
140         an nonconforming value - INT_MIN.
141         (initialize_env): After env-var parsing, set default_device_var to
142         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
143         (omp_display_env): If default_device_var is INT_MIN, call
144         gomp_init_targets_once.
145         * icv-device.c (omp_get_default_device): Likewise.
146         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
147         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
148         * target.c (resolve_device): Improve error message device-num < 0
149         with 'mandatory' and no no-host devices available.
150         (gomp_target_init): Set default-device-var if INT_MIN.
151         * testsuite/libgomp.c/target-48.c: New test.
152         * testsuite/libgomp.c/target-49.c: New test.
153         * testsuite/libgomp.c/target-50.c: New test.
154         * testsuite/libgomp.c/target-50a.c: New test.
155         * testsuite/libgomp.c/target-51.c: New test.
156         * testsuite/libgomp.c/target-52.c: New test.
157         * testsuite/libgomp.c/target-53.c: New test.
158         * testsuite/libgomp.c/target-54.c: New test.
160 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
162         PR libgomp/109837
163         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
164         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
166 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
168         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
169         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
170         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
171         error message.
172         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
173         changed error message.
174         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
175         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
176         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
177         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
178         extend testcase to check that data is copied when needed.
179         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
180         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
182 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
183             Tobias Burnus  <tobias@codesourcery.com>
185         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
186         also for non-offload_device targets; check that it runs
187         successfully for those and for all until a checkpoint for all
188         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
189         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
190         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
191         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
192         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
193         add missing vars to map clause.
195 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
197         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
198         unified_address requirement as supported.
199         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
200         'unified_address' from the not-supported requirements.
202 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
203             Tobias Burnus  <tobias@codesourcery.com>
205         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
206         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
207         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
208         modifier.
209         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
210         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
211         Emit runtime error if memory region not present.
212         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
213         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
214         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
215         * testsuite/libgomp.fortran/target-present-1.f90: New test.
216         * testsuite/libgomp.fortran/target-present-2.f90: New test.
217         * testsuite/libgomp.fortran/target-present-3.f90: New test.
219 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
221         PR testsuite/66005
222         * testsuite/lib/libgomp.exp: 'flock' through stdout.
223         * testsuite/flock: New.
224         * configure.ac (FLOCK): Point to that if no 'flock' available, but
225         'perl' is.
226         * configure: Regenerate.
228 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
230         * configure.ac (PERL): Remove.
231         * configure: Regenerate.
232         * Makefile.in: Likewise.
233         * testsuite/Makefile.in: Likewise.
235 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
237         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
239 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
241         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
243 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
245         PR libgomp/109875
246         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
247         * config/nvptx/target.c (GOMP_teams4): Likewise.
248         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
249         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
250         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
251         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
253 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
255         PR libgomp/109904
256         * configure.ac (link_gomp): Include also $DL_LIBS.
257         * configure: Regenerated.
259 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
261         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
262         'target exit data'.
263         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
264         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
265         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
266         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
268 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
270         PR testsuite/66005
271         * configure.ac: Look for 'flock'.
272         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
273         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
274         * testsuite/lib/libgomp.exp: ... but here, instead.
275         (libgomp_load): Override for parallel testing.
276         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
277         * configure: Regenerate.
278         * Makefile.in: Regenerate.
279         * testsuite/Makefile.in: Regenerate.
281 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
282             Thomas Schwinge  <thomas@codesourcery.com>
284         PR testsuite/66005
285         * testsuite/Makefile.am (PWD_COMMAND): New variable.
286         (%/site.exp): New target.
287         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
288         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
289         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
290         (check_p_subdirs)
291         (check_DEJAGNU_libgomp_targets): New variables.
292         ($(check_DEJAGNU_libgomp_targets)): New target.
293         ($(check_DEJAGNU_libgomp_targets)): New dependency.
294         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
295         * testsuite/Makefile.in: Regenerate.
296         * testsuite/lib/libgomp.exp: For parallel testing,
297         'load_file ../libgomp-test-support.exp'.
299 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
301         PR testsuite/91884
302         * configure.ac: 'AC_SUBST(CXX)'.
303         * configure: Regenerate.
304         * Makefile.in: Likewise.
305         * testsuite/Makefile.in: Likewise.
306         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
307         (GFORTRAN_UNDER_TEST): Set.
308         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
309         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
310         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
311         * testsuite/libgomp.fortran/fortran.exp: Use
312         'GFORTRAN_UNDER_TEST'.
313         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
315 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
317         PR testsuite/91884
318         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
319         specify compiler.
320         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
321         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
322         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
323         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
324         Likewise.
325         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
326         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
327         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
328         Likewise.
330 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
332         PR libstdc++/109816
333         * testsuite/libgomp.c++/target-map-class-1.C: New test.
334         * testsuite/libgomp.c++/target-map-class-2.C: New test.
336 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
338         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
339         'lang_library_path' into a list of 'lang_library_paths'.
340         * testsuite/libgomp.c++/c++.exp: Adjust.
341         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
342         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
343         libquadmath, too.
344         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
346 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
348         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
349         at 'lang_test_file_found'.
350         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
351         'return' early if not able to test.  Simplify 'ld_library_path' setup.
352         * testsuite/libgomp.fortran/fortran.exp: Likewise.
353         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
354         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
356 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
358         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
359         first.
360         * testsuite/libgomp.fortran/fortran.exp: Likewise.
361         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
362         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
364 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
366         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
367         * testsuite/libgomp.c/c.exp: Likewise.
368         * testsuite/libgomp.fortran/fortran.exp: Likewise.
369         * testsuite/libgomp.graphite/graphite.exp: Likewise.
370         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
371         * testsuite/libgomp.oacc-c/c.exp: Likewise.
372         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
374 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
376         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
377         * testsuite/libgomp.fortran/fortran.exp: Likewise.
378         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
379         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
380         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
381         'lang_test_file'.
382         * testsuite/libgomp.oacc-c/c.exp: Likewise.
383         * testsuite/libgomp.graphite/graphite.exp: Likewise.
384         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
385         'lang_test_file_found' instead of 'lang_test_file'.
387 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
389         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
390         set.
391         * testsuite/libgomp.c++/c++.exp: Likewise.
392         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
394 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
396         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
397         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
399 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
401         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
402         of 'libstdcxx_includes'.
403         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
405 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
407         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
408         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
409         * libgomp.h (gomp_target_rev): Adjust.
410         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
411         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
412         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
413         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
414         (rev_off_host_to_dev_cpy): Remove.
415         (GOMP_OFFLOAD_run): Adjust.
417 2023-05-04  Julian Brown  <julian@codesourcery.com>
419         PR fortran/109622
420         * testsuite/libgomp.fortran/pr109622.f90: Move test...
421         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
422         vector length warning.
423         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
424         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
425         missing copyin/copyout variable. Ignore vector length warnings.
426         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
427         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
428         vector length warnings.
429         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
431 2023-04-28  Julian Brown  <julian@codesourcery.com>
433         PR fortran/109622
434         * testsuite/libgomp.fortran/pr109622.f90: New test.
435         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
436         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
438 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
440         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
441         * testsuite/libgomp.c/scan-23.c: New test.
442         * testsuite/libgomp.fortran/scan-2.f90: New test.
444 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
446         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
447         weak_undefined options.
449 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
451         * libgomp.texi (Offload-Target Specifics): Grammar fix.
453 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
455         PR fortran/104949
456         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
457         caveat/safeguard.
459 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
461         PR libgomp/90596
462         * target.c (gomp_map_vars_internal): Allow for
463         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
464         * oacc-parallel.c (GOACC_parallel_keyed): Pass
465         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
466         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
467         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
468         Adjust, simplify.
469         (gomp_offload_free): Remove.
470         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
471         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
472         (cuda_free_argmem): Remove.
473         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
474         Adjust.
476 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
478         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
479         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
480         data.
482 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
484         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
485         'GOMP_MAP_IF_PRESENT'.
486         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
487         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
488         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
489         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
490         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
491         testing.
492         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
494 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
496         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
497         shortcut.
499 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
501         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
502         another aspect of OpenACC 'async' semantics.
504 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
506         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
507         position.
508         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
509         Verify 'acc_ev_alloc', 'acc_ev_free'.
511 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
513         PR libgomp/109062
514         * env.c (wait_policy): Initialize to -1.
515         (initialize_icvs): Initialize icvs->wait_policy to -1.
516         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
518 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
520         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
522 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
523             Paul-Antoine Arras  <pa@codesourcery.com>
525         * testsuite/libgomp.c/simd-math-1.c: New testcase.
527 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
529         PR middle-end/108546
530         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
531         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
533 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
535         * testsuite/libgomp.fortran/alloc-10.f90: Use
536         '-Wno-complain-wrong-lang'.
537         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
538         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
539         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
540         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
541         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
542         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
543         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
544         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
545         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
546         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
547         Likewise.
548         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
549         Likewise.
550         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
551         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
552         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
553         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
554         'dg-prune-output'.
556 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
558         * libgomp.texi: Fix typos - theads -> threads.
560 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
562         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
563         comment typo and improve its wording.
565 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
567         * target.c (gomp_target_rev): Dereference ptr
568         to get device address.
569         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
570         for unallocated allocatable.
572 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
574         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
575         kind check.
576         (GOMP_target_enter_exit_data): If the next map item is
577         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
578         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
580 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
582         PR fortran/107424
583         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
584         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
585         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
586         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
587         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
588         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
590 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
592         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
593         offloading compilation.
595 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
597         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
598         freeing not allocated memory.
599         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
601 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
603         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
604         reverse offload.
605         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
606         reverse-offload requirement.
608 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
610         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
611         (DEFAULT_TEAM_ARENA_SIZE): New define.
612         (struct heap): Move to this file.
613         (struct kernargs_abi): Likewise.
614         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
615         the kernargs.
616         * libgomp.h: Include libgomp-gcn.h.
617         (TEAM_ARENA_SIZE): Remove.
618         (team_malloc): Update the error message.
619         * plugin/plugin-gcn.c (struct kernargs): Move common content to
620         struct kernargs_abi.
621         (struct agent_info): Rename team arenas to ephemeral memories.
622         (struct team_arena_list): Rename ....
623         (struct ephemeral_memories_list): to this.
624         (struct heap): Delete.
625         (team_arena_size): New variable.
626         (stack_size): New variable.
627         (print_kernel_dispatch): Update debug messages.
628         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
629         Read GCN_STACK_SIZE.
630         (get_team_arena): Rename ...
631         (configure_ephemeral_memories): ... to this, and set up stacks.
632         (release_team_arena): Rename ...
633         (release_ephemeral_memories): ... to this.
634         (destroy_team_arenas): Rename ...
635         (destroy_ephemeral_memories): ... to this.
636         (create_kernel_dispatch): Add num_threads parameter.
637         Adjust for kernargs_abi refactor and ephemeral memories.
638         (release_kernel_dispatch): Adjust for ephemeral memories.
639         (run_kernel): Pass thread-count to create_kernel_dispatch.
640         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
641         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
643 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
645         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
647 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
649         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
650         usage, remove unused -fdump-tree-original.
651         * testsuite/libgomp.fortran/allocate-4.f90: New.
653 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
655         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
656         (GCN): Add item about 'omp requires'.
657         (nvptx): Likewise; add item about reverse offload.
659 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
661         PR fortran/108558
662         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
664 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
666         * libgomp.texi (OpenMP 5.0): Set non-rectangular
667         loop nest back to 'P' as Fortran support is incomplete.
669 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
671         PR middle-end/108459
672         * testsuite/libgomp.c/pr108459.c: New test.
674 2023-01-17  Martin Liska  <mliska@suse.cz>
676         * Makefile.in: Regenerate.
677         * configure: Regenerate.
679 2023-01-07  LIU Hao  <lh_mouse@126.com>
681         PR middle-end/108300
682         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
683         <windows.h>.
685 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
687         PR c++/108286
688         * testsuite/libgomp.c++/pr108286.C: New test.
690 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
692         * libgomp.texi: Bump @copying's copyright year.
694 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
696         PR target/99555
697         * config/nvptx/bar.c (generation_to_barrier): Remove.
698         (futex_wait,futex_wake,do_spin,do_wait): Remove.
699         (GOMP_WAIT_H): Remove.
700         (#include "../linux/bar.c"): Remove.
701         (gomp_barrier_wait_end): New function.
702         (gomp_barrier_wait): Likewise.
703         (gomp_barrier_wait_last): Likewise.
704         (gomp_team_barrier_wait_end): Likewise.
705         (gomp_team_barrier_wait): Likewise.
706         (gomp_team_barrier_wait_final): Likewise.
707         (gomp_team_barrier_wait_cancel_end): Likewise.
708         (gomp_team_barrier_wait_cancel): Likewise.
709         (gomp_team_barrier_cancel): Likewise.
710         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
711         (gomp_barrier_init): Remove init of waiters, lock fields.
712         (gomp_team_barrier_wake): Remove prototype, add new static inline
713         function.
715 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
717         PR c++/108180
718         * testsuite/libgomp.c++/pr108180.C: New test.
720 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
722         PR libfortran/108056
723         * testsuite/libgomp.fortran/allocate-4.f90: Remove
724         accidentally added file.
726 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
728         PR libfortran/108056
729         * testsuite/libgomp.fortran/allocate-4.f90: New file.
731 2022-12-14  Julian Brown  <julian@codesourcery.com>
733         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
734         test.
736 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
738         * libgomp.h (struct target_mem_desc): Predeclare; move
739         below after 'reverse_splay_tree_node' and add rev_array
740         member.
741         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
742         (reverse_splay_tree_node, reverse_splay_tree,
743         reverse_splay_tree_key): New typedef.
744         (struct gomp_device_descr): Add mem_map_rev member.
745         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
746         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
747         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
748         * splay-tree.h (splay_tree_callback_stop): New typedef; like
749         splay_tree_callback but returning int not void.
750         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
751         taking splay_tree_callback_stop as argument.
752         * splay-tree.c (splay_tree_foreach_internal_lazy,
753         splay_tree_foreach_lazy): New; but early exit if callback returns
754         nonzero.
755         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
756         (gomp_map_lookup_rev): New.
757         (gomp_load_image_to_device): Handle reverse-offload function
758         lookup table.
759         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
760         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
761         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
762         gomp_map_cdata_lookup): New auxiliary structs and functions for
763         gomp_target_rev.
764         (gomp_target_rev): Implement reverse offloading and its mapping.
765         (gomp_target_init): Init current_device.mem_map_rev.root.
766         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
767         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
768         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
769         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
770         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
771         mapping of on-device allocated variables.
773 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
775         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
776         item about 'align'; mark clause as 'Y' and directive as 'N'.
777         * testsuite/libgomp.fortran/allocate-2.f90: New test.
778         * testsuite/libgomp.fortran/allocate-3.f90: New test.
780 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
782         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
783         allow processing of device-specific values.
784         (omp_set_teams_thread_limit): Likewise.
785         (ialias): Likewise.
786         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
787         (omp_set_teams_thread_limit): Likewise.
788         (ialias): Likewise.
789         * icv-device.c (omp_get_teams_thread_limit): Likewise.
790         (ialias): Likewise.
791         (omp_set_teams_thread_limit): Likewise.
792         * icv.c (omp_set_teams_thread_limit): Removed.
793         (omp_get_teams_thread_limit): Likewise.
794         (ialias): Likewise.
795         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
796         to the limitation of the number of teams.
797         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
798         the number of teams by twice the number of compute units.
799         (parse_target_attributes): Limit the number of teams on gcn offload
800         devices.
801         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
802         handling.
803         (gomp_load_image_to_device): Added a size check for the ICVs struct
804         variable.
805         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
806         copy back the ICV values from device to host.
807         (GOMP_target_ext): Update the number of teams and threads in the kernel
808         args also considering device-specific values.
809         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
810         of OMP_TEAMS_THREAD_LIMIT from the environment.
811         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
812         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
813         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
814         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
815         * testsuite/libgomp.fortran/icv-5.f90: New test.
816         * testsuite/libgomp.fortran/icv-6.f90: New test.
818 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
820         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
821         (TR11): Add missing '@tab N @tab'.
823 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
825         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
827 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
829         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
830         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
831         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
832         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
833         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
834         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
835         * testsuite/libgomp.c/declare-variant-4.h: New header file.
837 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
839         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
841 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
843         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
844         * testsuite/libgomp.c/target-simd-clone-1.c: New.
845         * testsuite/libgomp.c/target-simd-clone-2.c: New.
846         * testsuite/libgomp.c/target-simd-clone-3.c: New.
848 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
850         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
851         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
852         as valid and the code having no reverse-offload code.
853         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
855 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
857         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
858         and status for Technical Report (TR) 11.
860 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
862         * config/gcn/libgomp-gcn.h (struct output):
863         Remove 'msg_u64' from the union, change
864         value_u64[2] to value_u64[6].
865         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
866         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
867         Likewise.
869 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
871         * config/gcn/libgomp-gcn.h: New file; contains
872         struct output, declared previously in plugin-gcn.c.
873         * config/gcn/target.c: Include it.
874         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
875         (GOMP_target_ext): Handle reverse offload.
876         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
877         (struct kernargs): Replace struct def by the one
878         from libgomp-gcn.h for output_data.
879         (process_reverse_offload): New.
880         (console_output): Call it.
882 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
883             Andrew Stubbs  <ams@codesourcery.com>
885         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
886         __builtin_gcn_kernarg_ptr instead of asm ("s8").
888 2022-11-14  Martin Liska  <mliska@suse.cz>
890         Revert:
891         2022-11-14  Martin Liska  <mliska@suse.cz>
893         * doc/amd-radeon-gcn.rst: New file.
894         * doc/conf.py: New file.
895         * doc/copyright.rst: New file.
896         * doc/cuda-streams-usage.rst: New file.
897         * doc/enabling-openacc.rst: New file.
898         * doc/enabling-openmp.rst: New file.
899         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
900         * doc/first-invocation-openacc-library-api.rst: New file.
901         * doc/funding.rst: New file.
902         * doc/general-public-license-3.rst: New file.
903         * doc/gnu-free-documentation-license.rst: New file.
904         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
905         * doc/index.rst: New file.
906         * doc/indices-and-tables.rst: New file.
907         * doc/introduction.rst: New file.
908         * doc/memory-allocation-with-libmemkind.rst: New file.
909         * doc/nvptx.rst: New file.
910         * doc/offload-target-specifics.rst: New file.
911         * doc/openacc-environment-variables.rst: New file.
912         * doc/openacc-environment-variables/accdevicenum.rst: New file.
913         * doc/openacc-environment-variables/accdevicetype.rst: New file.
914         * doc/openacc-environment-variables/accproflib.rst: New file.
915         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
916         * doc/openacc-introduction.rst: New file.
917         * doc/openacc-library-and-environment-variables.rst: New file.
918         * doc/openacc-library-interoperability.rst: New file.
919         * doc/openacc-profiling-interface.rst: New file.
920         * doc/openacc-runtime-library-routines.rst: New file.
921         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
922         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
923         * doc/openacc-runtime-library-routines/accattach.rst: New file.
924         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
925         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
926         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
927         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
928         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
929         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
930         * doc/openacc-runtime-library-routines/accfree.rst: New file.
931         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
932         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
933         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
934         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
935         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
936         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
937         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
938         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
939         * doc/openacc-runtime-library-routines/accinit.rst: New file.
940         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
941         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
942         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
943         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
944         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
945         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
946         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
947         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
948         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
949         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
950         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
951         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
952         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
953         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
954         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
955         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
956         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
957         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
958         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
959         * doc/openacc-runtime-library-routines/accwait.rst: New file.
960         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
961         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
962         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
963         * doc/openmp-context-selectors.rst: New file.
964         * doc/openmp-environment-variables.rst: New file.
965         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
966         * doc/openmp-environment-variables/gompdebug.rst: New file.
967         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
968         * doc/openmp-environment-variables/gompspincount.rst: New file.
969         * doc/openmp-environment-variables/gompstacksize.rst: New file.
970         * doc/openmp-environment-variables/ompcancellation.rst: New file.
971         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
972         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
973         * doc/openmp-environment-variables/ompdynamic.rst: New file.
974         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
975         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
976         * doc/openmp-environment-variables/ompnested.rst: New file.
977         * doc/openmp-environment-variables/ompnumteams.rst: New file.
978         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
979         * doc/openmp-environment-variables/ompplaces.rst: New file.
980         * doc/openmp-environment-variables/ompprocbind.rst: New file.
981         * doc/openmp-environment-variables/ompschedule.rst: New file.
982         * doc/openmp-environment-variables/ompstacksize.rst: New file.
983         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
984         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
985         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
986         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
987         * doc/openmp-implementation-specifics.rst: New file.
988         * doc/openmp-implementation-status.rst: New file.
989         * doc/openmp-implementation-status/openmp-45.rst: New file.
990         * doc/openmp-implementation-status/openmp-50.rst: New file.
991         * doc/openmp-implementation-status/openmp-51.rst: New file.
992         * doc/openmp-implementation-status/openmp-52.rst: New file.
993         * doc/openmp-runtime-library-routines.rst: New file.
994         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
995         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
996         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
997         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
998         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
999         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1000         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1001         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1002         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1003         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1004         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1005         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1006         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1007         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1008         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1009         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1010         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1011         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1012         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1013         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1014         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1015         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1016         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1017         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1018         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1019         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1020         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1021         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1022         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1023         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1024         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1025         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1026         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1027         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1028         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1029         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1030         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1031         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1032         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1033         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1034         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1035         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1036         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1037         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1038         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1039         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1040         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1041         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1042         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1043         * doc/reporting-bugs.rst: New file.
1044         * doc/the-libgomp-abi.rst: New file.
1045         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1046         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1047         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1048         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1049         New file.
1050         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1051         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1052         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1053         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1054         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1055         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1056         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1057         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1058         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1059         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1060         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1062 2022-11-14  Martin Liska  <mliska@suse.cz>
1064         Revert:
1065         2022-11-14  Martin Liska  <mliska@suse.cz>
1067         * Makefile.in: Support Sphinx based documentation.
1069 2022-11-14  Martin Liska  <mliska@suse.cz>
1071         Revert:
1072         2022-11-14  Martin Liska  <mliska@suse.cz>
1074         * libgomp.texi: Removed.
1076 2022-11-14  Martin Liska  <mliska@suse.cz>
1078         Revert:
1079         2022-11-14  Martin Liska  <mliska@suse.cz>
1081         * Makefile.in: Support --with-sphinx-build.
1082         * configure.ac: Likewise..
1083         * configure: Regenerate.
1085 2022-11-14  Martin Liska  <mliska@suse.cz>
1087         Revert:
1088         2022-11-09  Martin Liska  <mliska@suse.cz>
1090         * Makefile.in: Build info pages conditionally.
1092 2022-11-14  Martin Liska  <mliska@suse.cz>
1094         Revert:
1095         2022-11-14  Martin Liska  <mliska@suse.cz>
1097         * doc/amd-radeon-gcn.rst:
1098         Add trailing newline.
1099         * doc/copyright.rst:
1100         Add trailing newline.
1101         * doc/cuda-streams-usage.rst:
1102         Add trailing newline.
1103         * doc/enabling-openacc.rst:
1104         Add trailing newline.
1105         * doc/enabling-openmp.rst:
1106         Add trailing newline.
1107         * doc/first-invocation-nvidia-cublas-library-api.rst:
1108         Add trailing newline.
1109         * doc/first-invocation-openacc-library-api.rst:
1110         Add trailing newline.
1111         * doc/funding.rst:
1112         Add trailing newline.
1113         * doc/general-public-license-3.rst:
1114         Add trailing newline.
1115         * doc/gnu-free-documentation-license.rst:
1116         Add trailing newline.
1117         * doc/implementation-status-and-implementation-defined-behavior.rst:
1118         Add trailing newline.
1119         * doc/index.rst:
1120         Add trailing newline.
1121         * doc/indices-and-tables.rst:
1122         Add trailing newline.
1123         * doc/introduction.rst:
1124         Add trailing newline.
1125         * doc/memory-allocation-with-libmemkind.rst:
1126         Add trailing newline.
1127         * doc/nvptx.rst:
1128         Add trailing newline.
1129         * doc/offload-target-specifics.rst:
1130         Add trailing newline.
1131         * doc/openacc-environment-variables.rst:
1132         Add trailing newline.
1133         * doc/openacc-environment-variables/accdevicenum.rst:
1134         Add trailing newline.
1135         * doc/openacc-environment-variables/accdevicetype.rst:
1136         Add trailing newline.
1137         * doc/openacc-environment-variables/accproflib.rst:
1138         Add trailing newline.
1139         * doc/openacc-environment-variables/gccaccnotify.rst:
1140         Add trailing newline.
1141         * doc/openacc-introduction.rst:
1142         Add trailing newline.
1143         * doc/openacc-library-and-environment-variables.rst:
1144         Add trailing newline.
1145         * doc/openacc-library-interoperability.rst:
1146         Add trailing newline.
1147         * doc/openacc-profiling-interface.rst:
1148         Add trailing newline.
1149         * doc/openacc-runtime-library-routines.rst:
1150         Add trailing newline.
1151         * doc/openacc-runtime-library-routines/accasynctest.rst:
1152         Add trailing newline.
1153         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1154         Add trailing newline.
1155         * doc/openacc-runtime-library-routines/accattach.rst:
1156         Add trailing newline.
1157         * doc/openacc-runtime-library-routines/acccopyin.rst:
1158         Add trailing newline.
1159         * doc/openacc-runtime-library-routines/acccopyout.rst:
1160         Add trailing newline.
1161         * doc/openacc-runtime-library-routines/acccreate.rst:
1162         Add trailing newline.
1163         * doc/openacc-runtime-library-routines/accdelete.rst:
1164         Add trailing newline.
1165         * doc/openacc-runtime-library-routines/accdetach.rst:
1166         Add trailing newline.
1167         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1168         Add trailing newline.
1169         * doc/openacc-runtime-library-routines/accfree.rst:
1170         Add trailing newline.
1171         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1172         Add trailing newline.
1173         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1174         Add trailing newline.
1175         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1176         Add trailing newline.
1177         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1178         Add trailing newline.
1179         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1180         Add trailing newline.
1181         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1182         Add trailing newline.
1183         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1184         Add trailing newline.
1185         * doc/openacc-runtime-library-routines/acchostptr.rst:
1186         Add trailing newline.
1187         * doc/openacc-runtime-library-routines/accinit.rst:
1188         Add trailing newline.
1189         * doc/openacc-runtime-library-routines/accispresent.rst:
1190         Add trailing newline.
1191         * doc/openacc-runtime-library-routines/accmalloc.rst:
1192         Add trailing newline.
1193         * doc/openacc-runtime-library-routines/accmapdata.rst:
1194         Add trailing newline.
1195         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1196         Add trailing newline.
1197         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1198         Add trailing newline.
1199         * doc/openacc-runtime-library-routines/accondevice.rst:
1200         Add trailing newline.
1201         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1202         Add trailing newline.
1203         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1204         Add trailing newline.
1205         * doc/openacc-runtime-library-routines/accproflookup.rst:
1206         Add trailing newline.
1207         * doc/openacc-runtime-library-routines/accprofregister.rst:
1208         Add trailing newline.
1209         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1210         Add trailing newline.
1211         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1212         Add trailing newline.
1213         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1214         Add trailing newline.
1215         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1216         Add trailing newline.
1217         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1218         Add trailing newline.
1219         * doc/openacc-runtime-library-routines/accshutdown.rst:
1220         Add trailing newline.
1221         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1222         Add trailing newline.
1223         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1224         Add trailing newline.
1225         * doc/openacc-runtime-library-routines/accupdateself.rst:
1226         Add trailing newline.
1227         * doc/openacc-runtime-library-routines/accwait.rst:
1228         Add trailing newline.
1229         * doc/openacc-runtime-library-routines/accwaitall.rst:
1230         Add trailing newline.
1231         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1232         Add trailing newline.
1233         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1234         Add trailing newline.
1235         * doc/openmp-context-selectors.rst:
1236         Add trailing newline.
1237         * doc/openmp-environment-variables.rst:
1238         Add trailing newline.
1239         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1240         Add trailing newline.
1241         * doc/openmp-environment-variables/gompdebug.rst:
1242         Add trailing newline.
1243         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1244         Add trailing newline.
1245         * doc/openmp-environment-variables/gompspincount.rst:
1246         Add trailing newline.
1247         * doc/openmp-environment-variables/gompstacksize.rst:
1248         Add trailing newline.
1249         * doc/openmp-environment-variables/ompcancellation.rst:
1250         Add trailing newline.
1251         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1252         Add trailing newline.
1253         * doc/openmp-environment-variables/ompdisplayenv.rst:
1254         Add trailing newline.
1255         * doc/openmp-environment-variables/ompdynamic.rst:
1256         Add trailing newline.
1257         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1258         Add trailing newline.
1259         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1260         Add trailing newline.
1261         * doc/openmp-environment-variables/ompnested.rst:
1262         Add trailing newline.
1263         * doc/openmp-environment-variables/ompnumteams.rst:
1264         Add trailing newline.
1265         * doc/openmp-environment-variables/ompnumthreads.rst:
1266         Add trailing newline.
1267         * doc/openmp-environment-variables/ompplaces.rst:
1268         Add trailing newline.
1269         * doc/openmp-environment-variables/ompprocbind.rst:
1270         Add trailing newline.
1271         * doc/openmp-environment-variables/ompschedule.rst:
1272         Add trailing newline.
1273         * doc/openmp-environment-variables/ompstacksize.rst:
1274         Add trailing newline.
1275         * doc/openmp-environment-variables/omptargetoffload.rst:
1276         Add trailing newline.
1277         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1278         Add trailing newline.
1279         * doc/openmp-environment-variables/ompthreadlimit.rst:
1280         Add trailing newline.
1281         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1282         Add trailing newline.
1283         * doc/openmp-implementation-specifics.rst:
1284         Add trailing newline.
1285         * doc/openmp-implementation-status.rst:
1286         Add trailing newline.
1287         * doc/openmp-implementation-status/openmp-45.rst:
1288         Add trailing newline.
1289         * doc/openmp-implementation-status/openmp-50.rst:
1290         Add trailing newline.
1291         * doc/openmp-implementation-status/openmp-51.rst:
1292         Add trailing newline.
1293         * doc/openmp-implementation-status/openmp-52.rst:
1294         Add trailing newline.
1295         * doc/openmp-runtime-library-routines.rst:
1296         Add trailing newline.
1297         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1298         Add trailing newline.
1299         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1300         Add trailing newline.
1301         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1302         Add trailing newline.
1303         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1304         Add trailing newline.
1305         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1306         Add trailing newline.
1307         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1308         Add trailing newline.
1309         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1310         Add trailing newline.
1311         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1312         Add trailing newline.
1313         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1314         Add trailing newline.
1315         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1316         Add trailing newline.
1317         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1318         Add trailing newline.
1319         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1320         Add trailing newline.
1321         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1322         Add trailing newline.
1323         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1324         Add trailing newline.
1325         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1326         Add trailing newline.
1327         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1328         Add trailing newline.
1329         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1330         Add trailing newline.
1331         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1332         Add trailing newline.
1333         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1334         Add trailing newline.
1335         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1336         Add trailing newline.
1337         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1338         Add trailing newline.
1339         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1340         Add trailing newline.
1341         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1342         Add trailing newline.
1343         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1344         Add trailing newline.
1345         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1346         Add trailing newline.
1347         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1348         Add trailing newline.
1349         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1350         Add trailing newline.
1351         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1352         Add trailing newline.
1353         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1354         Add trailing newline.
1355         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1356         Add trailing newline.
1357         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1358         Add trailing newline.
1359         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1360         Add trailing newline.
1361         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1362         Add trailing newline.
1363         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1364         Add trailing newline.
1365         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1366         Add trailing newline.
1367         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1368         Add trailing newline.
1369         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1370         Add trailing newline.
1371         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1372         Add trailing newline.
1373         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1374         Add trailing newline.
1375         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1376         Add trailing newline.
1377         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1378         Add trailing newline.
1379         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1380         Add trailing newline.
1381         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1382         Add trailing newline.
1383         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1384         Add trailing newline.
1385         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1386         Add trailing newline.
1387         * doc/openmp-runtime-library-routines/omptestlock.rst:
1388         Add trailing newline.
1389         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1390         Add trailing newline.
1391         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1392         Add trailing newline.
1393         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1394         Add trailing newline.
1395         * doc/reporting-bugs.rst:
1396         Add trailing newline.
1397         * doc/the-libgomp-abi.rst:
1398         Add trailing newline.
1399         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1400         Add trailing newline.
1401         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1402         Add trailing newline.
1403         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1404         Add trailing newline.
1405         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1406         Add trailing newline.
1407         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1408         Add trailing newline.
1409         * doc/the-libgomp-abi/implementing-for-construct.rst:
1410         Add trailing newline.
1411         * doc/the-libgomp-abi/implementing-master-construct.rst:
1412         Add trailing newline.
1413         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1414         Add trailing newline.
1415         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1416         Add trailing newline.
1417         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1418         Add trailing newline.
1419         * doc/the-libgomp-abi/implementing-private-clause.rst:
1420         Add trailing newline.
1421         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1422         Add trailing newline.
1423         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1424         Add trailing newline.
1425         * doc/the-libgomp-abi/implementing-single-construct.rst:
1426         Add trailing newline.
1427         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1428         Add trailing newline.
1430 2022-11-14  Martin Liska  <mliska@suse.cz>
1432         Revert:
1433         2022-11-09  Martin Liska  <mliska@suse.cz>
1435         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1437 2022-11-14  Martin Liska  <mliska@suse.cz>
1439         Revert:
1440         2022-11-14  Martin Liska  <mliska@suse.cz>
1442         * doc/conf.py: Add newline at last line.
1444 2022-11-14  Martin Liska  <mliska@suse.cz>
1446         Revert:
1447         2022-11-14  Martin Liska  <mliska@suse.cz>
1449         PR other/107620
1450         * configure: Regenerate.
1451         * configure.ac: Always set sphinx-build.
1453 2022-11-13  Martin Liska  <mliska@suse.cz>
1455         PR other/107620
1456         * configure: Regenerate.
1457         * configure.ac: Always set sphinx-build.
1459 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
1461         PR libgomp/107641
1462         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1463         unsigned long.  Change type of upper from unsigned to unsigned long.
1465 2022-11-10  Martin Liska  <mliska@suse.cz>
1467         * doc/conf.py: Add newline at last line.
1469 2022-11-09  Martin Liska  <mliska@suse.cz>
1471         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1473 2022-11-09  Martin Liska  <mliska@suse.cz>
1475         * doc/amd-radeon-gcn.rst:
1476         Add trailing newline.
1477         * doc/copyright.rst:
1478         Add trailing newline.
1479         * doc/cuda-streams-usage.rst:
1480         Add trailing newline.
1481         * doc/enabling-openacc.rst:
1482         Add trailing newline.
1483         * doc/enabling-openmp.rst:
1484         Add trailing newline.
1485         * doc/first-invocation-nvidia-cublas-library-api.rst:
1486         Add trailing newline.
1487         * doc/first-invocation-openacc-library-api.rst:
1488         Add trailing newline.
1489         * doc/funding.rst:
1490         Add trailing newline.
1491         * doc/general-public-license-3.rst:
1492         Add trailing newline.
1493         * doc/gnu-free-documentation-license.rst:
1494         Add trailing newline.
1495         * doc/implementation-status-and-implementation-defined-behavior.rst:
1496         Add trailing newline.
1497         * doc/index.rst:
1498         Add trailing newline.
1499         * doc/indices-and-tables.rst:
1500         Add trailing newline.
1501         * doc/introduction.rst:
1502         Add trailing newline.
1503         * doc/memory-allocation-with-libmemkind.rst:
1504         Add trailing newline.
1505         * doc/nvptx.rst:
1506         Add trailing newline.
1507         * doc/offload-target-specifics.rst:
1508         Add trailing newline.
1509         * doc/openacc-environment-variables.rst:
1510         Add trailing newline.
1511         * doc/openacc-environment-variables/accdevicenum.rst:
1512         Add trailing newline.
1513         * doc/openacc-environment-variables/accdevicetype.rst:
1514         Add trailing newline.
1515         * doc/openacc-environment-variables/accproflib.rst:
1516         Add trailing newline.
1517         * doc/openacc-environment-variables/gccaccnotify.rst:
1518         Add trailing newline.
1519         * doc/openacc-introduction.rst:
1520         Add trailing newline.
1521         * doc/openacc-library-and-environment-variables.rst:
1522         Add trailing newline.
1523         * doc/openacc-library-interoperability.rst:
1524         Add trailing newline.
1525         * doc/openacc-profiling-interface.rst:
1526         Add trailing newline.
1527         * doc/openacc-runtime-library-routines.rst:
1528         Add trailing newline.
1529         * doc/openacc-runtime-library-routines/accasynctest.rst:
1530         Add trailing newline.
1531         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1532         Add trailing newline.
1533         * doc/openacc-runtime-library-routines/accattach.rst:
1534         Add trailing newline.
1535         * doc/openacc-runtime-library-routines/acccopyin.rst:
1536         Add trailing newline.
1537         * doc/openacc-runtime-library-routines/acccopyout.rst:
1538         Add trailing newline.
1539         * doc/openacc-runtime-library-routines/acccreate.rst:
1540         Add trailing newline.
1541         * doc/openacc-runtime-library-routines/accdelete.rst:
1542         Add trailing newline.
1543         * doc/openacc-runtime-library-routines/accdetach.rst:
1544         Add trailing newline.
1545         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1546         Add trailing newline.
1547         * doc/openacc-runtime-library-routines/accfree.rst:
1548         Add trailing newline.
1549         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1550         Add trailing newline.
1551         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1552         Add trailing newline.
1553         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1554         Add trailing newline.
1555         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1556         Add trailing newline.
1557         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1558         Add trailing newline.
1559         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1560         Add trailing newline.
1561         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1562         Add trailing newline.
1563         * doc/openacc-runtime-library-routines/acchostptr.rst:
1564         Add trailing newline.
1565         * doc/openacc-runtime-library-routines/accinit.rst:
1566         Add trailing newline.
1567         * doc/openacc-runtime-library-routines/accispresent.rst:
1568         Add trailing newline.
1569         * doc/openacc-runtime-library-routines/accmalloc.rst:
1570         Add trailing newline.
1571         * doc/openacc-runtime-library-routines/accmapdata.rst:
1572         Add trailing newline.
1573         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1574         Add trailing newline.
1575         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1576         Add trailing newline.
1577         * doc/openacc-runtime-library-routines/accondevice.rst:
1578         Add trailing newline.
1579         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1580         Add trailing newline.
1581         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1582         Add trailing newline.
1583         * doc/openacc-runtime-library-routines/accproflookup.rst:
1584         Add trailing newline.
1585         * doc/openacc-runtime-library-routines/accprofregister.rst:
1586         Add trailing newline.
1587         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1588         Add trailing newline.
1589         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1590         Add trailing newline.
1591         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1592         Add trailing newline.
1593         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1594         Add trailing newline.
1595         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1596         Add trailing newline.
1597         * doc/openacc-runtime-library-routines/accshutdown.rst:
1598         Add trailing newline.
1599         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1600         Add trailing newline.
1601         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1602         Add trailing newline.
1603         * doc/openacc-runtime-library-routines/accupdateself.rst:
1604         Add trailing newline.
1605         * doc/openacc-runtime-library-routines/accwait.rst:
1606         Add trailing newline.
1607         * doc/openacc-runtime-library-routines/accwaitall.rst:
1608         Add trailing newline.
1609         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1610         Add trailing newline.
1611         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1612         Add trailing newline.
1613         * doc/openmp-context-selectors.rst:
1614         Add trailing newline.
1615         * doc/openmp-environment-variables.rst:
1616         Add trailing newline.
1617         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1618         Add trailing newline.
1619         * doc/openmp-environment-variables/gompdebug.rst:
1620         Add trailing newline.
1621         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1622         Add trailing newline.
1623         * doc/openmp-environment-variables/gompspincount.rst:
1624         Add trailing newline.
1625         * doc/openmp-environment-variables/gompstacksize.rst:
1626         Add trailing newline.
1627         * doc/openmp-environment-variables/ompcancellation.rst:
1628         Add trailing newline.
1629         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1630         Add trailing newline.
1631         * doc/openmp-environment-variables/ompdisplayenv.rst:
1632         Add trailing newline.
1633         * doc/openmp-environment-variables/ompdynamic.rst:
1634         Add trailing newline.
1635         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1636         Add trailing newline.
1637         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1638         Add trailing newline.
1639         * doc/openmp-environment-variables/ompnested.rst:
1640         Add trailing newline.
1641         * doc/openmp-environment-variables/ompnumteams.rst:
1642         Add trailing newline.
1643         * doc/openmp-environment-variables/ompnumthreads.rst:
1644         Add trailing newline.
1645         * doc/openmp-environment-variables/ompplaces.rst:
1646         Add trailing newline.
1647         * doc/openmp-environment-variables/ompprocbind.rst:
1648         Add trailing newline.
1649         * doc/openmp-environment-variables/ompschedule.rst:
1650         Add trailing newline.
1651         * doc/openmp-environment-variables/ompstacksize.rst:
1652         Add trailing newline.
1653         * doc/openmp-environment-variables/omptargetoffload.rst:
1654         Add trailing newline.
1655         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1656         Add trailing newline.
1657         * doc/openmp-environment-variables/ompthreadlimit.rst:
1658         Add trailing newline.
1659         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1660         Add trailing newline.
1661         * doc/openmp-implementation-specifics.rst:
1662         Add trailing newline.
1663         * doc/openmp-implementation-status.rst:
1664         Add trailing newline.
1665         * doc/openmp-implementation-status/openmp-45.rst:
1666         Add trailing newline.
1667         * doc/openmp-implementation-status/openmp-50.rst:
1668         Add trailing newline.
1669         * doc/openmp-implementation-status/openmp-51.rst:
1670         Add trailing newline.
1671         * doc/openmp-implementation-status/openmp-52.rst:
1672         Add trailing newline.
1673         * doc/openmp-runtime-library-routines.rst:
1674         Add trailing newline.
1675         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1676         Add trailing newline.
1677         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1678         Add trailing newline.
1679         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1680         Add trailing newline.
1681         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1682         Add trailing newline.
1683         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1684         Add trailing newline.
1685         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1686         Add trailing newline.
1687         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1688         Add trailing newline.
1689         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1690         Add trailing newline.
1691         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1692         Add trailing newline.
1693         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1694         Add trailing newline.
1695         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1696         Add trailing newline.
1697         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1698         Add trailing newline.
1699         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1700         Add trailing newline.
1701         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1702         Add trailing newline.
1703         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1704         Add trailing newline.
1705         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1706         Add trailing newline.
1707         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1708         Add trailing newline.
1709         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1710         Add trailing newline.
1711         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1712         Add trailing newline.
1713         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1714         Add trailing newline.
1715         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1716         Add trailing newline.
1717         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1718         Add trailing newline.
1719         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1720         Add trailing newline.
1721         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1722         Add trailing newline.
1723         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1724         Add trailing newline.
1725         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1726         Add trailing newline.
1727         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1728         Add trailing newline.
1729         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1730         Add trailing newline.
1731         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1732         Add trailing newline.
1733         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1734         Add trailing newline.
1735         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1736         Add trailing newline.
1737         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1738         Add trailing newline.
1739         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1740         Add trailing newline.
1741         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1742         Add trailing newline.
1743         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1744         Add trailing newline.
1745         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1746         Add trailing newline.
1747         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1748         Add trailing newline.
1749         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1750         Add trailing newline.
1751         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1752         Add trailing newline.
1753         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1754         Add trailing newline.
1755         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1756         Add trailing newline.
1757         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1758         Add trailing newline.
1759         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1760         Add trailing newline.
1761         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1762         Add trailing newline.
1763         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1764         Add trailing newline.
1765         * doc/openmp-runtime-library-routines/omptestlock.rst:
1766         Add trailing newline.
1767         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1768         Add trailing newline.
1769         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1770         Add trailing newline.
1771         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1772         Add trailing newline.
1773         * doc/reporting-bugs.rst:
1774         Add trailing newline.
1775         * doc/the-libgomp-abi.rst:
1776         Add trailing newline.
1777         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1778         Add trailing newline.
1779         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1780         Add trailing newline.
1781         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1782         Add trailing newline.
1783         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1784         Add trailing newline.
1785         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1786         Add trailing newline.
1787         * doc/the-libgomp-abi/implementing-for-construct.rst:
1788         Add trailing newline.
1789         * doc/the-libgomp-abi/implementing-master-construct.rst:
1790         Add trailing newline.
1791         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1792         Add trailing newline.
1793         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1794         Add trailing newline.
1795         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1796         Add trailing newline.
1797         * doc/the-libgomp-abi/implementing-private-clause.rst:
1798         Add trailing newline.
1799         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1800         Add trailing newline.
1801         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1802         Add trailing newline.
1803         * doc/the-libgomp-abi/implementing-single-construct.rst:
1804         Add trailing newline.
1805         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1806         Add trailing newline.
1808 2022-11-09  Martin Liska  <mliska@suse.cz>
1810         * Makefile.in: Build info pages conditionally.
1812 2022-11-09  Martin Liska  <mliska@suse.cz>
1814         * Makefile.in: Support --with-sphinx-build.
1815         * configure.ac: Likewise..
1816         * configure: Regenerate.
1818 2022-11-09  Martin Liska  <mliska@suse.cz>
1820         * libgomp.texi: Removed.
1822 2022-11-09  Martin Liska  <mliska@suse.cz>
1824         * Makefile.in: Support Sphinx based documentation.
1826 2022-11-09  Martin Liska  <mliska@suse.cz>
1828         * doc/amd-radeon-gcn.rst: New file.
1829         * doc/conf.py: New file.
1830         * doc/copyright.rst: New file.
1831         * doc/cuda-streams-usage.rst: New file.
1832         * doc/enabling-openacc.rst: New file.
1833         * doc/enabling-openmp.rst: New file.
1834         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1835         * doc/first-invocation-openacc-library-api.rst: New file.
1836         * doc/funding.rst: New file.
1837         * doc/general-public-license-3.rst: New file.
1838         * doc/gnu-free-documentation-license.rst: New file.
1839         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1840         * doc/index.rst: New file.
1841         * doc/indices-and-tables.rst: New file.
1842         * doc/introduction.rst: New file.
1843         * doc/memory-allocation-with-libmemkind.rst: New file.
1844         * doc/nvptx.rst: New file.
1845         * doc/offload-target-specifics.rst: New file.
1846         * doc/openacc-environment-variables.rst: New file.
1847         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1848         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1849         * doc/openacc-environment-variables/accproflib.rst: New file.
1850         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1851         * doc/openacc-introduction.rst: New file.
1852         * doc/openacc-library-and-environment-variables.rst: New file.
1853         * doc/openacc-library-interoperability.rst: New file.
1854         * doc/openacc-profiling-interface.rst: New file.
1855         * doc/openacc-runtime-library-routines.rst: New file.
1856         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1857         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1858         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1859         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1860         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1861         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1862         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1863         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1864         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1865         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1866         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1867         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1868         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1869         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1870         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1871         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1872         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1873         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1874         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1875         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1876         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1877         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1878         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1879         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1880         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1881         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1882         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1883         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1884         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1885         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1886         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1887         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1888         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1889         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1890         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1891         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1892         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1893         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1894         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1895         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1896         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1897         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1898         * doc/openmp-context-selectors.rst: New file.
1899         * doc/openmp-environment-variables.rst: New file.
1900         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1901         * doc/openmp-environment-variables/gompdebug.rst: New file.
1902         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1903         * doc/openmp-environment-variables/gompspincount.rst: New file.
1904         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1905         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1906         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1907         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1908         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1909         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1910         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1911         * doc/openmp-environment-variables/ompnested.rst: New file.
1912         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1913         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1914         * doc/openmp-environment-variables/ompplaces.rst: New file.
1915         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1916         * doc/openmp-environment-variables/ompschedule.rst: New file.
1917         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1918         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1919         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1920         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1921         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1922         * doc/openmp-implementation-specifics.rst: New file.
1923         * doc/openmp-implementation-status.rst: New file.
1924         * doc/openmp-implementation-status/openmp-45.rst: New file.
1925         * doc/openmp-implementation-status/openmp-50.rst: New file.
1926         * doc/openmp-implementation-status/openmp-51.rst: New file.
1927         * doc/openmp-implementation-status/openmp-52.rst: New file.
1928         * doc/openmp-runtime-library-routines.rst: New file.
1929         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1930         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1931         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1932         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1933         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1934         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1935         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1936         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1937         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1938         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1939         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1940         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1941         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1942         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1943         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1944         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1945         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1946         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1947         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1948         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1949         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1950         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1951         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1952         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1953         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1954         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1955         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1956         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1957         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1958         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1959         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1960         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1961         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1962         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1963         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1964         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1965         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1966         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1967         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1968         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1969         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1970         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1971         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1972         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1973         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1974         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1975         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1976         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1977         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1978         * doc/reporting-bugs.rst: New file.
1979         * doc/the-libgomp-abi.rst: New file.
1980         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1981         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1982         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1983         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1984         New file.
1985         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1986         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1987         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1988         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1989         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1990         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1991         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1992         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1993         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1994         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1995         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1997 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1999         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2000         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2001         documentation.
2002         * plugin/configfrag.ac <enable_offload_targets>
2003         [*-intelmic-* | *-intelmicemul-*]: Remove.
2004         * configure: Regenerate.
2005         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2006         handling.
2007         (offload_target_to_openacc_device_type)
2008         [$offload_target = *-intelmic*]: Remove.
2009         (check_effective_target_offload_device_intel_mic)
2010         (check_effective_target_offload_device_any_intel_mic): Remove.
2011         * testsuite/libgomp.c-c++-common/on_device_arch.h
2012         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2013         (any_device_arch_intel_mic): Remove.
2014         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2015         'offload_device_any_intel_mic' XFAIL.
2016         * testsuite/libgomp.fortran/target10.f90: Likewise.
2018 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2020         * testsuite/libgomp.fortran/target-11.f90: New test.
2021         * testsuite/libgomp.fortran/target-13.f90: New test.
2023 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2025         PR libgomp/106643
2026         PR fortran/96668
2027         * oacc-mem.c (goacc_enter_data_internal): Support
2028         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2029         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2030         Adjust.
2031         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2033 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2035         PR libgomp/106643
2036         * oacc-mem.c (goacc_enter_data_internal): Support
2037         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2038         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2039         New.
2040         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2041         New.
2043 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2045         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2046         New.
2048 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2050         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2051         New.
2053 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2054             Thomas Schwinge  <thomas@codesourcery.com>
2056         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2058 2022-10-28  Julian Brown  <julian@codesourcery.com>
2059             Thomas Schwinge  <thomas@codesourcery.com>
2061         PR middle-end/90115
2062         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2063         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2064         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2065         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2066         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2068 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2070         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2071         'ptx_dev->rev_data'.
2073 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2075         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2076         'static' for this variable.
2077         * config/nvptx/libgomp-nvptx.h: New file.
2078         * config/nvptx/target.c: Include it.
2079         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2080         (GOMP_REV_OFFLOAD_VAR): Declare var.
2081         (GOMP_target_ext): Handle reverse offload.
2082         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2083         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2084         * target.c (gomp_target_rev): ... this new stub function.
2085         * libgomp.h (gomp_target_rev): Declare.
2086         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2087         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2088         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2089         (struct ptx_device): Add rev_data member.
2090         (nvptx_open_device): Remove async_engines query, last used in
2091         r10-304-g1f4c5b9b; add unified-address assert check.
2092         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2093         support.
2094         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2095         offload functions exist. Make offload var available
2096         on host and device.
2097         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2098         (GOMP_OFFLOAD_run): Handle reverse offload.
2100 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2102         PR tree-optimization/107195
2103         PR target/107344
2104         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2105         regions checking.
2107 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2109         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2110         New.
2111         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2112         on_device_arch_gcn): New.
2113         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2114         requires-4.c but using heap-allocated memory.
2116 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2118         PR target/105421
2119         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2121 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2123         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2124         '-foffload-options' syntax.
2126 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2128         * testsuite/libgomp.fortran/task-7.f90: New test.
2129         * testsuite/libgomp.fortran/task-8.f90: New test.
2130         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2131         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2132         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2133         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2134         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2136 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2138         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2139         in deprecation bullet.
2141 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2143         * omp.h.in (omp_in_explicit_task): Declare.
2144         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2145         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2146         * libgomp.map (OMP_5.2): New symbol version, export
2147         omp_in_explicit_task and omp_in_explicit_task_.
2148         * task.c (omp_in_explicit_task): New function.
2149         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2150         (omp_in_explicit_task_): New function.
2151         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2152         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2153         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2154         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2156 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2158         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2159         from within explicit task.
2160         * target.c (GOMP_target_ext): Likewise.
2161         * testsuite/libgomp.c/task-7.c: New test.
2162         * testsuite/libgomp.c/task-8.c: New test.
2163         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2164         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2166 2022-10-12  Martin Liska  <mliska@suse.cz>
2168         * configure: Regenerate.
2170 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2171             Olivier Hainque  <hainque@adacore.com>
2173         * configure: Regenerate.
2175 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2177         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2179 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
2181         * libgomp.texi (Support begin/end declare target syntax in C/C++):
2182         Mark as implemented.
2184 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
2186         PR fortran/105318
2187         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2189 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
2191         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2192         for C/C++. Remove duplicated 'begin declare target' entry.
2194 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
2196         PR c/106981
2197         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2199 2022-09-14  Julian Brown  <julian@codesourcery.com>
2201         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2202         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2203         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2204         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2205         test to here, make "run" test.
2207 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
2209         PR libgomp/106906
2210         * env.c (get_icv_member_addr): Cast false to void * before assigning
2211         it to icv_addr[1], and comment the whole assignment out.
2213 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
2215         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2216         (nvptx): ... here.
2218 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2220         * libgomp.texi (Offload-Target Specifics: nvptx): Document
2221         that reverse offload requires >= -march=sm_35.
2222         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2223         with -misa=sm_35.
2224         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2225         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2226         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2227         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2228         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2230 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2232         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2233         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2235 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
2237         PR libgomp/106894
2238         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2239         (main): Avoid tests for which corresponding non-_ALL suffixed variable
2240         is in the environment, or for OMP_NUM_TEAMS on the device
2241         OMP_NUM_TEAMS_DEV_?.
2243 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
2245         * env.c (initialize_env): Include libiberty environ.h.
2247 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2249         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2250         function address table '$offload_func_table' if rev_fn_table
2251         is not NULL.
2253 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2255         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2256         .offload_func_table to populate rev_fn_table when requested.
2258 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2260         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2261         'uint64_t **rev_fn_table' argument.
2262         * oacc-host.c (host_load_image): Likewise.
2263         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2264         currently unused.
2265         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2266         * target.c (gomp_load_image_to_device): Update call but pass
2267         NULL for now.
2269 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
2271         PR libgomp/106894
2272         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2273         char * for dest[1] initialization from params[1].  Formatting fixes.
2275 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2277         PR fortran/106670
2278         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2280 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2282         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2283         section; move OpenMP Context Selectors from ...
2284         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2285         'nvptx' sections.
2287 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
2289         * config/gcn/icv-device.c (omp_get_default_device): Return device-
2290         specific ICV.
2291         (omp_get_max_teams): Added for GCN devices.
2292         (omp_set_num_teams): Likewise.
2293         (ialias): Likewise.
2294         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2295         specific ICV.
2296         (omp_get_max_teams): Added for NVPTX devices.
2297         (omp_set_num_teams): Likewise.
2298         (ialias): Likewise.
2299         * env.c (struct gomp_icv_list): New struct to store entries of initial
2300         ICV values.
2301         (struct gomp_offload_icv_list): New struct to store entries of device-
2302         specific ICV values that are copied to the device and back.
2303         (struct gomp_default_icv_values): New struct to store default values of
2304         ICVs according to the OpenMP standard.
2305         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2306         (print_env_var_error): Function that prints an error for invalid values
2307         for ICVs.
2308         (parse_unsigned_long_1): Removed getenv.  Generalized.
2309         (parse_unsigned_long): Likewise.
2310         (parse_int_1): Likewise.
2311         (parse_int): Likewise.
2312         (parse_int_secure): Likewise.
2313         (parse_unsigned_long_list): Likewise.
2314         (parse_target_offload): Likewise.
2315         (parse_bind_var): Likewise.
2316         (parse_stacksize): Likewise.
2317         (parse_boolean): Likewise.
2318         (parse_wait_policy): Likewise.
2319         (parse_allocator): Likewise.
2320         (omp_display_env): Extended to output different variants of environment
2321         variables.
2322         (print_schedule): New helper function for omp_display_env which prints
2323         the values of run_sched_var.
2324         (print_proc_bind): New helper function for omp_display_env which prints
2325         the values of proc_bind_var.
2326         (enum gomp_parse_type): Collection of types used for parsing environment
2327         variables.
2328         (ENTRY): Preprocess string lengths of environment variables.
2329         (OMP_VAR_CNT): Preprocess table size.
2330         (OMP_HOST_VAR_CNT): Likewise.
2331         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2332         number.
2333         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2334         (gomp_set_icv_flag): Sets a flag for a particular ICV.
2335         (print_device_specific_icvs): New helper function for omp_display_env to
2336         print device specific ICV values.
2337         (get_device_num): New helper function for parse_device_specific.
2338         Extracts the device number from an environment variable name.
2339         (get_icv_member_addr): Gets the memory address for a particular member
2340         of an ICV struct.
2341         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2342         (initialize_icvs): New function to initialize a gomp_initial_icvs
2343         struct.
2344         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2345         (startswith): Checks if a string starts with a given prefix.
2346         (initialize_env): Extended to parse the new syntax of environment
2347         variables.
2348         * icv-device.c (omp_get_max_teams): Added.
2349         (ialias): Likewise.
2350         (omp_set_num_teams): Likewise.
2351         * icv.c (omp_set_num_teams): Moved to icv-device.c.
2352         (omp_get_max_teams): Likewise.
2353         (ialias): Likewise.
2354         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2355         (GOMP_ADDITIONAL_ICVS): New target-side struct that
2356         holds the designated ICVs of the target device.
2357         * libgomp.h (enum gomp_icvs): Collection of ICVs.
2358         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2359         no suffix.
2360         (enum gomp_env_suffix): Collection of possible suffixes of environment
2361         variables.
2362         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2363         initial values.
2364         (struct gomp_default_icv):New struct to hold ICVs for which we need
2365         to store initial values.
2366         (struct gomp_icv_list): Definition of a linked list that is used for
2367         storing ICVs for the devices and also for _DEV, _ALL, and without
2368         suffix.
2369         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2370         a device.
2371         (struct gomp_offload_icv_list): Definition of a linked list that holds
2372         device-specific ICVs that are copied to devices.
2373         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2374         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2375         * libgomp.texi: Updated.
2376         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2377         further ICVs from the offload image.
2378         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2379         * target.c (gomp_get_offload_icv_item): Get a list item of
2380         gomp_offload_icv_list.
2381         (get_gomp_offload_icvs): New. Returns the ICV values
2382         depending on the device num and the variable hierarchy.
2383         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2384         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2385         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2386         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2387         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2388         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2389         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2391 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
2393         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2394         fully supported.
2395         * testsuite/libgomp.c/doacross-4.c: New test.
2396         * testsuite/libgomp.c/doacross-5.c: New test.
2397         * testsuite/libgomp.c/doacross-6.c: New test.
2398         * testsuite/libgomp.c/doacross-7.c: New test.
2400 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
2402         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2404 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
2406         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2407         refer to 'requires'.
2408         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2409         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2410         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2411         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2413 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2415         PR middle-end/106548
2416         * testsuite/libgomp.c/linear-2.c: New test.
2418 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2420         * splay-tree.h: Fix splay_* macro unsetting if
2421         splay_tree_prefix is defined.
2423 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
2425         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2427 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
2429         PR middle-end/106449
2430         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2432 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
2434         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2436 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
2438         PR middle-end/101551
2439         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2440         'offloading_enabled' diagnostics issue.
2442 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
2444         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2445         '_Pragma' diagnostics verification.
2447 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
2449         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2450         improved warning locations.
2451         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2453 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2455         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2456         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2457         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2458         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2459         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2461 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2463         * target.c (GOMP_offload_register, GOMP_offload_unregister):
2464         Denote as legacy entry points.
2465         * testsuite/lib/libgomp.exp
2466         (check_effective_target_offload_target_any): New proc.
2467         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2468         'offload_target_any'.
2469         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2470         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2471         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2473 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2475         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2476         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2478 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2480         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2482 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
2484         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2485         'data'.
2486         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
2488 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2489             Jakub Jelinek  <jakub@redhat.com>
2491         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2493 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2494             Chung-Lin Tang  <cltang@codesourcery.com>
2495             Thomas Schwinge  <thomas@codesourcery.com>
2497         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2498         omp_requires_mask arg.
2499         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2500         return -1 when device available but omp_requires_mask != 0.
2501         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2502         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2503         Update call.
2504         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2505         goacc_attach_host_thread_to_device, acc_get_num_devices,
2506         acc_set_device_num, get_property_any): Likewise.
2507         * target.c (omp_requires_mask): New global var.
2508         (gomp_requires_to_name): New.
2509         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2510         (gomp_target_init): Handle omp_requires_mask.
2511         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2512         (OpenMP 5.1): Add a missed item.
2513         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2514         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2515         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2516         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2517         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2518         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2519         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2520         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2521         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2522         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2523         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2524         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2525         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2526         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2527         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2528         * testsuite/libgomp.fortran/requires-1.f90: New test.
2530 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
2532         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2533         with fromto as implemented.
2535 2022-06-28  Martin Liska  <mliska@suse.cz>
2537         * acinclude.m4: Fix typo in mold linker detection.
2538         * Makefile.in: Regenerate.
2539         * configure: Regenerate.
2541 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
2542             Paul Iannetta  <piannetta@kalrayinc.com>
2544         PR libgomp/106045
2545         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2547 2022-06-17  Martin Liska  <mliska@suse.cz>
2549         * libgomp.texi: Add table header for new features of
2550         OpenMP 5.2.
2552 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
2554         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2555         q to ddress of an automatic variable.  Use -5 instead of -1 in
2556         omp_get_mapped_ptr call.  Add test with omp_initial_device.
2557         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2558         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
2559         Renumber stop arguments afterwards.
2561 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
2563         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2564         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2565         parameters.
2566         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2567         * target.c (resolve_device): Add remapped argument, handle
2568         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2569         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2570         if remapped, otherwise treat omp_initial_device that way.  For
2571         omp_invalid_device, always emit gomp_fatal, even when
2572         OMP_TARGET_OFFLOAD isn't mandatory.
2573         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2574         GOMP_target_update, GOMP_target_update_ext,
2575         GOMP_target_enter_exit_data): Pass true as remapped argument to
2576         resolve_device.
2577         (omp_target_alloc, omp_target_free, omp_target_is_present,
2578         omp_target_memcpy_check, omp_target_associate_ptr,
2579         omp_target_disassociate_ptr, omp_get_mapped_ptr,
2580         omp_target_is_accessible): Pass false as remapped argument to
2581         resolve_device.  Treat omp_initial_device the same as
2582         gomp_get_num_devices ().  Don't bypass resolve_device calls if
2583         device_num is negative.
2584         (omp_pause_resource): Treat omp_initial_device the same as
2585         gomp_get_num_devices ().  Call resolve_device.
2586         * icv-device.c (omp_set_default_device): Always set to device_num
2587         even when it is negative.
2588         * libgomp.texi: Document that Conforming device numbers,
2589         omp_initial_device and omp_invalid_device is implemented.
2590         * testsuite/libgomp.c/target-41.c (main): Add test with
2591         omp_initial_device.
2592         * testsuite/libgomp.c/target-45.c: New test.
2593         * testsuite/libgomp.c/target-46.c: New test.
2594         * testsuite/libgomp.c/target-47.c: New test.
2595         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2596         test with omp_initial_device.  Use -5 instead of -1 for negative value
2597         test.
2598         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2599         Likewise.  Reorder stop numbers.
2601 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
2603         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2604         rather than "libmemkind.so".
2606 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2608         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2609         * plugin/configfrag.ac (--with-cuda-driver)
2610         (--with-cuda-driver-include, --with-cuda-driver-lib)
2611         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2612         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2613         Remove.
2614         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2615         (cuda_driver_lib): Remove.
2616         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2617         * Makefile.in: Regenerate.
2618         * configure: Likewise.
2619         * testsuite/Makefile.in: Likewise.
2621 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2623         * config/linux/allocator.c: Fix up #include directive.
2625 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2627         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2628         (enum gomp_memkind_kind): New type.
2629         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2630         is defined.
2631         (struct gomp_memkind_data): New type.
2632         (memkind_data, memkind_data_once): New variables.
2633         (gomp_init_memkind, gomp_get_memkind): New functions.
2634         (omp_init_allocator): Initialize data.memkind, don't fail for
2635         omp_high_bw_mem_space if libmemkind supports it.
2636         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2637         memkind support of LIBGOMP_USE_MEMKIND is defined.
2638         * config/linux/allocator.c: New file.
2640 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
2642         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2643         * testsuite/libgomp.fortran/scope-2.f90: New test.
2645 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
2647         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2649 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
2651         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2652         scope construct with allocate clause.
2653         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2654         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2656 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
2658         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2659         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2660         explicit 'to' and 'enter' clause.
2661         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2663 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
2665         PR libgomp/105745
2666         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2667         defined(HAVE__ALIGNED_MALLOC) case.
2668         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2669         handling as last option before fallback instead of first.
2670         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2671         _aligned_free.
2673 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
2675         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2676         clauses to enter.
2677         * testsuite/libgomp.c/target-41.c: Likewise.
2679 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
2681         * libgomp.texi (Other new OpenMP 5.1 features): Add
2682         'begin declare target'.
2683         (Other new OpenMP 5.2 features): New.
2685 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
2687         * task.c (gomp_task_run_post_handle_dependers): If empty_task
2688         is the last task taskwait depend depends on, wake it up.
2689         Similarly if it is the last child of a taskgroup, use atomic
2690         store instead of decrement and awak taskgroup wait if any.
2691         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2693 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
2695         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2696         EF_AMDGPU_MACH_AMDGCN_GFX90a.
2697         (gcn_gfx90a_s): New.
2698         (isa_hsa_name): Support gfx90a.
2699         (isa_code): Likewise.
2701 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
2703         PR c/105378
2704         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2705         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2707 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
2709         PR c/105378
2710         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2711         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2712         * task.c (empty_task): New function.
2713         (gomp_task_run_post_handle_depend_hash): Declare earlier.
2714         (gomp_task_run_post_handle_depend): Declare.
2715         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2716         for.
2717         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2718         (GOMP_taskwait_depend_nowait): New function.
2719         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2721 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
2723         PR fortran/104949
2724         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2725         Support attach for GOMP_MAP_FIRSTPRIVATE.
2726         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2727         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2728         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2730 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
2732         * libgomp.map: Added omp_target_memcpy_async and
2733         omp_target_memcpy_rect_async.
2734         * libgomp.texi: Both functions are now supported.
2735         * omp.h.in: Added omp_target_memcpy_async and
2736         omp_target_memcpy_rect_async.
2737         * omp_lib.f90.in: Added interfaces for both new functions.
2738         * omp_lib.h.in: Likewise.
2739         * target.c (ialias_redirect): Added for GOMP_task.
2740         (omp_target_memcpy): Restructured into check and copy part.
2741         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2742         omp_target_memcpy_async that checks requirements.
2743         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2744         omp_target_memcpy_async that performs the memcpy.
2745         (omp_target_memcpy_async_helper): New helper function that is used in
2746         omp_target_memcpy_async for the asynchronous task.
2747         (omp_target_memcpy_async): Added.
2748         (omp_target_memcpy_rect): Restructured into check and copy part.
2749         (omp_target_memcpy_rect_check): New helper function for
2750         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2751         requirements.
2752         (omp_target_memcpy_rect_copy): New helper function for
2753         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2754         the memcpy.
2755         (omp_target_memcpy_rect_async_helper): New helper function that is used
2756         in omp_target_memcpy_rect_async for the asynchronous task.
2757         (omp_target_memcpy_rect_async): Added.
2758         * task.c (ialias): Added for GOMP_task.
2759         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2760         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2761         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2762         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2763         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2764         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2765         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2766         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2768 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
2770         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2771         (OpenMP Context Selectors): Add missing comma.
2772         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2773         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2774         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2775         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2777 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2779         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2780         comment for omp_display_env feature.
2782 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2784         * libgomp.texi (Offload-Target Specifics): New chapter; add section
2785         to document OpenMP context selectors.
2787 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2789         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2790         from bool to unsigned char.
2791         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2792         Ignore dependencies where
2793         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2794         rather than just task->depend[i].is_in && ent->is_in.  Remember
2795         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2796         conditional.
2797         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2798         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2799         rather than just elem.is_in && ent->is_in.
2800         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2801         inoutset depend-kind.
2802         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2803         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2804         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2806 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2808         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2810 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2812         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2813         * testsuite/libgomp.fortran/depend-5.f90: New test.
2814         * testsuite/libgomp.fortran/depend-6.f90: New test.
2815         * testsuite/libgomp.fortran/depend-7.f90: New test.
2817 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
2819         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2820         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2821         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2823 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2825         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2827 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2829         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2831 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
2833         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2834         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2835         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2836         append '$(PLUGIN_NVPTX_LDFLAGS)'.
2837         * Makefile.in: Regenerate.
2839 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2841         * Makefile.am (libgomp_la_LIBADD): Initialize.
2842         * plugin/configfrag.ac (DL_LIBS): New.
2843         (PLUGIN_GCN_LIBS): Remove.
2844         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2845         * plugin/Makefrag.am (libgomp_la_LIBADD)
2846         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2847         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2848         * Makefile.in: Regenerate.
2849         * config.h.in: Likewise.
2850         * configure: Likewise.
2851         * testsuite/Makefile.in: Likewise.
2853 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2855         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2856         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2857         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2858         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2859         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2860         'PLUGIN_NVPTX_LINK_LIBCUDA'.
2861         * Makefile.in: Regenerate.
2862         * config.h.in: Likewise.
2863         * configure: Likewise.
2865 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2867         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2868         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2869         * Makefile.in: Regenerate.
2870         * config.h.in: Likewise.
2871         * configure: Likewise.
2872         * testsuite/Makefile.in: Likewise.
2874 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
2876         * libgomp.h (struct gomp_task): Add depend_all_memory member.
2877         * task.c (gomp_init_task): Initialize depend_all_memory.
2878         (gomp_task_handle_depend): Handle omp_all_memory.
2879         (gomp_task_run_post_handle_depend_hash): Clear
2880         parent->depend_all_memory if equal to current task.
2881         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2882         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2883         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2884         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2886 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2888         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2889         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2890         * Makefile.in: Regenerate.
2891         * configure: Likewise.
2892         * testsuite/Makefile.in: Likewise.
2894 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2896         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2897         consider 'PLUGIN_GCN_CPPFLAGS'.
2898         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2899         'PLUGIN_GCN_LDFLAGS'.
2900         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2901         Remove.
2902         * Makefile.in: Regenerate.
2903         * configure: Likewise.
2904         * testsuite/Makefile.in: Likewise.
2906 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2908         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2909         (HSA_RUNTIME_LDFLAGS): Remove.
2910         * configure: Regenerate.
2912 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2914         * testsuite/lib/libgomp.exp (libgomp_init): Don't
2915         'append always_ld_library_path ":$hsa_runtime_lib"'.
2916         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2918 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
2920         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2921         multi-device testing.
2923 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
2925         * libgomp.map: Added omp_target_is_accessible.
2926         * libgomp.texi: Tagged omp_target_is_accessible as supported.
2927         * omp.h.in: Added omp_target_is_accessible.
2928         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2929         * omp_lib.h.in: Likewise.
2930         * target.c (omp_target_is_accessible): Added implementation of
2931         omp_target_is_accessible.
2932         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2933         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2935 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
2937         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2939 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2941         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2943 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2945         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2947 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
2949         * libgomp.map: Added omp_get_mapped_ptr.
2950         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2951         * omp.h.in: Added omp_get_mapped_ptr.
2952         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2953         * omp_lib.h.in: Likewise.
2954         * target.c (omp_get_mapped_ptr): Added implementation of
2955         omp_get_mapped_ptr.
2956         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2957         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2958         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2959         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2960         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2961         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2962         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2963         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2965 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
2967         PR fortran/104717
2968         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2969         privatization scanning.  For GCN offloading compilation, raise
2970         '-mgang-private-size'.
2972 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
2974         PR libgomp/105358
2975         * work.c (gomp_init_work_share): Don't mask of adjustment for
2976         dynamic long long realignment if struct gomp_work_share has smaller
2977         alignof than long long.
2978         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2979         struct gomp_work_share has smaller alignof than long long or if
2980         sizeof (struct gomp_work_share) is smaller than
2981         INLINE_ORDERED_TEAM_IDS_OFF.
2982         * loop_ull.c (GOMP_loop_ull_start): Likewise.
2983         * sections.c (GOMP_sections2_start): Likewise.
2985 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
2986             Thomas Schwinge  <thomas@codesourcery.com>
2988         PR fortran/104717
2989         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2991 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
2993         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2995 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
2997         * plugin/cuda/cuda.h: Remove file.
2998         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2999         "cuda/cuda.h" instead of <cuda.h>.
3000         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3001         'PLUGIN_NVPTX_CPPFLAGS'.
3002         * configure: Regenerate.
3004 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3006         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3008 2022-04-04  Tom de Vries  <tdevries@suse.de>
3010         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3011         on_device_arch_nvptx instead of offload_target_nvptx.
3012         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3014 2022-04-01  Tom de Vries  <tdevries@suse.de>
3016         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3017         and use REC_DEPTH.
3018         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3020 2022-04-01  Tom de Vries  <tdevries@suse.de>
3022         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3023         num_workers check.
3025 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3026             Lulu Cheng  <chenglulu@loongson.cn>
3028         * configure.tgt: Add LoongArch triplet.
3030 2022-03-28  Tom de Vries  <tdevries@suse.de>
3032         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3033         instead of /libexec/.
3034         * configure: Regenerate.
3036 2022-03-25  Tom de Vries  <tdevries@suse.de>
3038         PR libgomp/105042
3039         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3040         execution time.
3041         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3042         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3044 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3046         PR middle-end/104285
3047         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3048         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3049         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3050         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3051         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3052         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3054 2022-03-22  Tom de Vries  <tdevries@suse.de>
3056         PR target/104916
3057         PR target/104783
3058         * testsuite/libgomp.c/pr104783-2.c: New test.
3060 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3062         PR fortran/103039
3063         * testsuite/libgomp.fortran/associate4.f90: New test.
3065 2022-03-18  Tom de Vries  <tdevries@suse.de>
3067         PR target/104952
3068         * testsuite/libgomp.c/pr104952-1.c: New test.
3069         * testsuite/libgomp.c/pr104952-2.c: New test.
3071 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3073         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3074         variable next to pl variable.
3076 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3078         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3079         Enhance.
3080         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3081         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3083 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3085         PR middle-end/90115
3086         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3087         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3089 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3091         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3092         omp_set_max_active_levels.
3093         * testsuite/libgomp.fortran/icv-8.f90: New test.
3095 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3097         PR testsuite/102841
3098         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3100 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3102         * libgomp.texi: Fix typo.
3104 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3106         PR middle-end/100280
3107         PR middle-end/104892
3108         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3109         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3110         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3111         Likewise.
3112         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3113         Likewise.
3114         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3115         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3116         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3117         Likewise.
3119 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3121         PR middle-end/104892
3122         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3123         to PR104892.
3124         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3125         enable '--param=openacc-kernels=decompose' and adjust.
3126         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3127         Likewise.
3128         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3129         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3130         Likewise.
3132 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3134         PR middle-end/90115
3135         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3136         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3137         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3138         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3140 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3142         PR middle-end/100280
3143         PR middle-end/104086
3144         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3145         Merge this...
3146         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3147         ..., and this...
3148         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3149         this, and adjust.
3150         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3151         Extend.
3153 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3155         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3156         trait.  Test last index in w and v array.  Remove redundant
3157         assignment to V(1).  Move alignment checks at the end of
3158         parallel region.
3160 2022-03-10  Tom de Vries  <tdevries@suse.de>
3162         * testsuite/libgomp.c/pr104783.c: New test.
3164 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3166         PR middle-end/90115
3167         PR middle-end/102330
3168         PR middle-end/104774
3169         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3170         Enhance.
3171         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3172         Adjust.
3173         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3174         Likewise.
3175         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3176         Likewise.
3177         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3178         Likewise.
3179         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3180         Likewise.
3181         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3182         Likewise.
3183         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3184         Likewise.
3185         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3186         Likewise.
3187         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3188         Likewise.
3189         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3190         Likewise.
3191         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3192         Likewise.
3193         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3194         Likewise.
3195         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3196         Likewise.
3197         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3198         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3199         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3201 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3203         PR middle-end/90115
3204         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3205         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3206         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3207         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3209 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3211         PR testsuite/104791
3212         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3213         expected diagnostics.
3215 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3217         PR middle-end/104784
3218         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3219         Test with '--param=openacc-kernels=decompose'.
3220         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3221         Likewise.
3222         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3223         Likewise.
3224         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3225         Likewise.
3226         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3227         Likewise.
3228         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3229         Likewise.
3230         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3231         Likewise.
3232         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3233         Likewise.
3234         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3235         Likewise.
3236         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3237         Likewise.
3238         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3239         Likewise.
3240         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3241         Likewise.
3242         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3243         Likewise.
3244         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3245         Likewise.
3246         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3247         Likewise.
3248         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3249         Likewise.
3250         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3251         Likewise.
3252         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3253         Likewise.
3254         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3255         Likewise.
3256         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3257         Likewise.
3258         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3259         Likewise.
3260         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3261         Likewise.
3262         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3263         Likewise.
3264         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3265         Likewise.
3266         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3267         Likewise.
3268         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3269         Likewise.
3270         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3271         Likewise.
3272         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3273         Likewise.
3274         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3275         Likewise.
3276         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3277         Likewise.
3278         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3279         Likewise.
3280         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3281         Likewise.
3282         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3283         Likewise.
3285 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3287         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3288         Test '-fopt-info-omp-all'.
3289         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3290         Likewise.
3291         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3292         Likewise.
3293         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3294         Likewise.
3295         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3296         Likewise.
3297         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3298         Likewise.
3299         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3300         Likewise.
3301         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3302         Likewise.
3303         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3304         Likewise.
3305         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3306         Likewise.
3307         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3308         Likewise.
3309         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3310         Likewise.
3311         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3312         Likewise.
3313         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3314         Likewise.
3315         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3316         Likewise.
3317         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3318         Likewise.
3319         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3320         Likewise.
3321         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3322         Likewise.
3323         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3324         Likewise.
3325         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3326         Likewise.
3327         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3328         Likewise.
3329         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3330         Likewise.
3331         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3332         Likewise.
3333         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3334         Likewise.
3335         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3336         Likewise.
3337         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3338         Likewise.
3339         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3340         Likewise.
3341         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3342         Likewise.
3343         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3344         Likewise.
3345         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3346         Likewise.
3347         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3348         Likewise.
3349         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3350         Likewise.
3351         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3352         Likewise.
3354 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3356         PR middle-end/100280
3357         PR middle-end/104132
3358         PR middle-end/104133
3359         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3360         Extend.
3362 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3364         PR middle-end/100280
3365         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3366         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3367         Likewise.
3369 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3371         PR middle-end/100280
3372         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3373         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3374         Likewise.
3376 2022-02-28  Tom de Vries  <tdevries@suse.de>
3378         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3379         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3380         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3381         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3382         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3383         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3385 2022-02-24  Tom de Vries  <tdevries@suse.de>
3387         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3388         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3389         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3390         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3391         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3392         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3393         * testsuite/libgomp.c/declare-variant-3.h: New header file.
3395 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3397         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3398         gang-redundant execution.
3400 2022-02-22  Tom de Vries  <tdevries@suse.de>
3402         PR target/99555
3403         * config/nvptx/bar.c (generation_to_barrier): New function, copied
3404         from config/rtems/bar.c.
3405         (futex_wait, futex_wake): New function.
3406         (do_spin, do_wait): New function, copied from config/linux/wait.h.
3407         (gomp_barrier_wait_end, gomp_barrier_wait_last)
3408         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3409         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3410         and replace with include of config/linux/bar.c.
3411         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3412         (gomp_barrier_init): Init new fields.
3413         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3414         workarounds.
3415         * testsuite/libgomp.c/pr99555-1.c: Same.
3416         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3418 2022-02-22  Tom de Vries  <tdevries@suse.de>
3420         PR testsuite/104146
3421         * testsuite/libgomp.c++/pr96390.C: Add additional-option
3422         -foffload=-Wa,--verify for nvptx.
3423         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3425 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
3427         * testsuite/libgomp.fortran/depend-4.f90: New test.
3429 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
3431         PR c++/102204
3432         * testsuite/libgomp.c++/target-virtual-1.C: New test.
3434 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
3436         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3437         * target.c (copy_firstprivate_data): Copy only if host address is not
3438         NULL.
3439         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3440         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3441         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3442         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3443         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3444         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3445         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3446         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3447         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3448         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3450 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
3452         PR libgomp/104385
3453         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3454         clear task->parent.
3455         * testsuite/libgomp.c/pr104385.c: New test.
3457 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3459         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3460         STOP of previous commit.
3462 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3464         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3465         from is_64bit_aligned_.
3466         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3467         and use it, more implicit none, remove unused argument.
3469 2022-02-03  David Seifert  <soap@gentoo.org>
3470             Jakub Jelinek  <jakub@redhat.com>
3472         * configure.ac: Support --disable-werror.
3473         * configure: Regenerate.
3475 2022-02-01  Tom de Vries  <tdevries@suse.de>
3477         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3478         PR83812 workaround.
3479         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3480         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3482 2022-02-01  Tom de Vries  <tdevries@suse.de>
3484         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3485         num_workers for nvidia accelerator to fix libgomp error 'insufficient
3486         resources'.
3487         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3488         Same.
3489         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3491 2022-02-01  Tom de Vries  <tdevries@suse.de>
3493         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3494         recursion depth.
3495         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3497 2022-01-31  Martin Liska  <mliska@suse.cz>
3499         * acinclude.m4: Detect *_ld_is_mold and use it.
3500         * configure: Regenerate.
3502 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
3504         * libgomp.texi (OpenMP 5.0): Update implementation status.
3506 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
3508         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3509         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3510         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3511         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3512         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3513         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3514         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3515         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3516         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3517         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3518         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3519         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3520         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3521         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3522         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3524 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
3526         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3527         "static") to make the device num available in the offload image.
3529 2022-01-19  Martin Liska  <mliska@suse.cz>
3530             Thomas Schwinge  <thomas@codesourcery.com>
3532         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3533         patterns.
3534         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3535         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3536         Likewise.
3537         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3538         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3539         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3540         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3541         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3542         Likewise.
3543         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3544         Likewise.
3545         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3546         Likewise.
3547         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3548         Likewise.
3549         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3550         Likewise.
3551         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3552         Likewise.
3553         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3554         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3555         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3557 2022-01-18  Martin Liska  <mliska@suse.cz>
3559         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3560         in dg-warning.
3561         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3562         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3563         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3564         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3565         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3566         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3567         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3568         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3569         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3570         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3571         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3572         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3573         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3574         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3575         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3577 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
3579         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3580         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3581         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3583 2022-01-17  Julian Brown  <julian@codesourcery.com>
3584             Thomas Schwinge  <thomas@codesourcery.com>
3586         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3587         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3588         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3590 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3591             Andrew Stubbs   <ams@codesourcery.com>
3593         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3594         the number of teams and threads if necessary.
3595         (gcn_exec): Automatically set the number of gangs and workers if
3596         necessary.
3598 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3600         * testsuite/libgomp.fortran/allocate-1.c: New test.
3601         * testsuite/libgomp.fortran/allocate-1.f90: New test.
3602         * libgomp.texi: Remove string that says that allocate clause
3603         support is for C/C++ only.
3605 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3607         * testsuite/libgomp.c-c++-common/on_device_arch.h
3608         (any_device_arch, any_device_arch_intel_mic): New.
3609         * testsuite/lib/libgomp.exp
3610         (check_effective_target_offload_device_any_intel_mic): New.
3611         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3612         * testsuite/libgomp.fortran/target10.f90: Likewise.
3614 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3616         PR tree-optimization/102192
3617         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3618         '-Wuninitialized' diagnostics.
3620 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3622         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3623         current '-Wuninitialized' diagnostics.
3624         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3625         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3626         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3627         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3628         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3629         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3630         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3631         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3632         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3633         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3634         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3635         Likewise.
3637 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3639         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3640         for 'offload_device_intel_mic'.
3642 2022-01-13  Julian Brown  <julian@codesourcery.com>
3643             Thomas Schwinge  <thomas@codesourcery.com>
3645         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3646         offloading execution XFAIL.
3648 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3650         PR middle-end/100280
3651         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3652         Update.
3653         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3654         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3655         Likewise.
3657 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3659         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3660         Enhance.
3661         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3662         Likewise.
3663         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3664         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3665         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3666         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3667         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3668         Likewise.
3669         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3670         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3671         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3672         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3674 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
3676         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3677         * testsuite/libgomp.fortran/target10.f90: Likewise.
3679 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
3681         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3682         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3683         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3685 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
3687         * libgomp.texi: Bump @copying's copyright year.
3689 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
3691         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3692         * testsuite/libgomp.fortran/atomic-19.f90: New test.
3694 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
3696         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3697         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3698         table, not individual symbols.
3700 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
3702         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3703         "target offload_device_nonshared_as"
3704         * testsuite/libgomp.c++/target-this-3.C: Likewise.
3705         * testsuite/libgomp.c++/target-this-4.C: Likewise.
3707 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3709         * target.c (gomp_map_vars_existing): Make sure attached pointer is
3710         not overwritten during cross-host/device copying.
3711         (gomp_update): Likewise.
3712         (gomp_exit_data): Likewise.
3713         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3714         * testsuite/libgomp.c++/target-12.C: Likewise.
3715         * testsuite/libgomp.c++/target-15.C: Likewise.
3716         * testsuite/libgomp.c++/target-16.C: Likewise.
3717         * testsuite/libgomp.c++/target-17.C: Likewise.
3718         * testsuite/libgomp.c++/target-21.C: Likewise.
3719         * testsuite/libgomp.c++/target-23.C: Likewise.
3720         * testsuite/libgomp.c/target-23.c: Likewise.
3721         * testsuite/libgomp.c/target-29.c: Likewise.
3722         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3724 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3726         PR middle-end/92120
3727         * libgomp.h (gomp_attach_pointer): Add bool parameter.
3728         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3729         (goacc_enter_data_internal): Likewise.
3730         * target.c (gomp_map_vars_existing): Update assert condition to
3731         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3732         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3733         parameter, add support for mapping a pointer with NULL target.
3734         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3735         parameter, add support for attaching a pointer with NULL target.
3736         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3737         gomp_attach_pointer, add handling for
3738         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3739         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3740         * testsuite/libgomp.c++/target-23.C: New testcase.
3741         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3742         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3743         * testsuite/libgomp.c++/target-this-1.C: New testcase.
3744         * testsuite/libgomp.c++/target-this-2.C: New testcase.
3745         * testsuite/libgomp.c++/target-this-3.C: New testcase.
3746         * testsuite/libgomp.c++/target-this-4.C: New testcase.
3747         * testsuite/libgomp.c++/target-this-5.C: New testcase.
3749 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3751         * libgomp.texi (OpenMP 5.1): Update status.
3753 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3755         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3757 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
3759         PR fortran/90030
3760         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3761         * testsuite/libgomp.fortran/pr90030.f90: New test.
3763 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
3764             Thomas Schwinge  <thomas@codesourcery.com>
3766         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3767         temporary skip.
3769 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
3770             Thomas Schwinge  <thomas@codesourcery.com>
3772         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3773         skip.
3775 2021-11-29  Richard Biener  <rguenther@suse.de>
3777         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3778         return.
3780 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
3782         PR middle-end/103384
3783         * testsuite/libgomp.c/declare-variant-2.c: New test.
3785 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
3787         * alloc.c (gomp_aligned_alloc): Fix typo.
3789 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3791         PR libgomp/102838
3792         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3793         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3794         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3795         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3796         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3797         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3798         gomp_aligned_alloc instead of team_malloc.
3800 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3802         PR libgomp/102838
3803         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3804         memalign over posix_memalign over aligned_alloc over fallback
3805         with malloc instead of aligned_alloc over _aligned_alloc over
3806         posix_memalign over memalign over fallback with malloc.  For
3807         aligned_alloc, round up size up to multiple of al.
3809 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
3811         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3812         construct as implemented.
3814 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
3816         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3818 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3820         * task.c (gomp_create_target_task): Copy args array as well.
3821         * target.c (gomp_target_fallback): Add args argument.
3822         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3823         (GOMP_target): Adjust gomp_target_fallback caller.
3824         (GOMP_target_ext): Likewise.
3825         (gomp_target_task_fn): Likewise.
3826         * config/nvptx/team.c (gomp_nvptx_main): Set
3827         gomp_global_icv.thread_limit_var.
3828         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3830 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3832         * config/nvptx/team.c (__gomp_team_num): Define as
3833         __attribute__((shared)) var.
3834         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3835         * config/nvptx/target.c (__gomp_team_num): Declare as
3836         extern __attribute__((shared)) var.
3837         (GOMP_teams4): Use __gomp_team_num as the team number instead of
3838         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
3839         is bigger than num_blocks, use num_teams_lower teams and arrange for
3840         bumping of __gomp_team_num if !first and returning false once we run
3841         out of teams.
3842         * config/nvptx/teams.c (__gomp_team_num): Declare as
3843         extern __attribute__((shared)) var.
3844         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3846 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3848         * testsuite/libgomp.c/teams-5.c: New test.
3850 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3852         PR target/103201
3853         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3854         to ...
3855         * config/gcn/teams.c: ... here.  New file.
3857 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
3859         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3860         implicit map handling to allow a "superset" existing map as valid case.
3861         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3862         (get_implicit): New function to extract implicit status.
3863         (gomp_map_fields_existing): Adjust arguments in calls to
3864         gomp_map_vars_existing, and add uses of get_implicit.
3865         (gomp_map_vars_internal): Likewise.
3866         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3868 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3870         * libgomp_g.h (GOMP_teams4): Declare.
3871         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3872         * target.c (GOMP_teams4): New function.
3873         * config/nvptx/target.c (GOMP_teams): Remove.
3874         (GOMP_teams4): New function.
3875         * config/gcn/target.c (GOMP_teams): Remove.
3876         (GOMP_teams4): New function.
3877         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3878         teams instead of <= 2.
3879         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3881 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
3883         * testsuite/libgomp.fortran/teams-1.f90: New test.
3885 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3887         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3888         * team.c (struct gomp_thread_start_data): Likewise.
3889         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3890         (gomp_team_start): Initialize start_data->num_teams and
3891         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
3892         * teams.c (gomp_num_teams, gomp_team_num): Remove.
3893         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3894         instead of gomp_num_teams and gomp_team_num.
3895         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3896         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3897         * testsuite/libgomp.c/teams-4.c: New test.
3899 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3901         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3903 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3905         * env.c (parse_gomp_openacc_dim): Restore parsing.
3907 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
3909         PR middle-end/102972
3910         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3911         parallel construct.
3912         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3913         * testsuite/libgomp.c/target-3.c: Likewise.
3914         * testsuite/libgomp.c/target-5.c: Likewise.
3915         * testsuite/libgomp.c/target-6.c: Likewise.
3916         * testsuite/libgomp.c/target-teams-1.c: Likewise.
3917         * testsuite/libgomp.c/teams-1.c: Likewise.
3918         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3919         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3920         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3921         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3922         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3923         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3924         * testsuite/libgomp.fortran/teams1.f90: Likewise.
3926 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
3928         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3929         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3931 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3933         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3934         aren't implemented for Fortran yet.
3936 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3938         * testsuite/libgomp.c/loop-26.c: New test.
3939         * testsuite/libgomp.c/loop-27.c: New test.
3941 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
3943         PR testsuite/102910
3944         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3945         instead of #include <alloca.h> + alloca.
3947 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
3949         * libgomp.texi (Support of strictly structured blocks in Fortran):
3950         Adjust to 'Y'.
3951         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3953 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
3955         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3956         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3958 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
3960         PR libgomp/102838
3961         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3962         (struct gomp_work_share): Only use aligned(64) attribute if
3963         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3964         add padding before lock to ensure lock is at offset 64 bytes
3965         into the structure.
3966         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3967         New poor man's static assertions.
3968         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3969         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3971 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3972             Richard Biener  <rguenther@suse.de>
3974         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3976 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
3978         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3979         && gomp_places_list_len < count after nfirst <= nlast loop condition.
3981 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
3983         PR fortran/102086
3984         PR fortran/92189
3985         PR fortran/92621
3986         PR fortran/101308
3987         PR fortran/101309
3988         PR fortran/101635
3989         PR fortran/92482
3990         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3992 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3994         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3995         type from char [50] to const char *.
3996         (places_array): Add a testcase for simplified syntax place followed
3997         by length or length and stride.
3999 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4001         * env.c (parse_one_place): Handle non-negative-number the same
4002         as { non-negative-number }.  Reject even !number:1 and
4003         !number:1:stride or !place:1 or !place:1:stride instead of just
4004         length other than 1.
4005         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4006         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4007         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4008         as implemented.
4009         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4010         simplified syntax.
4012 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4014         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4015         clearly reject return value 0 as invalid handle the case where end
4016         pointer is the same as first argument as invalid.
4017         (parse_unsigned_long_1): Likewise.
4018         (parse_one_place): Likewise.
4019         (parse_places_var): Likewise.
4020         (parse_stacksize): Likewise.
4021         (parse_spincount): Likewise.
4022         (parse_affinity): Likewise.
4023         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4024         Make code valid C89.
4025         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4026         For strtoul calls which don't clearly reject return value 0 as
4027         invalid handle the case where end pointer is the same as first
4028         argument as invalid.
4029         (gomp_affinity_init_level_1): Likewise.
4030         (gomp_affinity_init_numa_domains): Likewise.
4031         * config/rtems/proc.c (parse_thread_pools): Likewise.
4033 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4035         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4036         after creating count places clean up and return immediately.
4037         * testsuite/libgomp.c/places-6.c: New test.
4038         * testsuite/libgomp.c/places-7.c: New test.
4039         * testsuite/libgomp.c/places-8.c: New test.
4040         * testsuite/libgomp.c/places-9.c: New test.
4041         * testsuite/libgomp.c/places-10.c: New test.
4043 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4045         * env.c (parse_places_var): Handle numa_domains as level 5.
4046         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4047         function.
4048         (gomp_affinity_init_level): Use it instead of
4049         gomp_affinity_init_level_1 for level == 5.
4050         * testsuite/libgomp.c/places-5.c: New test.
4052 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4054         * env.c (parse_places_var): Handle ll_caches as level 4.
4055         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4056         function.
4057         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4058         last level cache.
4059         (gomp_affinity_init_level): Likewise.
4060         * testsuite/libgomp.c/places-1.c: New test.
4061         * testsuite/libgomp.c/places-2.c: New test.
4062         * testsuite/libgomp.c/places-3.c: New test.
4063         * testsuite/libgomp.c/places-4.c: New test.
4065 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4067         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4068         directive.
4070 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4072         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4074 2021-10-12  Julian Brown  <julian@codesourcery.com>
4076         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4077         error path.
4079 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4081         * testsuite/libgomp.fortran/icv-3.f90: New.
4082         * testsuite/libgomp.fortran/icv-4.f90: New.
4084 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4086         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4087         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4088         OMP_TEAMS_THREAD_LIMIT): Document.
4090 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4092         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4093         to avoid makeinfo warnings.
4095 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4097         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4098         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4100 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4102         PR libgomp/102628
4103         PR libgomp/102668
4104         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4105         allocation sizes from 420 to 320 and from 768 to 568.
4106         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4107         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4108         for cr from 16 to 4.
4110 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4112         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4113         * testsuite/libgomp.c/scan-12.c: Likewise.
4114         * testsuite/libgomp.c/scan-13.c: Likewise.
4115         * testsuite/libgomp.c/scan-14.c: Likewise.
4116         * testsuite/libgomp.c/scan-15.c: Likewise.
4117         * testsuite/libgomp.c/scan-16.c: Likewise.
4118         * testsuite/libgomp.c/scan-17.c: Likewise.
4119         * testsuite/libgomp.c/scan-18.c: Likewise.
4120         * testsuite/libgomp.c/scan-19.c: Likewise.
4121         * testsuite/libgomp.c/scan-20.c: Likewise.
4122         * testsuite/libgomp.c/scan-21.c: Likewise.
4123         * testsuite/libgomp.c/scan-22.c: Likewise.
4124         * testsuite/libgomp.c++/scan-9.C: Likewise.
4125         * testsuite/libgomp.c++/scan-10.C: Likewise.
4126         * testsuite/libgomp.c++/scan-11.C: Likewise.
4127         * testsuite/libgomp.c++/scan-12.C: Likewise.
4128         * testsuite/libgomp.c++/scan-13.C: Likewise.
4129         * testsuite/libgomp.c++/scan-14.C: Likewise.
4130         * testsuite/libgomp.c++/scan-15.C: Likewise.
4131         * testsuite/libgomp.c++/scan-16.C: Likewise.
4133 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4135         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4137 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4139         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4140         omp_atv_serialized.
4141         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4142         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4143         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4144         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4146 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4148         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4149         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4150         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4151         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4152         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4153         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4154         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4155         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4156         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4157         omp_set_teams_thread_limit{,_,_8_}.
4158         * icv.c (omp_set_num_teams, omp_get_max_teams,
4159         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4160         functions.
4161         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4162         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4163         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4164         vars.
4165         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4166         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4167         is not specified, use gomp_nteams_var.
4168         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4169         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4170         ialias_redirect.
4171         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4172         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4173         omp_get_teams_thread_limit_): New functions.
4175 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4177         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4178         * testsuite/libgomp.c++/scan-11.C: Ditto.
4179         * testsuite/libgomp.c++/scan-12.C: Ditto.
4180         * testsuite/libgomp.c++/scan-13.C: Ditto.
4181         * testsuite/libgomp.c++/scan-14.C: Ditto.
4182         * testsuite/libgomp.c++/scan-15.C: Ditto.
4183         * testsuite/libgomp.c++/scan-16.C: Ditto.
4184         * testsuite/libgomp.c++/scan-9.C: Ditto.
4185         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4186         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4187         * testsuite/libgomp.c/scan-11.c: Ditto.
4188         * testsuite/libgomp.c/scan-12.c: Ditto.
4189         * testsuite/libgomp.c/scan-13.c: Ditto.
4190         * testsuite/libgomp.c/scan-14.c: Ditto.
4191         * testsuite/libgomp.c/scan-15.c: Ditto.
4192         * testsuite/libgomp.c/scan-16.c: Ditto.
4193         * testsuite/libgomp.c/scan-17.c: Ditto.
4194         * testsuite/libgomp.c/scan-18.c: Ditto.
4195         * testsuite/libgomp.c/scan-19.c: Ditto.
4196         * testsuite/libgomp.c/scan-20.c: Ditto.
4197         * testsuite/libgomp.c/scan-21.c: Ditto.
4198         * testsuite/libgomp.c/scan-22.c: Ditto.
4200 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
4202         * libgomp.texi (OpenMP 5.1): Mention implemented support for
4203         structured block sequences in C/C++.  Mention support for
4204         unconstrained/reproducible modifiers on order clause.
4205         Mention partial (C/C++ only) support of extentensions to atomics
4206         construct.  Mention partial (C/C++ on clause only) support of
4207         align/allocator modifiers on allocate clause.
4209 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
4211         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4212         based on libgomp.c-c++-common/order-reproducible-1.c.
4213         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4214         * testsuite/libgomp.fortran/my-usleep.c: New test.
4216 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
4218         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4219         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4220         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4221         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4222         based on libgomp.c-c++-common/alloc-9.c.
4224 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4226         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4227         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4229 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4231         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4232         ialias_redirect.
4233         * env.c (handle_omp_display_env): Use ialias_call.
4234         * icv-device.c: Move ialias right below each function.
4235         (omp_get_device_num): Use ialias_call.
4236         * fortran.c (omp_fulfill_event): Add ialias_redirect.
4237         * icv.c (omp_get_active_level): Add ialias_redirect.
4239 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4241         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4242         __alloc_align__ (1) attribute.
4243         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4245 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4247         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4248         for -fintrinsic-modules-path= warning of the C compiler.
4249         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4250         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4252 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4254         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4255         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4256         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4257         omp_realloc): Add.
4258         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4259         omp_realloc): Add.
4260         * testsuite/libgomp.fortran/alloc-10.f90: New test.
4261         * testsuite/libgomp.fortran/alloc-6.f90: New test.
4262         * testsuite/libgomp.fortran/alloc-7.c: New test.
4263         * testsuite/libgomp.fortran/alloc-7.f90: New test.
4264         * testsuite/libgomp.fortran/alloc-8.f90: New test.
4265         * testsuite/libgomp.fortran/alloc-9.f90: New test.
4267 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
4269         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4270         omp_realloc): New prototypes.
4271         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4272         attribute.
4273         * allocator.c: Include string.h.
4274         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
4275         variable and use it instead of alignment so that when retrying the old
4276         alignment is used again.  Don't retry if new alignment is the same
4277         as old alignment, unless allocator had pool size.
4278         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4279         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4280         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4281         omp_aligned_calloc and omp_realloc.
4282         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4283         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4284         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4285         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4286         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4287         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4289 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
4291         PR libgomp/96661
4292         * configure.ac: Only check for int-type = 2*size_t support when
4293         building with Fortran support.
4294         * configure: Regenerate.
4296 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
4298         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4299         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4301 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
4303         * team.c: Initialize start_data.
4304         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4305         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4307 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4309         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4310         dg-message back to dg-note.
4312 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4314         PR fortran/94070
4315         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4316         expected dg-note output.
4318 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
4320         PR fortran/55534
4321         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4322         r12-3722 by removing -Wno-missing-include-dirs.
4323         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4325 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
4327         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4328         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4330 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
4332         PR fortran/55534
4333         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4334         to ALWAYS_CFLAGS.
4335         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4337 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
4339         * testsuite/libgomp.c++/default-1.C: New test.
4340         * testsuite/libgomp.c-c++-common/default-1.c: New test.
4341         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4342         to default clause in C and C++" as implemented.
4344 2021-09-17  Julian Brown  <julian@codesourcery.com>
4346         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4348 2021-09-17  Julian Brown  <julian@codesourcery.com>
4350         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4352 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4354         * libgomp.texi (OpenMP 5.1): Spelling fix,
4355         declare variante -> declare variant.
4357 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4359         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4360         Use /* */ comments instead of //.
4361         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4362         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4363         * testsuite/libgomp.c++/atomic-16.C: New test.
4364         * testsuite/libgomp.c++/atomic-17.C: New test.
4366 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
4368         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4369         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4370         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4372 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4374         * libgomp.texi (OpenMP Implementation Status): Extend
4375         OpenMP 5.0 section.
4376         (OpenACC Profiling Interface): Fix typo.
4378 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4380         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4381         not to 4.5; link to new section.
4382         (OpenMP Implementation Status): New.
4384 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
4386         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4388 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
4390         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4391         dg-output.
4392         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4394 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4395             Jakub Jelinek  <jakub@redhat.com>
4397         * testsuite/libgomp.c/address-space-1.c: New file.
4399 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4401         * testsuite/lib/libgomp.exp
4402         (check_effective_target_offload_target_intelmic): Remove 'proc'.
4403         (check_effective_target_offload_device_intel_mic): New 'proc'.
4404         * testsuite/libgomp.c-c++-common/on_device_arch.h
4405         (device_arch_intel_mic, on_device_arch_intel_mic): New.
4406         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4407         'dg-xfail-run-if'.
4408         * testsuite/libgomp.fortran/target10.f90: Likewise.
4410 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
4412         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4413         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4414         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4415         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4417 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
4419         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4420         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4421         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4423 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
4425         * config/nvptx/error.c (fwrite, exit): Override, too.
4426         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4427         of offloading testing.
4428         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4430 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
4432         * testsuite/libgomp.fortran/error-1.f90: New test.
4434 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
4436         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4437         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4438         * error.c (GOMP_warning, GOMP_error): New functions.
4439         * testsuite/libgomp.c-c++-common/error-1.c: New test.
4441 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
4443         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4444         omp_target_free. omp_target_is_present, omp_target_memcpy,
4445         omp_target_memcpy_rect, omp_target_associate_ptr,
4446         omp_target_disassociate_ptr): Add interface.
4447         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4448         omp_target_free. omp_target_is_present, omp_target_memcpy,
4449         omp_target_memcpy_rect, omp_target_associate_ptr,
4450         omp_target_disassociate_ptr): Add interface.
4451         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4452         interface block for omp_alloc + omp_free.
4453         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4454         * testsuite/libgomp.fortran/refcount-1.f90: New test.
4455         * testsuite/libgomp.fortran/target-12.f90: New test.
4457 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
4459         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4461 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
4463         * testsuite/libgomp.fortran/scope-1.f90: New test.
4464         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4466 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
4468         * Makefile.am (libgomp_la_SOURCES): Add scope.c
4469         * Makefile.in: Regenerated.
4470         * libgomp_g.h (GOMP_scope_start): Declare.
4471         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4472         * scope.c: New file.
4473         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4474         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4476 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
4478         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4479         '?:' issues.
4481 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
4483         * testsuite/libgomp.fortran/masked-1.f90: New test.
4485 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
4487         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4489 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
4491         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4493 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
4495         * env.c (parse_bind_var): Accept 'primary' as alias for
4496         'master'.
4497         (omp_display_env): Add TODO comment to
4498         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4499         * libgomp.texi: Change 'master thread' to 'primary thread'
4500         in line with OpenMP 5.1.
4501         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4502         omp_proc_bind_master is an alias of it.
4503         (OMP_PROC_BIND): Mention 'PRIMARY'.
4504         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4505         (omp_proc_bind_primary): Add.
4506         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4507         * omp_lib.f90.in (omp_proc_bind_primary): Add.
4508         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4509         * omp_lib.h.in (omp_proc_bind_primary): Add.
4510         * testsuite/libgomp.c/affinity-1.c: Check that
4511         'primary' works and is identical to 'master'.
4513 2021-08-09  Julian Brown  <julian@codesourcery.com>
4514             Kwok Cheung Yeung  <kcy@codesourcery.com>
4515             Thomas Schwinge  <thomas@codesourcery.com>
4517         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4518         16.
4519         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4520         [acc_device_radeon]: Update.
4521         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4522         [ACC_DEVICE_TYPE_radeon]: Likewise.
4523         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4524         [acc_device_radeon]: Likewise.
4525         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4526         [ACC_DEVICE_TYPE_radeon]: Likewise.
4527         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4528         'openacc_radeon_accel_selected' and '-O0'.
4529         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4531 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
4533         * icv-device.c (omp_get_device_num): New API function, host side.
4534         * fortran.c (omp_get_device_num_): New interface function.
4535         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4536         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4537         omp_get_device_num_.
4538         * libgomp.texi (omp_get_device_num): Add documentation for new API
4539         function.
4540         * omp.h.in (omp_get_device_num): Add declaration.
4541         * omp_lib.f90.in (omp_get_device_num): Likewise.
4542         * omp_lib.h.in (omp_get_device_num): Likewise.
4543         * target.c (gomp_load_image_to_device): If additional entry for device
4544         number exists at end of returned entries from 'load_image_func' hook,
4545         copy the assigned device number over to the device variable.
4546         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4547         (omp_get_device_num): New API function, device side.
4548         * plugin/plugin-gcn.c ("symcat.h"): Add include.
4549         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4550         at end of returned 'target_table' entries.
4551         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4552         (omp_get_device_num): New API function, device side.
4553         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4554         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4555         at end of returned 'target_table' entries.
4556         * testsuite/lib/libgomp.exp
4557         (check_effective_target_offload_target_intelmic): New function for
4558         testing for intelmic offloading.
4559         * testsuite/libgomp.c-c++-common/target-45.c: New test.
4560         * testsuite/libgomp.fortran/target10.f90: New test.
4562 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
4563             Ulrich Drepper  <drepper@redhat.com>
4565         * fortran.c (omp_display_env_, omp_display_env_8_): Only
4566         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4568 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
4569             Julian Brown  <julian@codesourcery.com>
4570             Kwok Cheung Yeung  <kcy@codesourcery.com>
4572         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4573         's%oaccdevlow%oaccloops%g'.
4574         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4575         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4576         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4577         Likewise.
4578         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4579         Likewise.
4580         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4581         Likewise.
4582         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4583         Likewise.
4584         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4585         Likewise.
4586         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4587         Likewise.
4588         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4589         Likewise.
4590         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4591         Likewise.
4592         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4594 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
4596         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4597         threader.
4598         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4600 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
4602         * env.c (wait_policy, stacksize): New static variables,
4603         move out of handle_omp_display_env.
4604         (omp_display_env): New function.  The meat of the old
4605         handle_omp_display_env function.
4606         (handle_omp_display_env): Change to not take parameters
4607         and instead use the global variables.  Only perform
4608         parsing, defer to omp_display_env for the implementation.
4609         (initialize_env): Remove local variables wait_policy and
4610         stacksize.  Don't pass parameters to handle_omp_display_env.
4611         * fortran.c: Add ialias_redirect for omp_display_env.
4612         (omp_display_env_, omp_display_env_8_): New functions.
4613         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
4614         omp_display_env_, and omp_display_env_8_.
4615         * omp.h.in: Declare omp_display_env.
4616         * omp_lib.f90.in: Likewise.
4617         * omp_lib.h.in: Likewise.
4619 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4620             Julian Brown  <julian@codesourcery.com>
4622         * target.c (gomp_coalesce_buf_add): Update comment.
4623         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4624         'aq && cbuf'.
4625         (gomp_map_vars_internal): Only 'if (!aq)', do
4626         'gomp_coalesce_buf_add'.
4627         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4628         XFAIL.
4630 2021-07-27  Julian Brown  <julian@codesourcery.com>
4631             Thomas Schwinge  <thomas@codesourcery.com>
4633         * libgomp.h (gomp_copy_host2dev): Update prototype.
4634         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4635         argument to gomp_copy_host2dev (false).
4636         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4637         (copy_data): Don't free src.
4638         (queue_push_copy): Remove free_src handling.
4639         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4640         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4641         snapshotting.
4642         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4643         queue_push_copy.
4644         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4645         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
4646         data when true, and set up deferred freeing of temporary buffer.
4647         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4648         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4649         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4650         calls to gomp_copy_host2dev with appropriate ephemeral argument.
4651         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4652         XFAIL.
4654 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4655             Tom de Vries  <tom@codesourcery.com>
4657         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4658         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4660 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4662         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4663         sequencing of 'async' data copying vs. profiling events.
4664         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4665         Likewise.
4667 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4668             Julian Brown  <julian@codesourcery.com>
4670         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4671         'async'/'wait' issue.
4672         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4673         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4674         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4676 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
4677             Joseph Myers  <joseph@codesourcery.com>
4678             Cesar Philippidis  <cesar@codesourcery.com>
4680         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4681         file.
4682         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4683         Likewise.
4684         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4685         Likewise.
4686         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4688 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
4690         PR target/101484
4691         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4692         '-Wno-error=array-bounds'.
4693         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4694         * libgomp.h [__AMDGCN__]: Likewise.
4696 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
4698         PR target/101484
4699         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4700         * libgomp.h [__AMDGCN__]: Likewise.
4702 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
4703             Florian Weimer  <fweimer@redhat.com>
4705         * config/linux/sem.h: Don't include limits.h.
4706         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4707         * config/linux/affinity.c: Include limits.h.
4709 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
4711         PR middle-end/94366
4712         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4714 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4716         PR other/67300
4717         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4718         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4719         avoid disabling other offload targets.
4720         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4721         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4722         * testsuite/libgomp.c/target-44.c: Likewise.
4724 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4726         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4727         target has shared memory and disable some scalar pointer/allocatable
4728         checks if not as firstprivate does not work.
4730 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
4732         PR testsuite/101114
4733         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4734         Add "target offload_device_nonshared_as" condition for enabling test.
4736 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
4738         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4739         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4740         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4741         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4743 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
4745         PR middle-end/101167
4746         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4748 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
4750         * hashtab.h (htab_clear): New function with initialization code
4751         factored out from...
4752         (htab_create): ...here, adjust to use htab_clear function.
4753         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4754         special refcount values, add comments.
4755         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4756         (REFCOUNT_LINK): Likewise.
4757         (REFCOUNT_STRUCTELEM): New special refcount range for structure
4758         element siblings.
4759         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4760         sibling maps.
4761         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4762         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
4763         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4764         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4765         (struct splay_tree_key_s): Add structelem_refcount and
4766         structelem_refcount_ptr fields into a union with dynamic_refcount.
4767         Add comments.
4768         (gomp_map_vars): Delete declaration.
4769         (gomp_map_vars_async): Likewise.
4770         (gomp_unmap_vars): Likewise.
4771         (gomp_unmap_vars_async): Likewise.
4772         (goacc_map_vars): New declaration.
4773         (goacc_unmap_vars): Likewise.
4774         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4775         (goacc_enter_datum): Likewise.
4776         (goacc_enter_data_internal): Likewise.
4777         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4778         and goacc_unmap_vars.
4779         (GOACC_data_start): Adjust to use goacc_map_vars.
4780         (GOACC_data_end): Adjust to use goacc_unmap_vars.
4781         * target.c (hash_entry_type): New typedef.
4782         (htab_alloc): New function hook for hashtab.h.
4783         (htab_free): Likewise.
4784         (htab_hash): Likewise.
4785         (htab_eq): Likewise.
4786         (hashtab.h): Add file include.
4787         (gomp_increment_refcount): New function.
4788         (gomp_decrement_refcount): Likewise.
4789         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4790         gomp_increment_refcount.
4791         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4792         to gomp_map_vars_existing.
4793         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4794         variable to guard OpenMP specific paths, adjust calls to
4795         gomp_map_vars_existing, add structure element sibling splay_tree_key
4796         sequence creation code, adjust Fortran map case to avoid increment
4797         under OpenMP.
4798         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4799         local refcount_set if caller passed in NULL, adjust call to
4800         gomp_map_vars_internal.
4801         (gomp_map_vars_async): Adjust and rename into...
4802         (goacc_map_vars): ...this new function, adjust call to
4803         gomp_map_vars_internal.
4804         (gomp_remove_splay_tree_key): New function with code factored out from
4805         gomp_remove_var_internal.
4806         (gomp_remove_var_internal): Add code to handle removing multiple
4807         splay_tree_key sequence for structure elements, adjust code to use
4808         gomp_remove_splay_tree_key for splay-tree key removal.
4809         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4810         gomp_decrement_refcount.
4811         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4812         local refcount_set if caller passed in NULL, adjust call to
4813         gomp_unmap_vars_internal.
4814         (gomp_unmap_vars_async): Adjust and rename into...
4815         (goacc_unmap_vars): ...this new function, adjust call to
4816         gomp_unmap_vars_internal.
4817         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4818         gomp_unmap_vars.
4819         (GOMP_target_ext): Likewise.
4820         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4821         (GOMP_target_data): Likewise.
4822         (GOMP_target_data_ext): Likewise.
4823         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4824         (gomp_exit_data): Add refcount_set parameter, adjust to use
4825         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4826         after main loop.
4827         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4828         gomp_map_vars and gomp_exit_data.
4829         (gomp_target_task_fn): Likewise.
4830         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4831         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4832         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4833         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4834         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4835         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4837 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
4839         PR fortran/92568
4840         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4842 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4843             Thomas Schwinge  <thomas@codesourcery.com>
4845         * libgomp.map (GOACC_2.0.2): New symbol version.
4846         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4847         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4849 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4850             Andrew Stubbs  <ams@codesourcery.com>
4852         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4853         extracted from...
4854         (GOACC_enter_exit_data): ... here.
4855         (GOACC_declare): Use it.
4857 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4859         * oacc-parallel.c (GOACC_declare): Move...
4860         * oacc-mem.c: ... here.
4861         * libgomp_g.h: Adjust.
4863 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4864             Thomas Schwinge  <thomas@codesourcery.com>
4866         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4867         handling.
4869 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
4871         PR tree-optimization/100981
4872         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4873         dsdotr and dsdoti to 0.
4875 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
4877         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4878         if atomic compare-and-swap is supported on 'int'.
4880 2021-06-09  Richard Biener  <rguenther@suse.de>
4882         PR tree-optimization/100981
4883         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4885 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4887         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4888         unconditionally.
4889         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4890         Update.
4891         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4892         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4894 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4896         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4897         '-DACC_MEM_SHARED=0'.
4898         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4899         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4900         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4901         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4902         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4903         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4904         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4905         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4906         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4907         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4908         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4909         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4910         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4911         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4912         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4913         'acc_device_radeon' testing.
4914         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4915         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4916         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4917         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4918         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4919         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4920         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4921         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4922         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4923         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4924         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4925         for non-'openacc_nvidia_accel_selected'.
4926         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4927         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4928         all implement this checking".
4929         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4930         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4931         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4932         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4933         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4935 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4937         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4938         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4940 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4942         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4943         for 'acc_device_radeon'.
4945 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4947         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4948         for non-'acc_device_nvidia'.
4950 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4952         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4953         'acc_device_radeon' testing.
4954         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4955         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4956         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4958 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4960         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4961         require 'openacc_nvidia_accel_selected'.  Fix up for
4962         'ACC_DEVICE_TYPE_radeon'.
4964 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4966         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4967         'openacc_nvidia_accel_selected'.
4968         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4970 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4972         * testsuite/lib/libgomp.exp
4973         (check_effective_target_openacc_radeon_accel_selected):
4974         Streamline.
4976 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4978         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4979         PR80547 workaround.
4981 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4983         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4984         <acc_device_nvidia>: Update comment.
4986 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
4988         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4990 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
4992         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4993         check_effective_target_openacc_cublas,
4994         check_effective_target_openacc_cudart): New.
4995         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4996         target openacc_cublas.
4997         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4998         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4999         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5000         target openacc_cuda.
5001         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5002         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5003         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5004         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5005         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5006         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5007         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5008         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5009         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5010         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5011         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5012         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5013         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5014         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5015         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5016         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5017         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5018         targets openacc_cublas and openacc_cudart.
5019         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5020         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5021         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5022         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5023         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5024         Require effective target openacc_cudart.
5025         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5026         for effective target openacc_cuda and add && defined USE_CUDA_H to
5027         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5028         effective target.
5030 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5032         PR libgomp/100573
5033         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5034         GOMP_target_end_data, GOMP_target_update_ext,
5035         GOMP_target_enter_exit_data): New dummy entrypoints.
5036         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5037         GOMP_target_end_data, GOMP_target_update_ext,
5038         GOMP_target_enter_exit_data): Likewise.
5039         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5040         OMPFROM, OMPTO): Define.
5041         (main): Remove #pragma omp target teams around all the tests.
5042         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5043         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5045 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5047         PR middle-end/99928
5048         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5050 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5052         PR fortran/86470
5053         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5054         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5055         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5057 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5059         PR testsuite/90115
5060         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5061         uninteresting/varying diagnostics.
5063 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5065         PR middle-end/90115
5066         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5067         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5069 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5071         PR middle-end/90115
5072         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5073         file.
5074         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5075         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5076         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5077         Likewise.
5078         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5079         Likewise.
5080         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5081         Likewise.
5082         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5083         Likewise.
5084         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5085         Likewise.
5086         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5087         Likewise.
5088         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5089         Likewise.
5090         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5091         Likewise.
5092         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5093         Likewise.
5094         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5095         Likewise.
5096         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5097         Likewise.
5098         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5099         Likewise.
5100         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5101         Likewise.
5102         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5103         Likewise.
5104         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5105         Likewise.
5106         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5107         Likewise.
5108         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5109         Likewise.
5110         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5111         Likewise.
5112         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5113         Likewise.
5114         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5115         Likewise.
5116         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5117         Likewise.
5118         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5119         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5120         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5121         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5122         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5123         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5124         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5125         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5126         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5127         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5128         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5129         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5130         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5131         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5132         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5133         Likewise.
5134         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5135         Likewise.
5136         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5137         Likewise.
5138         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5139         Likewise.
5140         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5141         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5142         Likewise.
5143         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5144         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5145         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5146         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5147         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5148         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5149         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5150         Likewise.
5151         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5152         Likewise.
5153         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5154         Likewise.
5155         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5156         Likewise.
5157         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5158         Likewise.
5159         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5160         Likewise.
5161         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5162         Likewise.
5163         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5164         Likewise.
5165         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5166         Likewise.
5167         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5168         Likewise.
5169         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5170         Likewise.
5171         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5172         Likewise.
5173         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5174         Likewise.
5175         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5176         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5177         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5178         Likewise.
5179         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5180         Likewise.
5181         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5182         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5183         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5185 2021-05-21  Julian Brown  <julian@codesourcery.com>
5186             Chung-Lin Tang  <cltang@codesourcery.com>
5187             Thomas Schwinge  <thomas@codesourcery.com>
5189         PR middle-end/90115
5190         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5191         test.
5192         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5193         Likewise.
5194         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5195         Likewise.
5197 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5199         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5200         for nvptx offloading.
5202 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
5204         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5206 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5208         PR target/83812
5209         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5211 2021-05-19  Julian Brown  <julian@codesourcery.com>
5213         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5215 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5217         * testsuite/lib/libgomp.exp
5218         (check_effective_target_offload_target_nvptx): Don't shadow global
5219         'offload_targets' variable.
5221 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5223         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5224         '-latomic' to nvptx offloading compilation.
5225         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5227 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5229         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5230         offloading compilation.
5232 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5234         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5235         if new tasks generated.
5236         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5238 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
5240         * testsuite/libgomp.fortran/parallel-master.f90: New test.
5242 2021-05-13  Martin Liska  <mliska@suse.cz>
5244         PR testsuite/100569
5245         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5246         * testsuite/libgomp.c/pr46032-2.c: Likewise.
5247         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5248         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5250 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
5252         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5253         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5255 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
5257         PR middle-end/100471
5258         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5259         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5260         reduction pointer.
5261         * testsuite/libgomp.c/task-reduction-4.c: New test.
5263 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
5264             Tom de Vries  <tdevries@suse.de>
5266         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5267         complex/floating-point || + && reduction with 'omp target'.
5268         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5270 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5272         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5273         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5274         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5275         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5277 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5279         PR testsuite/100397
5280         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5281         declaration to scope of non-'depend'-guarded assignment to avoid races.
5283 2021-05-03  Tom de Vries  <tdevries@suse.de>
5285         PR target/100321
5286         * testsuite/libgomp.c/target-44.c: New test.
5288 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
5290         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5292 2021-04-29  Tom de Vries  <tdevries@suse.de>
5294         * testsuite/libgomp.c/pr81778.c: New test.
5296 2021-04-29  Tom de Vries  <tdevries@suse.de>
5298         PR target/100232
5299         * testsuite/libgomp.c/target-43.c: New file.
5301 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
5302             Tobias Burnus  <tobias@codesourcery.com>
5304         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5305         * target.c (gomp_load_plugin_for_device): If set and if a plugin
5306         can't be dlopened, silently assume it has no devices.
5307         * Makefile.in: Regenerate.
5308         * config.h.in: Regenerate.
5309         * configure: Regenerate.
5311 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5313         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5314         Use [Ww]arning in dg-bogus as FE diagnostic and default
5315         diagnostic differ and the result depends on ENABLE_OFFLOAD.
5316         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5317         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5318         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5320 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5322         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5323         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5324         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5325         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5326         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5328 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5329             Nathan Sidwell  <nathan@codesourcery.com>
5330             Tom de Vries  <vries@codesourcery.com>
5331             Julian Brown  <julian@codesourcery.com>
5332             Kwok Cheung Yeung  <kcy@codesourcery.com>
5334         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5335         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5336         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5337         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5338         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5339         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5340         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5341         Likewise.
5342         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5343         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5344         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5345         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5346         Likewise.
5347         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5348         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5349         Likewise.
5350         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5351         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5352         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5353         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5354         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5355         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5356         Likewise.
5357         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5358         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5359         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5360         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5361         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5362         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5363         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5364         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5365         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5366         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5367         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5369 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5371         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5372         compile with '-w'.
5373         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5374         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5375         Likewise.
5376         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5377         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5378         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5379         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5380         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5381         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5382         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5384 2021-04-22  Richard Biener  <rguenther@suse.de>
5386         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5387         only on nvptx-none.
5389 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5391         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5392         omp_depend_kind instead of defining it as 16.
5394 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5396         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5397         New, based on check_effective_target_offload_target_nvptx.
5398         (check_effective_target_offload_target_nvptx): Call it.
5399         (check_effective_target_offload_target_amdgcn): New.
5400         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5401         Require target offload_target_nvptx || offload_target_amdgcn.
5402         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5403         * testsuite/libgomp.c/pr86416-1.c: Likewise.
5404         * testsuite/libgomp.c/pr86416-2.c: Likewise.
5406 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5408         * testsuite/libgomp.fortran/depobj-1.f90: New test.
5410 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5412         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5413         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5414         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5415         Likewise.
5416         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5417         Likewise.
5418         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5420 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5422         PR target/99555
5423         * testsuite/lib/libgomp.exp
5424         (check_effective_target_offload_device_nvptx): New.
5425         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5426         resolved, make sure that we exit quickly, with error status,
5427         XFAILed.
5428         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5429         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5431 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
5433         PR testsuite/100071
5434         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5435         cp = omp_alloc with cp, p arguments instead of cq, q and call
5436         c_f_pointer after last cq = omp_alloc with cq, q.
5438 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5440         PR middle-end/98088
5441         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5442         for loop with GT/GE condition.
5443         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5445 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
5447         PR middle-end/84991
5448         PR middle-end/84992
5449         PR middle-end/90779
5450         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5452 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
5454         PR libgomp/99984
5455         * team.c (gomp_thread_start): Call pthread_setspecific for
5456         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5457         has been initialized to avoid false positive warning.
5459 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
5461         PR target/99555
5462         * testsuite/lib/on_device_arch.c: Move to ...
5463         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5464         * testsuite/libgomp.fortran/on_device_arch.c: New file;
5465         #include on_device_arch.h.
5466         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5467         on_device_arch.h instead of using dg-additional-source.
5468         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5469         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5470         on_device_arch.c without relative paths.
5472 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5474         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5475         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5476         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5477         * config.h.in: Regenerate.
5478         * configure: Likewise.
5480 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5482         PR target/99555
5483         * testsuite/lib/on_device_arch.c: New file.
5484         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5485         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5486         skip for nvptx offloading, with error status.
5487         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5489 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5491         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5492         OpenACC 'serial' construct diagnostic for nvptx offloading.
5494 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
5496         PR c++/99509
5497         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5499 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
5501         PR fortran/98858
5502         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5504 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
5506         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5507         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5508         checking of -m32 or -mx32 options on the command line.
5509         * config.h.in: Regenerated.
5510         * configure: Regenerated.
5512 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
5514         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5515         support from the target.
5517 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5518             Jakub Jelinek  <jakub@redhat.com>
5520         PR libgomp/98738
5521         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5522         (struct gomp_task): Replace detach and completion_sem fields with
5523         union containing completion_sem and detach_team.  Add deferred_p
5524         field.
5525         (struct gomp_team): Remove task_detach_queue.
5526         * task.c: Include assert.h.
5527         (gomp_init_task): Initialize deferred_p and completion_sem fields.
5528         Rearrange initialization order of fields.
5529         (task_fulfilled_p): Delete.
5530         (GOMP_task): Use address of task as the event handle.  Remove
5531         initialization of detach field.  Initialize deferred_p field.
5532         Use automatic local for completion_sem.  Initialize detach_team field
5533         for deferred tasks.
5534         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5535         Set kind of suspended detach task to GOMP_TASK_DETACHED and
5536         decrement task_running_count.  Move finish_cancelled block out of
5537         else branch.  Relocate call to gomp_team_barrier_done.
5538         (GOMP_taskwait): Handle tasks with completion events that have not
5539         been fulfilled.
5540         (GOMP_taskgroup_end): Likewise.
5541         (omp_fulfill_event): Use address of task as event handle.  Post to
5542         completion_sem for undeferred tasks.  Clear detach_team if task
5543         has not finished.  For finished tasks, handle post-execution tasks,
5544         call gomp_team_barrier_wake if necessary, and free task.
5545         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5546         (free_team): Remove free of task_detach_queue.
5547         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5548         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5549         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5550         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5551         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5552         Change data-sharing of detach events on enclosing parallel to private.
5553         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
5554         taskwait directive.
5555         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5556         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5557         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5558         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5559         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5560         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5561         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5562         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5563         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5564         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5565         Change data-sharing of detach events on enclosing parallel to private.
5566         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
5567         taskwait directive.
5568         * testsuite/libgomp.fortran/task-detach-7.f90: New.
5569         * testsuite/libgomp.fortran/task-detach-8.f90: New.
5570         * testsuite/libgomp.fortran/task-detach-9.f90: New.
5571         * testsuite/libgomp.fortran/task-detach-10.f90: New.
5572         * testsuite/libgomp.fortran/task-detach-11.f90: New.
5574 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
5576         PR fortran/99171
5577         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5579 2021-02-17  Julian Brown  <julian@codesourcery.com>
5581         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5582         expected errors.
5584 2021-02-17  Julian Brown  <julian@codesourcery.com>
5586         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5587         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5589 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5591         * config/linux/x86/futex.h (__futex_wait):
5592         Revert output type back to long.
5593         (__futex_wake): Ditto.
5594         (futex_wait): Update for revert.
5595         (futex_wake): Ditto.
5597 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5599         * config/linux/x86/futex.h (__futex_wait): New static inline
5600         wrapper function.  Correct output type to int and
5601         timeout type to void *.
5602         (__futex_wake): New static inline wrapper function.
5603         Correct output type to int.
5604         (futex_wait): Use __futex_wait.
5605         (futex_wake): Use __futex_wake.
5607 2021-02-10  Julian Brown  <julian@codesourcery.com>
5609         PR fortran/98979
5610         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5611         errors.
5613 2021-02-04  Julian Brown  <julian@codesourcery.com>
5615         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5617 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
5619         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5620         EF_AMDGPU_MACH_AMDGCN_GFX908.
5621         (gcn_gfx908_s): New constant string.
5622         (isa_hsa_name): Add gfx908.
5623         (isa_code): Add gfx908.
5625 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5627         * libgomp.texi (omp_fulfill_event): New entry.
5629 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
5631         * task.c (GOMP_task): Rename priority argument to priority_arg,
5632         add priority automatic variable and modify that variable.  Instead of
5633         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5634         check flags for that bit.
5636 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
5638         PR fortran/98476
5639         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5641 2021-01-18  Andreas Schwab  <schwab@suse.de>
5643         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5645 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5647         * config/rtems/sem.h (gomp_sem_getcount): New function.
5649 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
5651         * config/linux/sem.h (gomp_sem_getcount): New function.
5652         * config/posix/sem.h (gomp_sem_getcount): New function.
5653         * config/posix/sem.c (gomp_sem_getcount): New function.
5654         * config/accel/sem.h (gomp_sem_getcount): New function.
5655         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5656         (omp_fulfill_event): Likewise.
5658 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
5660         * fortran.c (omp_fulfill_event_): New.
5661         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5662         (struct gomp_team): Add task_detach_queue and task_detach_count
5663         fields.
5664         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5665         * libgomp_g.h (GOMP_task): Add extra argument.
5666         * omp.h.in (enum omp_event_handle_t): New.
5667         (omp_fulfill_event): New.
5668         * omp_lib.f90.in (omp_event_handle_kind): New.
5669         (omp_fulfill_event): New.
5670         * omp_lib.h.in (omp_event_handle_kind): New.
5671         (omp_fulfill_event): Declare.
5672         * priority_queue.c (priority_tree_find): New.
5673         (priority_list_find): New.
5674         (priority_queue_find): New.
5675         * priority_queue.h (priority_queue_predicate): New.
5676         (priority_queue_find): New.
5677         * task.c (gomp_init_task): Initialize detach field.
5678         (task_fulfilled_p): New.
5679         (GOMP_task): Add detach argument.  Ignore detach argument if
5680         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
5681         field.  Copy address of completion_sem into detach argument and
5682         into the start of the data record.  Wait for detach event if task
5683         not deferred.
5684         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5685         Remove completed tasks and requeue dependent tasks.
5686         (omp_fulfill_event): New.
5687         * team.c (gomp_new_team): Initialize task_detach_queue and
5688         task_detach_count fields.
5689         (free_team): Free task_detach_queue field.
5690         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5691         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5692         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5693         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5694         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5695         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5696         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5697         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5698         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5699         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5700         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5701         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5703 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
5705         PR target/70454
5706         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5707         be added through preprocessor check on
5708         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5710 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
5712         PR libgomp/65099
5713         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5714         configurations.
5715         * configure: Regenerate.
5716         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5717         check.
5719 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5721         * configure: Re-generate.
5723 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5725         * configure: Re-generate.
5727 2021-01-05  Julian Brown  <julian@codesourcery.com>
5729         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5730         (struct ptx_device): Add omp_stacks struct.
5731         (nvptx_open_device): Initialise cached-stacks housekeeping info.
5732         (nvptx_close_device): Free cached stacks block and mutex.
5733         (nvptx_stacks_free): New function.
5734         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5735         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5736         (nvptx_stacks_alloc): Rename to...
5737         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
5738         size or smaller is required.
5739         (nvptx_stacks_free): Remove.
5740         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5741         during kernel execution.
5743 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
5745         * libgomp.texi: Bump @copying's copyright year.
5747 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
5749         * libgomp.texi (Top): Avoid bad "up" link.
5751 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
5753         * testsuite/libgomp.c/task-6.c: New test.
5755 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
5757         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5758         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5760 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
5762         * testsuite/libgomp.fortran/scan-1.f90: New test.
5764 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
5766         PR target/97865
5767         * configure: Regenerate.
5769 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
5771         * configure: Regenerate.
5773 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
5775         * testsuite/libgomp.oacc-c++/cache-1.C: New.
5776         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5778 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
5780         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5781         expected results.
5783 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
5785         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5786         (reserved): Delete unused define.
5788 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
5790         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5791         Tcl 8.5-specific behavior.
5792         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5794 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5796         * env.c (gomp_global_icv): Remove nest_var field.  Add
5797         max_active_levels_var field.
5798         (gomp_max_active_levels_var): Remove.
5799         (parse_boolean): Return true on success.
5800         (handle_omp_display_env): Express OMP_NESTED in terms of
5801         max_active_levels_var.  Change format specifier for
5802         max_active_levels_var.
5803         (initialize_env): Set max_active_levels_var from
5804         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5805         OMP_PROC_BIND.
5806         * icv.c (omp_set_nested): Express in terms of
5807         max_active_levels_var.
5808         (omp_get_nested): Likewise.
5809         (omp_set_max_active_levels): Use max_active_levels_var field instead
5810         of gomp_max_active_levels_var.
5811         (omp_get_max_active_levels): Likewise.
5812         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
5813         max_active_levels_var field.
5814         (gomp_supported_active_levels): Set to UCHAR_MAX.
5815         (gomp_max_active_levels_var): Delete.
5816         * libgomp.texi (omp_get_nested): Update documentation.
5817         (omp_set_nested): Likewise.
5818         (OMP_MAX_ACTIVE_LEVELS): Likewise.
5819         (OMP_NESTED): Likewise.
5820         (OMP_NUM_THREADS): Likewise.
5821         (OMP_PROC_BIND): Likewise.
5822         * parallel.c (gomp_resolve_num_threads): Replace reference
5823         to nest_var with max_active_levels_var.  Use max_active_levels_var
5824         field instead of gomp_max_active_levels_var.
5826 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
5828         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5829         nvptx_usleep; use also for device={arch(gcn)}.
5831 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
5833         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5834         (foo): Add tests for non-VLA private and firstprivate clauses on
5835         omp task.
5836         (bar): Likewise.  Remove taking of address from private/firstprivate
5837         variables.
5838         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5839         (foo): Add p, q, px and s arguments.  Add tests for array reductions
5840         and for non-VLA private and firstprivate clauses on omp task.
5841         (bar): Removed.
5842         (main): Adjust foo caller.  Don't call bar.
5844 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5845             Thomas Schwinge  <thomas@codesourcery.com>
5847         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5848         New.
5849         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5850         Likewise.
5851         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5852         Likewise.
5853         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5854         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5856 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5857             Thomas Schwinge  <thomas@codesourcery.com>
5859         PR fortran/94358
5860         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5862 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
5864         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5865         for array reductions.
5866         (main): Adjust foo callers.
5868 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
5870         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5871         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5872         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5873         * allocator.c (omp_aligned_alloc): New for now static function,
5874         add alignment argument and handle it.
5875         (omp_alloc): Reimplement using omp_aligned_alloc.
5876         (GOMP_alloc, GOMP_free): New functions.
5877         (omp_free): Add ialias.
5878         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5879         * testsuite/libgomp.c++/allocate-1.C: New test.
5881 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
5883         PR fortran/97782
5884         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5886 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
5888         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5889         usable.
5890         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5891         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5892         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5893         (goacc_enter_data_internal): Likewise.
5894         * target.c (gomp_map_vars_internal):
5895         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5896         of gomp_attach_pointer for OpenMP cases.
5897         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5898         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5899         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5901 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
5902             Kwok Cheung Yeung  <kcy@codesourcery.com>
5904         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5905         * Makefile.in: Regenerate.
5906         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5907         pragmas to ignore -Wdeprecated-declarations warnings.
5908         * icv.c: Likewise.
5909         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5910         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5911         and omp_get_nested with __GOMP_DEPRECATED_5_0.
5912         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5913         deprecated.
5914         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5915         to test options.
5916         * testsuite/libgomp.c/affinity-1.c: Likewise.
5917         * testsuite/libgomp.c/affinity-2.c: Likewise.
5918         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5919         * testsuite/libgomp.c/lib-1.c: Likewise.
5920         * testsuite/libgomp.c/nested-1.c: Likewise.
5921         * testsuite/libgomp.c/nested-2.c: Likewise.
5922         * testsuite/libgomp.c/nested-3.c: Likewise.
5923         * testsuite/libgomp.c/pr32362-1.c: Likewise.
5924         * testsuite/libgomp.c/pr32362-2.c: Likewise.
5925         * testsuite/libgomp.c/pr32362-3.c: Likewise.
5926         * testsuite/libgomp.c/pr35549.c: Likewise.
5927         * testsuite/libgomp.c/pr42942.c: Likewise.
5928         * testsuite/libgomp.c/pr61200.c: Likewise.
5929         * testsuite/libgomp.c/sort-1.c: Likewise.
5930         * testsuite/libgomp.c/target-5.c: Likewise.
5931         * testsuite/libgomp.c/target-6.c: Likewise.
5932         * testsuite/libgomp.c/teams-1.c: Likewise.
5933         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5934         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5935         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5936         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5937         * testsuite/libgomp.fortran/lib1.f90: Likewise.
5938         * testsuite/libgomp.fortran/lib2.f: Likewise.
5939         * testsuite/libgomp.fortran/nested1.f90: Likewise.
5940         * testsuite/libgomp.fortran/teams1.f90: Likewise.
5942 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5944         PR target/85486
5945         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5946         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5947         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5949 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5951         PR testsuite/80219
5952         PR testsuite/85303
5953         * testsuite/lib/libgomp.exp (libgomp_init): Set
5954         'gcc_warning_prefix', 'gcc_error_prefix'.
5956 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
5958         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5959         even in field_tgt_clear initializer.
5961 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5963         * testsuite/libgomp.c/target-42.c: New test.
5965 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5966             Tom de Vries  <tdevries@suse.de>
5968         PR testsuite/81690
5969         * testsuite/libgomp.c/usleep.h: New file.
5970         * testsuite/libgomp.c/target-32.c: Include usleep.h.
5971         (main): Use tgt_usleep instead of usleep.
5972         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5973         (main): Use tgt_usleep instead of usleep.
5975 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5977         PR lto/96680
5978         * testsuite/libgomp.c/declare-variant-1.c: New test.
5980 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5982         * testsuite/libgomp.c/target-41.c: New test.
5984 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5986         * icv.c (omp_get_initial_device): Remove including corresponding
5987         ialias.
5988         * icv-device.c (omp_get_initial_device): New function.  Return
5989         gomp_get_num_devices ().  Add ialias.
5990         * target.c (resolve_device): Don't fail with
5991         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5992         gomp_get_num_devices ().
5993         (omp_target_alloc, omp_target_free, omp_target_is_present,
5994         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5995         omp_target_disassociate_ptr, omp_pause_resource): Use
5996         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5997         first use in the functions, in uses dominated by the
5998         gomp_get_num_devices call use num_devices_openmp instead.
5999         * libgomp.texi (omp_get_initial_device): Document.
6000         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6001         Add ialias.
6002         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6003         * testsuite/libgomp.c/target-40.c: New test.
6005 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6007         * env.c (parse_target_offload): Change new_offload var type to int,
6008         preinitialize to -1, remove found var and test new_offload != -1
6009         instead of found.
6011 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6013         * target.c (gomp_target_init): Inside of the function, use automatic
6014         variables corresponding to num_devices, num_devices_openmp and devices
6015         global variables and update the globals only at the end of the
6016         function.
6018 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6020         * env.c (gomp_target_offload_var): New.
6021         (parse_target_offload): New.
6022         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6023         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6024         * libgomp.h (gomp_target_offload_t): New.
6025         (gomp_target_offload_var): New.
6026         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6027         * target.c (resolve_device): Generate error if device not found and
6028         offloading is mandatory.
6029         (gomp_target_fallback): Generate error if offloading is mandatory.
6030         (GOMP_target): Add argument in call to gomp_target_fallback.
6031         (GOMP_target_ext): Likewise.
6032         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6033         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6034         (GOMP_target_data_ext): Likewise.
6035         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6036         (gomp_target_init): Return early if offloading is disabled.
6038 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6040         * libgomp.texi (omp_get_max_active_levels): Modify description.
6041         (omp_get_supported_active_levels): Make descriptions consistent.
6043 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6045         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6047 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6049         * env.c (gomp_max_active_levels_var): Initialize to
6050         gomp_supported_active_levels.
6051         (initialize_env): Limit gomp_max_active_levels_var to be at most
6052         equal to gomp_supported_active_levels.
6053         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6054         (omp_get_supported_active_levels_): New.
6055         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6056         to at most equal to gomp_supported_active_levels.
6057         (omp_get_supported_active_levels): New.
6058         * libgomp.h (gomp_supported_active_levels): New.
6059         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6060         omp_get_supported_active_levels_.
6061         * libgomp.texi (omp_get_supported_active_levels): New.
6062         (omp_set_max_active_levels): Update.  Add reference to
6063         omp_get_supported_active_levels.
6064         * omp.h.in (omp_get_supported_active_levels): New.
6065         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6066         * omp_lib.h.in (omp_get_supported_active_levels): New.
6067         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6068         against omp_get_supported_active_levels.
6069         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6071 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6073         * config/t-aix: Delete and recreate libgomp before creating
6074         FAT library.
6076 2020-10-08  Tom de Vries  <tdevries@suse.de>
6078         PR libgomp/81802
6079         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6080         dimensions.
6082 2020-10-06  Tom de Vries  <tdevries@suse.de>
6084         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6086 2020-10-06  Tom de Vries  <tdevries@suse.de>
6088         PR middle-end/90861
6089         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6091 2020-10-05  Tom de Vries  <tdevries@suse.de>
6093         PR fortran/95654
6094         * testsuite/libgomp.fortran/pr95654.f90: New test.
6096 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6098         * Makefile.in: Regenerate with automake 1.15.1.
6099         * aclocal.m4: Likewise.
6100         * configure: Likewise.
6101         * testsuite/Makefile.in: Likewise.
6103 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6105         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6106         and amdgcn targets.
6108 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6110         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6112 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6114         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6115         total number of threads is one.
6116         (gomp_team_barrier_wake): Likewise.
6117         (gomp_team_barrier_wait_end): Likewise.
6118         (gomp_team_barrier_wait_cancel_end): Likewise.
6119         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6120         (gomp_team_barrier_wake): Likewise.
6121         (gomp_team_barrier_wait_end): Likewise.
6122         (gomp_team_barrier_wait_cancel_end): Likewise.
6123         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6125 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6127         PR middle-end/96390
6128         * testsuite/libgomp.c++/pr96390.C: New test.
6129         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6131 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6133         * config/t-aix: Use $(AR) without -X32_64.
6135 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6137         * testsuite/libgomp.c/loop-25.c: New test.
6139 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6141         PR fortran/95654
6142         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6144 2020-09-22  Tom de Vries  <tdevries@suse.de>
6146         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6147         fails.
6149 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6151         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6153 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6155         PR fortran/96668
6156         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6158 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6160         PR fortran/96668
6161         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6162         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6163         (gomp_map_vars_existing): Update call to it.
6164         (gomp_map_fields_existing): Likewise
6165         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6166         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6167         remapped.
6168         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6169         GOMP_MAP_POINTER.
6170         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6171         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6173 2020-09-14  Tom de Vries  <tdevries@suse.de>
6175         * config/nvptx/atomic.c: New file.  Add
6176         __sync_val_compare_and_swap_16.
6177         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6178         target offload_target_nvptx.
6180 2020-09-08  Julian Brown  <julian@codesourcery.com>
6182         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6183         iteration-ordering assumptions.
6185 2020-09-08  Julian Brown  <julian@codesourcery.com>
6187         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6188         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6190 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
6192         * plugin/plugin-nvptx.c (nvptx_free):
6193         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6194         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6195         comments.
6197 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
6199         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6201 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6203         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6205 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
6207         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6208         * testsuite/libgomp.c/loop-23.c (main): Likewise.
6209         * testsuite/libgomp.c/loop-24.c: New test.
6211 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
6212             Tobias Burnus  <tobias@codesourcery.com>
6214         PR fortran/93553
6215         * testsuite/libgomp.fortran/pr93553.f90: New test.
6217 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6219         * testsuite/libgomp.c/loop-22.c: New test.
6220         * testsuite/libgomp.c/loop-23.c: New test.
6222 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6224         PR middle-end/96459
6225         * testsuite/libgomp.c/teams-3.c: New test.
6226         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6227         if not defined yet.
6228         (N(test)): Use it before all N(f*) calls.
6229         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6230         (main): Don't call all test_* functions from within
6231         #pragma omp teams reduction(|:err), call them directly.
6233 2020-08-04  Tom de Vries  <tdevries@suse.de>
6235         PR target/96428
6236         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6237         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6239 2020-08-03  Julian Brown  <julian@codesourcery.com>
6240             Thomas Schwinge  <thomas@codesourcery.com>
6242         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6243         shared-memory devices.  Extend with further checking.
6245 2020-08-03  Martin Jambor  <mjambor@suse.cz>
6247         * plugin/Makefrag.am: Remove configuration of HSA plugin.
6248         * aclocal.m4: Regenerated.
6249         * Makefile.in: Regenerated.
6250         * config.h.in: Regenerated.
6251         * configure: Regenerated.
6252         * plugin/configfrag.ac: Likewise.
6253         * plugin/hsa_ext_finalize.h: Removed.
6254         * plugin/plugin-hsa.c: Likewise.
6255         * testsuite/Makefile.in: Regenerated.
6256         * testsuite/lib/libgomp.exp
6257         (offload_target_to_openacc_device_type): Remove hsa case.
6258         (check_effective_target_hsa_offloading_selected_nocache): Removed
6259         (check_effective_target_hsa_offloading_selected): Likewise.
6260         (libgomp_init): Do not add -Wno-hsa to additional_flags.
6261         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6262         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6263         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6264         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6265         * testsuite/libgomp.hsa.c/c.exp: Likewise.
6266         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6267         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6268         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6269         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6270         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6271         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6272         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6273         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6274         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6275         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6276         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6277         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6278         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6279         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6280         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6281         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6282         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6283         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6284         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6286 2020-07-27  Julian Brown  <julian@codesourcery.com>
6287             Thomas Schwinge  <thomas@codesourcery.com>
6289         * libgomp.h (struct target_var_desc): Rename do_detach field to
6290         is_attach.
6291         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
6292         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6293         (goacc_enter_data_internal): Don't affect reference counts
6294         for attach mappings.
6295         (goacc_exit_data_internal): Don't affect reference counts for detach
6296         mappings.
6297         * target.c (gomp_map_vars_existing): Don't affect reference counts for
6298         attach mappings.
6299         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6300         mark attach mappings.
6301         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6302         reference count for attach mappings.
6303         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6304         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6305         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6306         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6307         test as shouldfail.
6308         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6309         gracefully in no-finalize mode.
6310         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6312 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
6314         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6315         use.
6316         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6317         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6319 2020-07-23  Julian Brown  <julian@codesourcery.com>
6320             Thomas Schwinge  <thomas@codesourcery.com>
6322         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6323         finalization for detach operation.
6324         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6325         New test.
6327 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
6329         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6330         * libgomp_f.h.in (omp_check_defines): Check whether
6331         sizeof of determined Fortran kind and C typedef match.
6332         * omp_lib.f90.in: Add omp_depened_kind.
6333         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6334         * configure: Regenerate.
6335         * Makefile.in: Regenerate.
6336         * testsuite/Makefile.in: Regenerate.
6338 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6340         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6341         gcc/testsuite/c-c++-common/gomp/.
6342         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6343         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6344         from gcc/testsuite/gfortran.dg/gomp/.
6345         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6347 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6349         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6350         * omp_lib.h.in: Likewise.
6352 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
6354         PR target/95620
6355         * testsuite/libgomp.c/pr95620.c: New test.
6357 2020-07-16  Julian Brown  <julian@codesourcery.com>
6358             Thomas Schwinge  <thomas@codesourcery.com>
6360         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6361         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6363 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6365         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6366         avoid conversion on 32bit systems from 32bit to 64bit due
6367         to -fdefault-integer-8.
6369 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6371         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6372         variables; add character(kind=4) tests; update TODO comment.
6374 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6376         * allocator.c: Add ialias for omp_init_allocator and
6377         omp_destroy_allocator.
6378         * configure.ac: Set INTPTR_T_KIND.
6379         * configure: Regenerate.
6380         * Makefile.in: Regenerate.
6381         * testsuite/Makefile.in: Regenerate.
6382         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6383         omp_set_default_allocator_, omp_get_default_allocator_): New
6384         functions and ialias_redirect.
6385         * icv.c: Add ialias for omp_set_default_allocator and
6386         omp_get_default_allocator.
6387         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6388         omp_destroy_allocator_, omp_set_default_allocator_ and
6389         omp_get_default_allocator_.
6390         * omp_lib.f90.in: Add allocator traits parameters, declare
6391         allocator routines and add related kind parameters.
6392         * omp_lib.h.in: Likewise.
6393         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6394         * testsuite/libgomp.fortran/alloc-1.F90: New test.
6395         * testsuite/libgomp.fortran/alloc-2.F90: New test.
6396         * testsuite/libgomp.fortran/alloc-3.F: New test.
6397         * testsuite/libgomp.fortran/alloc-4.f90: New test.
6398         * testsuite/libgomp.fortran/alloc-5.f90: New test.
6400 2020-07-14  Tom de Vries  <tom@codesourcery.com>
6401             Cesar Philippidis  <cesar@codesourcery.com>
6402             Thomas Schwinge  <thomas@codesourcery.com>
6403             Kwok Cheung Yeung  <kcy@codesourcery.com>
6405         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6406         New variable.
6407         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
6408         acc_init_state to initializing at the start, and to initialized at the
6409         end.
6410         (self_initializing_p): New function.
6411         (acc_get_device_type): Return acc_device_none if called by thread that
6412         is currently executing acc_init_1.
6413         * libgomp.texi (acc_get_device_type): Update documentation.
6414         (Implementation Status and Implementation-Defined Behavior): Likewise.
6415         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6417 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
6419         * config/t-aix: Set BITS from compiler cpp macro.
6421 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6423         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6425 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6427         PR fortran/67311
6428         * testsuite/libgomp.fortran/target-map-1.f90: New test.
6430 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
6432         * testsuite/libgomp.c/loop-21.c: New test.
6434 2020-07-13  Julian Brown  <julian@codesourcery.com>
6435             Thomas Schwinge  <thomas@codesourcery.com>
6437         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6439 2020-07-10  Julian Brown  <julian@codesourcery.com>
6440             Thomas Schwinge  <thomas@codesourcery.com>
6442         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6443         dynamic_refcount.
6444         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6445         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6446         dynamic_refcount.
6447         (acc_unmap_data): Update comment.
6448         (goacc_map_var_existing, goacc_enter_datum): Adjust for
6449         dynamic_refcount semantics.
6450         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6451         Adjust for dynamic_refcount semantics.
6452         (goacc_enter_data_internal): Implement "present" case of dynamic
6453         memory-map handling here.  Update "non-present" case for
6454         dynamic_refcount semantics.
6455         (goacc_exit_data_internal): Use goacc_exit_datum_1.
6456         * target.c (gomp_map_vars_internal): Remove
6457         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
6458         handling.
6459         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6460         (gomp_load_image_to_device): Substitute dynamic_refcount for
6461         virtual_refcount.
6462         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6463         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6464         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6465         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6466         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6467         trace output.
6468         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6469         trace output.
6470         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6471         test.
6472         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6473         Remove stale comment.
6474         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6475         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6476         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6477         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6478         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6479         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6481 2020-07-10  Julian Brown  <julian@codesourcery.com>
6482             Thomas Schwinge  <thomas@codesourcery.com>
6484         * oacc-mem.c (goacc_map_var_existing): New function.
6485         (goacc_enter_datum): Use above function.
6486         (goacc_exit_datum_1): New function.
6487         (goacc_exit_datum): Use above function.
6489 2020-07-09  Julian Brown  <julian@codesourcery.com>
6490             Thomas Schwinge  <thomas@codesourcery.com>
6492         PR middle-end/95270
6493         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6494         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6496 2020-07-09  Julian Brown  <julian@codesourcery.com>
6498         * oacc-mem.c (find_group_last): Group data-movement clauses
6499         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6500         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
6502 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6504         * testsuite/libgomp.c/loop-19.c: New test.
6505         * testsuite/libgomp.c/loop-20.c: New test.
6507 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6509         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6510         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
6511         it.  Remove __omp_alloctrait_value_max__.
6512         * allocator.c (omp_init_allocator): Handle omp_atv_default for
6513         omp_atk_alignment and omp_atk_pool_size.
6515 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6517         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6518         behavior for 'GOMP_MAP_FORCE_FROM'.
6519         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6521 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6523         * oacc-mem.c (goacc_exit_data_internal): Remove
6524         'GOMP_MAP_ALWAYS_FROM' handling.
6526 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6528         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6529         'scan-assembler' with 'scan-offload-rtl'.
6530         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6531         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6532         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6533         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6535 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6537         * target.c (gomp_map_vars_existing): Assert 'kind !=
6538         GOMP_MAP_ATTACH'.
6539         (gomp_map_vars_internal): Clean up.
6541 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
6543         * testsuite/libgomp.c/loop-17.c: New test.
6544         * testsuite/libgomp.c/loop-18.c: New test.
6546 2020-06-26  Marek Polacek  <polacek@redhat.com>
6548         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6550 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
6552         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6553         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6555 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
6557         * Makefile.am: Use -include.
6558         * Makefile.in: Regenerate.
6560 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
6562         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6563         * Makefile.in: Regenerate
6564         * configure.ac (tmake_file): Substitute.
6565         * configure: Regenerate.
6566         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6567         * config/t-aix: New file.
6569 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
6571         PR lto/94848
6572         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6573         'dg-do run'.
6575 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
6577         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6578         variant for HSA_RUNTIME_LIB name.
6579         (find_executable_symbol_1): Delete.
6580         (find_executable_symbol): Delete.
6581         (init_kernel_properties): Add ".kd" suffix to symbol names.
6582         (find_load_offset): Delete.
6583         (create_and_finalize_hsa_program): Remove relocation handling.
6585 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
6587         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6589 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
6591         PR lto/94848
6592         PR middle-end/95551
6593         * testsuite/libgomp.fortran/target-var.f90: New test.
6595 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6596             Julian Brown  <julian@codesourcery.com>
6598         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6599         special handling.
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>:
6605         Simplify.
6607 2020-06-05  Julian Brown  <julian@codesourcery.com>
6609         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6610         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6612 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6614         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6615         Evaluate 'copyfrom' individually for each entry.
6616         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6618 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6620         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6621         Evaluate 'finalize' individually for each entry.
6622         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6623         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6624         file.
6626 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6628         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6629         usage.
6630         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6632 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6633             Julian Brown  <julian@codesourcery.com>
6635         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6636         checking.
6637         (acc_unmap_data, goacc_exit_data_internal): Restore
6638         'is_tgt_unmapped' checking.
6639         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6640         file.
6641         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6642         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6643         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6644         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6645         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6646         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6648 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6649             Julian Brown  <julian@codesourcery.com>
6651         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6653 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6655         PR libgomp/92854
6656         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6658 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6660         PR libgomp/92854
6661         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6662         more.
6664 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6665             Julian Brown  <julian@codesourcery.com>
6667         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6668         'gomp_map_vars'.
6669         (acc_map_data): Clean up accordingly.
6671 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6673         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6674         of over-eager 'finalize' clause.
6675         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6676         file.
6677         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6678         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6679         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6680         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6681         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6682         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6683         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6684         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6686 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6688         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6690 2020-06-04  Julian Brown  <julian@codesourcery.com>
6692         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6693         error path.
6694         (goacc_detach_internal): Likewise.
6696 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6698         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6699         the checkpoint.
6700         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6701         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6702         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6703         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6704         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6706 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
6708         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6709         defined.
6711 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6713         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6715 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6717         * allocator.c (omp_alloc): For size == 0, return NULL early.
6719 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
6721         PR bootstrap/95413
6722         * configure: Regenerated.
6724 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
6726         PR libfortran/95191
6727         * testsuite/libgomp.fortran/async_io_9.f90: New test.
6729 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
6731         * omp.h.in (omp_uintptr_t): New typedef.
6732         (__GOMP_UINTPTR_T_ENUM): Define.
6733         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6734         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6735         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6736         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6737         omp_get_default_allocator, omp_alloc, omp_free): Declare.
6738         * libgomp.h (struct gomp_team_state): Add def_allocator field.
6739         (gomp_def_allocator): Declare.
6740         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6741         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6742         omp_alloc and omp_free.
6743         * team.c (gomp_team_start): Copy over ts.def_allocator.
6744         * env.c (gomp_def_allocator): New variable.
6745         (parse_wait_policy): Adjust function comment.
6746         (parse_allocator): New function.
6747         (handle_omp_display_env): Print OMP_ALLOCATOR.
6748         (initialize_env): Call parse_allocator.
6749         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6750         * allocator.c: New file.
6751         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6752         functions.
6753         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6754         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6755         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6756         * Makefile.in: Regenerated.
6758 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6760         PR bootstrap/95147
6761         * configure: Regenerated.
6763 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
6765         PR libfortran/95119
6766         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6768 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6770         * configure: Regenerated.
6772 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
6774         * testsuite/libgomp.c-c++-common/target-40.c: New test.
6776 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
6778         PR fortran/94690
6779         * testsuite/libgomp.fortran/pr66199-3.f90: New.
6780         * testsuite/libgomp.fortran/pr66199-4.f90: New.
6781         * testsuite/libgomp.fortran/pr66199-5.f90: New.
6782         * testsuite/libgomp.fortran/pr66199-6.f90: New.
6783         * testsuite/libgomp.fortran/pr66199-7.f90: New.
6784         * testsuite/libgomp.fortran/pr66199-8.f90: New.
6785         * testsuite/libgomp.fortran/pr66199-9.f90: New.
6787 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
6789         * testsuite/libgomp.c/target-39.c: New test.
6791 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6793         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6794         * openacc.f90 (acc_device_current): Likewise.
6795         * openacc.h (acc_device_current): Likewise.
6796         * openacc_lib.h (acc_device_current): Likewise.
6798         PR target/94282
6799         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6800         'dg-allow-blank-lines-in-output'.
6802         * oacc-init.c (get_openacc_name): Handle 'gcn'.
6803         * testsuite/lib/libgomp.exp
6804         (offload_target_to_openacc_device_type) [amdgcn*]: Return
6805         'radeon'.  Adjust all users.
6806         (check_effective_target_openacc_amdgcn_accel_present): Rename
6807         to...
6808         (check_effective_target_openacc_radeon_accel_present): ... this.
6809         Adjust all users.
6810         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6811         (check_effective_target_openacc_radeon_accel_selected): ... this.
6812         Adjust all users.
6814         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6815         'dg-do run'.
6817 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
6819         PR other/94629
6821         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6822         hsa_iterate_agents.
6823         (GOMP_OFFLOAD_init_device): Check return values from both calls to
6824         hsa_agent_iterate_regions.
6826 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6828         PR middle-end/94635
6829         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6830         run'.
6832 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
6834         PR middle-end/94120
6835         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6836         test case.
6838 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
6840         PR middle-end/94635
6841         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6843 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
6845         PR libgomp/92843
6846         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6847         Rename to...
6848         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6849         ... this.
6850         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6851         Rename to...
6852         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6853         ... this.
6854         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6855         Rename to...
6856         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6857         ... this.
6858         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6859         Rename to...
6860         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6861         ... this.
6862         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6863         Rename to...
6864         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6865         ... this.
6866         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6867         Rename to...
6868         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6869         ... this.
6870         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6871         Rename to...
6872         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6873         ... this.
6874         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6875         Rename to...
6876         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6877         ... this.
6878         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6879         Rename to...
6880         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6881         ... this.
6882         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6883         Rename to...
6884         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6885         ... this.
6886         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6887         Rename to...
6888         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6889         ... this.
6890         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6891         Rename to...
6892         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6893         ... this.
6894         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6895         Rename to...
6896         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6897         ... this.
6898         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6899         Rename to...
6900         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6901         ... this.
6902         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6903         Rename to...
6904         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6905         ... this.
6906         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6907         Rename to...
6908         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6909         ... this.
6911 2020-04-10  Julian Brown  <julian@codesourcery.com>
6912             Thomas Schwinge  <thomas@codesourcery.com>
6914         PR libgomp/92843
6915         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6916         New file.
6917         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6918         Likewise.
6919         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6920         Likewise.
6921         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6922         Likewise.
6923         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6924         Likewise.
6925         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6926         Likewise.
6927         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6928         Likewise.
6929         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6930         Likewise.
6931         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6932         Likewise.
6933         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6934         Likewise.
6935         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6936         Likewise.
6937         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6938         Likewise.
6939         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6940         Likewise.
6941         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6942         Likewise.
6943         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6944         Likewise.
6945         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6946         Likewise.
6948 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
6950         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6951         run'.
6953 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
6955         PR middle-end/94120
6956         * libgomp.oacc-c++/declare-pr94120.C: New.
6958 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
6960         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6961         files.
6962         * configure: Regenerate.
6963         * testsuite/libgomp-site-extra.exp.in: New file.
6964         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6965         variable.
6966         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6967         variable.
6968         * testsuite/Makefile.in: Regenerate.
6970 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6972         PR tree-optimization/89713
6973         PR c/94392
6974         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6975         'bar.sync'.
6976         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6978 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
6980         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6981         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6983 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
6985         PR libgomp/81689
6986         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6988 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
6990         PR libgomp/94251
6991         * target.c (gomp_load_image_to_device): Fix link
6992         variable handling.
6994 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
6996         PR c++/93931
6997         * testsuite/libgomp.c++/pr93931.C: New test.
6999 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7001         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7002         dg-allow-blank-lines-in-output.
7004 2020-03-18  Julian Brown <julian@codesourcery.com>
7005             Tobias Burnus  <tobias@codesourcery.com>
7007         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7008         it work concurrently.
7010 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7012         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7013         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7014         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7016 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7018         PR middle-end/93566
7019         * testsuite/libgomp.c/pr93566.c: New test.
7021 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7023         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7024         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7025         integer(acc_device_property) for the type of the return value of
7026         acc_get_property.
7028 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7030         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7031         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7032         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7033         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7034         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7035         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7036         corrections; add note about the previous interface and named constant.
7037         (OpenACC library and environment variables): Fix two typos.
7038         * openacc.f90: Use for all procedures the argument names from the spec
7039         as for â€¦_h they are user visible.
7040         (openacc_kinds): Rename acc_device_property to
7041         acc_device_property_kinds and change value to int32 ; and update users.
7042         Re-add acc_device_property for for backward compatibility.
7043         (acc_get_property_string_h): Clean up as acc_device_property_kind
7044         changed.
7045         (acc_get_property_h): Likewise and return c_size_t instead of
7046         acc_device_property.
7047         (openacc): Also export acc_device_property_kinds.
7048         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7049         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7050         handling; check against /= 0 instead of == 1 to match C.
7051         * openacc_lib.h: Use for all procedures the argument names from the spec
7052         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7053         be active also for fixed-form souce form.
7054         (acc_device_current, acc_device_property_kind, acc_device_property,
7055         acc_property_memory, acc_property_free_memory, acc_property_name,
7056         acc_property_vendor, acc_property_driver): New named constants.
7057         (acc_get_property, acc_get_property_string): New generic interface.
7059 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7061         PR libgomp/93481
7062         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7063         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7064         optional.
7065         (gomp_target_task_fn): Assert "devicep->async_run_func".
7066         (clear_unsupported_flags): New function to remove unsupported flags
7067         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7068         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7069         * testsuite/libgomp.c/target-33.c:
7070         Remove xfail for offload_target_nvptx.
7071         * testsuite/libgomp.c/target-34.c: Likewise.
7073 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7075         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7076         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7077         * testsuite/libgomp.c/target-34.c: Likewise.
7078         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7079         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7081 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7083         * testsuite/libgomp.c/target-38.c: New test.
7085 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7087         PR libgomp/93515
7088         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7090 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7092         * testsuite/lib/libgomp.exp
7093         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7094         and not as 'source' argument to libgomp_target_compile.
7096 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7098         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7099         (gcn_gfx801_s): Remove.
7100         (isa_hsa_name): Remove gfx801.
7101         (isa_gcc_name): Remove gfx801/carizzo.
7102         (isa_code): Remove gfx801.
7104 2020-02-03  Julian Brown  <julian@codesourcery.com>
7105             Tobias Burnus  <tobias@codesourcery.com>
7107         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7108         and *_finalize variants; document acc_attach and acc_detach; update
7109         references from OpenACC 2.0 to 2.6.
7110         * openacc.f90 (openacc_version): Update to 201711.
7111         * openacc_lib.h (openacc_version): Update to 201711.
7112         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7113         openacc_version to 201711.
7114         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7116 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7118         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7119         and vgpr_count fields.
7120         (struct kernel_info): Add a field for a hsa_kernel_description.
7121         (run_kernel): Reduce the number of threads/workers if the requested
7122         number would require too many VGPRs.
7123         (init_basic_kernel_info): Initialize description field with
7124         the hsa_kernel_description entry for the kernel.
7126 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7128         PR bootstrap/93409
7129         * plugin/configfrag.ac (enable_offload_targets): Skip
7130         HSA and GCN plugin besides -m32 also for -mx32.
7131         * configure: Regenerate.
7133 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7135         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7137 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7139         * plugin-gcn.c (struct agent_info): Add fields "name" and
7140         "vendor_name" ...
7141         (GOMP_OFFLOAD_init_device): ... and init from here.
7142         (struct hsa_context_info): Add field "driver_version_s" ...
7143         (init_hsa_contest): ... and init from here.
7144         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7145         implementation.
7146         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7147         Enable test execution for amdgcn and host offloading targets.
7148         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7149         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7150         (expect_device_properties): Split function into ...
7151         (expect_device_string_properties): ... this new function ...
7152         (expect_device_memory): ... and this new function.
7153         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7154         Add test.
7156 2020-01-28  Julian Brown  <julian@codesourcery.com>
7158         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7159         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7160         component/non-component variable refs in a single directive.
7161         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7163 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7165         * configure.ac: Handle `--with-toolexeclibdir='.
7166         * Makefile.in: Regenerate.
7167         * aclocal.m4: Regenerate.
7168         * configure: Regenerate.
7169         * testsuite/Makefile.in: Regenerate.
7171 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7173         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7174         (expect_device_properties): Remove "expected_free_mem" argument,
7175         change "expected_total_mem" argument type to size_t;
7176         change types of acc_get_property results to size_t,
7177         adapt format strings.
7178         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7179         Use %zu instead of %zd to print size_t values.
7180         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7181         rename to ...
7182         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7183         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7184         rename to ...
7185         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7187 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
7189         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7190         the device id.
7192 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
7194         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7195         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7196         Adjust test dimensions for amdgcn.
7197         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7198         gang/worker/vector expectations dynamically.
7199         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7200         (main): Likewise.
7201         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7202         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7203         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7204         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7205         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7206         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7207         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7208         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7209         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7210         (acc_gang): Recognise acc_device_radeon.
7211         (acc_worker): Likewise.
7212         (acc_vector): Likewise.
7213         (main): Set expectations for amdgcn.
7214         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7215         (main): Adjust gang/worker/vector expectations dynamically.
7216         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7217         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7218         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7219         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7220         for amdgcn.
7222 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
7224         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7225         acc_device_radeon.
7226         (openacc): Likewise.
7227         * openacc.f90 (openacc_kinds): Likewise.
7228         (openacc): Likewise.
7229         * openacc.h (acc_device_t): Likewise.
7230         * openacc_lib.h: Likewise.
7231         * testsuite/lib/libgomp.exp
7232         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7233         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7234         (cb_compute_construct_end): Likewise.
7235         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7236         (cb_enqueue_launch_start): Likewise.
7237         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7238         (cb_enter_data_end): Likewise.
7239         (cb_exit_data_start): Likewise.
7240         (cb_exit_data_end): Likewise.
7241         (cb_compute_construct_end): Likewise.
7242         (cb_enqueue_launch_start): Likewise.
7243         (cb_enqueue_launch_end): Likewise.
7244         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7245         (main): Likewise.
7247 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7249         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
7250         to use this instead of 'enum gomp_device_property'.
7251         (GOMP_OFFLOAD_get_property): Rename to...
7252         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
7253         * libgomp.h (struct gomp_device_descr): Move
7254         'GOMP_OFFLOAD_openacc_get_property'...
7255         (struct acc_dispatch_t): ... here.  Adjust all users.
7256         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7258         * target.c (gomp_map_vars_internal)
7259         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7260         paths.
7262 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
7264         PR libgomp/93219
7265         * libgomp.h (gomp_print_string): Change return type from void to int.
7266         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
7267         not all characters have been written.
7269 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
7271         * libgomp.texi: Fix typos, use https.
7273 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
7275         * testsuite/libgomp.fortran/optional-map.f90: Add test for
7276         unallocated/disassociated actual arguments to nonallocatable/nonpointer
7277         dummy arguments; those are/shall be regarded as absent arguments.
7278         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7279         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7281 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
7283         Update copyright years.
7285         * libgomp.texi: Bump @copying's copyright year.
7287 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
7289         PR libgomp/93065
7290         * oacc-init.c (goacc_runtime_deinitialize): New function.
7292 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
7294         PR bootstrap/93074
7295         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7296         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
7298 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
7299             Frederik Harwath  <frederik@codesourcery.com>
7300             Thomas Schwinge  <tschwinge@codesourcery.com>
7302         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7303         * libgomp-plugin.h (gomp_device_property_value): New union.
7304         (gomp_device_property_value): New prototype.
7305         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7306         constant.
7307         (acc_device_property_t): New enum.
7308         (acc_get_property, acc_get_property_string): New prototypes.
7309         * oacc-init.c (acc_get_device_type): Also assert that result
7310         is not `acc_device_current'.
7311         (get_property_any, acc_get_property, acc_get_property_string):
7312         New functions.
7313         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7314         `acc_property_memory', `acc_property_free_memory',
7315         `acc_property_name', `acc_property_vendor' and
7316         `acc_property_driver' constants.  Add `acc_device_property' data
7317         type.
7318         (openacc_internal): Add `acc_get_property' and
7319         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
7320         `acc_get_property_string_h', `acc_get_property_l' and
7321         `acc_get_property_string_l'.
7322         * oacc-host.c (host_get_property): New function.
7323         (host_dispatch): Wire it.
7324         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7325         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7326         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7327         * libgomp.texi (OpenACC Runtime Library Routines): Add
7328         `acc_get_property'.
7329         (acc_get_property): New node.
7330         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7331         function (stub).
7332         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7333         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7334         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7335         calls.
7336         (GOMP_OFFLOAD_get_property): New function.
7337         (struct ptx_device): Add new field "name".
7338         (cuda_driver_version_s): Add new static variable ...
7339         (nvptx_init): ... and init from here.
7341         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7342         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7343         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7344         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7345         with test helper functions.
7347         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7349 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
7351         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7352         variable.
7354 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
7356         * target.c (gomp_map_vars_internal): Restore 'omp declare target
7357         link' handling.
7359 2019-12-19  Julian Brown  <julian@codesourcery.com>
7361         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7362         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7363         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7365 2019-12-19  Julian Brown  <julian@codesourcery.com>
7366             Cesar Philippidis  <cesar@codesourcery.com>
7368         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7369         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7370         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7371         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7372         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7373         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7374         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7375         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7376         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7377         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7378         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7379         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7380         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7382 2019-12-19  Julian Brown  <julian@codesourcery.com>
7384         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7385         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7386         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7387         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7388         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7389         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7390         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7391         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7392         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7393         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7394         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7395         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7397 2019-12-19  Julian Brown  <julian@codesourcery.com>
7399         * libgomp.h (struct target_var_desc): Add do_detach flag.
7400         * oacc-init.c (acc_shutdown_1): Free aux block if present.
7401         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7402         struct components.  Tidy up and add some new checks.
7403         (goacc_enter_data_internal): Update call to find_group_last.
7404         (goacc_exit_data_internal): Support detach operations and
7405         GOMP_MAP_STRUCT.
7406         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7407         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
7408         attach/detach in enter/exit data detection code.
7409         * target.c (gomp_map_vars_existing): Initialise do_detach field of
7410         tgt_var_desc.
7411         (gomp_map_vars_internal): Support attach.
7412         (gomp_unmap_vars_internal): Support detach.
7414 2019-12-19  Julian Brown  <julian@codesourcery.com>
7415             Thomas Schwinge  <thomas@codesourcery.com>
7417         * libgomp.h (struct splay_tree_aux): Add attach_count field.
7418         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7419         * libgomp.map (OACC_2.6): New section. Add acc_attach,
7420         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7421         acc_detach_finalize_async.
7422         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7423         acc_detach, acc_detach_async, acc_detach_finalize,
7424         acc_detach_finalize_async): New functions.
7425         * openacc.h (acc_attach, acc_attach_async, acc_detach,
7426         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7427         prototypes.
7428         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7429         (gomp_remove_var_internal): Free attachment counts if present.
7430         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7431         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7433 2019-12-19  Julian Brown  <julian@codesourcery.com>
7434             Cesar Philippidis  <cesar@codesourcery.com>
7436         * libgomp.h (gomp_map_val): Add prototype.
7437         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7438         open-coding device-address calculation.
7439         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7440         non-present case.
7442 2019-12-19  Julian Brown  <julian@codesourcery.com>
7444         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7445         field for virtual_refcount.
7446         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7447         (gomp_free_memmap): Remove prototype.
7448         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7449         instead of calling gomp_free_memmap.
7450         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7451         dynamic_refcount.
7452         (acc_unmap_data): Open code instead of forcing target_mem_desc's
7453         to_free field to NULL then calling gomp_unmap_vars.  Handle
7454         REFCOUNT_INFINITY on target blocks.
7455         (goacc_enter_data): Rename to...
7456         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
7457         handling for mapping groups.  Use virtual_refcount instead of
7458         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7459         map_map_vars_async call.  Re-do lookup for target pointer return value.
7460         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7461         renamed goacc_enter_datum function.
7462         (goacc_exit_data): Rename to...
7463         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
7464         (acc_delete, acc_delete_async, acc_delete_finalize,
7465         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7466         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7467         goacc_exit_datum function.
7468         (gomp_acc_remove_pointer, find_pointer): Remove functions.
7469         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7470         New functions.
7471         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7472         goacc_exit_data_internal helper functions.
7473         * target.c (gomp_map_vars_internal): Handle
7474         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
7475         semantics.
7476         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7477         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7478         virtual_refcount field instead of dynamic_refcount.
7479         (gomp_free_memmap): Remove function.
7480         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7481         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7482         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7484 2019-12-19  Julian Brown  <julian@codesourcery.com>
7485             Thomas Schwinge  <thomas@codesourcery.com>
7487         * libgomp.h (struct splay_tree_aux): New.
7488         (struct splay_tree_key_s): Replace link_key field with aux pointer.
7489         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7490         to aux struct.
7491         (gomp_remove_var_internal): Free aux block if present.
7492         (gomp_load_image_to_device): Zero-initialise aux field instead of
7493         link_key field.
7494         (omp_target_associate_pointer): Zero-initialise aux field.
7496 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
7498         PR middle-end/86416
7499         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7500         q or none.
7501         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7502         L or none.
7504 2019-12-19  Julian Brown  <julian@codesourcery.com>
7505             Maciej W. Rozycki  <macro@codesourcery.com>
7506             Tobias Burnus  <tobias@codesourcery.com>
7507             Thomas Schwinge  <thomas@codesourcery.com>
7509         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7510         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7511         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7512         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7513         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7514         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7515         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7516         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7517         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7519 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
7521         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7522         called...
7523         (goacc_insert_pointer): ... from here, "present" case.
7524         (goacc_insert_pointer): Inline function into...
7525         (GOACC_enter_exit_data): ... here, and simplify.
7527         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7528         called...
7529         (goacc_insert_pointer): ... from here, "not present" case.
7531         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
7532         all users.
7534         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7535         'goacc_enter_data', 'goacc_exit_data'.
7537         * oacc-mem.c (delete_copyout): Refactor into...
7538         (goacc_exit_data): ... this.  Adjust all users.
7540         * oacc-mem.c (present_create_copy): Refactor into...
7541         (goacc_enter_data): ... this.  Adjust all users.
7543         * target.c (gomp_unmap_vars_internal): Add a safeguard to
7544         'gomp_remove_var'.
7546         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7547         like 'GOMP_MAP_FROM'.
7549         PR libgomp/92726
7550         PR libgomp/92970
7551         PR libgomp/92984
7552         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7553         fails.
7554         (GOACC_enter_exit_data): Simplify accordingly.
7555         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7556         subsuming...
7557         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7558         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7559         file.
7560         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7561         subsuming...
7562         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7563         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7564         file.
7565         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7566         subsuming...
7567         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7569         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7570         'finalize' handling.
7572         PR libgomp/92848
7573         * oacc-mem.c (acc_map_data, present_create_copy)
7574         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7575         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7576         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7577         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7578         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7579         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7580         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7581         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7582         Remove "XFAIL"s.
7584         * target.c (gomp_unmap_tgt): Make it 'static'.
7585         * libgomp.h (gomp_unmap_tgt): Remove.
7587 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
7589         PR middle-end/86416
7590         * testsuite/libgomp.c/pr86416-1.c: New.
7591         * testsuite/libgomp.c/pr86416-2.c: New.
7593 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
7595         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7596         all symbols as public except for the 'use â€¦, only' imported symbol,
7597         which is private.
7598         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7599         all symbols from module openacc_kinds as PUBLIC
7600         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7601         fix comment typo.
7602         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7604 2019-12-13  Julian Brown  <julian@codesourcery.com>
7606         PR libgomp/92881
7608         * libgomp.h (gomp_remove_var_async): Add prototype.
7609         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7610         gomp_remove_var.
7611         * target.c (gomp_unref_tgt): Change return type to bool, indicating
7612         whether target_mem_desc was unmapped.
7613         (gomp_unref_tgt_void): New.
7614         (gomp_remove_var): Reimplement in terms of...
7615         (gomp_remove_var_internal): ...this new helper function.
7616         (gomp_remove_var_async): New, implemented using above helper function.
7617         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7618         gomp_unref_tgt.
7620 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
7622         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7623         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7624         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7625         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7626         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7627         Likewise.
7628         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7629         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7631 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
7633         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7634         as public except for the 'use â€¦, only' imported symbol, which is
7635         private.
7636         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7637         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7638         attributes for acc_copyout_finalize and acc_delete_finalize.
7640 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
7642         PR fortran/92899
7643         * testsuite/libgomp.fortran/atomic1.f90: New test.
7645 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7647         PR libgomp/92843
7648         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7649         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
7650         assertions.
7651         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7652         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7653         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7654         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7655         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7657         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7658         * oacc-mem.c: ... here.
7659         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7660         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7661         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7662         Remove.
7663         * libgomp_g.h: Update.
7665         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7666         * oacc-async.c: ... here.
7667         * oacc-int.h (goacc_wait): Declare.
7668         * libgomp_g.h: Update
7670         PR libgomp/92854
7671         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7672         New file.
7673         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7674         Likewise.
7675         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7676         Likewise.
7677         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7678         Likewise.
7679         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7680         Likewise.
7681         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7682         Likewise.
7684 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7685             Julian Brown  <julian@codesourcery.com>
7687         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7688         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7690 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7692         * omp_lib.h.in: Fix spelling of function declaration
7693         omp_get_cancell(l)ation.
7694         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7695         Fix typos.
7696         * env.c: Fix comment typos.
7697         * oacc-host.c: Likewise.
7698         * ordered.c: Likewise.
7699         * task.c: Likewise.
7700         * team.c: Likewise.
7701         * config/gcn/task.c: Likewise.
7702         * config/gcn/team.c: Likewise.
7703         * config/nvptx/task.c: Likewise.
7704         * config/nvptx/team.c: Likewise.
7705         * plugin/plugin-gcn.c: Likewise.
7706         * testsuite/libgomp.fortran/jacobi.f: Likewise.
7707         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7708         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7710 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7712         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7713         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7714         unnecessary 'dg-additional-options "-w"'.
7716 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7717             Julian Brown  <julian@codesourcery.com>
7719         PR libgomp/92116
7720         PR libgomp/92877
7722         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
7723         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7724         Adjust all users.
7725         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7726         Remove XFAIL.
7727         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7728         Likewise.
7729         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7731 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7733         PR libgomp/92503
7734         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7735         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7736         file.
7737         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7738         Likewise.
7739         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7740         Likewise.
7741         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7742         Likewise.
7743         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7744         Likewise.
7745         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7746         Likewise.
7747         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7748         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7749         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7750         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7751         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7752         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7753         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7754         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7755         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7756         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7758         PR libgomp/92840
7759         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7760         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7761         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7762         New file.
7763         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7764         Likewise.
7765         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7766         Likewise.
7767         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7768         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7770         PR libgomp/92511
7771         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7772         this file...
7773         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7774         this file...
7775         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7776         file...
7777         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7778         file...
7779         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7780         ... with their content moved into, and extended in this new file.
7781         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7782         New file.
7783         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7784         Likewise.
7785         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7786         Likewise.
7787         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7788         Likewise.
7790         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7792         PR libgomp/92854
7793         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7795         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7797         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7799 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
7801         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7802         unique.
7803         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7804         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7805         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7806         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7807         Ditto.
7808         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7809         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7811 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
7813         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7815 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
7816             Kwok Cheung Yeung <kcy@codesourcery.com>
7818         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7819         if input it a NULL pointer.
7820         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7821         diagnostic of NULL pointer.
7822         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7823         * testsuite/libgomp.fortran/optional-map.f90: New.
7824         * testsuite/libgomp.fortran/use_device_addr-1.f90
7825         (test_dummy_opt_callee_1_absent): New.
7826         (test_dummy_opt_call_1): Call it.
7827         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7828         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7829         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7830         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7831         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7832         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7833         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7834         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7835         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7836         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7837         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7838         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7839         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7840         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7841         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7842         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7844 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
7846         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7847         expect dg-output of 'Error termination.' for GCN.
7848         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7849         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7851 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
7853         PR fortran/92756
7854         * testsuite/libgomp.fortran/teams1.f90: New test.
7855         * testsuite/libgomp.fortran/teams2.f90: New test.
7857 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
7859         * oacc-init.c (acc_known_device_type): Add function.
7860         (unknown_device_type_error): Add function.
7861         (name_of_acc_device_t): Change to call unknown_device_type_error
7862         on unknown type.
7863         (resolve_device): Use acc_known_device_type.
7864         (acc_init): Fail if acc_device_t argument is not valid.
7865         (acc_shutdown): Likewise.
7866         (acc_get_num_devices): Likewise.
7867         (acc_set_device_type): Likewise.
7868         (acc_get_device_num): Likewise.
7869         (acc_set_device_num): Likewise.
7870         (acc_on_device): Add comment that argument validity is not checked.
7872 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
7874         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7875         Recognize amdgcn.
7876         (check_effective_target_openacc_amdgcn_accel_present): New proc.
7877         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7878         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7879         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7880         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7882 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7884         PR libgomp/91938
7885         * configure.tgt: Avoid IE tls on *-*-musl*.
7887 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
7889         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7890         adding a common-block test case.
7892 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
7894         PR c++/60228
7895         * testsuite/libgomp.c++/udr-20.C: New test.
7896         * testsuite/libgomp.c++/udr-21.C: New test.
7898 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
7900         * testsuite/lib/libgomp.exp
7901         (check_effective_target_offload_target_nvptx): New proc.
7902         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7903         'dg-skip-if'.
7904         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7905         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7906         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7908 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7910         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7911         * testsuite/libgomp.c/pr39591-2.c: Likewise.
7912         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7913         * testsuite/libgomp.c/private-1.c: Likewise.
7914         * testsuite/libgomp.c/task-1.c: Likewise.
7915         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7917 2019-11-20  Julian Brown  <julian@codesourcery.com>
7919         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7920         aq->mutex here.
7921         (queue_push_launch): Lock aq->mutex before calling
7922         wait_for_queue_nonfull.
7923         (queue_push_callback): Likewise.
7924         (queue_push_asyncwait): Likewise.
7925         (queue_push_placeholder): Likewise.
7927 2019-11-20  Julian Brown  <julian@codesourcery.com>
7929         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7930         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7931         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7932         return code.
7934 2019-11-20  Julian Brown  <julian@codesourcery.com>
7936         PR libgomp/92511
7938         * oacc-mem.c (present_create_copy): Fix device pointer return value in
7939         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
7940         in non-present/create case.
7941         (delete_copyout): Change error condition to fail only on copies outside
7942         of mapped block.  Adjust error message accordingly.
7943         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7944         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7945         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7946         message.
7947         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7948         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7949         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7951 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
7953         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7954         libatomic in build-tree testing.
7956 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
7958         * testsuite/Makefile.in: Regenerate.
7960 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
7962         * testsuite/libgomp.c/target-print-1.c: New file.
7963         * testsuite/libgomp.fortran/target-print-1.f90: New file.
7964         * testsuite/libgomp.oacc-c/print-1.c: New file.
7965         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7967 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7968             Kwok Cheung Yeung  <kcy@codesourcery.com>
7969             Julian Brown  <julian@codesourcery.com>
7970             Tom de Vries  <tom@codesourcery.com>
7972         * plugin/Makefrag.am: Add amdgcn plugin support.
7973         * plugin/configfrag.ac: Likewise.
7974         * plugin/plugin-gcn.c: New file.
7975         * configure: Regenerate.
7976         * Makefile.in: Regenerate.
7977         * testsuite/Makefile.in: Regenerate.
7979 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7981         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7982         and use team_malloc variants.
7983         (gomp_gcn_exit_kernel): Use team_free.
7984         * libgomp.h (TEAM_ARENA_SIZE): Define.
7985         (TEAM_ARENA_START): Define.
7986         (TEAM_ARENA_FREE): Define.
7987         (TEAM_ARENA_END): Define.
7988         (team_malloc): New function.
7989         (team_malloc_cleared): New function.
7990         (team_free): New function.
7991         * team.c (gomp_new_team): Initialize and use team_malloc.
7992         (free_team): Use team_free.
7993         (gomp_free_thread): Use team_free.
7994         (gomp_pause_host): Use team_free.
7995         * work.c (gomp_init_work_share): Use team_malloc.
7996         (gomp_fini_work_share): Use team_free.
7998 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7999             Kwok Cheung Yeung  <kcy@codesourcery.com>
8000             Julian Brown  <julian@codesourcery.com>
8001             Tom de Vries  <tom@codesourcery.com>
8003         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8004         * Makefile.in: Regenerate.
8005         * config.h.in (PLUGIN_GCN): Add new undef.
8006         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8007         * config/gcn/affinity-fmt.c: New file.
8008         * config/gcn/bar.c: New file.
8009         * config/gcn/bar.h: New file.
8010         * config/gcn/doacross.h: New file.
8011         * config/gcn/icv-device.c: New file.
8012         * config/gcn/oacc-target.c: New file.
8013         * config/gcn/simple-bar.h: New file.
8014         * config/gcn/target.c: New file.
8015         * config/gcn/task.c: New file.
8016         * config/gcn/team.c: New file.
8017         * config/gcn/time.c: New file.
8018         * configure.ac: Add amdgcn*-*-*.
8019         * configure: Regenerate.
8020         * configure.tgt: Add amdgcn*-*-*.
8021         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8022         * libgomp.h (gcn_thrs): Add amdgcn variant.
8023         (set_gcn_thrs): Likewise.
8024         (gomp_thread): Likewise.
8025         * oacc-int.h (goacc_thread): Likewise.
8026         * oacc-target.c: New file.
8027         * openacc.f90 (acc_device_gcn): New parameter.
8028         * openacc.h (acc_device_t): Add acc_device_gcn.
8029         * team.c (gomp_free_pool_helper): Add amdgcn support.
8031 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8032             Julian Brown  <julian@codesourcery.com>
8034         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8035         parameter.
8036         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8037         queue constructor.
8038         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8039         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8040         device parameter.
8042 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8044         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8045         * config/nvptx/libgomp-plugin.c: Move ...
8046         * config/accel/libgomp-plugin.c: ... to here.
8047         * config/nvptx/lock.c: Move ...
8048         * config/accel/lock.c: ... to here.
8049         * config/nvptx/mutex.c: Move ...
8050         * config/accel/mutex.c: ... to here.
8051         * config/nvptx/mutex.h: Move ...
8052         * config/accel/mutex.h: ... to here.
8053         * config/nvptx/oacc-async.c: Move ...
8054         * config/accel/oacc-async.c: ... to here.
8055         * config/nvptx/oacc-cuda.c: Move ...
8056         * config/accel/oacc-cuda.c: ... to here.
8057         * config/nvptx/oacc-host.c: Move ...
8058         * config/accel/oacc-host.c: ... to here.
8059         * config/nvptx/oacc-init.c: Move ...
8060         * config/accel/oacc-init.c: ... to here.
8061         * config/nvptx/oacc-mem.c: Move ...
8062         * config/accel/oacc-mem.c: ... to here.
8063         * config/nvptx/oacc-plugin.c: Move ...
8064         * config/accel/oacc-plugin.c: ... to here.
8065         * config/nvptx/omp-lock.h: Move ...
8066         * config/accel/omp-lock.h: ... to here.
8067         * config/nvptx/openacc.f90: Move ...
8068         * config/accel/openacc.f90: ... to here.
8069         * config/nvptx/pool.h: Move ...
8070         * config/accel/pool.h: ... to here.
8071         * config/nvptx/proc.c: Move ...
8072         * config/accel/proc.c: ... to here.
8073         * config/nvptx/ptrlock.c: Move ...
8074         * config/accel/ptrlock.c: ... to here.
8075         * config/nvptx/ptrlock.h: Move ...
8076         * config/accel/ptrlock.h: ... to here.
8077         * config/nvptx/sem.c: Move ...
8078         * config/accel/sem.c: ... to here.
8079         * config/nvptx/sem.h: Move ...
8080         * config/accel/sem.h: ... to here.
8081         * config/nvptx/thread-stacksize.h: Move ...
8082         * config/accel/thread-stacksize.h: ... to here.
8084 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8085             Tobias Burnus  <tobias@codesourcery.com>
8086             Frederik Harwath  <frederik@codesourcery.com>
8087             Thomas Schwinge  <thomas@codesourcery.com>
8089         libgomp/
8090         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8091         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8092         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8094 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8095             Kwok Cheung Yeung  <kcy@codesourcery.com>
8097         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8098         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8100 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8102         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8104         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8105         run'.
8106         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8107         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8109 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8111         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8112         Add expected warnings about missing reduction clauses.
8113         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8114         Likewise.
8115         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8116         Likewise.
8117         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8118         Likewise.
8120 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8122         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8123         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8124         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8125         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8126         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8127         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8129 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8131         PR fortran/92305
8132         * testsuite/libgomp.fortran/allocatable2.f90: Use
8133         unique numbers with 'stop'.
8134         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8135         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8136         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8137         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8138         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8140 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8142         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8143         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8144         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8145         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8146         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8147         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8149 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8151         * testsuite/libgomp.fortran/target9.f90: New.
8153 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8155         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8156         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8157         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8158         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8159         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8160         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8161         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8162         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8163         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8164         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8165         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8166         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8167         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8168         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8169         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8170         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8171         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8172         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8173         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8174         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8175         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8176         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8177         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8178         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8179         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8180         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8181         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8182         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8183         * testsuite/libgomp.fortran/character1.f90: Ditto.
8184         * testsuite/libgomp.fortran/character2.f90: Ditto.
8185         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8186         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8187         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8188         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8189         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8190         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8191         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8192         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8193         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8194         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8195         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8196         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8197         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8198         * testsuite/libgomp.fortran/do1.f90: Ditto.
8199         * testsuite/libgomp.fortran/do2.f90: Ditto.
8200         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8201         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8202         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8203         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8204         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8205         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8206         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8207         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8208         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8209         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8210         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8211         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8212         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8213         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8214         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8215         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8216         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8217         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8218         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8219         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8220         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8221         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8222         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8223         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8224         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8225         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8226         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8227         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8228         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8229         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8230         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8231         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8232         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8233         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8234         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8235         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8236         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8237         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8238         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8239         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8240         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8241         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8242         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8243         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8244         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8245         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8246         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8247         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8248         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8249         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8250         * testsuite/libgomp.fortran/lib1.f90: Ditto.
8251         * testsuite/libgomp.fortran/lib4.f90: Ditto.
8252         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8253         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8254         * testsuite/libgomp.fortran/nested1.f90: Ditto.
8255         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8256         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8257         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8258         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8259         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8260         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8261         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8262         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8263         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8264         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8265         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8266         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8267         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8268         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8269         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8270         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8271         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8272         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8273         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8274         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8275         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8276         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8277         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8278         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8279         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8280         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8281         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8282         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8283         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8284         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8285         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8286         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8287         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8288         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8289         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8290         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8291         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8292         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8293         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8294         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8295         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8296         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8297         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8298         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8299         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8300         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8301         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8302         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8303         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8304         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8305         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8306         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8307         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8308         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8309         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8310         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8311         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8312         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8313         * testsuite/libgomp.fortran/reference1.f90: Ditto.
8314         * testsuite/libgomp.fortran/reference2.f90: Ditto.
8315         * testsuite/libgomp.fortran/retval1.f90: Ditto.
8316         * testsuite/libgomp.fortran/retval2.f90: Ditto.
8317         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8318         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8319         * testsuite/libgomp.fortran/simd1.f90: Ditto.
8320         * testsuite/libgomp.fortran/simd2.f90: Ditto.
8321         * testsuite/libgomp.fortran/simd3.f90: Ditto.
8322         * testsuite/libgomp.fortran/simd4.f90: Ditto.
8323         * testsuite/libgomp.fortran/simd5.f90: Ditto.
8324         * testsuite/libgomp.fortran/simd6.f90: Ditto.
8325         * testsuite/libgomp.fortran/simd7.f90: Ditto.
8326         * testsuite/libgomp.fortran/stack.f90: Ditto.
8327         * testsuite/libgomp.fortran/strassen.f90: Ditto.
8328         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8329         * testsuite/libgomp.fortran/tabs2.f: Ditto.
8330         * testsuite/libgomp.fortran/target1.f90: Ditto.
8331         * testsuite/libgomp.fortran/target2.f90: Ditto.
8332         * testsuite/libgomp.fortran/target3.f90: Ditto.
8333         * testsuite/libgomp.fortran/target4.f90: Ditto.
8334         * testsuite/libgomp.fortran/target5.f90: Ditto.
8335         * testsuite/libgomp.fortran/target6.f90: Ditto.
8336         * testsuite/libgomp.fortran/target7.f90: Ditto.
8337         * testsuite/libgomp.fortran/target8.f90: Ditto.
8338         * testsuite/libgomp.fortran/task1.f90: Ditto.
8339         * testsuite/libgomp.fortran/task2.f90: Ditto.
8340         * testsuite/libgomp.fortran/task3.f90: Ditto.
8341         * testsuite/libgomp.fortran/task4.f90: Ditto.
8342         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8343         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8344         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8345         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8346         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8347         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8348         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8349         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8350         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8351         * testsuite/libgomp.fortran/udr1.f90: Ditto.
8352         * testsuite/libgomp.fortran/udr10.f90: Ditto.
8353         * testsuite/libgomp.fortran/udr11.f90: Ditto.
8354         * testsuite/libgomp.fortran/udr12.f90: Ditto.
8355         * testsuite/libgomp.fortran/udr13.f90: Ditto.
8356         * testsuite/libgomp.fortran/udr14.f90: Ditto.
8357         * testsuite/libgomp.fortran/udr15.f90: Ditto.
8358         * testsuite/libgomp.fortran/udr2.f90: Ditto.
8359         * testsuite/libgomp.fortran/udr3.f90: Ditto.
8360         * testsuite/libgomp.fortran/udr4.f90: Ditto.
8361         * testsuite/libgomp.fortran/udr5.f90: Ditto.
8362         * testsuite/libgomp.fortran/udr6.f90: Ditto.
8363         * testsuite/libgomp.fortran/udr7.f90: Ditto.
8364         * testsuite/libgomp.fortran/udr8.f90: Ditto.
8365         * testsuite/libgomp.fortran/udr9.f90: Ditto.
8366         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8367         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8368         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8369         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8370         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8371         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8372         * testsuite/libgomp.fortran/vla7.f90: Ditto.
8373         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8374         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8375         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8377 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8379         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8380         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8381         Ditto; add 'dg-do run' for torture testing.
8382         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
8383         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8384         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8385         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8386         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8387         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8388         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8389         * testsuite/libgomp.fortran/task2.f90: Ditto.
8390         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8391         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8392         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8393         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8394         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8395         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8397 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
8399         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8400         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8401         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8402         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8403         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8404         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8405         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8406         Use 'stop' not abort().
8407         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8408         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8409         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8410         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8411         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8412         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8413         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8414         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8415         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8416         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8417         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8418         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8419         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8420         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8421         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8422         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8423         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8424         Ditto.
8425         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8426         Ditto.
8427         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8428         Ditto.
8429         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8430         Ditto.
8431         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8432         Ditto.
8433         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8434         Ditto.
8435         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8436         Ditto.
8437         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8438         Ditto.
8439         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8440         Ditto.
8441         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8442         Ditto.
8443         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8444         Ditto.
8445         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8446         Ditto.
8447         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8448         Ditto.
8449         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8450         Ditto.
8451         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8452         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8453         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8454         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8455         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8456         Likewise and also add 'dg-do run'.
8457         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8458         Ditto.
8460 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8461             Tobias Burnus  <tobias@codesourcery.com>
8463         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8464         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8465         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8467 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
8469         PR libgomp/92081
8470         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8471         than 0.
8473 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8475         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8476         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8478 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
8480         PR middle-end/92036
8481         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8482         file.
8484 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
8486         PR testsuite/91884
8487         * testsuite/libgomp.fortran/fortran.exp: Conditionally
8488         add -lquadmath.
8489         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8491 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
8493         PR libgomp/92028
8494         * target.c (gomp_map_vars_internal): Readd the previous
8495         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8496         though do that just in the !not_found_cnt case.
8498 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
8500         * gfortran.dg/gomp/target-simd.f90: New.
8502 2019-10-02  Julian Brown  <julian@codesourcery.com>
8503             Cesar Philippidis  <cesar@codesourcery.com>
8505         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8506         * target.c (FIELD_TGT_EMPTY): Define.
8507         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
8508         as switch instead of list of ifs.
8509         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8511 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
8513         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8514         include. Replace alloca () with __builtin_alloca ().
8515         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8517 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
8519         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8520         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8521         * oacc-parallel.c: Don't include "libgomp_g.h".
8522         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8523         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8524         * aclocal.m4: Regenerated.
8525         * config.h.in: Regenerated.
8526         * configure: Regenerated.
8527         * Makefile.in: Regenerated.
8529 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
8531         * libgomp_g.h: Include stdint.h instead of gstdint.h.
8533 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
8535         * configure: Regenerate.
8537 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
8539         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8540         string is initialized.
8542 2019-09-06  Florian Weimer  <fweimer@redhat.com>
8544         * configure: Regenerate.
8546 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
8548         PR other/79543
8549         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8550         scanning to conform to the GNU Coding Standards.
8551         * configure: Regenerate.
8553 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
8555         PR libgomp/91530
8556         * testsuite/libgomp.c/scan-21.c: New test.
8557         * testsuite/libgomp.c/scan-22.c: New test.
8559 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
8561         PR libgomp/91530
8562         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8563         targets.
8564         * testsuite/libgomp.c/scan-12.c: Likewise.
8565         * testsuite/libgomp.c/scan-13.c: Likewise.
8566         * testsuite/libgomp.c/scan-14.c: Likewise.
8567         * testsuite/libgomp.c/scan-15.c: Likewise.
8568         * testsuite/libgomp.c/scan-16.c: Likewise.
8569         * testsuite/libgomp.c/scan-17.c: Likewise.
8570         * testsuite/libgomp.c/scan-18.c: Likewise.
8571         * testsuite/libgomp.c/scan-19.c: Likewise.
8572         * testsuite/libgomp.c/scan-20.c: Likewise.
8573         * testsuite/libgomp.c++/scan-9.C: Likewise.
8574         * testsuite/libgomp.c++/scan-10.C: Likewise.
8575         * testsuite/libgomp.c++/scan-11.C: Likewise.
8576         * testsuite/libgomp.c++/scan-12.C: Likewise.
8577         * testsuite/libgomp.c++/scan-14.C: Likewise.
8578         * testsuite/libgomp.c++/scan-15.C: Likewise.
8579         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
8580         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8581         * testsuite/libgomp.c++/scan-16.C: Likewise.
8583 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
8585         PR fortran/91473
8586         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8587         -std=legacy so invalid code in the test case is accepted.
8589 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8591         PR fortran/91422
8592         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8593         dimension.
8595 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8597         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8598         perform the lookup in the first loop only if !not_found_cnt, otherwise
8599         perform lookups for it in the second loop guarded with
8600         if (not_found_cnt || has_firstprivate).
8601         * testsuite/libgomp.c/target-37.c: New test.
8602         * testsuite/libgomp.c++/target-22.C: New test.
8604 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8606         * testsuite/libgomp.c/target-18.c (struct S): New type.
8607         (foo): Use use_device_addr clause instead of use_device_ptr clause
8608         where required by OpenMP 5.0, add further tests for both use_device_ptr
8609         and use_device_addr clauses.
8610         * testsuite/libgomp.c++/target-9.C (struct S): New type.
8611         (foo): Use use_device_addr clause instead of use_device_ptr clause
8612         where required by OpenMP 5.0, add further tests for both use_device_ptr
8613         and use_device_addr clauses.  Add t and u arguments.
8614         (main): Adjust caller.
8616 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8618         * testsuite/libgomp.c++/loop-13.C: New test.
8619         * testsuite/libgomp.c++/loop-14.C: New test.
8620         * testsuite/libgomp.c++/loop-15.C: New test.
8622 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8624         PR middle-end/91301
8625         * testsuite/libgomp.c++/for-27.C: New test.
8627 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
8629         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8630         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8632 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8634         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8636 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
8638         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8639         * testsuite/libgomp.c++/scan-16.C: Likewise.
8641 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
8643         * testsuite/libgomp.c/scan-19.c: New test.
8644         * testsuite/libgomp.c/scan-20.c: New test.
8646         * testsuite/libgomp.c/scan-11.c: New test.
8647         * testsuite/libgomp.c/scan-12.c: New test.
8648         * testsuite/libgomp.c/scan-13.c: New test.
8649         * testsuite/libgomp.c/scan-14.c: New test.
8650         * testsuite/libgomp.c/scan-15.c: New test.
8651         * testsuite/libgomp.c/scan-16.c: New test.
8652         * testsuite/libgomp.c/scan-17.c: New test.
8653         * testsuite/libgomp.c/scan-18.c: New test.
8654         * testsuite/libgomp.c++/scan-9.C: New test.
8655         * testsuite/libgomp.c++/scan-10.C: New test.
8656         * testsuite/libgomp.c++/scan-11.C: New test.
8657         * testsuite/libgomp.c++/scan-12.C: New test.
8658         * testsuite/libgomp.c++/scan-13.C: New test.
8659         * testsuite/libgomp.c++/scan-14.C: New test.
8660         * testsuite/libgomp.c++/scan-15.C: New test.
8661         * testsuite/libgomp.c++/scan-16.C: New test.
8663 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
8665         * testsuite/libgomp.c/scan-9.c: New test.
8666         * testsuite/libgomp.c/scan-10.c: New test.
8668 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
8670         * testsuite/libgomp.c++/scan-1.C: New test.
8671         * testsuite/libgomp.c++/scan-2.C: New test.
8672         * testsuite/libgomp.c++/scan-3.C: New test.
8673         * testsuite/libgomp.c++/scan-4.C: New test.
8674         * testsuite/libgomp.c++/scan-5.C: New test.
8675         * testsuite/libgomp.c++/scan-6.C: New test.
8676         * testsuite/libgomp.c++/scan-7.C: New test.
8677         * testsuite/libgomp.c++/scan-8.C: New test.
8678         * testsuite/libgomp.c/scan-1.c: New test.
8679         * testsuite/libgomp.c/scan-2.c: New test.
8680         * testsuite/libgomp.c/scan-3.c: New test.
8681         * testsuite/libgomp.c/scan-4.c: New test.
8682         * testsuite/libgomp.c/scan-5.c: New test.
8683         * testsuite/libgomp.c/scan-6.c: New test.
8684         * testsuite/libgomp.c/scan-7.c: New test.
8685         * testsuite/libgomp.c/scan-8.c: New test.
8687 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8689         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8690         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8691         Likewise.
8693         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8694         check.
8696 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
8698         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8699         file.
8701 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8703         PR fortran/90743
8704         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8705         case.
8706         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8707         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8708         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8709         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8711         PR testsuite/90861
8712         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8714         PR middle-end/90862
8715         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8717 2019-06-16  Tom de Vries  <tdevries@suse.de>
8719         PR tree-optimization/89376
8720         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8722 2019-06-15  Tom de Vries  <tdevries@suse.de>
8724         PR tree-optimization/89713
8725         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8726         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8728 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
8730         PR middle-end/90779
8731         * testsuite/libgomp.c/pr90779.c: New test.
8732         * testsuite/libgomp.fortran/pr90779.f90: New test.
8734 2019-06-15  Tom de Vries  <tdevries@suse.de>
8736         PR tree-optimization/90009
8737         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8739 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
8741         PR tree-optimization/89713
8742         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8744 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
8746         PR target/90811
8747         * testsuite/libgomp.c/pr90811.c: New test.
8749 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
8751         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8752         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8754 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
8756         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8757         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8758         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8759         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8761 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8763         * configure.ac: Call AX_COUNT_CPUS.
8764         Substitute CPU_COUNT.
8765         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8766         count fallback.
8767         * aclocal.m4: Regenerate.
8768         * configure: Regenerate.
8769         * Makefile.in, testsuite/Makefile.in: Regenerate.
8771 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
8773         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8774         to ...
8775         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8776         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8777         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8779 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
8781         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8783         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8785         PR libgomp/90641
8786         * work.c (gomp_init_work_share): Instead of aligning final ordered
8787         value to multiples of long long alignment, align to that the
8788         first part (ordered team ids) and if inline_ordered_team_ids
8789         is not on a long long alignment boundary within the structure,
8790         use __alignof__ (long long) - 1 pad size always.
8791         * loop.c (GOMP_loop_start): Fix *mem computation if
8792         inline_ordered_team_ids is not aligned on long long alignment boundary
8793         within the structure.
8794         * loop-ull.c (GOMP_loop_ull_start): Likewise.
8795         * sections.c (GOMP_sections2_start): Likewise.
8797 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
8799         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8800         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8802         PR libgomp/90585
8803         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
8804         HAVE_INTTYPES_H is defined.
8805         (print_uint64_t): New typedef.
8806         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8807         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8808         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8809         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
8810         before casting to void *.
8811         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8812         * oacc-mem.c: Don't include config.h nor stdint.h.
8813         * target.c: Don't include config.h.
8814         * oacc-cuda.c: Likewise.
8815         * oacc-host.c: Don't include stdint.h.
8817 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
8819         PR libgomp/90527
8820         * alloc.c (_GNU_SOURCE): Define.
8822 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
8824         * acc_prof.h: New file.
8825         * oacc-profiling.c: Likewise.
8826         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8827         Add these, respectively.
8828         * Makefile.in: Regenerate.
8829         * env.c (initialize_env): Call goacc_profiling_initialize.
8830         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8831         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8832         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8833         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8834         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8835         acc_prof_register, acc_prof_unregister, and acc_register_library.
8836         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8837         GOMP_PLUGIN_goacc_thread.
8838         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8839         prof_callbacks_enabled members.
8840         (goacc_prof_enabled, goacc_profiling_initialize)
8841         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8842         (goacc_profiling_dispatch): Declare.
8843         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8844         (GOACC_PROFILING_SETUP_P): Define.
8845         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8846         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8847         OpenACC Profiling Interface.
8848         * oacc-cuda.c (acc_get_current_cuda_device)
8849         (acc_get_current_cuda_context, acc_get_cuda_stream)
8850         (acc_set_cuda_stream): Likewise.
8851         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8852         (acc_init, acc_set_device_type, acc_get_device_type)
8853         (acc_get_device_num, goacc_lazy_initialize): Likewise.
8854         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8855         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8856         (acc_unmap_data, present_create_copy, delete_copyout)
8857         (update_dev_host): Likewise.
8858         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8859         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8860         Likewise.
8861         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8862         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8863         Likewise.
8864         * libgomp.texi: Update.
8865         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8866         file.
8867         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8868         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8869         Likewise.
8870         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8871         Likewise.
8872         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8873         Likewise.
8874         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8875         Likewise.
8877 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
8879         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8880         (struct goacc_asyncqueue_list): Likewise.
8881         (goacc_aq): Likewise.
8882         (goacc_aq_list): Likewise.
8883         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8884         (GOMP_OFFLOAD_openacc_async_test): Remove.
8885         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8886         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8887         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8888         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8889         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8890         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8891         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8892         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8893         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8894         (GOMP_OFFLOAD_openacc_async_exec): Declare.
8895         (GOMP_OFFLOAD_openacc_async_construct): Declare.
8896         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8897         (GOMP_OFFLOAD_openacc_async_test): Declare.
8898         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8899         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8900         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8901         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8902         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8904         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8905         (gomp_acc_insert_pointer): Adjust declaration.
8906         (gomp_copy_host2dev): New declaration.
8907         (gomp_copy_dev2host): Likewise.
8908         (gomp_map_vars_async): Likewise.
8909         (gomp_unmap_tgt): Likewise.
8910         (gomp_unmap_vars_async): Likewise.
8911         (gomp_fini_device): Likewise.
8913         * oacc-async.c (get_goacc_thread): New function.
8914         (get_goacc_thread_device): New function.
8915         (lookup_goacc_asyncqueue): New function.
8916         (get_goacc_asyncqueue): New function.
8917         (acc_async_test): Adjust code to use new async design.
8918         (acc_async_test_all): Likewise.
8919         (acc_wait): Likewise.
8920         (acc_wait_async): Likewise.
8921         (acc_wait_all): Likewise.
8922         (acc_wait_all_async): Likewise.
8923         (goacc_async_free): New function.
8924         (goacc_init_asyncqueues): Likewise.
8925         (goacc_fini_asyncqueues): Likewise.
8926         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8927         design.
8928         (acc_set_cuda_stream): Likewise.
8929         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8930         (host_openacc_register_async_cleanup): Remove.
8931         (host_openacc_async_exec): New function.
8932         (host_openacc_async_test): Adjust parameters.
8933         (host_openacc_async_test_all): Remove.
8934         (host_openacc_async_wait): Remove.
8935         (host_openacc_async_wait_async): Remove.
8936         (host_openacc_async_wait_all): Remove.
8937         (host_openacc_async_wait_all_async): Remove.
8938         (host_openacc_async_set_async): Remove.
8939         (host_openacc_async_synchronize): New function.
8940         (host_openacc_async_serialize): New function.
8941         (host_openacc_async_host2dev): New function.
8942         (host_openacc_async_dev2host): New function.
8943         (host_openacc_async_queue_callback): New function.
8944         (host_openacc_async_construct): New function.
8945         (host_openacc_async_destruct): New function.
8946         (struct gomp_device_descr host_dispatch): Remove initialization of old
8947         interface, add initialization of new async sub-struct.
8948         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8949         (goacc_attach_host_thread_to_device): Remove old async code usage.
8950         * oacc-int.h (goacc_init_asyncqueues): New declaration.
8951         (goacc_fini_asyncqueues): Likewise.
8952         (goacc_async_copyout_unmap_vars): Likewise.
8953         (goacc_async_free): Likewise.
8954         (get_goacc_asyncqueue): Likewise.
8955         (lookup_goacc_asyncqueue): Likewise.
8956         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8957         design.
8958         (present_create_copy): Adjust code to use new async design.
8959         (delete_copyout): Likewise.
8960         (update_dev_host): Likewise.
8961         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8962         async design.
8963         (gomp_acc_remove_pointer): Adjust code to use new async design.
8964         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8965         design.
8966         (GOACC_enter_exit_data): Likewise.
8967         (goacc_wait): Likewise.
8968         (GOACC_update): Likewise.
8969         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8970         when called, warn as obsolete in comment.
8971         * target.c (goacc_device_copy_async): New function.
8972         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8973         add goacc_device_copy_async case.
8974         (gomp_copy_dev2host): Likewise.
8975         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8976         (gomp_map_pointer): Likewise.
8977         (gomp_map_fields_existing): Likewise.
8978         (gomp_map_vars_internal): New always_inline function, renamed from
8979         gomp_map_vars.
8980         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8981         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8982         passing goacc_asyncqueue argument.
8983         (gomp_unmap_tgt): Remove static, add attribute_hidden.
8984         (gomp_unref_tgt): New function.
8985         (gomp_unmap_vars_internal): New always_inline function, renamed from
8986         gomp_unmap_vars.
8987         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8988         (gomp_unmap_vars_async): Implement by calling
8989         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8990         (gomp_fini_device): New function.
8991         (gomp_exit_data): Adjust gomp_copy_dev2host call.
8992         (gomp_load_plugin_for_device): Remove old interface, adjust to load
8993         new async interface.
8994         (gomp_target_fini): Adjust code to call gomp_fini_device.
8996         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8997         (struct ptx_stream): Remove.
8998         (struct nvptx_thread): Remove current_stream field.
8999         (cuda_map_create): Remove.
9000         (cuda_map_destroy): Remove.
9001         (map_init): Remove.
9002         (map_fini): Remove.
9003         (map_pop): Remove.
9004         (map_push): Remove.
9005         (struct goacc_asyncqueue): Define.
9006         (struct nvptx_callback): Define.
9007         (struct ptx_free_block): Define.
9008         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9009         stream_lock, and next fields.
9010         (enum ptx_event_type): Remove.
9011         (struct ptx_event): Remove.
9012         (ptx_event_lock): Remove.
9013         (ptx_events): Remove.
9014         (init_streams_for_device): Remove.
9015         (fini_streams_for_device): Remove.
9016         (select_stream_for_async): Remove.
9017         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9018         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9019         case.
9020         (nvptx_open_device): Add free_blocks initialization, remove
9021         init_streams_for_device call.
9022         (nvptx_close_device): Remove fini_streams_for_device call, add
9023         free_blocks destruct code.
9024         (event_gc): Remove.
9025         (event_add): Remove.
9026         (nvptx_exec): Adjust parameters and code.
9027         (nvptx_free): Likewise.
9028         (nvptx_host2dev): Remove.
9029         (nvptx_dev2host): Remove.
9030         (nvptx_set_async): Remove.
9031         (nvptx_async_test): Remove.
9032         (nvptx_async_test_all): Remove.
9033         (nvptx_wait): Remove.
9034         (nvptx_wait_async): Remove.
9035         (nvptx_wait_all): Remove.
9036         (nvptx_wait_all_async): Remove.
9037         (nvptx_get_cuda_stream): Remove.
9038         (nvptx_set_cuda_stream): Remove.
9039         (GOMP_OFFLOAD_alloc): Adjust code.
9040         (GOMP_OFFLOAD_free): Likewise.
9041         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9042         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9043         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9044         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9045         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9046         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9047         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9048         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9049         (cuda_free_argmem): New function.
9050         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9051         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9052         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9053         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9054         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9055         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9056         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9057         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9058         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9059         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9060         (cuda_callback_wrapper): New function.
9061         (cuda_memcpy_sanity_check): New function.
9062         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9063         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9064         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9065         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9067 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9069         PR target/87835
9070         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9072 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9074         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9076 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9078         * team.c (gomp_team_start): Initialize pool->threads[0].
9080 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9082         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9083         "-foffload=$offload_target".
9084         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9085         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9086         * testsuite/lib/libgomp.exp
9087         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9088         as (conceptually) merged into
9089         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9090         users.
9092         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9093         * testsuite/libgomp-test-support.exp.in: Adjust.
9094         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9095         openacc_device_types_s.
9096         (offload_target_to_openacc_device_type): New proc.
9097         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9098         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9099         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9100         * Makefile.in: Regenerate.
9101         * configure: Likewise.
9102         * testsuite/Makefile.in: Likewise.
9104         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9105         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9106         instead of OFFLOAD_TARGETS.
9107         * target.c (gomp_target_init): Adjust.
9108         * testsuite/libgomp-test-support.exp.in: Likewise.
9109         * testsuite/lib/libgomp.exp: Likewise.  Populate
9110         openacc_device_types_s instead of offload_targets_s_openacc.
9111         (check_effective_target_openacc_nvidia_accel_selected)
9112         (check_effective_target_openacc_host_selected): Adjust.
9113         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9114         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9115         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9116         * Makefile.in: Regenerate.
9117         * config.h.in: Likewise.
9118         * configure: Likewise.
9119         * testsuite/Makefile.in: Likewise.
9121         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9122         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9123         "offloading: supported, but hardware not accessible".
9124         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9125         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9127 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9129         PR c/87924
9130         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9131         goacc_wait().
9132         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9133         and related adjustment.
9135 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9137         PR c++/88988
9138         * testsuite/libgomp.c++/pr88988.C: New test.
9140 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9142         PR middle-end/89002
9143         * testsuite/libgomp.c/pr89002.c: New test.
9145 2019-01-28  Richard Biener  <rguenther@suse.de>
9147         PR testsuite/89064
9148         PR tree-optimization/86865
9149         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9151 2019-01-24  Tom de Vries  <tdevries@suse.de>
9153         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9154         once instantiated_devices drops to 0.
9156 2019-01-23  Tom de Vries  <tdevries@suse.de>
9158         PR target/PR88946
9159         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9160         cuMemFree.
9161         (nvptx_exec): Don't call map_push if mapnum == 0.
9162         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9164 2019-01-23  Tom de Vries  <tdevries@suse.de>
9166         PR target/88941
9167         PR target/88939
9168         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9169         (map_fini): Remove "assert (!s->map->active)".
9170         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9172 2019-01-23  Tom de Vries  <tdevries@suse.de>
9174         PR target/87835
9175         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9176         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9178 2019-01-15  Tom de Vries  <tdevries@suse.de>
9180         PR target/80547
9181         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9182         New test.
9184 2019-01-12  Tom de Vries  <tdevries@suse.de>
9186         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9187         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9188         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9189         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9191 2019-01-12  Tom de Vries  <tdevries@suse.de>
9193         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9195 2019-01-12  Tom de Vries  <tdevries@suse.de>
9197         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9198         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9199         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9201 2019-01-12  Tom de Vries  <tdevries@suse.de>
9203         PR target/85486
9204         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9205         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9207 2019-01-12  Tom de Vries  <tdevries@suse.de>
9209         PR target/85381
9210         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9211         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9213 2019-01-12  Tom de Vries  <tdevries@suse.de>
9215         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9216         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9217         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9219 2019-01-12  Tom de Vries  <tdevries@suse.de>
9221         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9222         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9223         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9225 2019-01-12  Tom de Vries  <tdevries@suse.de>
9227         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9228         resources diagnostic.
9230 2019-01-12  Tom de Vries  <tdevries@suse.de>
9232         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9233         vector length to be 128.
9234         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9235         length 2097152 to be reduced to 1024 instead of 32.
9237 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
9238             James Norris  <jnorris@codesourcery.com>
9240         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9241         Library Routines", and "Environment Variables".
9243 2019-01-11  Tom de Vries  <tdevries@suse.de>
9245         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9246         num_workers 16.
9248 2019-01-11  Tom de Vries  <tdevries@suse.de>
9250         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9251         -foffload=-w.
9252         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9253         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9254         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9255         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9257 2019-01-11  Tom de Vries  <tdevries@suse.de>
9259         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9260         test.
9262 2019-01-10  Nathan Sidwell  <nathan@acm.org>
9263             Julian Brown  <julian@codesourcery.com>
9265         PR lto/71959
9266         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9267         * testsuite/libgomp.oacc-c++/pr71959.C: New.
9269 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9271         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9272         and paste code.
9274 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9276         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
9277         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9278         write.
9280 2019-01-09  Tom de Vries  <tdevries@suse.de>
9282         PR target/88756
9283         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9284         #define instead of "const int".
9285         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9286         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9287         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9288         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9290 2019-01-09  Tom de Vries  <tdevries@suse.de>
9292         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9293         one worker.
9295 2019-01-07  Tom de Vries  <tdevries@suse.de>
9297         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9298         GOMP_OPENACC_DIM argument.
9300 2019-01-03  Tom de Vries  <tdevries@suse.de>
9302         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9303         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9305 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9307         Update copyright years.
9309 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9311         * libgomp.texi: Bump @copying's copyright year.
9313 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9315         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9316         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9317         (GOACC_declare): Redefine the "device" argument to "flags".
9319 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9320             Cesar Philippidis  <cesar@codesourcery.com>
9322         * target.c (struct gomp_coalesce_chunk): New structure.
9323         (struct gomp_coalesce_buf): Update the chunks member to use that
9324         type.  Adjust all users.
9326 2018-12-19  Tom de Vries  <tdevries@suse.de>
9328         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9329         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9330         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9332 2018-12-19  Tom de Vries  <tdevries@suse.de>
9334         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9335         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9336         gcc/testsuite/gcc.dg/goacc.
9337         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9339 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9340             Chung-Lin Tang  <cltang@codesourcery.com>
9342         * oacc-mem.c (acc_present_or_create): Remove definition and change
9343         to alias of acc_create.
9344         (acc_present_or_copyin): Remove definition and change to alias of
9345         acc_copyin.
9346         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9347         of acc_present_or_create.
9348         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9349         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9350         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9351         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9352         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9353         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9354         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9355         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9356         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9357         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9358         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9359         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9360         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9361         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9362         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9363         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9365 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9367         PR libgomp/88495
9368         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9369         "identical parameters".
9370         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9371         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9373         PR libgomp/88484
9374         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9375         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9377         PR libgomp/88407
9378         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9379         (nvptx_wait_async): Unseen async-argument is a no-op.
9380         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9381         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9382         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9383         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9384         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9385         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9386         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
9387         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9388         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
9390         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9391         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9393 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
9395         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9396         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9397         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9399 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9401         PR libgomp/88370
9402         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9403         (acc_set_cuda_stream): Clarify.
9404         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9405         "async_valid_p".
9406         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9407         acc_async_sync".
9408         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9409         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9410         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9411         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9413 2018-12-14  Tom de Vries  <tdevries@suse.de>
9415         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9416         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9417         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9418         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9419         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9421 2018-12-13  Tom de Vries  <tdevries@suse.de>
9423         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9424         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9425         * fortran.c (omp_display_affinity_): ... here.
9426         * libgomp.h (gomp_print_string): Declare.
9427         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
9428         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9429         write.
9431 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
9433         PR libgomp/88460
9434         * testsuite/libgomp.c++/for-24.C (results): Include it in
9435         omp declare target region.
9436         (main): Use map (always, tofrom: results) instead of
9437         map (tofrom: results).
9439 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
9441         PR fortran/88463
9442         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9443         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9445         * testsuite/libgomp.c-c++-common/for-16.c: New test.
9447 2018-12-12  Andreas Schwab  <schwab@suse.de>
9449         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9450         clobbered.
9452 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
9454         PR fortran/88411
9455         * testsuite/libgomp.fortran/async_io_8.f90: New test.
9457 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9458             Jakub Jelinek  <jakub@redhat.com>
9460         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9461         devicep->host2dev_func.
9463 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
9465         PR libgomp/87995
9466         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9467         tls_runtime effective target.
9468         (t): New threadprivate variable.
9469         (main): Set t in threads which execute iterations of the worksharing
9470         loop.  Propagate that to the task after the loop and don't abort
9471         if the current taskgroup hasn't been cancelled.
9473 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
9475         * testsuite/libgomp.c/task-reduction-3.c: New test.
9477         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9479 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
9481         PR libgomp/88288
9482         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9483         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9485 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
9487         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9489 2018-10-19  Richard Biener  <rguenther@suse.de>
9491         PR tree-optimization/88182
9492         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9494 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
9496         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9497         (RUNTEST): Don't define.
9498         (RUNTESTDEFAULTFLAGS): Add.
9499         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9500         (distclean-am): Depend on distclean-DEJAGNU.
9501         (check-am): If -j% option is present in MFLAGS and if
9502         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9503         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9504         * testsuite/Makefile.in: Regenerated.
9506 2018-11-26  Richard Biener  <rguenther@suse.de>
9508         PR tree-optimization/88182
9509         * testsuite/libgomp.c++/pr88182.C: New testcase.
9511 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
9513         PR bootstrap/88106
9514         * config/mingw32/affinity-fmt.c: New file.
9516 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
9518         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9519         (gomp_display_affinity): Use __builtin_choose_expr to handle
9520         properly handle argument having integral, or pointer or some other
9521         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
9522         with uint64_t type instead of %llx and unsigned long long.
9524         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9525         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9527 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9529         * affinity.c: Include <string.h>, <stdio.h>.
9530         (gomp_display_affinity_place): Remove cpusetp.
9531         * teams.c: Include <limits.h>.
9533 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
9535         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9536         in_reduction clause for s[0].
9538         * affinity.c (gomp_display_affinity_place): New function.
9539         * affinity-fmt.c: New file.
9540         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9541         * config/linux/affinity.c (gomp_display_affinity_place): New function.
9542         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9543         Move these functions to ...
9544         * config/nvptx/teams.c: ... here.  New file.
9545         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9546         New functions.
9547         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9548         functions.
9549         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9550         and _aligned_malloc.
9551         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9552         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9553         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9554         gomp_affinity_format_len): New variables.
9555         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9556         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
9557         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9558         modifiers.  Display (non-default) chunk sizes.  Print
9559         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9560         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
9561         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9562         * fortran.c: Include stdio.h and string.h.
9563         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9564         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9565         (omp_set_affinity_format_, omp_get_affinity_format_,
9566         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9567         omp_pause_resource_all_): New functions.
9568         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9569         switch.
9570         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9571         functions to ...
9572         * teams.c: ... here.  New file.
9573         * libgomp_g.h: Include gstdint.h.
9574         (GOMP_loop_nonmonotonic_runtime_start,
9575         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9576         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9577         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9578         GOMP_parallel_loop_nonmonotonic_runtime,
9579         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9580         GOMP_loop_ull_nonmonotonic_runtime_start,
9581         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9582         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9583         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9584         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9585         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9586         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9587         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9588         GOMP_teams_reg): Declare.
9589         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9590         gomp_aligned_alloc uses fallback implementation.
9591         (gomp_aligned_alloc, gomp_aligned_free): Declare.
9592         (enum gomp_schedule_type): Add GFS_MONOTONIC.
9593         (struct gomp_doacross_work_share): Add extra field.
9594         (struct gomp_work_share): Add task_reductions field.
9595         (struct gomp_taskgroup): Add workshare and reductions fields.
9596         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9597         (gomp_thread_handle): New typedef.
9598         (gomp_display_affinity_place, gomp_set_affinity_format,
9599         gomp_display_string, gomp_display_affinity,
9600         gomp_display_affinity_thread): Declare.
9601         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9602         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9603         gomp_workshare_task_reduction_register): Declare.
9604         (gomp_team_start): Add taskgroup argument.
9605         (gomp_pause_host): Declare.
9606         (gomp_init_work_share, gomp_work_share_start): Change bool argument
9607         to size_t.
9608         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9609         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9610         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9611         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9612         GOMP_loop_ull_doacross_start,
9613         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9614         GOMP_loop_maybe_nonmonotonic_runtime_next,
9615         GOMP_loop_maybe_nonmonotonic_runtime_start,
9616         GOMP_loop_nonmonotonic_runtime_next,
9617         GOMP_loop_nonmonotonic_runtime_start,
9618         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9619         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9620         GOMP_loop_ull_nonmonotonic_runtime_next,
9621         GOMP_loop_ull_nonmonotonic_runtime_start,
9622         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9623         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9624         GOMP_taskgroup_reduction_register,
9625         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9626         GOMP_teams_reg and GOMP_taskwait_depend.
9627         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9628         omp_{capture,display}_affinity{,_}, and
9629         omp_[gs]et_affinity_format{,_}.
9630         * loop.c: Include string.h.
9631         (GOMP_loop_runtime_next): Add ialias.
9632         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9633         (gomp_loop_static_start, gomp_loop_dynamic_start,
9634         gomp_loop_guided_start, gomp_loop_ordered_static_start,
9635         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9636         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9637         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9638         or gomp_doacross_init callers.
9639         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9640         GOMP_loop_doacross_start): New functions.
9641         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9642         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9643         Mask off GFS_MONOTONIC bit.
9644         (GOMP_loop_maybe_nonmonotonic_runtime_next,
9645         GOMP_loop_maybe_nonmonotonic_runtime_start,
9646         GOMP_loop_nonmonotonic_runtime_next,
9647         GOMP_loop_nonmonotonic_runtime_start,
9648         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9649         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9650         functions.
9651         (gomp_parallel_loop_start): Pass NULL as taskgroup to
9652         gomp_team_start.
9653         * loop_ull.c: Include string.h.
9654         (GOMP_loop_ull_runtime_next): Add ialias.
9655         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9656         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9657         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9658         gomp_loop_ull_ordered_dynamic_start,
9659         gomp_loop_ull_ordered_guided_start,
9660         gomp_loop_ull_doacross_static_start,
9661         gomp_loop_ull_doacross_dynamic_start,
9662         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9663         and gomp_doacross_ull_init callers.
9664         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9665         GOMP_loop_ull_doacross_start): New functions.
9666         (GOMP_loop_ull_runtime_start,
9667         GOMP_loop_ull_ordered_runtime_start,
9668         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9669         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9670         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9671         GOMP_loop_ull_nonmonotonic_runtime_next,
9672         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9673         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9674         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9675         (omp_pause_resource_t, omp_depend_t): New typedefs.
9676         (enum omp_lock_hint_t): Renamed to ...
9677         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
9678         enumerators using numbers and omp_lock_hint_* as their aliases.
9679         (omp_lock_hint_t): New typedef.  Rename to ...
9680         (omp_sync_hint_t): ... this.
9681         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9682         omp_sync_hint_t instead of omp_lock_hint_t.
9683         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9684         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9685         Declare.
9686         (omp_target_is_present, omp_target_disassociate_ptr):
9687         Change first argument from void * to const void *.
9688         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9689         from void * to const void *.
9690         (omp_target_associate_ptr): Change first and second arguments from
9691         void * to const void *.
9692         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9693         omp_pause_hard): New parameters.
9694         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9695         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9696         New interfaces.
9697         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9698         omp_pause_hard): New parameters.
9699         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9700         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9701         New externals.
9702         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9703         EXTRA argument.  If not needed to prepare array, if extra is 0,
9704         clear ws->doacross, otherwise allocate just doacross structure and
9705         extra payload.  If array is needed, allocate also extra payload.
9706         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9707         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9708         doacross == NULL.
9709         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9710         gomp_team_start.
9711         (GOMP_parallel): Likewise.  Formatting fix.
9712         (GOMP_parallel_reductions): New function.
9713         (GOMP_cancellation_point): If taskgroup has workshare
9714         flag set, check cancelled of prev taskgroup if any.
9715         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9716         on prev taskgroup if any.
9717         * sections.c: Include string.h.
9718         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9719         (GOMP_sections_start): Adjust gomp_work_share_start caller.
9720         (GOMP_sections2_start): New function.
9721         (GOMP_parallel_sections_start, GOMP_parallel_sections):
9722         Pass NULL as taskgroup to gomp_team_start.
9723         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9724         gomp_work_share_start callers.
9725         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9726         If taskgroup has workshare flag set, check cancelled on prev
9727         taskgroup if any.  Guard all cancellation tests with
9728         gomp_cancel_var test.
9729         (omp_target_is_present, omp_target_disassociate_ptr):
9730         Change ptr argument from void * to const void *.
9731         (omp_target_memcpy): Change src argument from void * to const void *.
9732         (omp_target_memcpy_rect): Likewise.
9733         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
9734         instead of char * where needed.
9735         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9736         from void * to const void *.
9737         (omp_pause_resource, omp_pause_resource_all): New functions.
9738         * task.c (gomp_task_handle_depend): Handle new depend array format
9739         in addition to the old.  Handle mutexinoutset kinds the same as
9740         inout for now, handle unspecified kinds.
9741         (gomp_create_target_task): If taskgroup has workshare flag set, check
9742         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9743         gomp_cancel_var test.  Handle new depend array format count in
9744         addition to the old.
9745         (GOMP_task): Likewise.  Adjust function comment.
9746         (gomp_task_run_pre): If taskgroup has workshare flag set, check
9747         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9748         gomp_cancel_var test.
9749         (GOMP_taskwait_depend): New function.
9750         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9751         format in addition to the old.  Handle mutexinoutset kinds the same as
9752         inout for now, handle unspecified kinds.  Fix a function comment typo.
9753         (gomp_taskgroup_init): New function.
9754         (GOMP_taskgroup_start): Use it.
9755         (gomp_reduction_register, gomp_create_artificial_team,
9756         GOMP_taskgroup_reduction_register,
9757         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9758         gomp_parallel_reduction_register,
9759         gomp_workshare_task_reduction_register,
9760         gomp_workshare_taskgroup_start,
9761         GOMP_workshare_task_reduction_unregister): New functions.
9762         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9763         check cancelled on prev taskgroup if any.  Guard all cancellation
9764         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
9765         by calling GOMP_taskgroup_reduction_register.
9766         * team.c (gomp_thread_attr): Remove comment.
9767         (struct gomp_thread_start_data): Add handle field.
9768         (gomp_thread_start): Call pthread_detach.
9769         (gomp_new_team): Adjust gomp_init_work_share caller.
9770         (gomp_free_pool_helper): Call pthread_detach.
9771         (gomp_team_start): Add taskgroup argument, initialize implicit
9772         tasks' taskgroup field to that.  Don't call
9773         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
9774         (gomp_team_end): Determine nesting by thr->ts.level != 0
9775         rather than thr->ts.team != NULL.
9776         (gomp_pause_pool_helper, gomp_pause_host): New functions.
9777         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9778         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9779         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9780         if more than 1 allocate also extra payload at the end of array.  Never
9781         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9782         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9783         return true instead of ws.
9784         * Makefile.in: Regenerated.
9785         * configure: Regenerated.
9786         * config.h.in: Regenerated.
9787         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9788         in some cases.
9789         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9790         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9791         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9792         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9793         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9794         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9795         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9796         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9797         * testsuite/libgomp.c-c++-common/for-10.c: New test.
9798         * testsuite/libgomp.c-c++-common/for-11.c: New test.
9799         * testsuite/libgomp.c-c++-common/for-12.c: New test.
9800         * testsuite/libgomp.c-c++-common/for-13.c: New test.
9801         * testsuite/libgomp.c-c++-common/for-14.c: New test.
9802         * testsuite/libgomp.c-c++-common/for-15.c: New test.
9803         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9804         define a different N(test), don't define N(f0) to N(f14), but instead
9805         define N(f20) to N(f34) using != comparisons.
9806         * testsuite/libgomp.c-c++-common/for-7.c: New test.
9807         * testsuite/libgomp.c-c++-common/for-8.c: New test.
9808         * testsuite/libgomp.c-c++-common/for-9.c: New test.
9809         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9810         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9811         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9812         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9813         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9814         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9815         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9816         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9817         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9818         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9819         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9820         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9821         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9822         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9823         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9824         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9825         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9826         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9827         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9828         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9829         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9830         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9831         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9832         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9833         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9834         * testsuite/libgomp.c++/depend-1.C: New test.
9835         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9836         * testsuite/libgomp.c++/depobj-1.C: New test.
9837         * testsuite/libgomp.c++/for-16.C: New test.
9838         * testsuite/libgomp.c++/for-21.C: New test.
9839         * testsuite/libgomp.c++/for-22.C: New test.
9840         * testsuite/libgomp.c++/for-23.C: New test.
9841         * testsuite/libgomp.c++/for-24.C: New test.
9842         * testsuite/libgomp.c++/for-25.C: New test.
9843         * testsuite/libgomp.c++/for-26.C: New test.
9844         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9845         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9846         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9847         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9848         * testsuite/libgomp.c++/task-reduction-10.C: New test.
9849         * testsuite/libgomp.c++/task-reduction-11.C: New test.
9850         * testsuite/libgomp.c++/task-reduction-12.C: New test.
9851         * testsuite/libgomp.c++/task-reduction-13.C: New test.
9852         * testsuite/libgomp.c++/task-reduction-14.C: New test.
9853         * testsuite/libgomp.c++/task-reduction-15.C: New test.
9854         * testsuite/libgomp.c++/task-reduction-16.C: New test.
9855         * testsuite/libgomp.c++/task-reduction-17.C: New test.
9856         * testsuite/libgomp.c++/task-reduction-18.C: New test.
9857         * testsuite/libgomp.c++/task-reduction-19.C: New test.
9858         * testsuite/libgomp.c/task-reduction-1.c: New test.
9859         * testsuite/libgomp.c++/task-reduction-1.C: New test.
9860         * testsuite/libgomp.c/task-reduction-2.c: New test.
9861         * testsuite/libgomp.c++/task-reduction-2.C: New test.
9862         * testsuite/libgomp.c++/task-reduction-3.C: New test.
9863         * testsuite/libgomp.c++/task-reduction-4.C: New test.
9864         * testsuite/libgomp.c++/task-reduction-5.C: New test.
9865         * testsuite/libgomp.c++/task-reduction-6.C: New test.
9866         * testsuite/libgomp.c++/task-reduction-7.C: New test.
9867         * testsuite/libgomp.c++/task-reduction-8.C: New test.
9868         * testsuite/libgomp.c++/task-reduction-9.C: New test.
9869         * testsuite/libgomp.c/teams-1.c: New test.
9870         * testsuite/libgomp.c/teams-2.c: New test.
9871         * testsuite/libgomp.c/thread-limit-4.c: New test.
9872         * testsuite/libgomp.c/thread-limit-5.c: New test.
9873         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9875 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
9877         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9878         acc_memcpy_to/from_device functions, now with async parameter.
9879         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9880         (acc_memcpy_from_device): Likewise.
9881         (acc_memcpy_to_device_async): New API function.
9882         (acc_memcpy_from_device_async): Likewise.
9883         (present_create_copy): Add async parameter and async setting/unsetting.
9884         (acc_create): Adjust present_create_copy call.
9885         (acc_copyin): Likewise.
9886         (acc_present_or_create): Likewise.
9887         (acc_present_or_copyin): Likewise.
9888         (acc_create_async): New API function.
9889         (acc_copyin_async): New API function.
9890         (delete_copyout): Add async parameter and async setting/unsetting.
9891         (acc_delete): Adjust delete_copyout call.
9892         (acc_copyout): Likewise.
9893         (acc_delete_async): New API function.
9894         (acc_copyout_async): Likewise.
9895         (update_dev_host): Add async parameter and async setting/unsetting.
9896         (acc_update_device): Adjust update_dev_host call.
9897         (acc_update_self): Likewise.
9898         (acc_update_device_async): New API function.
9899         (acc_update_self_async): Likewise.
9900         * openacc.h (acc_copyin_async): Declare new API function.
9901         (acc_create_async): Likewise.
9902         (acc_copyout_async): Likewise.
9903         (acc_delete_async): Likewise.
9904         (acc_update_device_async): Likewise.
9905         (acc_update_self_async): Likewise.
9906         (acc_memcpy_to_device_async): Likewise.
9907         (acc_memcpy_from_device_async): Likewise.
9908         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9909         (acc_copyin_async_64_h): New subroutine.
9910         (acc_copyin_async_array_h): New subroutine.
9911         (acc_create_async_32_h): New subroutine.
9912         (acc_create_async_64_h): New subroutine.
9913         (acc_create_async_array_h): New subroutine.
9914         (acc_copyout_async_32_h): New subroutine.
9915         (acc_copyout_async_64_h): New subroutine.
9916         (acc_copyout_async_array_h): New subroutine.
9917         (acc_delete_async_32_h): New subroutine.
9918         (acc_delete_async_64_h): New subroutine.
9919         (acc_delete_async_array_h): New subroutine.
9920         (acc_update_device_async_32_h): New subroutine.
9921         (acc_update_device_async_64_h): New subroutine.
9922         (acc_update_device_async_array_h): New subroutine.
9923         (acc_update_self_async_32_h): New subroutine.
9924         (acc_update_self_async_64_h): New subroutine.
9925         (acc_update_self_async_array_h): New subroutine.
9926         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9927         (acc_copyin_async_64_h): New subroutine.
9928         (acc_copyin_async_array_h): New subroutine.
9929         (acc_create_async_32_h): New subroutine.
9930         (acc_create_async_64_h): New subroutine.
9931         (acc_create_async_array_h): New subroutine.
9932         (acc_copyout_async_32_h): New subroutine.
9933         (acc_copyout_async_64_h): New subroutine.
9934         (acc_copyout_async_array_h): New subroutine.
9935         (acc_delete_async_32_h): New subroutine.
9936         (acc_delete_async_64_h): New subroutine.
9937         (acc_delete_async_array_h): New subroutine.
9938         (acc_update_device_async_32_h): New subroutine.
9939         (acc_update_device_async_64_h): New subroutine.
9940         (acc_update_device_async_array_h): New subroutine.
9941         (acc_update_self_async_32_h): New subroutine.
9942         (acc_update_self_async_64_h): New subroutine.
9943         (acc_update_self_async_array_h): New subroutine.
9944         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9945         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9946         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9947         acc_memcpy_to_device_async*, acc_update_device_async*, and
9948         acc_update_self_async* entries.
9949         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9950         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9951         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9953 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
9955         PR bootstrap/82856
9956         * Makefile.am: Include multilib.am
9957         (AUTOMAKE_OPTIONS): Add info-in-builddir.
9958         (CLEANFILES): Remove libgomp.info.
9959         * configure.ac: Remove AC_PREREQ.
9960         * testsuite/Makefile.am (RUNTEST): Remove quotes.
9961         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9962         Regenerate.
9964 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
9965             Julian Brown  <julian@codesourcery.com>
9967         * testsuite/libgomp.oacc-c++/this.C: New.
9969 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
9971         * plugin/plugin-nvptx.c (struct cuda_map): New.
9972         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9973         h_tail with (cuda_map *) map.
9974         (cuda_map_create): New function.
9975         (cuda_map_destroy): New function.
9976         (map_init): Update to use a linked list of cuda_map objects.
9977         (map_fini): Likewise.
9978         (map_pop): Likewise.
9979         (map_push): Likewise.  Return CUdeviceptr instead of void.
9980         (init_streams_for_device): Remove stales references to ptx_stream
9981         members.
9982         (select_stream_for_async): Likewise.
9983         (nvptx_exec): Update call to map_init.
9985 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
9986             Julian Brown  <julian@codesourcery.com>
9988         PR middle-end/86336
9989         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9991 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
9992         Thomas Koenig <tkoenig@gcc.gnu.org>
9994         PR fortran/25829
9995         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9996         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9997         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9998         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9999         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10000         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10001         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10003 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10004             Tom de Vries  <tdevries@suse.de>
10006         PR target/85590
10007         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10008         (cuOccupancyMaxPotentialBlockSize): Declare.
10009         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10010         CUDA_ONE_CALL_MAYBE_NULL.
10011         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10012         CUoccupancyB2DSize and declare
10013         cuOccupancyMaxPotentialBlockSize.
10014         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10015         default num_gangs and num_workers when the driver supports it.
10017 2018-08-08  Tom de Vries  <tdevries@suse.de>
10019         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10020         CUDA_ONE_CALL_MAYBE_NULL.
10021         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10022         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10023         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10024         are not found.
10026 2018-08-08  Tom de Vries  <tdevries@suse.de>
10028         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10029         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10030         present.
10032 2018-08-08  Tom de Vries  <tdevries@suse.de>
10034         * plugin/plugin-nvptx.c
10035         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10036         (nvptx_open_device): Use
10037         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10039 2018-08-08  Tom de Vries  <tdevries@suse.de>
10041         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10042         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10044 2018-08-07  Tom de Vries  <tdevries@suse.de>
10046         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10047         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10048         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10049         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10050         CUDA_ONE_CALL_MAYBE_NULL.
10051         (CUDA_CALL_EXISTS): Define.
10053 2018-08-07  Tom de Vries  <tdevries@suse.de>
10055         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10056         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10057         corresponding undefs right after.
10059 2018-08-04  Tom de Vries  <tdevries@suse.de>
10061         * plugin/configfrag.ac: For --without-cuda-driver, set
10062         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10063         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10064         * configure: Regenerate.
10066 2018-08-02  Tom de Vries  <tdevries@suse.de>
10068         PR target/86660
10069         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10070         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10071         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10072         Same.
10073         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10074         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10075         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10077 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10078             Thomas Schwinge <thomas@codesourcery.com>
10080         * config/nvptx/oacc-parallel.c: Truncate.
10082 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10083             James Norris <jnorris@codesourcery.com>
10085         * plugin/plugin-nvptx.c (struct map): Removed.
10086         (map_init, map_pop): Remove use of struct map.
10087         (map_push): Likewise and change argument list.
10088         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10090 2018-08-01  Tom de Vries  <tdevries@suse.de>
10092         * plugin/cuda-lib.def: New file.  Factor out of ...
10093         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10094         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10095         using CUDA_CALLS.
10097 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10099         Revert 'AsyncI/O patch committed'.
10100         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10101                 Thomas Koenig <tkoenig@gcc.gnu.org>
10103         PR fortran/25829
10104         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10105         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10106         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10107         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10108         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10109         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10110         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10112 2018-07-30  Tom de Vries  <tdevries@suse.de>
10114         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10115         (nvptx_exec): Ensure worker and vector default dims don't exceed
10116         targ_fn->max_threads_per_block.
10118 2018-07-30  Tom de Vries  <tdevries@suse.de>
10120         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10121         (nvptx_open_device): Init default_dims for device.
10122         (nvptx_exec): Use default_dims from device.
10124 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10126         PR testsuite/86660
10127         * testsuite/libgomp.c++/for-15.C (results): Include it in
10128         omp declare target region.
10129         (main): Use map (always, tofrom: results) instead of
10130         map (tofrom: results).
10132         PR middle-end/86660
10133         * testsuite/libgomp.c/pr86660.c: New test.
10135 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10136             Tom de Vries  <tdevries@suse.de>
10138         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10139         sufficient resources to launch a kernel, and give a hint on how to fix
10140         it.
10142 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10143             Tom de Vries  <tdevries@suse.de>
10145         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10146         max_threads_per_block and max_threads_per_multiprocessor fields.
10147         (nvptx_open_device): Initialize new fields.
10148         (nvptx_exec): Use num_sms, and new fields.
10150 2018-07-26  Tom de Vries  <tdevries@suse.de>
10152         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10153         to correct locations.  Remove xfail.
10155 2018-07-26  Tom de Vries  <tdevries@suse.de>
10157         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10158         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10159         xfail.
10161 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10162         Thomas Koenig <tkoenig@gcc.gnu.org>
10164         PR fortran/25829
10165         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10166         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10167         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10168         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10169         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10170         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10171         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10173 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10175         PR middle-end/86542
10176         * testsuite/libgomp.c++/pr86542.C: New test.
10178         PR middle-end/86539
10179         * testsuite/libgomp.c++/pr86539.C: New test.
10181 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
10183         PR c++/86443
10184         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10185         (results): Make sure the variable is not inside declare target region.
10186         (qux): Remove unused function.
10188 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
10190         PR c++/86443
10191         * testsuite/libgomp.c++/for-15.C: New test.
10193 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
10195         PR c++/86291
10196         * testsuite/libgomp.c++/pr86291.C: New test.
10198 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
10200         * libgomp.texi (Top): Move www.openmp.org to https.
10201         (Enabling OpenMP): Ditto.
10202         (omp_get_active_level): Ditto.
10203         (omp_get_ancestor_thread_num): Ditto.
10204         (omp_get_cancellation): Ditto.
10205         (omp_get_default_device): Ditto.
10206         (omp_get_dynamic): Ditto.
10207         (omp_get_level): Ditto.
10208         (omp_get_max_active_levels): Ditto.
10209         (omp_get_max_task_priority): Ditto.
10210         (omp_get_max_threads): Ditto.
10211         (omp_get_nested): Ditto.
10212         (omp_get_num_devices): Ditto.
10213         (omp_get_num_procs): Ditto.
10214         (omp_get_num_teams): Ditto.
10215         (omp_get_num_threads): Ditto.
10216         (omp_get_proc_bind): Ditto.
10217         (omp_get_schedule): Ditto.
10218         (omp_get_team_num): Ditto.
10219         (omp_get_team_size): Ditto.
10220         (omp_get_thread_limit): Ditto.
10221         (omp_get_thread_num): Ditto.
10222         (omp_in_parallel): Ditto.
10223         (omp_in_final): Ditto.
10224         (omp_is_initial_device): Ditto.
10225         (omp_set_default_device): Ditto.
10226         (omp_set_dynamic): Ditto.
10227         (omp_set_max_active_levels): Ditto.
10228         (omp_set_nested): Ditto.
10229         (omp_set_num_threads): Ditto.
10230         (omp_set_schedule): Ditto.
10231         (omp_init_lock): Ditto.
10232         (omp_set_lock): Ditto.
10233         (omp_test_lock): Ditto.
10234         (omp_unset_lock): Ditto.
10235         (omp_destroy_lock): Ditto.
10236         (omp_init_nest_lock): Ditto.
10237         (omp_set_nest_lock): Ditto.
10238         (omp_test_nest_lock): Ditto.
10239         (omp_unset_nest_lock): Ditto.
10240         (omp_destroy_nest_lock): Ditto.
10241         (omp_get_wtick): Ditto.
10242         (omp_get_wtime): Ditto.
10243         (OMP_CANCELLATION): Ditto.
10244         (OMP_DISPLAY_ENV): Ditto.
10245         (OMP_DEFAULT_DEVICE): Ditto.
10246         (OMP_DYNAMIC): Ditto.
10247         (OMP_MAX_ACTIVE_LEVELS): Ditto.
10248         (OMP_MAX_TASK_PRIORITY): Ditto.
10249         (OMP_NESTED): Ditto.
10250         (OMP_NUM_THREADS): Ditto.
10251         (OMP_PROC_BIND): Ditto.
10252         (OMP_PLACES): Ditto.
10253         (OMP_STACKSIZE): Ditto.
10254         (OMP_SCHEDULE): Ditto.
10255         (OMP_THREAD_LIMIT): Ditto.
10256         (OMP_WAIT_POLICY): Ditto.
10258 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
10259             James Norris  <jnorris@codesourcery.com>
10260             Julian Brown  <julian@codesourcery.com>
10261             Thomas Schwinge  <thomas@codesourcery.com>
10262             Tom de Vries  <tom@codesourcery.com>
10264         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10265         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10266         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10267         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10268         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10269         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10270         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10271         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10272         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10273         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10274         Likewise.
10275         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10276         Likewise.
10277         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10278         Likewise.
10279         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10280         Likewise.
10281         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10282         Likewise.
10283         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10284         Likewise.
10285         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10286         Likewise.
10287         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10288         Likewise.
10289         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10290         Likewise.
10291         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10292         Likewise.
10293         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10294         Likewise.
10295         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10296         Likewise.
10297         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10298         Likewise.
10299         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10300         Likewise.
10301         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10302         Likewise.
10303         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10304         Likewise.
10305         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10306         Likewise.
10307         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10308         Likewise.
10309         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10310         Likewise.
10311         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10312         Likewise.
10313         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10314         Likewise.
10315         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10316         Likewise.
10317         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10318         Likewise.
10319         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10320         Likewise.
10321         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10322         Likewise.
10323         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10324         Likewise.
10325         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10326         Likewise.
10327         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10328         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10329         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10330         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10331         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10332         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10333         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10334         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10335         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10336         Likewise.
10337         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10338         Likewise.
10339         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10340         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10341         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10342         Likewise.
10343         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10344         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10345         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10346         Likewise.
10347         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10348         Likewise.
10349         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10350         Likewise.
10351         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10352         Likewise.
10353         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10354         Likewise.
10355         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10356         Likewise.
10357         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10358         Likewise.
10359         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10360         Likewise.
10361         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10362         Likewise.
10363         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10364         Likewise.
10365         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10366         Likewise.
10367         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10368         Likewise.
10369         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10370         Likewise.
10371         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10372         Likewise.
10373         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10374         Likewise.
10375         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10376         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10377         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10378         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10379         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10380         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10381         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10383 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
10384             Thomas Schwinge <thomas@codesourcery.com>
10385             Cesar Philippidis  <cesar@codesourcery.com>
10387         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10388         (gomp_acc_remove_pointer): Update declaration.
10389         (gomp_acc_declare_allocate): Declare.
10390         (gomp_remove_var): Declare.
10391         * libgomp.map (OACC_2.5): Define.
10392         * oacc-mem.c (acc_map_data): Update refcount.
10393         (acc_unmap_data): Likewise.
10394         (present_create_copy): Likewise.
10395         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10396         (acc_copyin): Likewise.
10397         (FLAG_FINALIZE): Define.
10398         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10399         (acc_delete_finalize): New function.
10400         (acc_delete_finalize_async): New function.
10401         (acc_copyout_finalize): New function.
10402         (acc_copyout_finalize_async): New function.
10403         (gomp_acc_insert_pointer): Update refcounts.
10404         (gomp_acc_remove_pointer): Return if data is not present on the
10405         accelerator.
10406         * oacc-parallel.c (find_pset): Rename to find_pointer.
10407         (find_pointer): Add support for GOMP_MAP_POINTER.
10408         (handle_ftn_pointers): New function.
10409         (GOACC_parallel_keyed): Update refcounts of variables.
10410         (GOACC_enter_exit_data): Add support for finalized data mappings.
10411         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10412         of fortran arrays.
10413         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10414         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10415         for GOMP_MAP_FORCE_FROM.
10416         * openacc.f90 (module openacc_internal): Add
10417         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10418         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10419         acc_copyout_finalize and acc_delete_finalize.
10420         (acc_copyout_finalize_32_h): New subroutine.
10421         (acc_copyout_finalize_64_h): New subroutine.
10422         (acc_copyout_finalize_array_h): New subroutine.
10423         (acc_delete_finalize_32_h): New subroutine.
10424         (acc_delete_finalize_64_h): New subroutine.
10425         (acc_delete_finalize_array_h): New subroutine.
10426         * openacc.h (acc_copyout_finalize): Declare.
10427         (acc_copyout_finalize_async): Declare.
10428         (acc_delete_finalize): Declare.
10429         (acc_delete_finalize_async): Declare.
10430         * openacc_lib.h (acc_copyout_finalize): New interface.
10431         (acc_delete_finalize): New interface.
10432         * target.c (gomp_map_vars): Update dynamic_refcount.
10433         (gomp_remove_var): New function.
10434         (gomp_unmap_vars): Use it.
10435         (gomp_unload_image_from_device): Likewise.
10436         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10437         case to utilize OpenACC 2.5 data clause semantics.
10438         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10439         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10440         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10441         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10442         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10443         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10444         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10445         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10446         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10447         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10448         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10449         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10450         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10451         utilize OpenACC 2.5 data clause semantics.
10452         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10453         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10454         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10455         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10456         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10457         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10458         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10459         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10460         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10462 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
10464         PR fortran/85841
10465         PR testsuite/85865
10466         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10467         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10468         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10469         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10470         * testsuite/libgomp.fortran/task2.f90: Ditto.
10471         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10472         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10473         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10474         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10475         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10476         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10477         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10478         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10479         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10481 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
10483         PR c++/85782
10484         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10486 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10488         PR libgomp/82901
10489         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10490         to GOACC_enter_exit_data.
10492 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10494         PR libgomp/83792
10495         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10496         (async_synchronous_p): New function.
10497         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10498         async_valid_p.
10499         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10500         async_valid_stream_id_p.
10501         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10502         * oacc-parallel.c (GOACC_parallel_keyed): Same.
10504 2018-05-07  Tom de Vries  <tom@codesourcery.com>
10506         PR testsuite/85677
10507         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10508         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10510 2018-05-03  Tom de Vries  <tom@codesourcery.com>
10512         PR testsuite/85106
10513         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10514         extra_tool_flags if it contains an -foffload=-fdump-* flag.
10515         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10516         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10518 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10520         PR libgomp/85411
10521         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10522         GOMP_OPENACC_DIM ...
10523         * env.c (parse_gomp_openacc_dim): ... here.  New function.
10524         (initialize_env): Call parse_gomp_openacc_dim.
10525         (goacc_default_dims): Define.
10526         * libgomp.h (goacc_default_dims): Declare.
10527         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10528         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10529         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10530         GOMP_PLUGIN_acc_default_dim.
10531         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10532         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10534 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10536         PR testsuite/83791
10537         * testsuite/libgomp.c++/udr-9.C: Update.
10538         * testsuite/libgomp.c++/atomic-16.C: Remove.
10539         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10540         * testsuite/libgomp.c++/loop-13.C: Remove.
10541         * testsuite/libgomp.c++/loop-14.C: Remove.
10542         * testsuite/libgomp.c++/loop-15.C: Remove.
10543         * testsuite/libgomp.c++/monotonic-1.C: Remove.
10544         * testsuite/libgomp.c++/monotonic-2.C: Remove.
10545         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10546         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10547         * testsuite/libgomp.c++/ordered-1.C: Remove.
10548         * testsuite/libgomp.c++/pr45784.C: Remove.
10549         * testsuite/libgomp.c++/pr64824.C: Remove.
10550         * testsuite/libgomp.c++/pr64868.C: Remove.
10551         * testsuite/libgomp.c++/pr66199-1.C: Remove.
10552         * testsuite/libgomp.c++/pr66199-2.C: Remove.
10553         * testsuite/libgomp.c++/pr66199-3.C: Remove.
10554         * testsuite/libgomp.c++/pr66199-4.C: Remove.
10555         * testsuite/libgomp.c++/pr66199-5.C: Remove.
10556         * testsuite/libgomp.c++/pr66199-6.C: Remove.
10557         * testsuite/libgomp.c++/pr66199-7.C: Remove.
10558         * testsuite/libgomp.c++/pr66199-8.C: Remove.
10559         * testsuite/libgomp.c++/pr66199-9.C: Remove.
10560         * testsuite/libgomp.c++/pr69389.C: Remove.
10561         * testsuite/libgomp.c++/simd10.C: Remove.
10562         * testsuite/libgomp.c++/simd11.C: Remove.
10563         * testsuite/libgomp.c++/simd12.C: Remove.
10564         * testsuite/libgomp.c++/simd13.C: Remove.
10565         * testsuite/libgomp.c++/target-1.C: Remove.
10566         * testsuite/libgomp.c++/target-3.C: Remove.
10567         * testsuite/libgomp.c++/target-4.C: Remove.
10568         * testsuite/libgomp.c++/target-5.C: Remove.
10569         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10570         * testsuite/libgomp.c++/taskloop-1.C: Remove.
10571         * testsuite/libgomp.c++/taskloop-2.C: Remove.
10572         * testsuite/libgomp.c++/taskloop-3.C: Remove.
10573         * testsuite/libgomp.c++/taskloop-4.C: Remove.
10574         * testsuite/libgomp.c++/udr-9.C: Remove.
10575         * testsuite/libgomp.c++/for-10.C: Remove.
10576         * testsuite/libgomp.c++/for-11.C: Remove.
10577         * testsuite/libgomp.c++/for-12.C: Remove.
10578         * testsuite/libgomp.c++/for-13.C: Remove.
10579         * testsuite/libgomp.c++/for-14.C: Remove.
10580         * testsuite/libgomp.c++/for-9.C: Remove.
10581         * testsuite/libgomp.c/atomic-18.c: Move ...
10582         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10583         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10584         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10585         * testsuite/libgomp.c/loop-13.c: Move ...
10586         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10587         * testsuite/libgomp.c/loop-14.c: Move ...
10588         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10589         * testsuite/libgomp.c/loop-15.c: Remove.
10590         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10591         * testsuite/libgomp.c/monotonic-1.c: Move ...
10592         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10593         * testsuite/libgomp.c/monotonic-2.c: Move ...
10594         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10595         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10596         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10597         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10598         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10599         * testsuite/libgomp.c/ordered-4.c: Move ...
10600         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10601         * testsuite/libgomp.c/pr45784.c: Move ...
10602         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10603         * testsuite/libgomp.c/pr64824.c: Move ...
10604         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10605         * testsuite/libgomp.c/pr64868.c: Move ...
10606         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10607         * testsuite/libgomp.c/pr66199-1.c: Move ...
10608         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10609         * testsuite/libgomp.c/pr66199-2.c: Move ...
10610         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10611         * testsuite/libgomp.c/pr66199-3.c: Move ...
10612         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10613         * testsuite/libgomp.c/pr66199-4.c: Move ...
10614         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10615         * testsuite/libgomp.c/pr66199-5.c: Move ...
10616         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10617         * testsuite/libgomp.c/pr66199-6.c: Move ...
10618         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10619         * testsuite/libgomp.c/pr66199-7.c: Move ...
10620         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10621         * testsuite/libgomp.c/pr66199-8.c: Move ...
10622         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10623         * testsuite/libgomp.c/pr66199-9.c: Move ...
10624         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10625         * testsuite/libgomp.c/pr69389.c: Move ...
10626         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10627         * testsuite/libgomp.c/simd-14.c: Move ...
10628         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10629         * testsuite/libgomp.c/simd-15.c: Move ...
10630         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10631         * testsuite/libgomp.c/simd-16.c: Move ...
10632         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10633         * testsuite/libgomp.c/simd-17.c: Move ...
10634         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10635         * testsuite/libgomp.c/target-1.c: Move ...
10636         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10637         * testsuite/libgomp.c/target-10.c: Move ...
10638         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10639         * testsuite/libgomp.c/target-13.c: Move ...
10640         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10641         * testsuite/libgomp.c/target-2.c: Move ...
10642         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10643         * testsuite/libgomp.c/taskgroup-1.c: Move ...
10644         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10645         * testsuite/libgomp.c/taskloop-1.c: Move ...
10646         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10647         * testsuite/libgomp.c/taskloop-2.c: Move ...
10648         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10649         * testsuite/libgomp.c/taskloop-3.c: Move ...
10650         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10651         * testsuite/libgomp.c/taskloop-4.c: Move ...
10652         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10653         * testsuite/libgomp.c/udr-1.c: Move ...
10654         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10655         * testsuite/libgomp.c/for-1.c: Move ...
10656         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10657         * testsuite/libgomp.c/for-1.h: Move ...
10658         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10659         * testsuite/libgomp.c/for-2.c: Move ...
10660         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10661         * testsuite/libgomp.c/for-2.h: Move ...
10662         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10663         * testsuite/libgomp.c/for-3.c: Move ...
10664         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10665         * testsuite/libgomp.c/for-4.c: Move ...
10666         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10667         * testsuite/libgomp.c/for-5.c: Move ...
10668         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10669         * testsuite/libgomp.c/for-6.c: Move ...
10670         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10672 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10674         PR libgomp/82428
10675         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10676         __builtin_goacc_parlevel_{id,size}.
10677         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10678         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10679         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10680         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10681         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10682         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10683         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10684         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10685         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10686         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10687         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10688         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10689         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10690         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10691         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10692         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10693         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10694         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10695         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10696         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10697         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10698         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10699         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10701 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10703         PR testsuite/85106
10704         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10706 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10708         PR testsuite/85106
10709         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10711 2018-04-29  Julian Brown  <julian@codesourcery.com>
10712             Tom de Vries  <tom@codesourcery.com>
10714         PR testsuite/85527
10715         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10716         arbitrary order for iterations of atomic subtract check.
10718 2018-04-28  Tom de Vries  <tom@codesourcery.com>
10720         PR testsuite/85527
10721         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10722         atomic capture results obtained in parallel loop to an array, instead of
10723         to a scalar.
10725 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10727         PR libgomp/84020
10728         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10729         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10730         (process_GOMP_NVPTX_JIT): New function.
10731         (link_ptx): Use process_GOMP_NVPTX_JIT.
10733 2018-04-26  Richard Biener <rguenther@suse.de>
10734             Tom de Vries  <tom@codesourcery.com>
10736         PR lto/85422
10737         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10739 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10741         PR target/85519
10742         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10743         recursion depth from 25 to 23.
10744         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10746 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
10748         * configure: Regenerated.
10750 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
10751             Tom de Vries  <tom@codesourcery.com>
10753         PR target/85445
10754         * testsuite/libgomp.oacc-c++/ref-1.C: New.
10756 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
10758         PR libgomp/85463
10759         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10760         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10761         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10762         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10763         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10764         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10766         PR libfortran/85166
10767         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10768         abort".
10769         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10771 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
10773         * configure: Regenerated.
10775 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
10777         PR jit/85384
10778         * configure: Regenerate.
10780 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
10781             Tom de Vries  <tom@codesourcery.com>
10783         PR middle-end/84955
10784         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10785         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10787 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
10789         PR fortran/83064
10790         PR testsuite/85346
10791         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10792         test from gfortran.dg to here.
10794 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10796         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10797         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10799 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10801         PR middle-end/84955
10802         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10803         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10805 2018-04-05  Tom de Vries  <tom@codesourcery.com>
10807         PR target/85204
10808         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10810 2018-03-26  Tom de Vries  <tom@codesourcery.com>
10812         PR tree-optimization/85063
10813         * testsuite/libgomp.c/switch-conversion-2.c: New test.
10814         * testsuite/libgomp.c/switch-conversion.c: New test.
10815         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10816         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10818 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
10820         PR fortran/84381
10821         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10822         call abort by STOP n.
10823         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10824         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10825         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10826         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10827         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10828         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10829         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10830         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10831         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10832         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10833         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10834         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10835         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10836         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10837         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10838         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10839         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10840         * testsuite/libgomp.fortran/associate1.f90: Likewise.
10841         * testsuite/libgomp.fortran/associate2.f90: Likewise.
10842         * testsuite/libgomp.fortran/associate3.f90: Likewise.
10843         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10844         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10845         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10846         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10847         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10848         * testsuite/libgomp.fortran/character1.f90: Likewise.
10849         * testsuite/libgomp.fortran/character2.f90: Likewise.
10850         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10851         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10852         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10853         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10854         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10855         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10856         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10857         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10858         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10859         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10860         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10861         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10862         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10863         * testsuite/libgomp.fortran/do1.f90: Likewise.
10864         * testsuite/libgomp.fortran/do2.f90: Likewise.
10865         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10866         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10867         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10868         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10869         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10870         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10871         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10872         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10873         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10874         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10875         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10876         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10877         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10878         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10879         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10880         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10881         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10882         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10883         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10884         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10885         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10886         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10887         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10888         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10889         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10890         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10891         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10892         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10893         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10894         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10895         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10896         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10897         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10898         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10899         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10900         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10901         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10902         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10903         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10904         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10905         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10906         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10907         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10908         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10909         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10910         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10911         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10912         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10913         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10914         * testsuite/libgomp.fortran/lib1.f90: Likewise.
10915         * testsuite/libgomp.fortran/lib2.f: Likewise.
10916         * testsuite/libgomp.fortran/lib3.f: Likewise.
10917         * testsuite/libgomp.fortran/lib4.f90: Likewise.
10918         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10919         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10920         * testsuite/libgomp.fortran/nested1.f90: Likewise.
10921         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10922         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10923         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10924         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10925         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10926         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10927         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10928         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10929         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10930         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10931         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10932         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10933         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10934         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10935         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10936         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10937         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10938         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10939         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10940         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10941         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10942         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10943         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10944         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10945         * testsuite/libgomp.fortran/pr25162.f: Likewise.
10946         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10947         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10948         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10949         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10950         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10951         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10952         * testsuite/libgomp.fortran/pr28390.f: Likewise.
10953         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10954         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10955         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10956         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10957         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10958         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10959         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10960         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10961         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10962         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10963         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10964         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10965         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10966         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10967         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10968         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10969         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10970         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10971         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10972         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10973         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10974         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10975         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10976         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10977         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10978         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10979         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10980         * testsuite/libgomp.fortran/reference1.f90: Likewise.
10981         * testsuite/libgomp.fortran/reference2.f90: Likewise.
10982         * testsuite/libgomp.fortran/retval1.f90: Likewise.
10983         * testsuite/libgomp.fortran/retval2.f90: Likewise.
10984         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10985         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10986         * testsuite/libgomp.fortran/simd1.f90: Likewise.
10987         * testsuite/libgomp.fortran/simd2.f90: Likewise.
10988         * testsuite/libgomp.fortran/simd3.f90: Likewise.
10989         * testsuite/libgomp.fortran/simd4.f90: Likewise.
10990         * testsuite/libgomp.fortran/simd5.f90: Likewise.
10991         * testsuite/libgomp.fortran/simd6.f90: Likewise.
10992         * testsuite/libgomp.fortran/simd7.f90: Likewise.
10993         * testsuite/libgomp.fortran/stack.f90: Likewise.
10994         * testsuite/libgomp.fortran/strassen.f90: Likewise.
10995         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10996         * testsuite/libgomp.fortran/tabs2.f: Likewise.
10997         * testsuite/libgomp.fortran/target1.f90: Likewise.
10998         * testsuite/libgomp.fortran/target2.f90: Likewise.
10999         * testsuite/libgomp.fortran/target3.f90: Likewise.
11000         * testsuite/libgomp.fortran/target4.f90: Likewise.
11001         * testsuite/libgomp.fortran/target5.f90: Likewise.
11002         * testsuite/libgomp.fortran/target6.f90: Likewise.
11003         * testsuite/libgomp.fortran/target7.f90: Likewise.
11004         * testsuite/libgomp.fortran/target8.f90: Likewise.
11005         * testsuite/libgomp.fortran/task1.f90: Likewise.
11006         * testsuite/libgomp.fortran/task2.f90: Likewise.
11007         * testsuite/libgomp.fortran/task3.f90: Likewise.
11008         * testsuite/libgomp.fortran/task4.f90: Likewise.
11009         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11010         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11011         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11012         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11013         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11014         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11015         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11016         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11017         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11018         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11019         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11020         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11021         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11022         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11023         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11024         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11025         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11026         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11027         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11028         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11029         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11030         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11031         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11032         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11033         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11034         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11035         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11036         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11037         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11038         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11039         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11040         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11041         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11042         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11043         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11044         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11045         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11046         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11047         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11048         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11049         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11050         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11051         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11052         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11053         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11054         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11055         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11056         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11057         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11058         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11059         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11060         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11061         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11062         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11063         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11064         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11065         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11066         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11067         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11068         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11069         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11070         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11071         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11072         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11073         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11074         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11075         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11076         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11077         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11078         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11079         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11080         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11081         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11082         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11083         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11084         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11085         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11086         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11087         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11088         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11089         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11090         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11091         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11092         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11093         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11094         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11095         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11096         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11097         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11098         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11099         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11100         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11101         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11102         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11103         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11104         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11105         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11106         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11107         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11108         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11109         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11110         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11111         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11112         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11113         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11114         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11115         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11116         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11117         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11118         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11119         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11120         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11121         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11122         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11123         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11124         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11125         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11126         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11127         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11128         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11129         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11130         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11131         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11132         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11133         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11134         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11136 2018-03-20  Richard Biener  <rguenther@suse.de>
11138         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11139         parallelizable loop.
11141 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11143         PR target/84148
11144         * configure: Regenerate.
11146 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11148         PR fortran/84418
11149         * libgomp.fortran/pr84418-1.f90: New test.
11150         * libgomp.fortran/pr84418-2.f90: New test.
11152 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11154         PR fortran/84313
11155         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11156         -std=f2003 -fall-intrinsics into dg-additional-options.
11158 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11160         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11161         clonable.
11163 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11165         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11167 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11169         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11170         [__cplusplus]: Declare extern "C".
11172 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11174         PR libgomp/84217
11175         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11177 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11178             Jakub Jelinek  <jakub@redhat.com>
11180         PR libgomp/84096
11181         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11182         instead of omp_lock_t.
11184 2018-01-25  Tom de Vries  <tom@codesourcery.com>
11186         PR target/84028
11187         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11189 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11191         PR target/83589
11192         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11194 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11196         PR target/81352
11197         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11199 2018-01-19  Tom de Vries  <tom@codesourcery.com>
11200             Cesar Philippidis  <cesar@codesourcery.com>
11202         PR target/83920
11203         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11204         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11206 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11208         Update copyright years.
11210         * libgomp.texi: Bump @copying's copyright year.
11212 2017-12-30  Tom de Vries  <tom@codesourcery.com>
11214         PR libgomp/83046
11215         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11216         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11218 2017-12-27  Tom de Vries  <tom@codesourcery.com>
11220         PR c++/83046
11221         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11222         (test_nonstatic): Fix return type to workaround PR83046.
11224 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
11226         PR testsuite/83281
11227         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11228         j suffix instead of i.
11229         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11230         Likewise.
11232 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
11234         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11235         call to acc_wait (1).
11237 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
11239         PR fortran/81304
11240         * testsuite/libgomp.fortran/pr81304.f90: New test.
11242 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
11244         PR fortran/81841
11245         * libgomp.fortran/pr81841.f90: New test.
11247 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
11249         PR libgomp/83106
11250         * target.c (gomp_target_init): Compute lengths just once and
11251         use them in both malloc size and subsequent copying.
11253 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11255         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11256         * acinclude.m4: Add cet.m4.
11257         * configure: Regenerate.
11258         * Makefile.in: Likewise.
11259         * testsuite/Makefile.in: Likewise.
11261 2017-11-15  Tom de Vries  <tom@codesourcery.com>
11263         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11264         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
11265         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11266         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
11267         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11268         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
11270 2017-11-14  Tom de Vries  <tom@codesourcery.com>
11272         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11273         non-nvidia devices.
11275 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
11277         PR c++/82835
11278         * testsuite/libgomp.c++/pr82835.C: New test.
11280 2017-11-06  Martin Liska  <mliska@suse.cz>
11282         * testsuite/libgomp.c++/loop-2.C: Return a value
11283         for functions with non-void return type, or change type to void,
11284         or add -Wno-return-type for test.
11285         * testsuite/libgomp.c++/loop-4.C: Likewise.
11286         * testsuite/libgomp.c++/parallel-1.C: Likewise.
11287         * testsuite/libgomp.c++/shared-1.C: Likewise.
11288         * testsuite/libgomp.c++/single-1.C: Likewise.
11289         * testsuite/libgomp.c++/single-2.C: Likewise.
11291 2017-10-31  Tom de Vries  <tom@codesourcery.com>
11293         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11294         "do {} while (false)".
11295         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11296         after HSA_DEBUG call.
11298 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
11300         * target.c (struct gomp_coalesce_buf): New type.
11301         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11302         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11303         (gomp_copy_host2dev): Add CBUF argument, if copying into
11304         the cached ranges, memcpy into buffer instead of copying
11305         into device.
11306         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11307         Add CBUF argument, pass it through to other calls.
11308         (gomp_map_vars): Aggregate copies from host to device if small enough
11309         and with small enough gaps in between into memcpy into a buffer and
11310         fewer host to device copies from the buffer.
11311         (gomp_update): Adjust gomp_copy_host2dev caller.
11313 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
11315         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11316         run" directive.
11317         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11318         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11319         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11320         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11322 2017-10-16  Tom de Vries  <tom@codesourcery.com>
11324         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11325         openacc_nvidia_accel_selected.
11326         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11327         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11328         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11329         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11330         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11331         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11332         openacc_nvidia_accel_selected. Skip for shared memory device.
11333         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11334         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11336 2017-10-09  Martin Jambor  <mjambor@suse.cz>
11338         PR hsa/82416
11339         * testsuite/libgomp.hsa.c/pr82416.c: New test.
11341 2017-10-07  Tom de Vries  <tom@codesourcery.com>
11343         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11344         Remove acc_device_nvidia references.
11345         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11346         Same.
11348 2017-10-05  Tom de Vries  <tom@codesourcery.com>
11350         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11351         vector_length(32) clause from acc parallel directive.
11352         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11354 2017-10-04  Tom de Vries  <tom@codesourcery.com>
11356         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11357         (main): Reduce sum of arr elements.  Assert that hres is exactly
11358         representable in 32-bit floating point.
11359         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11360         (main): Reduce sum of arr elements.  Assert that hres and hmres are
11361         exactly representable in 32-bit floating point.
11362         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11364 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11366         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11367         setting.
11368         * testsuite/libgomp.c++/pr69393.C: Same.
11369         * testsuite/libgomp.c++/taskloop-1.C: Same.
11370         * testsuite/libgomp.c++/taskloop-3.C: Same.
11371         * testsuite/libgomp.c++/taskloop-4.C: Same.
11372         * testsuite/libgomp.c/for-4.c: Same.
11373         * testsuite/libgomp.c/pr66199-3.c: Same.
11374         * testsuite/libgomp.c/pr66199-4.c: Same.
11375         * testsuite/libgomp.c/pr66199-6.c: Same.
11376         * testsuite/libgomp.c/taskloop-1.c: Same.
11377         * testsuite/libgomp.c/taskloop-3.c: Same.
11378         * testsuite/libgomp.c/taskloop-4.c: Same.
11379         * testsuite/libgomp.fortran/aligned1.f03: Same.
11380         * testsuite/libgomp.fortran/condinc1.f: Same.
11381         * testsuite/libgomp.fortran/condinc3.f90: Same.
11382         * testsuite/libgomp.fortran/crayptr1.f90: Same.
11383         * testsuite/libgomp.fortran/crayptr2.f90: Same.
11384         * testsuite/libgomp.fortran/crayptr3.f90: Same.
11385         * testsuite/libgomp.fortran/omp_cond1.f: Same.
11386         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11387         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11388         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11389         * testsuite/libgomp.fortran/recursion1.f90: Same.
11390         * testsuite/libgomp.fortran/target2.f90: Same.
11391         * testsuite/libgomp.fortran/target5.f90: Same.
11392         * testsuite/libgomp.fortran/task3.f90: Same.
11394 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11396         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11397         vector_length(32) clause from acc parallel directive.
11398         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11400 2017-09-27  Tom de Vries  <tom@codesourcery.com>
11402         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11403         Remove acc_device_nvidia references.
11405 2017-09-16  Tom de Vries  <tom@codesourcery.com>
11407         PR c/81875
11408         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11410 2017-09-14  Tom de Vries  <tom@codesourcery.com>
11412         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11413         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11414         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11415         * testsuite/libgomp.c/c.exp: Include test-cases from
11416         libgomp.c-c++-common.
11417         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
11418         files.
11420 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
11422         PR c++/81314
11423         * testsuite/libgomp.c++/pr81314.C: New test.
11425 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
11427         * libgomp.texi (Top): www.openacc.org now uses https.
11428         (Enabling OpenACC): Ditto.
11429         (acc_get_num_devices): Ditto.
11430         (acc_set_device_type): Ditto.
11431         (acc_get_device_type): Ditto.
11432         (acc_set_device_num): Ditto.
11433         (acc_get_device_num): Ditto.
11434         (acc_async_test): Ditto.
11435         (acc_async_test_all): Ditto.
11436         (acc_wait): Ditto.
11437         (acc_wait_all): Ditto.
11438         (acc_wait_all_async): Ditto.
11439         (acc_wait_async): Ditto.
11440         (acc_init): Ditto.
11441         (acc_shutdown): Ditto.
11442         (acc_on_device): Ditto.
11443         (acc_malloc): Ditto.
11444         (acc_free): Ditto.
11445         (acc_copyin): Ditto.
11446         (acc_present_or_copyin): Ditto.
11447         (acc_create): Ditto.
11448         (acc_present_or_create): Ditto.
11449         (acc_copyout): Ditto.
11450         (acc_delete): Ditto.
11451         (acc_update_device): Ditto.
11452         (acc_update_self): Ditto.
11453         (acc_map_data): Ditto.
11454         (acc_unmap_data): Ditto.
11455         (acc_deviceptr): Ditto.
11456         (acc_hostptr): Ditto.
11457         (acc_is_present): Ditto.
11458         (acc_memcpy_to_device): Ditto.
11459         (acc_memcpy_from_device): Ditto.
11460         (acc_get_current_cuda_device): Ditto.
11461         (acc_get_current_cuda_context): Ditto.
11462         (acc_get_cuda_stream): Ditto.
11463         (acc_set_cuda_stream): Ditto.
11464         (ACC_DEVICE_TYPE): Ditto.
11465         (ACC_DEVICE_NUM): Ditto.
11466         (OpenACC Library Interoperability): Ditto.
11468 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11470         PR c/81687
11471         * testsuite/libgomp.c/pr81687-1.c: New test.
11472         * testsuite/libgomp.c/pr81687-2.c: New test.
11474 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11476         PR c/69389
11477         * testsuite/libgomp.c/pr69389.c: New test.
11478         * testsuite/libgomp.c++/pr69389.C: New test.
11480 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11482         PR middle-end/78266
11483         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11484         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11486 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
11488         PR c/45784
11489         * testsuite/libgomp.c/pr45784.c: New test.
11490         * testsuite/libgomp.c++/pr45784.C: New test.
11492 2017-07-19  Tom de Vries  <tom@codesourcery.com>
11494         * testsuite/libgomp.oacc-c/vec.c: New test.
11496 2017-07-03  Tom de Vries  <tom@codesourcery.com>
11498         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11500 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11502         * plugin/plugin-nvptx.c (notify_var): New function.
11503         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11505 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11507         * env.c (parse_unsigned_long_1): Factor out of ...
11508         (parse_unsigned_long): ... here.
11509         (parse_int_1): Factor out of ...
11510         (parse_int): ... here.
11511         (parse_int_secure): New function.
11512         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11513         * secure_getenv.h: Factor out of ...
11514         * plugin/plugin-hsa.c: ... here.
11515         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11517 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
11519         PR c++/81130
11520         * testsuite/libgomp.c++/pr81130.C: New test.
11522 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11524         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11525         default args.
11526         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11527         dg-xfail-run-if default args.
11529 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11531         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11532         * testsuite/libgomp.c/pr39591-3.c: Likewise.
11534 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
11536         PR libgomp/80822
11537         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11538         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
11539         sibling lists, depending on level just pick up what CPUs to put
11540         together into a place vs. whether add multiple ordered places.
11542 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
11544         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11545         * libgomp.map (OACC_2.0.1): Add these.
11546         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11547         for "acc_wait", and "acc_wait_all", respectively.
11548         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11549         for "acc_wait", and "acc_wait_all", respectively.
11550         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11551         * libgomp.texi (acc_wait, acc_wait_all): Update.
11552         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11553         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11554         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11556         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11557         acc_present_or_copyin and acc_present_or_create procedures,
11558         respectively.
11559         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11560         generally different variants of OpenACC Runtime Library functions.
11561         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11563         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11564         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11566         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11567         of preprocessor definitions.
11568         * libgomp.h (strong_alias): Guard by "#ifdef
11569         HAVE_ATTRIBUTE_ALIAS".
11570         * oacc-mem.c: Provide "acc_pcreate" as alias for
11571         "acc_present_or_create", and "acc_pcopyin" as alias for
11572         "acc_present_or_copyin".
11573         * libgomp.map: New version "OACC_2.0.1".
11574         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11575         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11576         its content into...
11577         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11578         Extend testing.
11580         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11581         when disabling nvptx offloading.
11583 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11585         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11586         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11587         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11589         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11590         * testsuite/lib/libgomp.exp
11591         (check_effective_target_openacc_nvidia_accel_configured): New
11592         proc.
11593         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11594         (check_effective_target_c++): New procs.
11595         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11596         (check_effective_target_c++): Likewise.
11598 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11600         PR middle-end/80809
11601         * testsuite/libgomp.c/pr80809-2.c: New test.
11602         * testsuite/libgomp.c/pr80809-3.c: New test.
11604         PR middle-end/80809
11605         * testsuite/libgomp.c/pr80809-1.c: New test.
11607         PR middle-end/80853
11608         * testsuite/libgomp.c/pr80853.c: New test.
11610 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11612         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11613         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11614         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11615         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11616         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11618         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11619         Debug output for failure.
11621 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11623         * testsuite/lib/libgomp.exp: Load scanlang.exp.
11625 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
11627         PR bootstrap/80531
11628         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11629         bootstrap compare failures.
11631 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11633         * testsuite/libgomp.c/target-36.c: New testcase.
11635 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11637         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11638         instead of char.
11640 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11642         PR libgomp/80394
11643         * testsuite/libgomp.c/pr80394.c: New test.
11645 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
11647         PR libgomp/79876
11648         * config/posix/thread-stacksize.h: New file.
11649         * config/darwin/thread-stacksize.h: New file.
11650         * config/nvptx/thread-stacksize.h: New file.
11651         * env.c: Include thread-stacksize.h.
11652         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11653         instead of 0.  Call pthread_attr_setstacksize even if
11654         GOMP_DEFAULT_STACKSIZE is non-zero.
11656 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
11658         * env.c (initialize_env): Initialize stacksize to 0.
11660 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
11662         PR c++/80029
11663         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11665 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11667         PR c/79940
11668         * testsuite/libgomp.c/pr79940.c: New test.
11670 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11672         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11673         targets.
11674         Add __float128 options.
11676 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
11678         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11679         hppa*-*-* dg-skip-if directive.
11681 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11683         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11684         dg-skip-if directive into a comment.
11686 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11687             Chung-Lin Tang  <cltang@codesourcery.com>
11689         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11690         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11691         add additional case.
11692         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11693         "openacc_nvidia_accel_selected".
11694         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11695         Add num_workers(8) clause.
11697 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
11699         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11700         hppa*-*-*.
11701         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11702         include complex.h on hppa*-*-hpux*.
11703         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11705 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11707         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11709         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11710         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
11711         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11712         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
11713         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11714         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
11715         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11716         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
11717         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11718         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
11720 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
11722         * libgomp-plugin.h: #include <stdbool.h>.
11723         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11724         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11725         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11726         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11727         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11728         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11729         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11730         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11731         (GOMP_OFFLOAD_openacc_register_async_cleanup)
11732         (GOMP_OFFLOAD_openacc_async_test)
11733         (GOMP_OFFLOAD_openacc_async_test_all)
11734         (GOMP_OFFLOAD_openacc_async_wait)
11735         (GOMP_OFFLOAD_openacc_async_wait_async)
11736         (GOMP_OFFLOAD_openacc_async_wait_all)
11737         (GOMP_OFFLOAD_openacc_async_wait_all_async)
11738         (GOMP_OFFLOAD_openacc_async_set_async)
11739         (GOMP_OFFLOAD_openacc_create_thread_data)
11740         (GOMP_OFFLOAD_openacc_destroy_thread_data)
11741         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11742         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11743         (GOMP_OFFLOAD_openacc_get_cuda_stream)
11744         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11745         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11746         these.
11747         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11748         (GOMP_OFFLOAD_unload_image): Fix argument types.
11750 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
11752         * testsuite/lib/libgomp.exp
11753         (check_effective_target_hsa_offloading_selected_nocache): Fix up
11754         check_compile invocation.  Fix up removal of executable.  Drop
11755         bogus "2>&1" argument.
11757         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11758         directive.
11760 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
11761             Martin Jambor  <mjambor@suse.cz>
11763         * plugin/hsa.h: Moved to top level include.
11764         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11766 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
11768         PR other/79046
11769         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11770         of cat to get version from BASE-VER file.
11771         * testsuite/Makefile.in: Regenerated.
11773 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
11775         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11776         for _WIN64.
11778 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11780         * plugin/hsa.h: Add GCC runtime library exception.
11781         * plugin/hsa_ext_finalize.h: Likewise.
11783         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11784         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
11785         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11786         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11787         plugin/include/cuda as include dir and -ldl instead of -lcuda as
11788         library to link ptx plugin against.
11789         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11790         (CUDA_CALLS): Define.
11791         (cuda_lib, cuda_lib_inited): New variables.
11792         (init_cuda_lib): New function.
11793         (CUDA_CALL_PREFIX): Define.
11794         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11795         (CUDA_CALL): Use FN instead of (FN).
11796         (CUDA_CALL_NOCHECK): Define.
11797         (cuda_error, fini_streams_for_device, select_stream_for_async,
11798         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11799         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11800         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11801         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11802         CUDA_CALL_NOCHECK.
11803         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
11804         CUDA_CALL_NOCHECK.
11805         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11806         Use CUDA_CALL_NOCHECK.
11807         * plugin/cuda/cuda.h: New file.
11808         * config.h.in: Regenerated.
11809         * configure: Regenerated.
11811         PR other/79046
11812         * configure.ac: Add GCC_BASE_VER.
11813         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11814         get version from BASE-VER file.
11815         * testsuite/Makefile.in: Regenerated.
11816         * configure: Regenerated.
11817         * Makefile.in: Regenerated.
11819 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11821         PR libgomp/60670
11822         * Makefile.am: Make fincludedir multilib-aware.
11823         * Makefile.in: Regenerate.
11825 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
11827         Update copyright years.
11829         * libgomp.texi: Bump @copying's copyright year.
11831 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11833         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11834         pthread_spinlock_t instead of gomp_mutex_t lock.
11835         (gomp_get_thread_pool): Likewise.
11836         (gomp_release_thread_pool): Likewise.
11837         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11838         Likewise.
11840 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11842         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11843         thread pool in case nthreads == 1.
11845 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11847         * config/nvptx/env.c: Delete.
11848         * icv.c: Move definitions of ICV variables back ...
11849         * env.c: ...here.  Do not compile environment-related functionality if
11850         LIBGOMP_OFFLOADED_ONLY is set.
11852 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11854         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11855         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11856         * configure: Regenerate.
11857         * config.h.in: Likewise.
11859 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11861         * Makefile.in: Regenerate with automake-1.11.6.
11862         * aclocal.m4: Likewise.
11863         * configure: Likewise.
11864         * testsuite/Makefile.in: Likewise.
11866 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
11868         * config/nvptx/critical.c: Delete to use generic implementation.
11870 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11872         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11873         ../../affinity.c as fallback.
11874         * config/nvptx/affinity.c: Delete to use fallback implementation.
11876 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
11877             Jakub Jelinek  <jakub@redhat.com>
11878             Dmitry Melnik  <dm@ispras.ru>
11880         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11881         * Makefile.in. Regenerate.
11882         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11883         (LIBGOMP_USE_PTHREADS): ...here; new define.
11884         * configure: Regenerate.
11885         * config.h.in: Likewise.
11886         * config/posix/affinity.c: Move to...
11887         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
11888         interface by LIBGOMP_USE_PTHREADS. 
11889         * critical.c: Split out GOMP_atomic_{start,end} into...
11890         * atomic.c: ...here (new file).
11891         * env.c: Split out ICV definitions into...
11892         * icv.c: ...here (new file) and...
11893         * icv-device.c: ...here. New file.
11894         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11895         (gomp_destroy_lock_30): Ditto.
11896         (gomp_set_lock_30): Ditto.
11897         (gomp_unset_lock_30): Ditto.
11898         (gomp_test_lock_30): Ditto.
11899         (gomp_init_nest_lock_30): Ditto.
11900         (gomp_destroy_nest_lock_30): Ditto.
11901         (gomp_set_nest_lock_30): Ditto.
11902         (gomp_unset_nest_lock_30): Ditto.
11903         (gomp_test_nest_lock_30): Ditto.
11904         * lock.c: New.
11905         * config/nvptx/lock.c: New.
11906         * config/nvptx/bar.c: New.
11907         * config/nvptx/bar.h: New.
11908         * config/nvptx/doacross.h: New.
11909         * config/nvptx/error.c: New.
11910         * config/nvptx/icv-device.c: New.
11911         * config/nvptx/mutex.h: New.
11912         * config/nvptx/pool.h: New.
11913         * config/nvptx/proc.c: New.
11914         * config/nvptx/ptrlock.h: New.
11915         * config/nvptx/sem.h: New.
11916         * config/nvptx/simple-bar.h: New.
11917         * config/nvptx/target.c: New.
11918         * config/nvptx/task.c: New.
11919         * config/nvptx/team.c: New.
11920         * config/nvptx/time.c: New.
11921         * config/posix/simple-bar.h: New.
11922         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
11923         (gomp_num_teams_var): Declare.
11924         (struct gomp_thread_pool): Change threads_dock member to
11925         gomp_simple_barrier_t.
11926         [__nvptx__] (gomp_thread): New implementation.
11927         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11928         (gomp_thread_destructor): Ditto.
11929         (gomp_init_thread_affinity): Ditto.
11930         * team.c: Guard uses of Pthreads-specific interfaces by
11931         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
11932         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11933         * config/nvptx/alloc.c: Delete.
11934         * config/nvptx/barrier.c: Ditto.
11935         * config/nvptx/fortran.c: Ditto.
11936         * config/nvptx/iter.c: Ditto.
11937         * config/nvptx/iter_ull.c: Ditto.
11938         * config/nvptx/loop.c: Ditto.
11939         * config/nvptx/loop_ull.c: Ditto.
11940         * config/nvptx/ordered.c: Ditto.
11941         * config/nvptx/parallel.c: Ditto.
11942         * config/nvptx/priority_queue.c: Ditto.
11943         * config/nvptx/sections.c: Ditto.
11944         * config/nvptx/single.c: Ditto.
11945         * config/nvptx/splay-tree.c: Ditto.
11946         * config/nvptx/work.c: Ditto.
11947         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11948         -foffload=-lgfortran in addition to -lgfortran.
11949         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11950         * plugin/plugin-nvptx.c: Include <limits.h>.
11951         (struct targ_fn_descriptor): Add new fields.
11952         (struct ptx_device): Ditto.  Set them...
11953         (nvptx_open_device): ...here.
11954         (nvptx_adjust_launch_bounds): New.
11955         (nvptx_host2dev): Allow NULL 'nvthd'.
11956         (nvptx_dev2host): Ditto.
11957         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11958         (link_ptx): Adjust log sizes.
11959         (nvptx_host2dev): Allow NULL 'nvthd'.
11960         (nvptx_dev2host): Ditto.
11961         (nvptx_set_clocktick): New.  Use it...
11962         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
11963         fields.
11964         (GOMP_OFFLOAD_dev2dev): New.
11965         (nvptx_adjust_launch_bounds): New.
11966         (nvptx_stacks_size): New.
11967         (nvptx_stacks_alloc): New.
11968         (nvptx_stacks_free): New.
11969         (GOMP_OFFLOAD_run): New.
11970         (GOMP_OFFLOAD_async_run): New (stub).
11972 2016-11-23  Martin Jambor  <mjambor@suse.cz>
11974         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11975         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11976         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11978 2016-11-23  Martin Liska  <mliska@suse.cz>
11979             Martin Jambor  <mjambor@suse.cz>
11981         * plugin/hsa.h: New file.
11982         * plugin/hsa_ext_finalize.h: New file.
11983         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
11984         header file unistd.h, and functions secure_getenv, __secure_getenv,
11985         getuid, geteuid, getgid and getegid.
11986         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11987         -D_GNU_SOURCE.
11988         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11989         Handle various cases of secure_getenv presence, add an implementation
11990         when we can test effective UID and GID.
11991         (struct hsa_runtime_fn_info): New structure.
11992         (hsa_runtime_fn_info hsa_fns): New variable.
11993         (hsa_runtime_lib): Likewise.
11994         (support_cpu_devices): Likewise.
11995         (init_enviroment_variables): Load newly introduced ENV
11996         variables.
11997         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11998         (hsa_fatal): Likewise.
11999         (DLSYM_FN): New macro.
12000         (init_hsa_runtime_functions): New function.
12001         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12002         structure.  Depending on environment, also allow CPU devices.
12003         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12004         (get_kernarg_memory_region): Likewise.
12005         (GOMP_OFFLOAD_init_device): Likewise.
12006         (destroy_hsa_program): Likewise.
12007         (init_basic_kernel_info): New function.
12008         (GOMP_OFFLOAD_load_image): Use it.
12009         (create_and_finalize_hsa_program): Call hsa run-time functions via
12010         hsa_fns structure.
12011         (create_single_kernel_dispatch): Likewise.
12012         (release_kernel_dispatch): Likewise.
12013         (init_single_kernel): Likewise.
12014         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12015         (get_group_size): New function.
12016         (run_kernel): Likewise.
12017         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12018         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12019         structure.
12020         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12021         * testsuite/libgomp-test-support.exp.in: Likewise.
12022         * Makefile.in: Regenerated.
12023         * aclocal.m4: Likewise.
12024         * config.h.in: Likewise.
12025         * configure: Likewise.
12026         * testsuite/Makefile.in: Likewise.
12028 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12029             Alexander Monakov  <amonakov@ispras.ru>
12031         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12032         mapping clauses to target constructs.
12033         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12035 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12037         * configure: Regenerate.
12039 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12041         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12042         * omp_lib.h.in (openmp_version): Likewise.
12043         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12044         of 201307.
12045         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12047         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12048         (fib_wrapper): Add map(from: x) clause.
12049         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12050         (e_53_2): Likewise.
12051         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12052         (accum): Add map(tmp) clause.
12053         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12054         (accum): Add map(tofrom: tmp) clause.
12055         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12056         (gramSchmidt): Likewise.
12057         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12058         map(tofrom: sum) clause.
12059         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12060         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12061         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12062         only allowed on the loop iterator.
12063         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12064         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12065         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12066         * testsuite/libgomp.fortran/doacross1.f90: New test.
12067         * testsuite/libgomp.fortran/doacross3.f90: New test.
12068         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12069         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12070         * testsuite/libgomp.fortran/doacross2.f90: New test.
12071         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12072         #pragma omp atomic read.
12073         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12074         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12076 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12077             Nathan Sidwell  <nathan@acm.org>
12079         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12080         to determine default geometry.
12081         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12082         dimension.
12084 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12086         * hashtab.h: Use standard GPLv3 with runtime exception
12087         boilerplate.
12089 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12091         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12092         size when allocating new thread.
12094 2016-09-14  Marek Polacek  <polacek@redhat.com>
12096         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12098 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12100         PR fortran/71014
12101         * testsuite/libgomp.fortran/pr71014.f90: New test.
12103 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12105         PR middle-end/70895
12106         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12107         firstprivate clauses.
12108         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12109         copy clauses.
12110         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12111         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12112         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12113         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12114         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12115         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12116         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12117         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12118         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12119         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12120         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12121         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12123 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12125         PR fortran/70598
12126         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12128 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12130         PR c++/58706
12131         * testsuite/libgomp.c++/pr58706.C: New test.
12133 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12135         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12136         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12137         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12138         Likewise.
12139         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12140         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12141         Likewise.
12142         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12144         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12145         test, and don't hardcode -O0.
12147 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12149         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12151 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12153         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12154         test.
12156 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12158         PR middle-end/71734
12159         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12160         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12162 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12164         PR fortran/71717
12165         * testsuite/libgomp.fortran/associate3.f90: New test.
12167 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12169         * testsuite/libgomp.c++/target-21.C: New test.
12171 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12173         * testsuite/libgomp.c++/target-20.C: New test.
12175 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12176             Cesar Philippidis  <cesar@codesourcery.com>
12178         PR middle-end/71373
12179         * libgomp.oacc-c/nested-function-1.c: New file.
12180         * libgomp.oacc-c/nested-function-2.c: Likewise.
12181         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12182         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12183         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12185 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12187         PR c/71381
12188         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12189         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12190         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12192 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
12194         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12195         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12197 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
12199         PR c/70688
12200         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12202 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12204         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12205         instead of invalid schedule(static, 0).
12206         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12208 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12210         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12211         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12212         parameter, use to set async stream around call to gomp_unmap_vars,
12213         call gomp_unmap_vars() with 'do_copyfrom' set to true.
12214         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12215         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12216         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12217         (event_add): Add int parameter, initialize 'val' field when
12218         adding new ptx_event struct.
12219         (nvptx_evec): Adjust event_add() call arguments.
12220         (nvptx_host2dev): Likewise.
12221         (nvptx_dev2host): Likewise.
12222         (nvptx_wait_async): Likewise.
12223         (nvptx_wait_all_async): Likewise.
12224         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12225         pass to event_add() call.
12226         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12227         parameter.
12228         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12229         call openacc.register_async_cleanup_func() hook.
12230         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12231         * target.c (gomp_copy_from_async): Delete function.
12232         (gomp_map_vars): Remove async_refcount.
12233         (gomp_unmap_vars): Likewise.
12234         (gomp_load_image_to_device): Likewise.
12235         (omp_target_associate_ptr): Likewise.
12236         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12237         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12238         (gomp_copy_from_async): Remove.
12240 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12242         * target.c (gomp_device_copy): New function.
12243         (gomp_copy_host2dev): Likewise.
12244         (gomp_copy_dev2host): Likewise.
12245         (gomp_free_device_memory): Likewise.
12246         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12247         (gomp_map_pointer): Likewise.
12248         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12249         NULL value from alloc_func plugin hook.
12250         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12251         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12252         (gomp_unmap_vars): Likewise.
12253         (gomp_update): Adjust to call gomp_copy_dev2host and
12254         gomp_copy_host2dev functions.
12255         (gomp_unload_image_from_device): Handle false value from
12256         unload_image_func plugin hook.
12257         (gomp_init_device): Handle false value from init_device_func
12258         plugin hook.
12259         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12260         (omp_target_free): Adjust to call gomp_free_device_memory.
12261         (omp_target_memcpy): Handle return values from host2dev_func,
12262         dev2host_func, and dev2dev_func plugin hooks.
12263         (omp_target_memcpy_rect_worker): Likewise.
12264         (gomp_target_fini): Handle false value from fini_device_func
12265         plugin hook.
12266         * libgomp.h (struct gomp_device_descr): Adjust return type of
12267         init_device_func, fini_device_func, unload_image_func, free_func,
12268         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12269         * oacc-init.c (acc_shutdown_1): Handle false value from
12270         fini_device_func plugin hook.
12271         * oacc-host.c (host_init_device): Change return type to bool.
12272         (host_fini_device): Likewise.
12273         (host_unload_image): Likewise.
12274         (host_free): Likewise.
12275         (host_dev2host): Likewise.
12276         (host_host2dev): Likewise.
12277         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12278         (acc_memcpy_to_device): Likewise.
12279         (acc_memcpy_from_device): Likewise.
12280         (delete_copyout): Add libfnname parameter, handle free_func
12281         hook fatal error case.
12282         (acc_delete): Adjust delete_copyout call.
12283         (acc_copyout): Likewise.
12284         (update_dev_host): Move gomp_mutex_unlock to after
12285         host2dev/dev2host hook calls.
12287         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12288         to 'hsa_error_msg', for clarity.
12289         (hsa_fatal): Likewise.
12290         (hsa_error): New function.
12291         (init_hsa_context): Change return type to bool, adjust to return
12292         false on error.
12293         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12294         return value.
12295         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12296         return false on error.
12297         (get_agent_info): Adjust to return NULL on error.
12298         (destroy_hsa_program): Change return type to bool, adjust to
12299         return false on error.
12300         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12301         (destroy_module): Change return type to bool, adjust to
12302         return false on error.
12303         (GOMP_OFFLOAD_unload_image): Likewise.
12304         (GOMP_OFFLOAD_fini_device): Likewise.
12305         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12306         (GOMP_OFFLOAD_free): Change to return false when called.
12307         (GOMP_OFFLOAD_dev2host): Likewise.
12308         (GOMP_OFFLOAD_host2dev): Likewise.
12309         (GOMP_OFFLOAD_dev2dev): Likewise.
12311         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12312         (CUDA_CALL): Likewise.
12313         (CUDA_CALL_ASSERT): Likewise.
12314         (map_init): Change return type to bool, use CUDA_CALL* macros.
12315         (map_fini): Likewise.
12316         (init_streams_for_device): Change return type to bool, adjust
12317         call to map_init.
12318         (fini_streams_for_device): Change return type to bool, adjust
12319         call to map_fini.
12320         (select_stream_for_async): Release stream_lock before calls to
12321         GOMP_PLUGIN_fatal, adjust call to map_init.
12322         (nvptx_init): Use CUDA_CALL* macros.
12323         (nvptx_attach_host_thread_to_device): Change return type to bool,
12324         use CUDA_CALL* macros.
12325         (nvptx_open_device): Use CUDA_CALL* macros.
12326         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12327         macros.
12328         (nvptx_get_num_devices): Use CUDA_CALL* macros.
12329         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12330         (nvptx_exec): Use CUDA_CALL* macros.
12331         (nvptx_alloc): Use CUDA_CALL* macros.
12332         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12333         (nvptx_host2dev): Likewise.
12334         (nvptx_dev2host): Likewise.
12335         (nvptx_wait): Use CUDA_CALL* macros.
12336         (nvptx_wait_async): Likewise.
12337         (nvptx_wait_all): Likewise.
12338         (nvptx_wait_all_async): Likewise.
12339         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12340         use CUDA_CALL* macros, adjust call to map_fini.
12341         (GOMP_OFFLOAD_init_device): Change return type to bool,
12342         adjust code accordingly.
12343         (GOMP_OFFLOAD_fini_device): Likewise.
12344         (GOMP_OFFLOAD_load_image): Adjust calls to
12345         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12346         use CUDA_CALL* macros.
12347         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12348         return code.
12349         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12350         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12351         handle error return.
12352         (GOMP_OFFLOAD_dev2host): Likewise.
12353         (GOMP_OFFLOAD_host2dev): Likewise.
12354         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12355         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12357 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12359         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12360         (acc_free): Likewise.
12361         (acc_memcpy_to_device): Likewise.
12362         (acc_memcpy_from_device): Likewise.
12363         (acc_deviceptr): Likewise.
12364         (acc_hostptr): Likewise.
12365         (acc_is_present): Likewise.
12366         (acc_map_data): Likewise.
12367         (acc_unmap_data): Likewise.
12368         (present_create_copy): Likewise.
12369         (delete_copyout): Likewise.
12370         (update_dev_host): Likewise.
12371         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12372         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12373         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12374         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12375         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12376         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12377         it only runs on nvptx targets.
12378         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12379         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12380         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12381         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12382         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12383         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12384         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12385         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12386         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12387         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12388         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12389         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12390         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12391         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12392         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12393         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12394         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12395         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12396         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12397         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12398         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12399         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12400         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12402 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12404         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12406 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
12408         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12409         to gomp_init_targets_once.
12410         (acc_set_device_type): Remove !cached_base_dev condition on call to
12411         gomp_init_targets_once, move call to before acc_device_lock acquire,
12412         to avoid deadlock.
12413         (acc_get_device_num): Remove !cached_base_dev condition on call to
12414         gomp_init_targets_once.
12415         (acc_set_device_num): Likewise.
12417 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12419         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12421 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12423         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12424         expected partitioning.
12426 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
12428         PR middle-end/70626
12429         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12430         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12431         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12433 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
12435         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12436         non-fatal.
12438 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12440         PR middle-end/70680
12441         * testsuite/libgomp.c/pr70680-1.c: New test.
12442         * testsuite/libgomp.c/pr70680-2.c: New test.
12444 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12446         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12447         pass parameter variables to subroutines.
12449 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12451         PR middle-end/70643
12452         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12454 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
12456         PR testsuite/68242
12457         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12458         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12460 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
12462         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12463         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12464         GOACC_declare prototype.
12466         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12467         Merge this file, and...
12468         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12469         ... this file, and...
12470         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12471         ... this file, and...
12472         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12473         ... this file, and...
12474         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12475         ... this file, and...
12476         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12477         ... this file, and...
12478         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12479         ... this file, and...
12480         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12481         ... this file, and...
12482         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12483         ... this file, and...
12484         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12485         ... this file, and...
12486         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12487         ... this file, and...
12488         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12489         ... this file, and...
12490         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12491         ... this file into...
12492         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12493         file.
12495         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12496         Make failure observable.
12498 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12500         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12501         field.
12502         * target.c (gomp_target_fallback_firstprivate,
12503         gomp_target_unshare_firstprivate): Removed.
12504         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12505         before waiting for dependencies.
12506         (gomp_target_task_fn): Don't copy firstprivate vars here.
12507         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12508         firstprivate_copies here.
12509         (gomp_create_target_task): Don't initialize firstprivate_copies field.
12510         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12511         explicit/implicit firstprivate.
12513 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12515         PR lto/70289
12516         PR ipa/70348
12517         PR tree-optimization/70373
12518         PR middle-end/70533
12519         PR middle-end/70534
12520         PR middle-end/70535
12521         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12522         test.
12523         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12524         test.
12525         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12526         test.
12527         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12528         test.
12529         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12530         test.
12531         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12532         test.
12533         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12534         test.
12535         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12536         test.
12537         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12538         test.
12539         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12540         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12541         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12542         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12543         test.
12544         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12545         test.
12546         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12547         test.
12548         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12549         test.
12550         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12551         coverage.
12552         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12553         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12554         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12555         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12556         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12557         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12558         coverage.
12559         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12560         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12561         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12562         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12563         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12564         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12565         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12566         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12567         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12568         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12569         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12570         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12571         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12572         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12573         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12575 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
12576             James Norris  <jnorris@codesourcery.com>
12577             Nathan Sidwell  <nathan@codesourcery.com>
12578             Julian Brown  <julian@codesourcery.com>
12579             Cesar Philippidis  <cesar@codesourcery.com>
12580             Chung-Lin Tang  <cltang@codesourcery.com>
12581             Tom de Vries  <tom@codesourcery.com>
12583         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12584         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12585         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12586         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12587         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12588         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12589         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12590         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12591         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12592         XFAIL.
12593         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12594         Incorporate...
12595         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12596         file.
12597         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12598         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12599         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12600         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12601         Likewise.
12602         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12603         Likewise.
12604         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12605         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12606         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12607         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12608         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12609         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12610         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12611         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12612         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12613         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12614         Likewise.
12615         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12616         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12617         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12618         file...
12619         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12620         file into...
12621         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12622         file.  Update.
12623         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12624         file.
12625         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12626         Likewise.
12627         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12628         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12629         ... this new file.  Update.
12630         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12631         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12632         ... this new file.  Update.
12633         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12634         file.  Incorporate...
12635         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12636         file, and...
12637         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12638         file, and...
12639         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12640         file.
12641         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12643 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12645         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12646         set-torture-options.
12648 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
12650         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12651         gcc-dg-runtest.
12652         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12653         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12654         -fno-builtin-acc_on_device instead of -O0.
12655         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12656         -O0.
12657         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12658         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12659         Likewise.
12660         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12661         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12662         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12663         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12664         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12665         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12666         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12667         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12668         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12669         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12670         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12671         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12672         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12673         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12674         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12675         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12676         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12677         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12678         Don't specify -O2.
12679         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12680         Likewise.
12681         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12682         Likewise.
12684 2016-03-24  Martin Liska  <mliska@suse.cz>
12686         * plugin/plugin-hsa.c (packet_store_release): New function
12687         that is taken from the HSA runtime manual.
12688         (GOMP_OFFLOAD_run): Use the function.
12690 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12692         PR c++/70376
12693         * testsuite/libgomp.c++/pr70376.C: New test.
12695 2016-03-23  Tom de Vries  <tom@codesourcery.com>
12697         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12698         initialization of lresult and lvresult.
12699         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12701 2016-03-23  James Norris  <jnorris@codesourcery.com>
12702             Daichi Fukuoka <dc-fukuoka@sgi.com>
12704         PR libgomp/69414
12705         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12706         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12707         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12708         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12710 2016-03-23  Martin Liska  <mliska@suse.cz>
12712         PR hsa/70337
12713         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12714         argument just in case a dispatched kernel uses that argument.
12716 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
12718         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12719         -ftree-parallelize-loops/-fopenacc changes.
12720         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12721         Likewise.
12722         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12723         Likewise.
12724         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12725         Likewise.
12726         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12727         Likewise.
12728         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12729         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12731 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
12733         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12734         always_ld_library_path the path to libgcc_s.
12736 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
12738         PR testsuite/70009
12739         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12741 2016-03-09  Tom de Vries  <tom@codesourcery.com>
12743         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12744         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12745         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12746         Same.
12747         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12748         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12749         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12750         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12752 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12754         * testsuite/lib/libgomp.exp
12755         (check_effective_target_hsa_offloading_selected_nocache): New.
12756         (check_effective_target_hsa_offloading_selected): Likewise.
12757         * testsuite/libgomp.hsa.c/c.exp: Likewise.
12758         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12759         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12760         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12761         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12762         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12763         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12764         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12765         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12766         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12767         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12768         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12769         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12770         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12771         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12772         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12773         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12775 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12777         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12778         non-shared memory accelerators.
12779         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12780         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12781         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12782         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12783         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12784         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12785         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12786         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12787         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12789 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12791         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12792         ALWAYS_CFLAGS.
12794 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12796         PR libgomp/69555
12797         * testsuite/libgomp.c++/pr69555-1.C: New test.
12798         * testsuite/libgomp.c++/pr69555-2.C: New test.
12800 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
12801             Martin Jambor  <mjambor@suse.cz>
12803         * testsuite/lib/libgomp.exp
12804         (check_effective_target_offload_device_shared_as): New proc.
12805         * testsuite/libgomp.c++/declare_target-1.C: New test.
12807 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
12809         PR driver/68463
12810         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12812 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
12814         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12815         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12816         dims.
12817         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12818         -ftree-parallelize-loops/-fopenacc changes.
12819         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12820         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12821         Likewise.
12822         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12823         Likewise.
12824         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12825         Likewise.
12826         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12827         Likewise.
12828         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12829         Likewise.
12830         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12831         Likewise.
12832         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12833         Likewise.
12834         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12835         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12836         Likewise.
12837         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12838         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12839         Likewise.
12840         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12841         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12842         Likewise.
12844 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
12846         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12848 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12850         PR driver/69805
12851         * testsuite/libgomp.c/pr69805.c: New test.
12853 2016-02-16  Tom de Vries  <tom@codesourcery.com>
12855         PR lto/67709
12856         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12858 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12860         PR tree-optimization/69599
12861         * testsuite/libgomp.c/omp-nested-3.c: New test.
12862         * testsuite/libgomp.c/pr46032-2.c: New test.
12863         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12864         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12866 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12868         PR lto/69707
12869         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12871 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12873         * testsuite/libgomp.c/target-31.c: Fix testcase.
12875 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12877         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12878         clause.
12879         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12880         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12881         reduction and map clauses.
12882         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12884 2016-02-02  James Norris  <jnorris@codesourcery.com>
12886         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12888 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12890         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12891         * oacc-parallel.c (GOACC_host_data): Remove function definition.
12893         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12894         cases.
12896         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12897         variables.
12898         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12899         (hsa_kmt_lib): Set variables.
12900         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12901         always_ld_library_path.
12902         * Makefile.in: Regenerate.
12903         * configure: Likewise.
12904         * testsuite/Makefile.in: Likewise.
12906         * plugin/configfrag.ac (offload_additional_options)
12907         (offload_additional_lib_paths): Don't amend for hsa offloading.
12908         * configure: Regenerate.
12910         * plugin/configfrag.ac: Don't configure for offloading target if
12911         we don't build the corresponding plugin.
12912         * configure: Regenerate.
12914 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
12916         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12917         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12919 2016-01-26  Tom de Vries  <tom@codesourcery.com>
12921         PR tree-optimization/69110
12922         * testsuite/libgomp.c/pr69110.c: New test.
12924 2016-01-25  Richard Biener  <rguenther@suse.de>
12926         PR lto/69393
12927         * testsuite/libgomp.c++/pr69393.C: New testcase.
12929 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
12931         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12932         function wasn't mapped to the device with non-shared memory.
12934 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
12936         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12938 2016-01-19  Martin Jambor  <mjambor@suse.cz>
12939             Martin Liska  <mliska@suse.cz>
12941         * plugin/Makefrag.am: Add HSA plugin requirements.
12942         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12943         (HSA_RUNTIME_LIB): Likewise.
12944         (HSA_RUNTIME_CPPFLAGS): Likewise.
12945         (HSA_RUNTIME_INCLUDE): New substitution.
12946         (HSA_RUNTIME_LIB): Likewise.
12947         (HSA_RUNTIME_LDFLAGS): Likewise.
12948         (hsa-runtime): New configure option.
12949         (hsa-runtime-include): Likewise.
12950         (hsa-runtime-lib): Likewise.
12951         (PLUGIN_HSA): New substitution variable.
12952         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12953         configure options.
12954         (PLUGIN_HSA_CPPFLAGS): Likewise.
12955         (PLUGIN_HSA_LDFLAGS): Likewise.
12956         (PLUGIN_HSA_LIBS): Likewise.
12957         Check that we have access to HSA run-time.
12958         * libgomp-plugin.h (offload_target_type): New element
12959         OFFLOAD_TARGET_TYPE_HSA.
12960         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12961         args.
12962         (bool gomp_create_target_task): Updated.
12963         (gomp_device_descr): Extra parameter of run_func and async_run_func,
12964         new field can_run_func.
12965         * libgomp_g.h (GOMP_target_ext): Update prototype.
12966         * oacc-host.c (host_run): Added a new parameter args.
12967         * target.c (calculate_firstprivate_requirements): New function.
12968         (copy_firstprivate_data): Likewise.
12969         (gomp_target_fallback_firstprivate): Use them.
12970         (gomp_target_unshare_firstprivate): New function.
12971         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12972         devices.
12973         (GOMP_target): Do host fallback for all shared memory devices.  Do not
12974         pass any args to plugins.
12975         (GOMP_target_ext): Introduce device-specific argument parameter args.
12976         Allow host fallback if device shares memory.  Do not remap data if
12977         device has shared memory.
12978         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
12979         like host fallback for mappings.
12980         (GOMP_target_data): Treat shared memory devices like host fallback.
12981         (GOMP_target_data_ext): Likewise.
12982         (GOMP_target_update): Likewise.
12983         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
12984         gomp_create_target_task.
12985         (GOMP_target_enter_exit_data): Likewise.
12986         (omp_target_alloc): Treat shared memory devices like host fallback.
12987         (omp_target_free): Likewise.
12988         (omp_target_is_present): Likewise.
12989         (omp_target_memcpy): Likewise.
12990         (omp_target_memcpy_rect): Likewise.
12991         (omp_target_associate_ptr): Likewise.
12992         (gomp_load_plugin_for_device): Also load can_run.
12993         * task.c (GOMP_PLUGIN_target_task_completion): Free
12994         firstprivate_copies.
12995         (gomp_create_target_task): Accept new argument args and store it to
12996         ttask.
12997         * plugin/plugin-hsa.c: New file.
12999 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13001         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13002         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13003         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13004         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13005         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13006         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13007         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13008         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13009         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13010         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13011         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13012         Same.
13013         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13014         Same.
13015         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13016         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13017         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13018         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13019         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13020         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13021         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13022         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13023         Same.
13024         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13026 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13028         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13030 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13032         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13034 2016-01-12  James Norris  <jnorris@codesourcery.com>
13036         * libgomp.texi: Updates for OpenACC.
13038 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13040         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13042 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13044         PR fortran/66680
13045         * testsuite/libgomp.fortran/pr66680.f90: New test.
13047 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13049         PR middle-end/68960
13050         * testsuite/libgomp.c/pr68960.c: New test.
13052 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13054         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13055         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13057 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13059         Update copyright years.
13061         * libgomp.texi: Bump @copying's copyright year.
13063 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13065         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13066         dg-additional-options syntax.
13067         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13068         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13069         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13070         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13071         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13072         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13073         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13074         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13075         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13076         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13077         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13078         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13079         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13080         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13081         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13082         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13083         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13084         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13086 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13088         * libgomp.h (REFCOUNT_LINK): Define.
13089         (struct splay_tree_key_s): Add link_key.
13090         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13091         Replace target address of the pointer with target address of newly
13092         mapped object in the splay tree.  Set link pointer on target to the
13093         device address of the mapped object.
13094         (gomp_unmap_vars): Restore target address of the pointer in the splay
13095         tree for REFCOUNT_LINK objects after unmapping.
13096         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13097         declare target link" objects.
13098         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13099         "omp declare target link" objects, which were mapped for the image.
13100         (gomp_exit_data): Restore target address of the pointer in the splay
13101         tree for REFCOUNT_LINK objects after unmapping.
13102         * testsuite/libgomp.c/target-link-1.c: New file.
13104 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13106         * libgomp.h (gomp_device_state): New enum.
13107         (struct gomp_device_descr): Replace is_initialized with state.
13108         (gomp_fini_device): Remove declaration.
13109         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13110         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13111         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13112         (acc_set_device_type): Use state instead of is_initialized.
13113         (acc_set_device_num): Likewise.
13114         * target.c (resolve_device): Use state instead of is_initialized.
13115         Do not initialize finalized device.
13116         (gomp_map_vars): Do nothing if device is finalized.
13117         (gomp_unmap_vars): Likewise.
13118         (gomp_update): Likewise.
13119         (GOMP_offload_register_ver): Use state instead of is_initialized.
13120         (GOMP_offload_unregister_ver): Likewise.
13121         (gomp_init_device): Likewise.
13122         (gomp_unload_device): Likewise.
13123         (gomp_fini_device): Remove.
13124         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13125         (GOMP_target): Go to host fallback if device is finalized.
13126         (GOMP_target_ext): Likewise.
13127         (gomp_exit_data): Do nothing if device is finalized.
13128         (gomp_target_task_fn): Go to host fallback if device is finalized.
13129         (gomp_target_fini): New static function.
13130         (gomp_target_init): Use state instead of is_initialized.
13131         Call gomp_target_fini at exit.
13133 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13135         PR tree-optimization/68716
13136         * testsuite/libgomp.c/omp-nested-2.c: New test.
13138 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13140         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13141         target openacc_nvidia_accel_selected.
13142         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13143         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13144         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13145         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13147 2015-12-01  Julian Brown  <julian@codesourcery.com>
13148             James Norris  <James_Norris@mentor.com>
13150         * oacc-parallel.c (GOACC_host_data): New function.
13151         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13152         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13153         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13154         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13155         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13156         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13157         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13159 2015-11-30  James Norris  <jnorris@codesourcery.com>
13160             Cesar Philippidis  <cesar@codesourcery.com>
13162         libgomp/
13163         * libgomp.oacc-fortran/routine-5.f90: New test.
13164         * libgomp.oacc-fortran/routine-7.f90: New test.
13165         * libgomp.oacc-fortran/routine-9.f90: New test.
13167 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13169         PR tree-optimization/46032
13170         * testsuite/libgomp.c/pr46032.c: New test.
13172 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13174         PR libgomp/68579
13175         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13176         (gomp_create_target_task): Call it before freeing
13177         GOMP_TARGET_TASK_DATA tasks.
13179         PR c/63326
13180         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13181         in between case label and OpenMP standalone directives.
13182         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13184 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
13186         * configure: Regenerate.
13188 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
13190         * testsuite/libgomp.c/target-35.c: New test.
13192 2015-11-22  James Norris  <jnorris@codesourcery.com>
13193             Cesar Philippidis  <cesar@codesourcery.com>
13195         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13196         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13197         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13198         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13199         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13201 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
13203         PR middle-end/68221
13204         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13205         * testsuite/libgomp.c/reduction-12.c: Likewise.
13206         * testsuite/libgomp.c++/reduction-11.C: Likewise.
13207         * testsuite/libgomp.c++/reduction-12.C: Likewise.
13209 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
13211         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13212         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13213         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13214         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13215         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13216         and fix.
13217         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13218         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13220 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
13222         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13223         worker & gang cases.
13224         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13226 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
13228         * config/nvptx/priority_queue.c: New file.
13230 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13232         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13233         sections.
13235 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13236             Aldy Hernandez  <aldyh@redhat.com>
13237             Ilya Verbin  <ilya.verbin@intel.com>
13239         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13240         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13241         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13242         iterators or IV by chunk size.
13243         * parallel.c (gomp_resolve_num_threads): Don't assume that
13244         if thr->ts.team is non-NULL, then pool must be non-NULL.
13245         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13246         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13247         GOMP_PLUGIN_target_task_completion.
13248         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13249         * Makefile.in: Regenerate.
13250         * libgomp.h: Shuffle prototypes and forward definitions around so
13251         priority queues can be defined.
13252         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13253         (enum gomp_target_task_state): New enum.
13254         (struct gomp_target_task): Add state, tgt, task and team fields.
13255         (gomp_create_target_task): Change return type to bool, add
13256         state argument.
13257         (gomp_target_task_fn): Change return type to bool.
13258         (struct gomp_device_descr): Add async_run_func.
13259         (struct gomp_task): Remove children, next_child, prev_child,
13260         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13261         Add pnode field.
13262         (struct gomp_taskgroup): Remove children.
13263         Add taskgroup_queue.
13264         (struct gomp_team): Change task_queue type to a priority queue.
13265         (splay_compare): Define inline.
13266         (priority_queue_offset): New.
13267         (priority_node_to_task): New.
13268         (task_to_priority_node): New.
13269         * oacc-mem.c: Do not include splay-tree.h.
13270         * priority_queue.c: New file.
13271         * priority_queue.h: New file.
13272         * splay-tree.c: Do not include splay-tree.h.
13273         (splay_tree_foreach_internal): New.
13274         (splay_tree_foreach): New.
13275         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13276         (splay_tree_callback): Define typedef.
13277         * target.c (splay_compare): Move to libgomp.h.
13278         (GOMP_target): Don't adjust *thr in any way around running offloaded
13279         task.
13280         (GOMP_target_ext): Likewise.  Handle target nowait.
13281         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13282         return value from gomp_create_target_task, if false, fallthrough
13283         as if no dependencies exist.
13284         (gomp_target_task_fn): Change return type to bool, return true
13285         if the task should have another part scheduled later.  Handle
13286         target nowait.
13287         (gomp_load_plugin_for_device): Initialize async_run.
13288         * task.c (gomp_init_task): Initialize children_queue.
13289         (gomp_clear_parent_in_list): New.
13290         (gomp_clear_parent_in_tree): New.
13291         (gomp_clear_parent): Handle priorities.
13292         (GOMP_task): Likewise.
13293         (priority_queue_move_task_first,
13294         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13295         New functions.
13296         (gomp_create_target_task): Use priority queues.  Change return type
13297         to bool, add state argument, return false if for async
13298         {{enter,exit} data,update} constructs no dependencies need to be
13299         waited for, handle target nowait.  Set task->fn to NULL instead of
13300         gomp_target_task_fn.
13301         (verify_children_queue): Remove.
13302         (priority_list_upgrade_task): New.
13303         (priority_queue_upgrade_task): New.
13304         (verify_task_queue): Remove.
13305         (priority_list_downgrade_task): New.
13306         (priority_queue_downgrade_task): New.
13307         (gomp_task_run_pre): Use priority queues.
13308         Abstract code out to priority_queue_downgrade_task.
13309         (gomp_task_run_post_handle_dependers): Use priority queues.
13310         (gomp_task_run_post_remove_parent): Likewise.
13311         (gomp_task_run_post_remove_taskgroup): Likewise.
13312         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
13313         tasks specially.
13314         (GOMP_taskwait): Likewise.
13315         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
13316         priority-queue_upgrade_task.
13317         (GOMP_taskgroup_start): Use priority queues.
13318         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
13319         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
13320         barrier.
13321         * taskloop.c (GOMP_taskloop): Handle priorities.
13322         * team.c (gomp_new_team): Call priority_queue_init.
13323         (free_team): Call priority_queue_free.
13324         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13325         team created for target nowait in implicit parallel region.
13326         (gomp_team_start): For nested check, test thr->ts.level instead of
13327         thr->ts.team != NULL.
13328         * testsuite/libgomp.c/doacross-3.c: New test.
13329         * testsuite/libgomp.c/ordered-5.c: New test.
13330         * testsuite/libgomp.c/priority.c: New test.
13331         * testsuite/libgomp.c/target-31.c: New test.
13332         * testsuite/libgomp.c/target-32.c: New test.
13333         * testsuite/libgomp.c/target-33.c: New test.
13334         * testsuite/libgomp.c/target-34.c: New test.
13336 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13338         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13340         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13341         loop is sequential.
13343 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13345         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13346         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13348 2015-11-12  James Norris  <jnorris@codesourcery.com>
13349             Joseph Myers  <joseph@codesourcery.com>
13351         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13352         * oacc-parallel.c (GOACC_declare): New function.
13353         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13354         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13355         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13356         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13357         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13359 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
13361         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13363 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
13365         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13366         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13368 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13370         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13371         inadvertent commit.
13373 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13375         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13376         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13377         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13378         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13379         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13381 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
13383         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13384         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13386 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
13387             Ilya Verbin  <ilya.verbin@intel.com>
13389         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13390         GOMP_loop_nonmonotonic_dynamic_start,
13391         GOMP_loop_nonmonotonic_guided_next,
13392         GOMP_loop_nonmonotonic_guided_start,
13393         GOMP_loop_ull_nonmonotonic_dynamic_next,
13394         GOMP_loop_ull_nonmonotonic_dynamic_start,
13395         GOMP_loop_ull_nonmonotonic_guided_next,
13396         GOMP_loop_ull_nonmonotonic_guided_start,
13397         GOMP_parallel_loop_nonmonotonic_dynamic,
13398         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13399         (GOMP_target_41): Renamed to ...
13400         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13401         arguments.
13402         (GOMP_target_data_41): Renamed to ...
13403         (GOMP_target_data_ext): ... this.
13404         (GOMP_target_update_41): Renamed to ...
13405         (GOMP_target_update_ext): ... this.
13406         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13407         GOMP_target_data_ext and GOMP_target_update_ext instead of
13408         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13409         Export GOMP_loop_nonmonotonic_dynamic_next,
13410         GOMP_loop_nonmonotonic_dynamic_start,
13411         GOMP_loop_nonmonotonic_guided_next,
13412         GOMP_loop_nonmonotonic_guided_start,
13413         GOMP_loop_ull_nonmonotonic_dynamic_next,
13414         GOMP_loop_ull_nonmonotonic_dynamic_start,
13415         GOMP_loop_ull_nonmonotonic_guided_next,
13416         GOMP_loop_ull_nonmonotonic_guided_start,
13417         GOMP_parallel_loop_nonmonotonic_dynamic and
13418         GOMP_parallel_loop_nonmonotonic_guided.
13419         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13420         GOMP_parallel_loop_nonmonotonic_guided,
13421         GOMP_loop_nonmonotonic_dynamic_start,
13422         GOMP_loop_nonmonotonic_guided_start,
13423         GOMP_loop_nonmonotonic_dynamic_next,
13424         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13425         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13426         GOMP_loop_ull_nonmonotonic_guided_start,
13427         GOMP_loop_ull_nonmonotonic_dynamic_next,
13428         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13429         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13430         functions.
13431         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
13432         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13433         Use gomp_map_val function.
13434         (gomp_target_fallback_firstprivate): New static function.
13435         (GOMP_target_41): Renamed to ...
13436         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13437         arguments.  Move firstprivate fallback handling into a new
13438         function.
13439         (GOMP_target_data_41): Renamed to ...
13440         (GOMP_target_data_ext): ... this.
13441         (GOMP_target_update_41): Renamed to ...
13442         (GOMP_target_update_ext): ... this.
13443         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13444         gomp_map_0len_lookup instead of gomp_map_lookup.
13445         (omp_target_is_present): Use gomp_map_0len_lookup instead of
13446         gomp_map_lookup.
13447         * testsuite/libgomp.c/target-28.c: Likewise.
13448         * testsuite/libgomp.c/monotonic-1.c: New test.
13449         * testsuite/libgomp.c/monotonic-2.c: New test.
13450         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13451         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13452         * testsuite/libgomp.c/pr66199-5.c: New test.
13453         * testsuite/libgomp.c/pr66199-6.c: New test.
13454         * testsuite/libgomp.c/pr66199-7.c: New test.
13455         * testsuite/libgomp.c/pr66199-8.c: New test.
13456         * testsuite/libgomp.c/pr66199-9.c: New test.
13457         * testsuite/libgomp.c/reduction-11.c: New test.
13458         * testsuite/libgomp.c/reduction-12.c: New test.
13459         * testsuite/libgomp.c/reduction-13.c: New test.
13460         * testsuite/libgomp.c/reduction-14.c: New test.
13461         * testsuite/libgomp.c/reduction-15.c: New test.
13462         * testsuite/libgomp.c/target-12.c (main): Adjust for
13463         omp_target_is_present change for one-past-last element.
13464         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13465         the same var is both mapped and privatized.
13466         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13467         handling of zero-length array sections.
13468         * testsuite/libgomp.c/target-28.c: New test.
13469         * testsuite/libgomp.c/target-29.c: New test.
13470         * testsuite/libgomp.c/target-30.c: New test.
13471         * testsuite/libgomp.c/target-teams-1.c: New test.
13472         * testsuite/libgomp.c++/member-6.C: New test.
13473         * testsuite/libgomp.c++/member-7.C: New test.
13474         * testsuite/libgomp.c++/monotonic-1.C: New test.
13475         * testsuite/libgomp.c++/monotonic-2.C: New test.
13476         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13477         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13478         * testsuite/libgomp.c++/pr66199-3.C: New test.
13479         * testsuite/libgomp.c++/pr66199-4.C: New test.
13480         * testsuite/libgomp.c++/pr66199-5.C: New test.
13481         * testsuite/libgomp.c++/pr66199-6.C: New test.
13482         * testsuite/libgomp.c++/pr66199-7.C: New test.
13483         * testsuite/libgomp.c++/pr66199-8.C: New test.
13484         * testsuite/libgomp.c++/pr66199-9.C: New test.
13485         * testsuite/libgomp.c++/reduction-11.C: New test.
13486         * testsuite/libgomp.c++/reduction-12.C: New test.
13487         * testsuite/libgomp.c++/target-13.C: New test.
13488         * testsuite/libgomp.c++/target-14.C: New test.
13489         * testsuite/libgomp.c++/target-15.C: New test.
13490         * testsuite/libgomp.c++/target-16.C: New test.
13491         * testsuite/libgomp.c++/target-17.C: New test.
13492         * testsuite/libgomp.c++/target-18.C: New test.
13493         * testsuite/libgomp.c++/target-19.C: New test.
13495 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13497         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13498         and reduction copy.
13499         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13500         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13501         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13502         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13503         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13504         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13505         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13506         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13507         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13508         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13509         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13510         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13511         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13512         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13514 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13516         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13517         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13518         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13519         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13520         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13521         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13522         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13523         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13525 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
13527         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13528         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13529         (GOMP_OFFLOAD_openacc_parallel): Likewise.
13530         * oacc-host.c (host_openacc_exec): Likewise.
13531         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13533 2015-11-03  Julian Brown  <julian@codesourcery.com>
13534             Thomas Schwinge  <thomas@codesourcery.com>
13536         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13537         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13538         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13539         Likewise.
13540         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13541         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13543 2015-11-03  James Norris  <jnorris@codesourcery.com>
13545         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13546         file.
13547         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13548         Likewise.
13549         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13550         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13551         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13552         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13553         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13555 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
13557         * openacc.h (enum acc_device_t): Reformat. Ensure layout
13558         compatibility.
13559         (enum acc_async_t): Reformat.
13560         (acc_on_device): Declare compatible with builtin and provide C++
13561         wrapper.
13562         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13564 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
13565             Cesar Philippidis  <cesar@codesourcery.com>
13567         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13568         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13569         ... this.  Add a description of the test at the top of the file.
13570         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13571         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13572         ... this.  Add a description of the test at the top of the file.
13574 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
13576         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13577         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13578         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13579         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13580         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13581         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13583 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
13585         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13586         dimensions.
13588 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
13590         PR testsuite/68063
13591         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13593 2015-10-27  James Norris  <jnorris@codesourcery.com>
13595         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13596         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13598 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
13600         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13601         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13603         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13604         acc_device_nvidia usage.
13605         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13606         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13607         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13609         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13610         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13612         PR libgomp/66518
13613         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13615         PR libgomp/65437
13616         PR libgomp/66518
13617         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13618         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13620 2015-10-23  Tom de Vries  <tom@codesourcery.com>
13622         PR testsuite/68063
13623         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13625 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
13627         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13628         vector_length.
13629         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13631 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
13632             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
13634         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13635         to 0 when mapnum is 0.
13637 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13639         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13640         Cast to int from int32_t.
13642 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
13643             Aldy Hernandez  <aldyh@redhat.com>
13644             Ilya Verbin  <ilya.verbin@intel.com>
13646         * config/linux/affinity.c (omp_get_place_num_procs,
13647         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13648         * config/linux/doacross.h: New file.
13649         * config/posix/affinity.c (omp_get_place_num_procs,
13650         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13651         * config/posix/doacross.h: New file.
13652         * env.c: Include gomp-constants.h.
13653         (struct gomp_task_icv): Rename run_sched_modifier to
13654         run_sched_chunk_size.
13655         (gomp_max_task_priority_var): New variable.
13656         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13657         (handle_omp_display_env): Change _OPENMP value from 201307 to
13658         201511.  Print OMP_MAX_TASK_PRIORITY.
13659         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13660         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13661         chunk_size and run_sched_modifier to run_sched_chunk_size.
13662         (omp_get_max_task_priority, omp_get_initial_device,
13663         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13664         omp_get_partition_place_nums): New functions.
13665         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13666         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13667         to chunk_size.
13668         (omp_get_num_places_, omp_get_place_num_procs_,
13669         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13670         omp_get_place_proc_ids_8_, omp_get_place_num_,
13671         omp_get_partition_num_places_, omp_get_partition_place_nums_,
13672         omp_get_partition_place_nums_8_, omp_get_initial_device_,
13673         omp_get_max_task_priority_): New functions.
13674         * libgomp_g.h (GOMP_loop_doacross_static_start,
13675         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13676         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13677         GOMP_loop_ull_doacross_dynamic_start,
13678         GOMP_loop_ull_doacross_guided_start,
13679         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13680         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13681         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13682         GOMP_target_data_41, GOMP_target_update_41,
13683         GOMP_target_enter_exit_data): New prototypes.
13684         (GOMP_task): Add prototype argument.
13685         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13686         (struct gomp_doacross_work_share): New type.
13687         (struct gomp_work_share): Add doacross field.
13688         (struct gomp_task_icv): Rename run_sched_modifier to
13689         run_sched_chunk_size.
13690         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13691         GOMP_TASK_UNDEFERRED.  Add comments.
13692         (struct gomp_task_depend_entry): Add comments.
13693         (struct gomp_task): Likewise.
13694         (struct gomp_taskgroup): Likewise.
13695         (struct gomp_target_task): New type.
13696         (struct gomp_team): Add comment.
13697         (gomp_get_place_proc_ids_8, gomp_doacross_init,
13698         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13699         gomp_create_target_task, gomp_target_task_fn): New prototypes.
13700         (struct target_var_desc): New type.
13701         (struct target_mem_desc): Adjust comment.  Use struct
13702         target_var_desc instead of splay_tree_key for list.
13703         (REFCOUNT_INFINITY): Define.
13704         (struct splay_tree_key_s): Remove copy_from field.
13705         (struct gomp_device_descr): Add dev2dev_func field.
13706         (enum gomp_map_vars_kind): New enum.
13707         (gomp_map_vars): Add one argument.
13708         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13709         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13710         omp_get_place_num_procs, omp_get_place_num_procs_,
13711         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13712         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13713         omp_get_place_num_, omp_get_partition_num_places,
13714         omp_get_partition_num_places_, omp_get_partition_place_nums,
13715         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13716         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13717         omp_target_free, omp_target_is_present, omp_target_memcpy,
13718         omp_target_memcpy_rect, omp_target_associate_ptr and
13719         omp_target_disassociate_ptr.
13720         (GOMP_4.0.2): Renamed to ...
13721         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
13722         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13723         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13724         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13725         GOMP_loop_doacross_static_start, GOMP_doacross_post,
13726         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13727         GOMP_loop_ull_doacross_guided_start,
13728         GOMP_loop_ull_doacross_runtime_start,
13729         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13730         GOMP_doacross_ull_wait.
13731         * libgomp.texi: Document omp_get_max_task_priority.
13732         Rename modifier argument to chunk_size for omp_set_schedule and
13733         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
13734         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13735         to run_sched_chunk_size renaming.
13736         (GOMP_loop_ordered_runtime_start): Likewise.
13737         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13738         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13739         GOMP_parallel_loop_runtime_start): New functions.
13740         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13741         to run_sched_chunk_size renaming.
13742         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13743         GOMP_loop_doacross_guided_start): New functions or aliases.
13744         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13745         run_sched_modifier to run_sched_chunk_size renaming.
13746         (GOMP_loop_ull_ordered_runtime_start): Likewise.
13747         (gomp_loop_ull_doacross_static_start,
13748         gomp_loop_ull_doacross_dynamic_start,
13749         gomp_loop_ull_doacross_guided_start,
13750         GOMP_loop_ull_doacross_runtime_start): New functions.
13751         (GOMP_loop_ull_doacross_static_start,
13752         GOMP_loop_ull_doacross_dynamic_start,
13753         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13754         * oacc-mem.c (acc_map_data, present_create_copy,
13755         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13756         to gomp_map_vars.
13757         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13758         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13759         instead of false to gomp_map_vars.
13760         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
13761         * omp.h.in (omp_lock_hint_t): New type.
13762         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13763         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13764         omp_get_place_num, omp_get_partition_num_places,
13765         omp_get_partition_place_nums, omp_get_initial_device,
13766         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13767         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13768         omp_target_associate_ptr, omp_target_disassociate_ptr): New
13769         prototypes.
13770         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13771         (omp_lock_hint_none, omp_lock_hint_uncontended,
13772         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13773         omp_lock_hint_speculative): New parameters.
13774         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13775         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13776         omp_get_place_num, omp_get_partition_num_places,
13777         omp_get_partition_place_nums, omp_get_initial_device,
13778         omp_get_max_task_priority): New interfaces.
13779         (omp_set_schedule, omp_get_schedule): Rename modifier argument
13780         to chunk_size.
13781         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13782         (omp_lock_hint_none, omp_lock_hint_uncontended,
13783         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13784         omp_lock_hint_speculative): New parameters.
13785         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13786         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13787         omp_get_place_num, omp_get_partition_num_places,
13788         omp_get_partition_place_nums, omp_get_initial_device,
13789         omp_get_max_task_priority): New functions and subroutines.
13790         * ordered.c: Include stdarg.h and string.h.
13791         (MAX_COLLAPSED_BITS): Define.
13792         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13793         gomp_doacross_ull_init, GOMP_doacross_ull_post,
13794         GOMP_doacross_ull_wait): New functions.
13795         * target.c: Include errno.h.
13796         (resolve_device): If device is not initialized, call
13797         gomp_init_device on it.
13798         (gomp_map_lookup): New function.
13799         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13800         Don't bump refcount if REFCOUNT_INFINITY.  Handle
13801         GOMP_MAP_ALWAYS_TO_P.
13802         (get_kind): Rename is_openacc argument to short_mapkind.
13803         (gomp_map_pointer): Use gomp_map_lookup.
13804         (gomp_map_fields_existing): New function.
13805         (gomp_map_vars): Rename is_openacc argument to short_mapkind
13806         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
13807         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13808         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13809         Adjust for tgt->list changed type and copy_from living in there.
13810         (gomp_copy_from_async): Adjust for tgt->list changed type and
13811         copy_from living in there.
13812         (gomp_unmap_vars): Likewise.
13813         (gomp_update): Likewise.  Rename is_openacc argument to
13814         short_mapkind.  Don't fail if object is not mapped.
13815         (gomp_load_image_to_device): Initialize refcount to
13816         REFCOUNT_INFINITY.
13817         (gomp_target_fallback): New function.
13818         (gomp_get_target_fn_addr): Likewise.
13819         (GOMP_target): Adjust gomp_map_vars caller, use
13820         gomp_get_target_fn_addr and gomp_target_fallback.
13821         (GOMP_target_41): New function.
13822         (gomp_target_data_fallback): New function.
13823         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13824         (GOMP_target_data_41): New function.
13825         (GOMP_target_update): Adjust gomp_update caller.
13826         (GOMP_target_update_41): New function.
13827         (gomp_exit_data, GOMP_target_enter_exit_data,
13828         gomp_target_task_fn, omp_target_alloc, omp_target_free,
13829         omp_target_is_present, omp_target_memcpy,
13830         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13831         omp_target_associate_ptr, omp_target_disassociate_ptr,
13832         gomp_load_plugin_for_device): New functions.
13833         * task.c: Include gomp-constants.h.  Include taskloop.c
13834         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13835         (gomp_task_handle_depend): New function.
13836         (GOMP_task): Use it.  Add priority argument.  Use
13837         gomp-constant.h constants instead of hardcoded numbers.
13838         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13839         (gomp_create_target_task): New function.
13840         (verify_children_queue, verify_taskgroup_queue,
13841         verify_task_queue): New functions.
13842         (gomp_task_run_pre): Call verify_*_queue functions.
13843         If an upcoming tied task is about to leave the sibling or
13844         taskgroup queues in an invalid state, adjust appropriately.
13845         Remove taskgroup argument.  Add comments.
13846         (gomp_task_run_post_handle_dependers): Add comments.
13847         (gomp_task_run_post_remove_parent): Likewise.
13848         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13849         (GOMP_taskwait): Likewise.  Add comments.
13850         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13851         problem such that the first non parent_depends_on task does not
13852         end up at the end of the children queue.
13853         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13854         GOMP_TASK_UNDEFERRED.
13855         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13856         * taskloop.c: New file.
13857         * testsuite/lib/libgomp.exp
13858         (check_effective_target_offload_device_nonshared_as): New proc.
13859         * testsuite/libgomp.c/affinity-2.c: New test.
13860         * testsuite/libgomp.c/doacross-1.c: New test.
13861         * testsuite/libgomp.c/doacross-2.c: New test.
13862         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13863         Add map clause to target.
13864         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13865         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13866         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13867         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13868         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13869         Likewise.
13870         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13871         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13872         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13873         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13874         not defined.  Use those where needed.
13875         * testsuite/libgomp.c/for-4.c: New test.
13876         * testsuite/libgomp.c/for-5.c: New test.
13877         * testsuite/libgomp.c/for-6.c: New test.
13878         * testsuite/libgomp.c/linear-1.c: New test.
13879         * testsuite/libgomp.c/ordered-4.c: New test.
13880         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13881         only allowed on the loop iterator.
13882         * testsuite/libgomp.c/pr66199-3.c: New test.
13883         * testsuite/libgomp.c/pr66199-4.c: New test.
13884         * testsuite/libgomp.c/reduction-7.c: New test.
13885         * testsuite/libgomp.c/reduction-8.c: New test.
13886         * testsuite/libgomp.c/reduction-9.c: New test.
13887         * testsuite/libgomp.c/reduction-10.c: New test.
13888         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13889         map(tofrom:s).
13890         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13891         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13892         * testsuite/libgomp.c/target-11.c: New test.
13893         * testsuite/libgomp.c/target-12.c: New test.
13894         * testsuite/libgomp.c/target-13.c: New test.
13895         * testsuite/libgomp.c/target-14.c: New test.
13896         * testsuite/libgomp.c/target-15.c: New test.
13897         * testsuite/libgomp.c/target-16.c: New test.
13898         * testsuite/libgomp.c/target-17.c: New test.
13899         * testsuite/libgomp.c/target-18.c: New test.
13900         * testsuite/libgomp.c/target-19.c: New test.
13901         * testsuite/libgomp.c/target-20.c: New test.
13902         * testsuite/libgomp.c/target-21.c: New test.
13903         * testsuite/libgomp.c/target-22.c: New test.
13904         * testsuite/libgomp.c/target-23.c: New test.
13905         * testsuite/libgomp.c/target-24.c: New test.
13906         * testsuite/libgomp.c/target-25.c: New test.
13907         * testsuite/libgomp.c/target-26.c: New test.
13908         * testsuite/libgomp.c/target-27.c: New test.
13909         * testsuite/libgomp.c/taskloop-1.c: New test.
13910         * testsuite/libgomp.c/taskloop-2.c: New test.
13911         * testsuite/libgomp.c/taskloop-3.c: New test.
13912         * testsuite/libgomp.c/taskloop-4.c: New test.
13913         * testsuite/libgomp.c++/ctor-13.C: New test.
13914         * testsuite/libgomp.c++/doacross-1.C: New test.
13915         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13916         Replace offload_device with offload_device_nonshared_as.
13917         * testsuite/libgomp.c++/for-12.C: New test.
13918         * testsuite/libgomp.c++/for-13.C: New test.
13919         * testsuite/libgomp.c++/for-14.C: New test.
13920         * testsuite/libgomp.c++/linear-1.C: New test.
13921         * testsuite/libgomp.c++/member-1.C: New test.
13922         * testsuite/libgomp.c++/member-2.C: New test.
13923         * testsuite/libgomp.c++/member-3.C: New test.
13924         * testsuite/libgomp.c++/member-4.C: New test.
13925         * testsuite/libgomp.c++/member-5.C: New test.
13926         * testsuite/libgomp.c++/ordered-1.C: New test.
13927         * testsuite/libgomp.c++/reduction-5.C: New test.
13928         * testsuite/libgomp.c++/reduction-6.C: New test.
13929         * testsuite/libgomp.c++/reduction-7.C: New test.
13930         * testsuite/libgomp.c++/reduction-8.C: New test.
13931         * testsuite/libgomp.c++/reduction-9.C: New test.
13932         * testsuite/libgomp.c++/reduction-10.C: New test.
13933         * testsuite/libgomp.c++/reference-1.C: New test.
13934         * testsuite/libgomp.c++/simd14.C: New test.
13935         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13936         * testsuite/libgomp.c++/target-5.C: New test.
13937         * testsuite/libgomp.c++/target-6.C: New test.
13938         * testsuite/libgomp.c++/target-7.C: New test.
13939         * testsuite/libgomp.c++/target-8.C: New test.
13940         * testsuite/libgomp.c++/target-9.C: New test.
13941         * testsuite/libgomp.c++/target-10.C: New test.
13942         * testsuite/libgomp.c++/target-11.C: New test.
13943         * testsuite/libgomp.c++/target-12.C: New test.
13944         * testsuite/libgomp.c++/taskloop-1.C: New test.
13945         * testsuite/libgomp.c++/taskloop-2.C: New test.
13946         * testsuite/libgomp.c++/taskloop-3.C: New test.
13947         * testsuite/libgomp.c++/taskloop-4.C: New test.
13948         * testsuite/libgomp.c++/taskloop-5.C: New test.
13949         * testsuite/libgomp.c++/taskloop-6.C: New test.
13950         * testsuite/libgomp.c++/taskloop-7.C: New test.
13951         * testsuite/libgomp.c++/taskloop-8.C: New test.
13952         * testsuite/libgomp.c++/taskloop-9.C: New test.
13953         * testsuite/libgomp.fortran/affinity1.f90: New test.
13954         * testsuite/libgomp.fortran/affinity2.f90: New test.
13956 2015-10-13  Tom de Vries  <tom@codesourcery.com>
13958         PR tree-optimization/67476
13959         * testsuite/libgomp.c/autopar-3.c: New test.
13960         * testsuite/libgomp.c/autopar-4.c: New test.
13961         * testsuite/libgomp.c/autopar-5.c: New test.
13962         * testsuite/libgomp.c/autopar-6.c: New test.
13963         * testsuite/libgomp.c/autopar-7.c: New test.
13964         * testsuite/libgomp.c/autopar-8.c: New test.
13966 2015-10-12  James Norris  <jnorris@codesourcery.com>
13968         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13969         initializer.
13971 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
13973         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13974         using load_gcc_lib.
13976 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13978         * oacc-ptx.h: Remove file, moving its content into...
13979         * config/nvptx/fortran.c: ... here...
13980         * config/nvptx/oacc-init.c: ..., here...
13981         * config/nvptx/oacc-parallel.c: ..., and here.
13982         * config/nvptx/openacc.f90: New file.
13983         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13984         (link_ptx): Don't link in predefined bits of PTX code.
13986 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13987             Bernd Schmidt <bernds@codesourcery.com>
13989         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13990         (struct targ_ptx_obj): New.
13991         (nvptx_tdata): Move earlier, change data format.
13992         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
13993         objects.
13994         (GOMP_OFFLOAD_load_image): Adjust.
13996 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13998         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13999         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14000         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14001         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14002         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14003         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14004         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14005         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14006         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14007         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14008         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14009         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14010         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14011         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14012         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14013         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14014         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14015         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14016         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14017         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14018         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14019         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14020         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14021         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14022         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14023         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14024         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14025         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14026         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14027         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14028         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14029         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14030         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14031         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14032         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14033         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14034         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14035         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14036         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14037         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14038         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14039         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14040         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14041         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14042         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14043         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14044         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14045         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14046         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14047         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14048         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14049         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14050         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14051         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14052         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14053         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14054         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14055         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14056         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14057         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14058         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14059         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14060         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14062 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14064         * oacc-init.c (acc_on_device): Force optimization level.
14066 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14068         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14069         (cuda_errlist): Delete.
14070         (cuda_error): Reimplement.
14072 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14074         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14075         array.
14076         * libgomp.map (GOACC_parallel_keyed): New.
14077         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14078         all callers.
14079         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14080         and take keyed varargs list.  Adjust call to exec_func.
14081         (GOACC_parallel): Force host fallback.
14082         * libgomp_g.h (GOACC_parallel): Remove.
14083         (GOACC_parallel_keyed): Declare.
14084         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14085         (struct targ_gn_descriptor): Replace name field with launch field.
14086         (nvptx_exec): Lose separate geometry args, take array.  Process
14087         dynamic dimensions and adjust.
14088         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14089         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14090         data.
14091         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14092         passing.
14093         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14094         passing.
14096 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14098         PR libgomp/67141
14099         * oacc-int.h (goacc_host_init): Add declaration.
14100         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14101         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14103 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14104             Sebastian Pop  <s.pop@samsung.com>
14106         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14107         match o/p.
14108         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14109         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14110         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14111         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14112         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14114 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14116         * configure.tgt: Add missing ;; in between nvptx and rtems
14117         snippets.
14119 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14121         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14122         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14123         (gomp_thread_pool_reservoir): Add priority member.
14124         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14125         priority.
14126         (parse_thread_pools): Likewise.
14127         * team.c (gomp_team_start): Call configuration provided
14128         gomp_adjust_thread_attr(). Destroy thread attributes if
14129         necessary.
14130         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14132 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14134         * config/posix/pool.h: New.
14135         * config/rtems/pool.h: Likewise.
14136         * config/rtems/proc.c: Likewise.
14137         * libgomp.h (gomp_thread_destructor): Declare.
14138         * team.c: Include configuration provided "pool.h".
14139         (gomp_get_thread_pool): Define in configuration.
14140         (gomp_team_end): Call configuration defined
14141         gomp_release_thread_pool().
14143 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14145         * config/rtems/bar.c: New.
14146         * config/rtems/bar.h: Likewise.
14147         * config/rtems/mutex.c: Likewise.
14148         * config/rtems/mutex.h: Likewise.
14149         * config/rtems/sem.c: Likewise.
14150         * config/rtems/sem.h: Likewise.
14151         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14152         <sys/lock.h> header file.
14153         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14154         supported by Newlib.
14155         * configure: Regenerate.
14157 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14159         * team.c (gomp_new_thread_pool): Delete and move content to ...
14160         (gomp_get_thread_pool): ... new function.  Allocate and
14161         initialize thread pool on demand.
14162         (get_last_team): Use gomp_get_thread_pool().
14163         (gomp_team_start): Delete thread pool initialization.
14165 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14167         PR tree-optimization/65637
14168         * testsuite/libgomp.c/autopar-2.c: New test.
14170 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14172         PR tree-optimization/46193
14173         * testsuite/libgomp.c/pr46193.c: New test.
14175 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14177         libgomp/
14178         * libgomp.map: Add 4.0.2 version.
14179         * target.c (offload_image_descr): Add version field.
14180         (gomp_load_image_to_device): Add version argument.  Adjust plugin
14181         call.  Improve load mismatch diagnostic.
14182         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
14183         call.
14184         (GOMP_offload_regster): Make stub function, move bulk to ...
14185         (GOMP_offload_register_ver): ... here.  Process version argument.
14186         (GOMP_offload_unregister): Make stub function, move bulk to ...
14187         (GOMP_offload_unregister_ver): ... here.  Process version argument.
14188         (gomp_init_device): Process version field.
14189         (gomp_unload_device): Process version field.
14190         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14191         macros.  Check plugin version.
14192         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
14193         loader and unloader types.
14194         * oacc-host.c: Include gomp-constants.h.
14195         (host_version): New.
14196         (host_load_image, host_unload_image): Adjust.
14197         (host_dispatch): Add host_version.
14198         * plugin/plugin-nvptx.c: Include gomp-constants.h.
14199         (GOMP_OFFLOAD_version): New.
14200         (GOMP_OFFLOAD_load_image): Add version arg and check it.
14201         (GOMP_OFFLOAD_unload_image): Likewise.
14202         * plugin/plugin-host.c: Include gomp-constants.h.
14203         (GOMP_OFFLOAD_version): New.
14204         (GOMP_OFFLOAD_load_image): Add version arg.
14205         (GOMP_OFFLOAD_unload_image): Likewise.
14207 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14209         PR tree-optimization/65468
14210         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14212 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14214         PR tree-optimization/65468
14215         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14217 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
14219         PR libgomp/66761
14220         PR libgomp/67303
14221         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14222         (gomp_iter_guided_next): Idem.
14223         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14224         (gomp_iter_ull_guided_next): Idem.
14225         * config/linux/wait.h (do_spin): Idem.
14227 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14229         * libgomp-plugin.h (enum offload_target_type): Remove
14230         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14231         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14232         * openacc.h (enum acc_device_t): Likewise.
14233         * openacc_lib.h: Likewise.
14234         * oacc-init.c (name_of_acc_device_t): Don't handle it.
14235         (acc_on_device): Just use __builtin_acc_on_device.
14236         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14237         of acc_on_device builtin.
14238         * plugin/plugin-host.h: Remove file.
14239         * plugin/plugin-host.c: Likewise, but salvage some content into...
14240         * oacc-host.c: ... this file.
14241         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14242         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14243         * Makefile.in: Regenerate.
14244         * configure: Likewise.
14245         * testsuite/lib/libgomp.exp
14246         (check_effective_target_openacc_host_nonshm_selected): Remove.
14247         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14248         ACC_DEVICE_TYPE=host_nonshm.
14249         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14250         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14251         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14252         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14253         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14254         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14256 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14257             Jakub Jelinek  <jakub@redhat.com>
14259         * config/nvptx/affinity.c: New file.
14260         * config/nvptx/alloc.c: Likewise.
14261         * config/nvptx/bar.c: Likewise.
14262         * config/nvptx/barrier.c: Likewise.
14263         * config/nvptx/critical.c: Likewise.
14264         * config/nvptx/env.c: Likewise.
14265         * config/nvptx/error.c: Likewise.
14266         * config/nvptx/fortran.c: Likewise.
14267         * config/nvptx/iter.c: Likewise.
14268         * config/nvptx/iter_ull.c: Likewise.
14269         * config/nvptx/libgomp-plugin.c: Likewise.
14270         * config/nvptx/lock.c: Likewise.
14271         * config/nvptx/loop.c: Likewise.
14272         * config/nvptx/loop_ull.c: Likewise.
14273         * config/nvptx/mutex.c: Likewise.
14274         * config/nvptx/oacc-async.c: Likewise.
14275         * config/nvptx/oacc-cuda.c: Likewise.
14276         * config/nvptx/oacc-host.c: Likewise.
14277         * config/nvptx/oacc-init.c: Likewise.
14278         * config/nvptx/oacc-mem.c: Likewise.
14279         * config/nvptx/oacc-parallel.c: Likewise.
14280         * config/nvptx/oacc-plugin.c: Likewise.
14281         * config/nvptx/omp-lock.h: Likewise.
14282         * config/nvptx/ordered.c: Likewise.
14283         * config/nvptx/parallel.c: Likewise.
14284         * config/nvptx/proc.c: Likewise.
14285         * config/nvptx/ptrlock.c: Likewise.
14286         * config/nvptx/sections.c: Likewise.
14287         * config/nvptx/sem.c: Likewise.
14288         * config/nvptx/single.c: Likewise.
14289         * config/nvptx/splay-tree.c: Likewise.
14290         * config/nvptx/target.c: Likewise.
14291         * config/nvptx/task.c: Likewise.
14292         * config/nvptx/team.c: Likewise.
14293         * config/nvptx/time.c: Likewise.
14294         * config/nvptx/work.c: Likewise.
14295         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14296         * configure: Regenerate.
14297         * configure.tgt (config_path): Set to "nvptx" for target
14298         nvptx*-*-*.
14300 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14302         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14304 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14306         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14307         (cuda_errlist): Constify.
14308         (errmsg):  Move into ...
14309         (cuda_error): ... here.  Make smaller.
14310         (_XSTR, _STR): Delete.
14311         (cuda_synames): Delete.
14312         (verify_device_library): Delete.
14313         (nvptx_init): Don't call it.
14315 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14317         * testsuite/libgomp.c/uns-outer-4.c: New test.
14319 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14321         * testsuite/libgomp.c/pr66714.c: New test.
14323 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14325         PR libgomp/66950
14326         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14327         (fib_ref): New function.
14328         (fib): Correct corner cases in the recursion.
14329         (main): Replace the non-simd loop with fib_ref call.
14330         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14331         subroutine.
14332         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
14333         for the last array element value.  Replace the non-simd loop with
14334         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
14335         of the last array element with according Fibonacci sequence element.
14336         (fib): Correct corner cases in the recursion.
14338 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14340         * target.c (gomp_offload_image_to_device): Rename to ...
14341         (gomp_load_image_to_device): ... here.
14342         (GOMP_offload_register): Adjust call.
14343         (gomp_init_device): Likewise.
14344         (gomp_unload_image_from_device): New.  Broken out of ...
14345         (GOMP_offload_unregister): ... here.  Call it.
14346         (gomp_unload_device): New.
14347         * libgomp.h (gomp_unload_device): Declare.
14348         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14349         mem maps.
14351 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14353         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14354         wait=-specific if.
14355         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14356         !=0 condition.
14357         (goacc_waits): Move !num_waits handling to ...
14358         (GOACC_wait): ... here, the only caller that might have zero waits.
14360         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14361         (struct ptx_image_data): Move earlier, add fns field.
14362         (struct ptx_device): Add images and image_lock fields.
14363         (ptx_images, ptx_image_lock): Delete.
14364         (nvptx_open_device): Initialize images and image_lock fields.
14365         (nvptx_close_device): Destroy image_lock.
14366         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14367         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14368         fields.
14370 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14372         * target.c (GOMP_offload_register): Use int for device type arg.
14373         (GOMP_offload_unregister): Likewise.
14375         * target.c (struct_offload_image_descr): Constify host_table.
14376         (gomp_offload_image_to_device): Likewise.
14377         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14379         * libgomp.h (gomp_device_descr): Constify target data arguments.
14380         * target.c (struct offload_image_descr): Constify target_data.
14381         (gomp_offload_image_to_device): Likewise.
14382         (GOMP_offload_register): Likewise.
14383         (GOMP_offload_unregister): Likewise.
14384         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14385         GOMP_OFFLOAD_unload_image): Constify target data.
14386         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14387         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14389 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14391         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14392         Workaround driver library const error.
14393         (struct nvptx_tdata, nvptx_tdata_t): New.
14394         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14395         type.
14397 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14399         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14400         of EPS parameter from integer to real.
14401         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14402         type of EPS parameter from integer to real.
14404 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14406         * team.c (get_last_team): New.
14407         (gomp_new_team): Recycle last non-nested team if possible.
14408         (gomp_team_end): Move team work share list free lock destruction
14409         to ...
14410         (free_team): ... here.
14412 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14414         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14415         and ref from int to double.  Replaced their comparison with
14416         an inequality of their difference and EPS.
14417         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14418         comparison of pri and a reference number with an inequality of their
14419         difference and EPS.
14420         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14421         the comparison of sum and sum_ref with an inequality of their
14422         difference and EPS.
14423         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14424         the comparison of pri and a reference number with an inequality of
14425         their difference and EPS.
14427 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14429         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14430         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14431         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14432         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14433         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14434         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14435         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14436         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14437         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14438         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14439         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14440         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14441         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14442         variables.
14443         (vec_mult): Likewise.  Add #pragma omp taskwait.
14444         (main): Adjust caller.
14445         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14446         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14447         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14448         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14449         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14450         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14451         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14452         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14453         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14454         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14455         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14456         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14457         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14458         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14459         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14460         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14461         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14462         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14463         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14464         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14465         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14466         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14467         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14468         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14469         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14470         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14471         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14472         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14473         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14474         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14475         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14476         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14477         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14478         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14479         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14480         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14481         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14482         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14483         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14484         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14485         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14486         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14487         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14488         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14489         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14490         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14491         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14492         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14493         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14494         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14495         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14496         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14497         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14498         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14499         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14500         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14501         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14502         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14503         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14504         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14505         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14506         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14507         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14508         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14509         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14510         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14511         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14512         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14513         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14514         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14515         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14516         (vec_mult): Add !$omp taskwait.
14517         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14518         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14519         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14520         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14521         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14522         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14523         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14524         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14525         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14526         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14527         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14528         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14529         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14530         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14531         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14532         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14533         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14534         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14535         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14536         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14537         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14538         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14539         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14540         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14541         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14542         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14543         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14544         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14545         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14546         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14547         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14548         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14549         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14550         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14551         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14552         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14553         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14554         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14555         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14556         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14557         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14558         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14559         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14560         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14561         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14562         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14563         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14564         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14565         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14566         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14567         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14568         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14569         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14570         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14571         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14572         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14573         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14574         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14575         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14576         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14577         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14578         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14579         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14580         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14581         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14582         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14583         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14585 2015-07-10  Tom de Vries  <tom@codesourcery.com>
14587         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14588         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14590 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
14592         PR libgomp/65099
14593         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14594         in a 64-bit configuration.
14595         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14596         offloading testing if no such device is available.
14597         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14598         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14600 2015-07-08  Tom de Vries  <tom@codesourcery.com>
14602         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14603         second call to f.
14604         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14606 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14608         PR tree-optimization/66642
14609         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14610         iteration count case.
14611         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14612         function, factor out of ...
14613         (main): ... here.  Test low iteration count case.
14615 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14617         * libgomp.h (gomp_thread_pool): Comment last_team field.
14619 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
14621         * testsuite/libgomp.c++/pr66702-1.C: Require
14622         vect_simd_clones effective target.
14623         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14625 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14627         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14628         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14629         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14630         "-O2".
14632 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14634         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14635         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14636         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14637         * testsuite/libgomp.c++/pr64824.C: Same.
14638         * testsuite/libgomp.c++/pr64868.C: Same.
14639         * testsuite/libgomp.c++/pr66199-1.C: Same.
14640         * testsuite/libgomp.c++/pr66199-2.C: Same.
14641         * testsuite/libgomp.c++/target-2.C: Same.
14642         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14643         -std=<standard> option.
14644         * testsuite/libgomp.c++/udr-11.C: Same.
14645         * testsuite/libgomp.c++/udr-12.C: Same.
14646         * testsuite/libgomp.c++/udr-13.C: Same.
14647         * testsuite/libgomp.c++/udr-14.C: Same.
14648         * testsuite/libgomp.c++/udr-15.C: Same.
14649         * testsuite/libgomp.c++/udr-16.C: Same.
14650         * testsuite/libgomp.c++/udr-17.C: Same.
14651         * testsuite/libgomp.c++/udr-18.C: Same.
14652         * testsuite/libgomp.c++/udr-19.C: Same.
14653         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14654         * testsuite/libgomp.c++/simd-1.C: Same.
14655         * testsuite/libgomp.c++/simd-2.C: Same.
14656         * testsuite/libgomp.c++/simd-3.C: Same.
14657         * testsuite/libgomp.c++/simd-4.C: Same.
14658         * testsuite/libgomp.c++/simd-5.C: Same.
14659         * testsuite/libgomp.c++/simd-6.C: Same.
14660         * testsuite/libgomp.c++/simd-7.C: Same.
14661         * testsuite/libgomp.c++/simd-8.C: Same.
14662         * testsuite/libgomp.c++/simd-9.C: Same.
14663         * testsuite/libgomp.c++/simd10.C: Same.
14664         * testsuite/libgomp.c++/simd11.C: Same.
14665         * testsuite/libgomp.c++/simd12.C: Same.
14666         * testsuite/libgomp.c++/simd13.C: Same.
14668 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14670         PR middle-end/66702
14671         * testsuite/libgomp.c++/pr66702-1.C: New test.
14672         * testsuite/libgomp.c++/pr66702-2.C: New test.
14674 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14676         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14677         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14678         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14679         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14681 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14683         PR tree-optimization/66652
14684         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14685         using restrict pointers.
14686         (main): Add arguments to calls to f.
14687         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14689 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
14691         * configure.ac: Fix check for header <sys/sysctl.h>.
14692         * configure: Regenerate.
14693         * config.h.in: Likewise.
14695 2015-06-23  Tom de Vries  <tom@codesourcery.com>
14697         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14698         abort.
14699         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14701 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
14703         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14704         acc_device_nvidia.
14706         PR libgomp/66518
14707         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14708         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14710 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14712         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
14713         dg-additional-options for any remaining options.
14714         * testsuite/libgomp.c/atomic-2.c: Same.
14715         * testsuite/libgomp.c/atomic-4.c: Same.
14716         * testsuite/libgomp.c/atomic-5.c: Same.
14717         * testsuite/libgomp.c/atomic-6.c: Same.
14718         * testsuite/libgomp.c/autopar-1.c: Same.
14719         * testsuite/libgomp.c/copyin-1.c: Same.
14720         * testsuite/libgomp.c/copyin-2.c: Same.
14721         * testsuite/libgomp.c/copyin-3.c: Same.
14722         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14723         * testsuite/libgomp.c/nestedfn-5.c: Same.
14724         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14725         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14726         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14727         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14728         * testsuite/libgomp.c/pr32362-1.c: Same.
14729         * testsuite/libgomp.c/pr32362-2.c: Same.
14730         * testsuite/libgomp.c/pr32362-3.c: Same.
14731         * testsuite/libgomp.c/pr39591-1.c: Same.
14732         * testsuite/libgomp.c/pr39591-2.c: Same.
14733         * testsuite/libgomp.c/pr39591-3.c: Same.
14734         * testsuite/libgomp.c/pr58392.c: Same.
14735         * testsuite/libgomp.c/pr58756.c: Same.
14736         * testsuite/libgomp.c/simd-1.c: Same.
14737         * testsuite/libgomp.c/simd-10.c: Same.
14738         * testsuite/libgomp.c/simd-11.c: Same.
14739         * testsuite/libgomp.c/simd-12.c: Same.
14740         * testsuite/libgomp.c/simd-13.c: Same.
14741         * testsuite/libgomp.c/simd-14.c: Same.
14742         * testsuite/libgomp.c/simd-15.c: Same.
14743         * testsuite/libgomp.c/simd-2.c: Same.
14744         * testsuite/libgomp.c/simd-3.c: Same.
14745         * testsuite/libgomp.c/simd-4.c: Same.
14746         * testsuite/libgomp.c/simd-5.c: Same.
14747         * testsuite/libgomp.c/simd-6.c: Same.
14748         * testsuite/libgomp.c/simd-7.c: Same.
14749         * testsuite/libgomp.c/simd-8.c: Same.
14750         * testsuite/libgomp.c/simd-9.c: Same.
14752 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14754         * testsuite/libgomp.c/pr35625.c: Fix typo.
14756 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14758         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14759         in dg-options.
14760         * testsuite/libgomp.c/atomic-3.c: Same.
14761         * testsuite/libgomp.c/debug-1.c: Same.
14762         * testsuite/libgomp.c/nqueens-1.c: Same.
14763         * testsuite/libgomp.c/pr26171.c: Same.
14764         * testsuite/libgomp.c/pr48591.c: Same.
14765         * testsuite/libgomp.c/pr64824.c: Same.
14766         * testsuite/libgomp.c/pr64868.c: Same.
14767         * testsuite/libgomp.c/pr66133.c: Same.
14768         * testsuite/libgomp.c/pr66199-1.c: Same.
14769         * testsuite/libgomp.c/pr66199-2.c: Same.
14770         * testsuite/libgomp.c/target-8.c: Same.
14772 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14774         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14775         -std={gnu99,c99}.
14776         * testsuite/libgomp.c/for-1.c: Same.
14777         * testsuite/libgomp.c/for-2.c: Same.
14778         * testsuite/libgomp.c/for-3.c: Same.
14779         * testsuite/libgomp.c/pr35625.c: Same.
14780         * testsuite/libgomp.c/pr39154.c: Same.
14781         * testsuite/libgomp.c/simd-16.c: Same.
14782         * testsuite/libgomp.c/simd-17.c: Same.
14784 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14786         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14788 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14790         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14791         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14792         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14793         (N): Define.
14794         (main): Use N instead of hardcoded constants.
14796 2015-06-05  Tom de Vries  <tom@codesourcery.com>
14798         merge from gomp4 branch:
14799         2015-05-28  Tom de Vries  <tom@codesourcery.com>
14801         PR tree-optimization/65443
14802         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14803         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14804         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14806 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14808         * testsuite/libgomp.graphite/bounds.c: Adjust for
14809         cleanup-tree-dump removal.
14810         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14811         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14812         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14813         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14814         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14815         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14816         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14817         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14818         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14819         * testsuite/libgomp.graphite/pr41118.c: Likewise.
14821 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
14823         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14824         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14825         (futex_wake) [!__x86_64__]: Ditto.
14827 2015-05-28  Julian Brown  <julian@codesourcery.com>
14829         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14830         function comment. Only call gomp_fatal if new argument is true.
14831         (acc_dev_num_out_of_range): New function.
14832         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14833         acc_dev_num_out_of_range as appropriate.
14834         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14835         (acc_get_device_num, acc_set_device_num): Update calls to
14836         resolve_device.
14837         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14838         output.
14840 2015-05-28  Julian Brown  <julian@codesourcery.com>
14842         PR libgomp/65742
14843         * oacc-init.c (plugin/plugin-host.h): Include.
14844         (acc_on_device): Check whether we're in an offloaded region for
14845         host_nonshm
14846         plugin. Don't use __builtin_acc_on_device.
14847         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14848         nonshm_exec flag in thread-local data.
14849         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14850         data for host_nonshm plugin.
14851         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14852         for host_nonshm plugin.
14853         * plugin/plugin-host.h: New.
14855 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14857         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14859 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14861         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14862         Declare as int.
14863         (FUTEX_PRIVATE_FLAG): Remove L suffix.
14864         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14865         Declare as int.
14867 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14869         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14871 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14873         * target.c (gomp_map_pointer): New function abstracting out
14874         GOMP_MAP_POINTER handling.
14875         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14876         gomp_map_pointer().
14878 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14880         PR middle-end/66199
14881         * testsuite/libgomp.c/pr66199-1.c: New test.
14882         * testsuite/libgomp.c/pr66199-2.c: New test.
14883         * testsuite/libgomp.c++/pr66199-1.C: New test.
14884         * testsuite/libgomp.c++/pr66199-2.C: New test.
14885         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14886         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14888 2015-05-19  Julian Brown  <julian@codesourcery.com>
14890         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14891         on cuInit failure.
14893 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
14895         PR middle-end/66133
14896         * testsuite/libgomp.c/pr66133.c: New test.
14898 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14900         * Makefile.in: Regenerated with automake-1.11.6.
14901         * aclocal.m4: Likewise.
14902         * config.h.in: Likewise.
14903         * configure: Likewise.
14904         * testsuite/Makefile.in: Likewise.
14906 2015-05-08  Jason Merrill  <jason@redhat.com>
14908         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14909         _Complex.
14911         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14913 2015-05-06  Julian Brown  <julian@codesourcery.com>
14915         * oacc-init.c (acc_device_lock): Add explanatory comment.
14916         (resolve_device): Add comment about locking requirement.
14917         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14918         gomp_init_device and gomp_fini_device calls.
14919         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14920         (acc_get_device_num, acc_set_device_num): Add locking around
14921         resolve_device and gomp_init_device calls.
14923 2015-05-06  Julian Brown  <julian@codesourcery.com>
14925         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14926         goacc_thread_lock on error paths.
14927         * oacc-mem.c (lookup_host): Remove locking from function. Note
14928         locking requirement for caller in function comment.
14929         (lookup_dev): Likewise.
14930         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14931         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14932         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14933         Add locking.
14935 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
14937         PR testsuite/65205
14938         PR libgomp/65993
14939         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14940         don't expect "0x" prefix for "%p" format specifier, don't expect
14941         "(nil)" for NULL pointer.
14942         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14943         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14944         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14945         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14946         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14947         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14948         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14949         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14950         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14951         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14952         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14953         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14954         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14955         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14956         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14957         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14958         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14959         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14960         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14961         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14962         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14963         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14964         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14965         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14966         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14967         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14968         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14969         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14970         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14971         accurately specify what we're looking for.
14972         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14973         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14974         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14975         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14976         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14978 2015-04-30  James Norris  <jnorris@codesourcery.com>
14980         PR testsuite/65205
14981         * testsuite/lib/libgomp.exp
14982         (check_effective_target_openacc_host_selected)
14983         (check_effective_target_openacc_host_nonshm_selected): New
14984         procedures.
14985         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14986         dg-shouldfail.
14987         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14988         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14989         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14990         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14991         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14992         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14993         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14994         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14995         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14996         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14997         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14998         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14999         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15000         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15001         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15002         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15003         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15004         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15005         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15006         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15007         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15008         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15009         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15010         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15011         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15012         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15013         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15014         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15015         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15016         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15017         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15018         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15019         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15020         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15021         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15022         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15023         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15024         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15025         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15026         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15027         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15028         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15029         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15031 2015-04-08  Julian Brown  <julian@codesourcery.com>
15033         * libgomp.h (target_mem_desc: Remove mem_map field.
15034         (acc_dispatch_t): Remove open_device_func, close_device_func,
15035         get_device_num_func, set_device_num_func, target_data members.
15036         Change create_thread_data_func argument to device number instead of
15037         generic pointer.
15038         * oacc-async.c (assert.h): Include.
15039         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15040         (acc_wait_all, acc_wait_all_async): Use current host thread's
15041         active device, not base_dev.
15042         * oacc-cuda.c (acc_get_current_cuda_device)
15043         (acc_get_current_cuda_context, acc_get_cuda_stream)
15044         (acc_set_cuda_stream): Likewise.
15045         * oacc-host.c (host_dispatch): Don't set open_device_func,
15046         close_device_func, get_device_num_func or set_device_num_func.
15047         * oacc-init.c (base_dev, init_key): Remove.
15048         (cached_base_dev): New.
15049         (name_of_acc_device_t): New.
15050         (acc_init_1): Initialise default-numbered device, not zeroth.
15051         (acc_shutdown_1): Close all devices of a given type.
15052         (goacc_destroy_thread): Don't use base_dev.
15053         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15054         (goacc_attach_host_thread_to_device): New.
15055         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15056         (acc_get_num_devices): Don't use base_dev.
15057         (acc_set_device_type): Reimplement.
15058         (acc_get_device_type): Don't use base_dev.
15059         (acc_get_device_num): Tweak logic.
15060         (acc_set_device_num): Likewise.
15061         (acc_on_device): Use acc_get_device_type.
15062         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15063         (goacc_lazy_initialize): Reimplement with acc_init and
15064         goacc_attach_host_thread_to_device.
15065         * oacc-int.h (goacc_thread): Add base_dev field.
15066         (base_dev): Remove extern declaration.
15067         (goacc_attach_host_thread_to_device): Add prototype.
15068         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15069         base_dev.
15070         (acc_free): Likewise.
15071         (acc_memcpy_to_device): Likewise.
15072         (acc_memcpy_from_device): Likewise.
15073         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15074         goacc_lazy_initialize (throughout).
15075         (GOACC_parallel): Use tgt_offset to locate target functions.
15076         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15077         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15078         (gomp_load_plugin_for_device): Remove open_device, close_device,
15079         get_device_num, set_device_num openacc hook initialisation. Don't set
15080         openacc.target_data.
15081         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15082         (GOMP_OFFLOAD_openacc_close_device)
15083         (GOMP_OFFLOAD_openacc_get_device_num)
15084         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15085         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15086         to int.
15087         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15088         (instantiated_devices, ptx_dev_lock): New.
15089         (struct ptx_image_data): New.
15090         (ptx_devices, ptx_images, ptx_image_lock): New.
15091         (fini_streams_for_device): Reorder cuStreamDestroy call.
15092         (nvptx_get_num_devices): Remove forward declaration.
15093         (nvptx_init): Change return type to bool.
15094         (nvptx_fini): Remove.
15095         (nvptx_attach_host_thread_to_device): New.
15096         (nvptx_open_device): Return struct ptx_device* instead of void*.
15097         (nvptx_close_device): Change argument type to struct ptx_device*,
15098         return type to void.
15099         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15100         (kernel_target_data, kernel_host_table): Remove static globals.
15101         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15102         (GOMP_OFFLOAD_init_device): Reimplement.
15103         (GOMP_OFFLOAD_fini_device): Likewise.
15104         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15105         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15106         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15107         (GOMP_OFFLOAD_openacc_open_device)
15108         (GOMP_OFFLOAD_openacc_close_device)
15109         (GOMP_OFFLOAD_openacc_set_device_num)
15110         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15111         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15112         (device number).
15114         testsuite/
15115         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15117 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15119         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15120         * libgomp.h (struct gomp_memory_mapping): Remove.
15121         (struct target_mem_desc): Change type of mem_map from
15122         gomp_memory_mapping * to splay_tree_s *.
15123         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15124         Add load_image_func, unload_image_func.
15125         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15126         Remove offload_regions_registered.
15127         (gomp_init_tables): Remove.
15128         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15129         to splay_tree_s *.
15130         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15131         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15132         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15133         offload_regions_registered.
15134         Initialize load_image_func, unload_image_func, mem_map.root.
15135         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15136         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15137         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15138         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15139         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15140         (lookup_dev): Use dev's lock.
15141         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15142         (acc_is_present): Likewise.
15143         (acc_map_data): Likewise.
15144         (acc_unmap_data): Likewise.  Use dev's lock.
15145         (present_create_copy): Likewise.
15146         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15147         (update_dev_host): Likewise.
15148         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15149         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15150         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15151         (GOMP_OFFLOAD_get_table): Remove
15152         (GOMP_OFFLOAD_load_image): New function.
15153         (GOMP_OFFLOAD_unload_image): New function.
15154         * target.c (register_lock): New mutex for offload image registration.
15155         (num_devices): Do not guard with PLUGIN_SUPPORT.
15156         (gomp_realloc_unlock): New static function.
15157         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15158         before gomp_fatal.
15159         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15160         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15161         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15162         mem_map's.
15163         (gomp_unmap_vars): Likewise.
15164         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15165         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15166         (gomp_offload_image_to_device): New static function.
15167         (GOMP_offload_register): Add mutex lock.
15168         Call gomp_offload_image_to_device for all initialized devices.
15169         Replace gomp_realloc with gomp_realloc_unlock.
15170         (GOMP_offload_unregister): New function.
15171         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15172         get_table_func from the plugin with calls to init_device_func and
15173         gomp_offload_image_to_device.
15174         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15175         to splay_tree_s *.
15176         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15177         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15178         (GOMP_target_data): Do not call gomp_init_tables.
15179         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
15180         (gomp_load_plugin_for_device): Replace register_image and get_table
15181         with load_image and unload_image in DLSYM ().
15182         (gomp_register_images_for_device): Remove function.
15183         (gomp_target_init): Do not initialize current_device.mem_map.*,
15184         current_device.offload_regions_registered.
15185         Remove call to gomp_register_images_for_device.
15186         Do not free offload_images and num_offload_images.
15188 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15190         PR fortran/65597
15191         * testsuite/libgomp.fortran/pr65597.f90: New test.
15193 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15195         PR testsuite/65594
15196         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15197         (init, check): New function.
15198         (foo): Change return type to void.
15199         (main): Call init and check.
15201 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15203         PR testsuite/65594
15204         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15205         (foo): Use M for non-inner loops to scale down test-case.
15207 2015-03-25  Kai Tietz  <ktietz@redhat.com>
15209         PR libgomp/64972
15210         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15211         (GOACC_data_start): Likewise.
15212         * target.c (gomp_map_vars): Likewise.
15214 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
15216         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15217         hppa*-*-hpux*.
15219 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15221         * testsuite/libgomp.c/target-10.c: New test.
15222         * testsuite/libgomp.c++/target-4.C: New test.
15224 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15226         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15227         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15229 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15231         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15232         * configure.ac (*-*-rtems*): Assume Pthread is supported.
15233         (pthread.h): Check for this header file.
15234         * configure: Regenerate.
15236 2015-02-25  Tom de Vries  <tom@codesourcery.com>
15238         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15239         (check_reduction_op, check_reduction_macro, max, min):
15240         Declare.
15241         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15242         function.
15243         (main): Use new functions.
15245 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
15247         * target.c (gomp_load_plugin_for_device): Use const char * instead of
15248         char * for variables holding dlerror return values.
15249         (DLSYM_OPT): Ditto.
15251 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15253         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15255 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15256             Cesar Philippidis  <cesar@codesourcery.com>
15258         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15259         GOACC_ctaid, and GOACC_nctaid routines.
15261 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15263         PR c/64824
15264         * testsuite/libgomp.c/atomic-18.c: New test.
15265         * testsuite/libgomp.c++/atomic-16.C: New test.
15267 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15269         PR c/64824
15270         PR c/64868
15271         * testsuite/libgomp.c/pr64824.c: New test.
15272         * testsuite/libgomp.c/pr64868.c: New test.
15273         * testsuite/libgomp.c++/pr64824.C: New test.
15274         * testsuite/libgomp.c++/pr64868.C: New test.
15276 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15278         PR libgomp/64635
15279         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15280         Link with -lpthread.
15281         * config/aix/plugin-suffix.h: Delete.
15283 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
15285         PR libgomp/64635
15286         * configure.tgt (*-*-aix*): Use config_path "aix posix".
15287         (*-*-darwin*): Use config_path "bsd darwin posix".
15288         (*-*-hpux*): Use config_path "hpux posix".
15289         * target.c: Add include of plugin-suffix.h and use
15290         SONAME_SUFFIX macro.
15291         * config/aix/plugin-suffix.h: New file.
15292         * config/darwin/plugin-suffix.h: New file.
15293         * config/hpux/plugin-suffix.h: New file.
15294         * config/posix/plugin-suffix.h: New file.
15296 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15298         PR middle-end/64734
15299         * libgomp.c/pr64734.c: New test.
15301 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15303         PR libgomp/64672
15304         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15306 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15308         PR libgomp/64707
15309         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15310         dg-options.
15312 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15314         PR libgomp/64625
15315         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15316         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15317         formal parameter.  Update all users.
15318         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15319         Document unused formal parameter.
15321 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
15323         * oacc-parallel.c: Don't include <alloca.h>.
15324         (GOACC_parallel): Use gomp_alloca instead of alloca.
15326 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
15328         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15330 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15331             James Norris  <jnorris@codesourcery.com>
15332             Tom de Vries  <tom@codesourcery.com>
15333             Julian Brown  <julian@codesourcery.com>
15334             Cesar Philippidis  <cesar@codesourcery.com>
15335             Nathan Sidwell  <nathan@codesourcery.com>
15336             Tobias Burnus  <burnus@net-b.de>
15338         * Makefile.am (search_path): Add $(top_srcdir)/../include.
15339         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15340         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15341         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15342         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15343         Include $(top_srcdir)/plugin/Makefrag.am.
15344         (nodist_libsubinclude_HEADERS): Add openacc.h.
15345         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15346         openacc.f90, openacc.mod, openacc_kinds.mod.
15347         (omp_lib.mod): Generalize into...
15348         (%.mod): ... this new rule.
15349         (openacc_kinds.mod, openacc.mod): New rules.
15350         * plugin/configfrag.ac: New file.
15351         * configure.ac: Move plugin/offloading support into it.  Include
15352         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
15353         * plugin/Makefrag.am: New file.
15354         * testsuite/Makefile.am (OFFLOAD_TARGETS)
15355         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15356         export.
15357         (libgomp-test-support.exp): New rule.
15358         (all-local): Depend on it.
15359         * Makefile.in: Regenerate.
15360         * testsuite/Makefile.in: Regenerate.
15361         * config.h.in: Likewise.
15362         * configure: Likewise.
15363         * configure.tgt: Harden shell syntax.
15364         * env.c: Include "oacc-int.h".
15365         (parse_acc_device_type): New function.
15366         (gomp_debug_var, goacc_device_type, goacc_device_num): New
15367         variables.
15368         (initialize_env): Initialize those.  Call
15369         goacc_runtime_initialize.
15370         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15371         (gomp_fatal): Call gomp_vfatal.
15372         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15373         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15374         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15375         (splay_tree_node, splay_tree, splay_tree_key)
15376         (struct target_mem_desc, struct splay_tree_key_s)
15377         (struct gomp_memory_mapping, struct acc_dispatch_t)
15378         (struct gomp_device_descr, gomp_acc_insert_pointer)
15379         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15380         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15381         (gomp_free_memmap, gomp_fini_device): New declarations.
15382         (gomp_vdebug, gomp_debug): New macros.
15383         Include "splay-tree.h".
15384         * libgomp.map (OACC_2.0): New symbol version.  Use for
15385         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15386         acc_set_device_type_h_, acc_get_device_type,
15387         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15388         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15389         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15390         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15391         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15392         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15393         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15394         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15395         acc_copyin_array_h_, acc_present_or_copyin,
15396         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15397         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15398         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15399         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15400         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15401         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15402         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15403         acc_update_device, acc_update_device_32_h_,
15404         acc_update_device_64_h_, acc_update_device_array_h_,
15405         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15406         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15407         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15408         acc_is_present_64_h_, acc_is_present_array_h_,
15409         acc_memcpy_to_device, acc_memcpy_from_device,
15410         acc_get_current_cuda_device, acc_get_current_cuda_context,
15411         acc_get_cuda_stream, acc_set_cuda_stream.
15412         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
15413         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15414         GOACC_update, GOACC_wait, GOACC_get_thread_num,
15415         GOACC_get_num_threads.
15416         (GOMP_PLUGIN_1.0): New symbol version.  Use for
15417         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15418         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15419         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15420         GOMP_PLUGIN_acc_thread.
15421         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15422         environment variable.
15423         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15424         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15425         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15426         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15427         (splay_tree_remove): New declarations.
15428         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15429         (splay_tree_remove, splay_tree_lookup): Move into...
15430         * splay-tree.c: ... this new file.
15431         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15432         (splay_tree_node, splay_tree, splay_tree_key)
15433         (struct target_mem_desc, struct splay_tree_key_s)
15434         (struct gomp_device_descr): Don't declare.
15435         (num_devices_openmp): New variable.
15436         (gomp_get_num_devices ): Use it.
15437         (gomp_init_targets_once): New function.
15438         (gomp_get_num_devices ): Use it.
15439         (get_kind, gomp_copy_from_async, gomp_free_memmap)
15440         (gomp_fini_device, gomp_register_image_for_device): New functions.
15441         (gomp_map_vars): Add devaddrs parameter.
15442         (gomp_update): Add mm parameter.
15443         (gomp_init_device): Move most of it into...
15444         (gomp_init_tables): ... this new function.
15445         (gomp_register_images_for_device): Remove function.
15446         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15447         Make them hidden instead of static.
15448         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15449         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15450         (GOMP_target_end_data, GOMP_target_update)
15451         (gomp_load_plugin_for_device, gomp_target_init): Update for
15452         OpenACC changes.
15453         * oacc-async.c: New file.
15454         * oacc-cuda.c: Likewise.
15455         * oacc-host.c: Likewise.
15456         * oacc-init.c: Likewise.
15457         * oacc-int.h: Likewise.
15458         * oacc-mem.c: Likewise.
15459         * oacc-parallel.c: Likewise.
15460         * oacc-plugin.c: Likewise.
15461         * oacc-plugin.h: Likewise.
15462         * oacc-ptx.h: Likewise.
15463         * openacc.f90: Likewise.
15464         * openacc.h: Likewise.
15465         * openacc_lib.h: Likewise.
15466         * plugin/plugin-host.c: Likewise.
15467         * plugin/plugin-nvptx.c: Likewise.
15468         * libgomp-plugin.c: Likewise.
15469         * libgomp-plugin.h: Likewise.
15470         * libgomp_target.h: Remove file after merging content into the
15471         former file.  Update all users.
15472         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15473         (offload_targets_s, offload_targets_s_openacc): New variables.
15474         (check_effective_target_openacc_nvidia_accel_present)
15475         (check_effective_target_openacc_nvidia_accel_selected): New
15476         procedures.
15477         (libgomp_init): Update for OpenACC changes.
15478         * testsuite/libgomp-test-support.exp.in: New file.
15479         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15480         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15481         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15482         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15483         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15484         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15485         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15486         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15487         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15488         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15489         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15490         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15491         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15492         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15493         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15494         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15495         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15496         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15497         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15498         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15499         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15500         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15501         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15502         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15503         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15504         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15505         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15506         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15507         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15508         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15509         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15510         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15511         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15512         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15513         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15514         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15515         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15516         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15517         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15518         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15519         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15520         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15521         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15522         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15523         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15524         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15525         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15526         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15527         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15528         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15529         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15530         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15531         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15532         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15533         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15534         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15535         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15536         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15537         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15538         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15539         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15540         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15541         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15542         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15543         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15544         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15545         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15546         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15547         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15548         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15549         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15550         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15551         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15552         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15553         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15554         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15555         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15556         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15557         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15558         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15559         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15560         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15561         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15562         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15563         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15564         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15565         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15566         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15567         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15568         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15569         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15570         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15571         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15572         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15573         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15574         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15575         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15576         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15577         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15578         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15579         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15580         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15581         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15582         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15583         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15584         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15585         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15586         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15587         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15588         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15589         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15590         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15591         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15592         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15593         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15594         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15595         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15596         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15597         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15598         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15599         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15600         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15601         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15602         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15603         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15604         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15605         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15606         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15607         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15608         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15609         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15610         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15611         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15612         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15613         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15614         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15615         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15616         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15617         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15618         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15619         Likewise.
15620         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15621         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15622         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15623         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15624         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15625         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15626         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15627         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15628         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15629         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15630         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15631         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15632         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15633         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15634         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15635         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15636         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15637         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15638         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15639         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15640         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15641         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15642         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15643         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15644         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15645         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15646         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15647         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15648         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15649         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15650         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15651         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15652         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15653         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15654         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15655         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15656         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15657         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15658         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15659         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15660         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15661         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15662         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15663         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15664         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15665         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15666         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15667         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15668         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15669         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15670         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15671         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15672         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15673         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15674         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15675         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15676         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15677         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15678         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15679         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15681 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15682             Julian Brown  <julian@codesourcery.com>
15683             David Malcolm  <dmalcolm@redhat.com>
15685         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15686         to "GNU Offloading and Multi Processing Runtime Library".  Change
15687         all users.
15688         * configure: Regenerate.
15689         * libgomp.texi: Update.
15691 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15693         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15694         "$tgt_dir/lib32".
15695         * configure: Regenerate.
15697         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15698         "intelmic" in $offload_targets.
15700 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15702         Update copyright years.
15704         * libgomp.texi: Bump @copying's copyright year.
15706 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15708         * testsuite/lib/libgomp.exp: Load target-utils.exp.
15709         Move load of target-supports.exp earlier.
15711 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
15713         * testsuite/libgomp.c/target-9.c: New test.
15715 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
15717         * config.h.in: Regenerate.
15718         * configure: Regenerate.
15719         * configure.ac: Add GCC_CHECK_EMUTLS.
15720         * libgomp.h: Add check for USE_EMUTLS: this case
15721         is equal to HAVE_TLS.
15722         * team.c: Likewise.
15724 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
15726         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15728 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15729             Ilya Verbin  <ilya.verbin@intel.com>
15731         * testsuite/libgomp.c/target-critical-1.c: New test.
15733 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
15735         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15736         to dg-options unless expensive testing is on.
15737         (TESTITERS): Define to N if not defined.
15738         (main): Use TESTITERS instead of N.
15739         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15740         dg-additional-options depending on whether expensive testing is on.
15741         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15742         Decrease N to 100000 and CHUNKSZ to 10000.
15744 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
15746         PR fortran/63938
15747         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15748         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15750 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
15752         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15754 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15756         PR bootstrap/63784
15757         * configure: Regenerated.
15759 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
15761         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15762         vect_simd_clones effective target.
15763         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15765 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
15767         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15768         of 32 as block_size.
15769         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15770         instead of 32 as block_size.
15772 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15773             Ilya Verbin  <ilya.verbin@intel.com>
15775         * Makefile.in: Regenerate.
15776         * configure: Regenerate.
15777         * configure.ac: Set up offload_additional_options,
15778         offload_additional_lib_paths and offload_targets.
15779         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15780         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15781         * testsuite/Makefile.in: Regenerate.
15782         * testsuite/lib/libgomp.exp (libgomp_init): Append
15783         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
15784         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
15785         build directory to LD_LIBRARY_PATH for intelmic offload targets.
15787 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15788             Ilya Verbin  <ilya.verbin@intel.com>
15789             Kirill Yukhin  <kirill.yukhin@intel.com>
15790             Ilya Tocar  <ilya.tocar@intel.com>
15792         * testsuite/lib/libgomp.exp
15793         (check_effective_target_offload_device): New.
15794         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15795         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15796         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15797         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15798         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15799         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15800         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15801         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15802         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15803         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15804         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15805         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15806         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15807         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15808         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15809         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15810         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15811         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15812         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15813         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15814         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15815         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15816         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15817         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15818         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15819         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15820         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15821         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15822         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15823         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15824         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15825         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15826         * testsuite/libgomp.c/target-7.c: Fix test.
15827         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15828         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15829         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15830         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15831         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15832         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15833         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15834         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15835         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15836         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15837         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15838         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15839         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15840         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15841         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15842         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15843         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15844         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15845         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15846         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15847         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15848         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15849         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15850         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15851         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15852         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15853         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15854         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15855         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15856         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15857         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15859 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
15860             Ilya Verbin  <ilya.verbin@intel.com>
15861             Thomas Schwinge  <thomas@codesourcery.com>
15862             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15864         * libgomp.map (GOMP_4.0.1): New symbol version.
15865         Add GOMP_offload_register.
15866         * libgomp_target.h: New file.
15867         * splay-tree.h: New file.
15868         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15869         (gomp_target_init): New forward declaration.
15870         (gomp_is_initialized): New static variable.
15871         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15872         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15873         New structures.
15874         (offload_images, num_offload_images, devices, num_devices): New static
15875         variables.
15876         (splay_compare): New static function.
15877         (struct gomp_device_descr): New structure.
15878         (gomp_get_num_devices): Call gomp_target_init.
15879         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15880         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15881         (GOMP_offload_register): New function.
15882         (GOMP_target): Arrange for host callback to be performed in a separate
15883         initial thread and contention group, inheriting ICVs from
15884         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
15885         Add device initialization and lookup for target function in splay tree.
15886         (GOMP_target_data): Add device initialization and call gomp_map_vars.
15887         (GOMP_target_end_data): Call gomp_unmap_vars.
15888         (GOMP_target_update): Add device initialization and call gomp_update.
15889         (gomp_load_plugin_for_device, gomp_register_images_for_device)
15890         (gomp_target_init): New static functions.
15892 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
15893             Thomas Schwinge  <thomas@codesourcery.com>
15894             Ilya Verbin  <ilya.verbin@intel.com>
15895             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15897         * config.h.in: Regenerate.
15898         * configure: Regenerate.
15899         * configure.ac: Check for libdl, required for plugin support.
15900         (PLUGIN_SUPPORT): Define if plugins are supported.
15901         (enable_offload_targets): Support Intel MIC targets.
15902         (OFFLOAD_TARGETS): List of target names suitable for offloading.
15904 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15906         PR target/63610
15907         * configure: Regenerate.
15909 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15911         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15913 2014-10-06  Marek Polacek  <polacek@redhat.com>
15915         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15916         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15917         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15918         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15920 2014-10-06  Marek Polacek  <polacek@redhat.com>
15922         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15923         * testsuite/libgomp.c/nqueens-1.c: Likewise.
15924         * testsuite/libgomp.c/pr26943-3.c: Likewise.
15925         * testsuite/libgomp.c/pr26943-4.c: Likewise.
15926         * testsuite/libgomp.c/pr36802-2.c: Likewise.
15927         * testsuite/libgomp.c/pr36802-3.c: Likewise.
15928         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15929         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15930         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15931         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15932         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15933         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15934         * testsuite/libgomp.c/omp-single-1.c: Likewise.
15935         * testsuite/libgomp.c/omp-single-2.c: Likewise.
15936         * testsuite/libgomp.c/omp_matvec.c: Likewise.
15937         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15938         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15939         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
15940         declarations.
15942 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
15944         PR libgomp/61200
15945         * testsuite/libgomp.c/pr61200.c: New test.
15947 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
15949         PR c++/63248
15950         * testsuite/libgomp.c++/pr63248.C: New test.
15952 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
15954         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15955         is not zero, but taskgroup->children is NULL and there are
15956         any task->children, schedule those instead of waiting.
15957         * testsuite/libgomp.c/depend-6.c: New test.
15958         * testsuite/libgomp.c/depend-7.c: New test.
15959         * testsuite/libgomp.c/depend-8.c: New test.
15960         * testsuite/libgomp.c/depend-9.c: New test.
15961         * testsuite/libgomp.c/depend-10.c: New test.
15963 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
15965         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15966         (struct gomp_taskwait): New type.
15967         (struct gomp_task): Add taskwait and parent_depends_on, remove
15968         in_taskwait and taskwait_sem fields.
15969         (gomp_finish_task): Don't destroy taskwait_sem.
15970         * task.c (gomp_init_task): Don't init in_taskwait, instead init
15971         taskwait and parent_depends_on.
15972         (GOMP_task): For if (0) tasks with depend clause that depend on
15973         earlier tasks don't defer them, instead call
15974         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15975         Initialize redundant_out field, for redundant out entries just
15976         move them at the end of linked list instead of removing them
15977         completely, and set redundant_out flag instead of redundant.
15978         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15979         that task.
15980         (gomp_task_run_post_handle_dependers): If parent is in
15981         gomp_task_maybe_wait_for_dependencies and newly runnable task
15982         is not parent_depends_on, queue it in parent->children linked
15983         list after all runnable tasks with parent_depends_on set.
15984         Adjust for addition of taskwait indirection.
15985         (gomp_task_run_post_remove_parent): If parent is in
15986         gomp_task_maybe_wait_for_dependencies and task to be removed
15987         is parent_depends_on, decrement n_depend and if needed awake
15988         parent.  Adjust for addition of taskwait indirection.
15989         (GOMP_taskwait): Adjust for addition of taskwait indirection.
15990         (gomp_task_maybe_wait_for_dependencies): New function.
15991         * testsuite/libgomp.c/depend-5.c: New test.
15993 2014-07-13  Tobias Burnus  <burnus@net-b.de>
15995         * testsuite/libgomp.fortran/pr34020.f90: Make compile
15996         with TS 18508/Fortran 2015.
15998 2014-07-06  Marek Polacek  <polacek@redhat.com>
16000         PR c/6940
16001         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16003 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16005         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16006         matches regex $lang_source_re, add $lang_include_flags to options.
16007         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16008         * testsuite/libgomp.c++/c++.exp: Likewise.
16009         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16010         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16011         ALWAYS_CFLAGS.
16012         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16014 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16016         * testsuite/libgomp.fortran/fortran.exp: Explain
16017         gfortran-dg-runtest usage.
16019 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16021         * testsuite/libgomp.fortran/simd5.f90: New test.
16022         * testsuite/libgomp.fortran/simd6.f90: New test.
16023         * testsuite/libgomp.fortran/simd7.f90: New test.
16025 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16027         * testsuite/libgomp.c/for-2.c: Define SC to static for
16028         #pragma omp for simd testing.
16029         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16030         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16031         SC macro.
16032         * testsuite/libgomp.c/simd-14.c: New test.
16033         * testsuite/libgomp.c/simd-15.c: New test.
16034         * testsuite/libgomp.c/simd-16.c: New test.
16035         * testsuite/libgomp.c/simd-17.c: New test.
16036         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16037         #pragma omp for simd testing.
16038         * testsuite/libgomp.c++/simd10.C: New test.
16039         * testsuite/libgomp.c++/simd11.C: New test.
16040         * testsuite/libgomp.c++/simd12.C: New test.
16041         * testsuite/libgomp.c++/simd13.C: New test.
16043         * testsuite/libgomp.fortran/aligned1.f03: New test.
16044         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16045         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16046         tasks with !$omp parallel !$omp single.
16047         * testsuite/libgomp.fortran/target8.f90: New test.
16048         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16049         not to use trim in the combiner, instead call elemental function.
16050         (fn): New elemental function.
16051         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16052         Make elemental.
16053         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16054         omp_in): Likewise.
16055         * testsuite/libgomp.fortran/udr12.f90: New test.
16056         * testsuite/libgomp.fortran/udr13.f90: New test.
16057         * testsuite/libgomp.fortran/udr14.f90: New test.
16058         * testsuite/libgomp.fortran/udr15.f90: New test.
16060 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16062         * omp_lib.f90.in (openmp_version): Set to 201307.
16063         * omp_lib.h.in (openmp_version): Likewise.
16064         * testsuite/libgomp.c/target-8.c: New test.
16065         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16066         and inbranch clauses.
16067         * testsuite/libgomp.fortran/depend-3.f90: New test.
16068         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16069         openmp_version.
16070         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16071         * testsuite/libgomp.fortran/target1.f90: New test.
16072         * testsuite/libgomp.fortran/target2.f90: New test.
16073         * testsuite/libgomp.fortran/target3.f90: New test.
16074         * testsuite/libgomp.fortran/target4.f90: New test.
16075         * testsuite/libgomp.fortran/target5.f90: New test.
16076         * testsuite/libgomp.fortran/target6.f90: New test.
16077         * testsuite/libgomp.fortran/target7.f90: New test.
16079 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16081         PR fortran/60928
16082         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16083         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16084         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16085         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16086         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16087         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16088         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16089         * testsuite/libgomp.fortran/associate1.f90: New test.
16090         * testsuite/libgomp.fortran/associate2.f90: New test.
16091         * testsuite/libgomp.fortran/procptr1.f90: New test.
16093 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16095         * testsuite/libgomp.fortran/simd1.f90: New test.
16096         * testsuite/libgomp.fortran/udr1.f90: New test.
16097         * testsuite/libgomp.fortran/udr2.f90: New test.
16098         * testsuite/libgomp.fortran/udr3.f90: New test.
16099         * testsuite/libgomp.fortran/udr4.f90: New test.
16100         * testsuite/libgomp.fortran/udr5.f90: New test.
16101         * testsuite/libgomp.fortran/udr6.f90: New test.
16102         * testsuite/libgomp.fortran/udr7.f90: New test.
16103         * testsuite/libgomp.fortran/udr8.f90: New test.
16104         * testsuite/libgomp.fortran/udr9.f90: New test.
16105         * testsuite/libgomp.fortran/udr10.f90: New test.
16106         * testsuite/libgomp.fortran/udr11.f90: New test.
16108 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16110         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16111         vect_simd_clones effective target.
16112         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16114 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16116         PR middle-end/61252
16117         * testsuite/libgomp.c++/simd-9.C: New test.
16119 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16121         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16122         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16123         texts according to their @menu entry positions.
16125 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16127         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16128         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16129         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16130         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16131         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16132         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16133         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16134         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16135         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16136         * testsuite/libgomp.fortran/depend-1.f90: New test.
16137         * testsuite/libgomp.fortran/depend-2.f90: New test.
16138         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16139         * testsuite/libgomp.fortran/simd1.f90: New test.
16140         * testsuite/libgomp.fortran/simd2.f90: New test.
16141         * testsuite/libgomp.fortran/simd3.f90: New test.
16142         * testsuite/libgomp.fortran/simd4.f90: New test.
16143         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16145 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16147         * testsuite/libgomp.c/simd-10.c: New test.
16148         * testsuite/libgomp.c/simd-11.c: New test.
16149         * testsuite/libgomp.c/simd-12.c: New test.
16150         * testsuite/libgomp.c/simd-13.c: New test.
16152 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16154         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16155         atomic type clauses in any order and optional comma in between.
16156         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16157         * testsuite/libgomp.c/atomic-17.c: Likewise.
16159         * testsuite/libgomp.c/simd-7.c: New test.
16160         * testsuite/libgomp.c/simd-8.c: New test.
16161         * testsuite/libgomp.c/simd-9.c: New test.
16162         * testsuite/libgomp.c/loop-16.c: New test.
16164 2014-04-02  Richard Henderson  <rth@redhat.com>
16166         * config/linux/futex.h (futex_wait): Get error value from errno.
16167         (futex_wake): Likewise.
16169 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16171         PR c++/60331
16172         * testsuite/libgomp.c++/udr-11.C: New test.
16173         * testsuite/libgomp.c++/udr-12.C: New test.
16174         * testsuite/libgomp.c++/udr-13.C: New test.
16175         * testsuite/libgomp.c++/udr-14.C: New test.
16176         * testsuite/libgomp.c++/udr-15.C: New test.
16177         * testsuite/libgomp.c++/udr-16.C: New test.
16178         * testsuite/libgomp.c++/udr-17.C: New test.
16179         * testsuite/libgomp.c++/udr-18.C: New test.
16180         * testsuite/libgomp.c++/udr-19.C: New test.
16182 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16184         Update copyright years
16186 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16188         * hashtab.h: Use the standard form for the copyright notice.
16190 2014-01-02  Tobias Burnus  <burnus@net-b.de>
16192         * libgomp.texi: Bump @copying's copyright year.
16194 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
16196         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16197         alloca () with __builtin_alloca ().
16198         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16199         * testsuite/libgomp.c/lock-3.c: Likewise.
16200         * testsuite/libgomp.c/pr48591.c: Likewise.
16202 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
16204         PR testsuite/59534
16205         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16206         comparisons.
16208 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
16210         PR libgomp/58756
16211         * testsuite/libgomp.c/pr58756.c: New test.
16213 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
16215         PR libgomp/59467
16216         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16217         !$omp parallel.
16219 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
16221         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16222         ALWAYS_CFLAGS.
16223         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16224         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16225         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16226         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16227         Likewise.
16229         * libgomp_g.h: Include <stddef.h> for size_t.
16231         * libgomp.spec.in: Update comment about libgomp's dependencies.
16232         * configure.ac: Likewise.
16233         * configure: Regenerate.
16235 2013-10-16  Tobias Burnus  <burnus@net-b.de>
16237         * libgomp.texi: (Runtime Library Routines): Update references for
16238         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16239         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16240         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16241         (Environment Variables): Update references for OpenMP 4.0. Add
16242         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16243         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16244         order.
16246 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
16248         * env.c (parse_bind_var): Initialize value to avoid
16249         (false positive) warning.
16251 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
16253         PR libgomp/58691
16254         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16255         to check variable.
16256         (gomp_init_num_threads): Move i variable declaration into
16257         #ifdef CPU_ALLOC_SIZE block.
16258         * config/linux/affinity.c (gomp_affinity_init_level): Test
16259         gomp_places_list_len == 0 rather than gomp_places_list == 0
16260         when checking for topology reading error.
16261         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16262         * env.c (parse_affinity): Add ignore argument, if true, don't populate
16263         gomp_places_list, only parse env var and always return false.
16264         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
16265         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16266         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16267         and either of these variables were parsed correctly into a places
16268         list.
16270 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16271             Jakub Jelinek  <jakub@redhat.com>
16273         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16274         of 5 loopfn matches.
16275         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16276         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16277         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16278         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16279         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16280         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16281         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16282         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16284 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16286         * Makefile.am (omp_lib.mod): Streamline rule.
16287         * Makefile.in: Regenerate.
16289         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16290         exceptions.
16292         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16293         * testsuite/libgomp.fortran/lib1.f90: Likewise.
16294         * testsuite/libgomp.fortran/lib2.f: Likewise.
16295         * testsuite/libgomp.fortran/lib3.f: Likewise.
16297         * configure.ac: Typo fix.
16298         * configure: Regenerate.
16300         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16301         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16303         * omp.h.in: Don't touch the user's namespace.
16305 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
16306             Tobias Burnus  <burnus@net-b.de>
16307             Richard Henderson  <rth@redhat.com>
16309         * target.c: New file.
16310         * Makefile.am (libgomp_la_SOURCES): Add target.c.
16311         * Makefile.in: Regenerated.
16312         * libgomp_g.h (GOMP_task): Add depend argument.
16313         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16314         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16315         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16316         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16317         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16318         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16319         GOMP_taskgroup_start, GOMP_taskgroup_end,
16320         GOMP_parallel_sections): New prototypes.
16321         * fortran.c (omp_is_initial_device): Add ialias_redirect.
16322         (omp_is_initial_device_): New function.
16323         (ULP, STR1, STR2, ialias_redirect): Removed.
16324         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16325         omp_set_default_device_8_, omp_get_default_device_,
16326         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16327         functions.
16328         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16329         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16330         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16331         @@GOMP_4.0.
16332         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16333         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16334         omp_set_default_device, omp_set_default_device_,
16335         omp_set_default_device_8_, omp_get_default_device,
16336         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16337         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16338         omp_get_team_num_): Export @@OMP_4.0.
16339         * team.c (struct gomp_thread_start_data): Add place field.
16340         (gomp_thread_start): Clear thr->thread_pool and
16341         thr->task before returning.  Use gomp_team_barrier_wait_final
16342         instead of gomp_team_barrier_wait.  Initialize thr->place.
16343         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16344         team_cancelled and task_queued_count fields.
16345         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16346         before calling pthread_exit.
16347         (gomp_free_thread): No longer static.  Use
16348         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16349         (gomp_team_start): Add flags argument.  Set
16350         thr->thread_pool->threads_busy to nthreads immediately after creating
16351         new pool.  Use gomp_managed_threads_lock instead of
16352         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
16353         (gomp_team_end): Use gomp_managed_threads_lock instead of
16354         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
16355         of gomp_team_barrier_wait.  If team->team_cancelled, call
16356         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16357         rather than thr->ts.work_share.
16358         (initialize_team): Don't call gomp_sem_init here.
16359         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16360         caller.
16361         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16362         * env.c (gomp_global_icv): Add default_device_var, target_data and
16363         bind_var initializers.
16364         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16365         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16366         gomp_places_list_len): New variables.
16367         (parse_bind_var, parse_one_place, parse_places_var): New functions.
16368         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16369         sized places.
16370         (gomp_cancel_var): New global variable.
16371         (parse_int): New function.
16372         (handle_omp_display_env): New function.
16373         (initialize_env): Use it.  Initialize default_device_var.
16374         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
16375         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
16376         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
16377         been successfully parsed (and call gomp_init_affinity in that case).
16378         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16379         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16380         omp_get_team_num, omp_is_initial_device): New functions.
16381         * libgomp.h: Include stdlib.h.
16382         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16383         Define.
16384         (struct target_mem_desc): Forward declare.
16385         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16386         and thread_limit_var fields.
16387         (gomp_get_num_devices): New prototype.
16388         (gomp_cancel_var): New extern decl.
16389         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16390         team_cancelled and task_queued_count fields.  Add comments about
16391         task_{,queued_,running_}count.
16392         (gomp_cancel_kind): New enum.
16393         (gomp_work_share_end_cancel): New prototype.
16394         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16395         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16396         and depend fields.
16397         (struct gomp_taskgroup): New type.
16398         (struct gomp_task_depend_entry,
16399         struct gomp_dependers_vec): New types.
16400         (gomp_finish_task): Free depend_hash if non-NULL.
16401         (struct gomp_team_state): Add place_partition_off
16402         and place_partition_len fields.
16403         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16404         gomp_places_list_len): New extern decls.
16405         (struct gomp_thread): Add place field.
16406         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16407         (gomp_init_thread_affinity): Add place argument.
16408         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16409         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16410         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16411         gomp_affinity_init_level, gomp_affinity_print_place): New
16412         prototypes.
16413         (gomp_team_start): Add flags argument.
16414         (gomp_thread_limit_var, gomp_remaining_threads_count,
16415         gomp_remaining_threads_lock): Remove.
16416         (gomp_managed_threads_lock): New variable.
16417         (struct gomp_thread_pool): Add threads_busy field.
16418         (gomp_free_thread): New prototype.
16419         * task.c: Include hashtab.h.
16420         (hash_entry_type): New typedef.
16421         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16422         (gomp_init_task): Clear dependers, depend_hash, depend_count,
16423         copy_ctors_done and taskgroup fields.
16424         (GOMP_task): Add depend argument, handle depend clauses.  If
16425         gomp_team_barrier_cancelled or if it's taskgroup has been
16426         cancelled, don't queue or start new tasks.  Set copy_ctors_done
16427         field if needed.  Initialize taskgroup field.  If copy_ctors_done
16428         and already cancelled, don't discard the task.  If taskgroup is
16429         non-NULL, enqueue the task into taskgroup queue.  Increment
16430         num_children field in taskgroup.  Increment task_queued_count.
16431         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16432         gomp_task_run_post_remove_taskgroup): New inline functions.
16433         (gomp_task_run_post_handle_depend_hash,
16434         gomp_task_run_post_handle_dependers,
16435         gomp_task_run_post_handle_depend): New functions.
16436         (GOMP_taskwait): Use them.  If more than one new tasks
16437         have been queued, wake other threads if needed.
16438         (gomp_barrier_handle_tasks): Likewise.  If
16439         gomp_team_barrier_cancelled, don't start any new tasks, just free
16440         all tasks.
16441         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16442         * omp_lib.f90.in
16443         (omp_proc_bind_kind, omp_proc_bind_false,
16444         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16445         omp_proc_bind_spread): New params.
16446         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16447         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16448         omp_get_team_num, omp_is_initial_device): New interfaces.
16449         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16450         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16451         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16452         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16453         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16454         useless use omp_lib_kinds.
16455         * omp.h.in (omp_proc_bind_t): New typedef.
16456         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16457         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16458         omp_get_team_num, omp_is_initial_device): New prototypes.
16459         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16460         through to gomp_team_start.
16461         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16462         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16463         Adjust gomp_parallel_loop_start callers.
16464         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16465         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16466         GOMP_loop_end_cancel): New functions.
16467         (GOMP_parallel_end): Add ialias_redirect.
16468         * hashtab.h: New file.
16469         * libgomp.texi (Environment Variables): Minor cleanup,
16470         update section refs to OpenMP 4.0rc2.
16471         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16472         environment variables.
16473         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16474         team->work_shares_to_free to thr->ts.work_share before calling
16475         free_work_share.
16476         (gomp_work_share_end_cancel): New function.
16477         * config/linux/proc.c: Include errno.h.
16478         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16479         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16480         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
16481         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
16482         gomp_cpuset_size is sizeof (cpu_set_t).
16483         (gomp_init_num_threads): Initialize gomp_cpuset_size,
16484         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16485         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16486         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
16487         contain any logical CPUs.
16488         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16489         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
16490         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16491         pthread_getaffinity_np.  Check gomp_places_list instead of
16492         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
16493         * config/linux/bar.c (gomp_barrier_wait_end,
16494         gomp_barrier_wait_last): Use BAR_* defines.
16495         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
16496         from state where needed.  Set work_share_cancelled to 0 on last
16497         thread.
16498         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16499         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16500         functions.
16501         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16502         Add cpusetsize argument.
16503         (gomp_cpuset_size, gomp_cpusetp): Declare.
16504         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16505         (affinity_counter): Remove.
16506         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16507         if CPU_ALLOC_SIZE isn't defined.
16508         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16509         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16510         bind current thread to the first place.
16511         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
16512         pthread_setaffinity_np to gomp_places_list[place].
16513         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16514         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16515         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16516         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16517         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16518         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16519         (gomp_barrier_t): Add awaited_final field.
16520         (gomp_barrier_init): Initialize awaited_final field.
16521         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16522         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16523         prototypes.
16524         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
16525         defines.
16526         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16527         gomp_team_barrier_cancelled): New inline functions.
16528         (gomp_barrier_last_thread,
16529         gomp_team_barrier_set_task_pending,
16530         gomp_team_barrier_clear_task_pending,
16531         gomp_team_barrier_set_waiting_for_tasks,
16532         gomp_team_barrier_waiting_for_tasks,
16533         gomp_team_barrier_done): Use BAR_* defines.
16534         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16535         (gomp_barrier_wait_end): Use BAR_* defines.
16536         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16537         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16538         Use BAR_* defines.
16539         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16540         gomp_team_barrier_cancel): New functions.
16541         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16542         argument.
16543         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16544         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16545         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16546         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16547         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16548         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16549         (gomp_barrier_t): Add cancellable field.
16550         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16551         gomp_team_barrier_cancel): New prototypes.
16552         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16553         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16554         gomp_team_barrier_cancelled): New inline functions.
16555         (gomp_barrier_wait_start, gomp_barrier_last_thread,
16556         gomp_team_barrier_set_task_pending,
16557         gomp_team_barrier_clear_task_pending,
16558         gomp_team_barrier_set_waiting_for_tasks,
16559         gomp_team_barrier_waiting_for_tasks,
16560         gomp_team_barrier_done): Use BAR_* defines.
16561         * barrier.c (GOMP_barrier_cancel): New function.
16562         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16563         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16564         omp_proc_bind_spread): New params.
16565         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16566         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16567         omp_get_team_num, omp_is_initial_device): New externals.
16568         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16569         New functions.
16570         (gomp_resolve_num_threads): Adjust for thread_limit now being in
16571         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16572         infinity.  If not nested, just return minimum of max_num_threads
16573         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16574         to the returned value.  Otherwise, don't update atomically
16575         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16576         (GOMP_parallel_end): Adjust for thread_limit now being in
16577         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16578         infinity.  Adjust threads_busy in the pool rather than
16579         gomp_remaining_threads_count.  Remember team->nthreads and call
16580         gomp_team_end before adjusting threads_busy, if not nested
16581         afterwards, just set it to 1 non-atomically.  Add ialias.
16582         (GOMP_parallel_start): Adjust gomp_team_start caller.
16583         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16584         * testsuite/libgomp.c/affinity-1.c: New test.
16585         * testsuite/libgomp.c/atomic-15.c: New test.
16586         * testsuite/libgomp.c/atomic-16.c: New test.
16587         * testsuite/libgomp.c/atomic-17.c: New test.
16588         * testsuite/libgomp.c/cancel-for-1.c: New test.
16589         * testsuite/libgomp.c/cancel-for-2.c: New test.
16590         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16591         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16592         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16593         * testsuite/libgomp.c/cancel-sections-1.c: New test.
16594         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16595         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16596         * testsuite/libgomp.c/depend-1.c: New test.
16597         * testsuite/libgomp.c/depend-2.c: New test.
16598         * testsuite/libgomp.c/depend-3.c: New test.
16599         * testsuite/libgomp.c/depend-4.c: New test.
16600         * testsuite/libgomp.c/for-1.c: New test.
16601         * testsuite/libgomp.c/for-1.h: New file.
16602         * testsuite/libgomp.c/for-2.c: New test.
16603         * testsuite/libgomp.c/for-2.h: New file.
16604         * testsuite/libgomp.c/for-3.c: New test.
16605         * testsuite/libgomp.c/pr58392.c: New test.
16606         * testsuite/libgomp.c/simd-1.c: New test.
16607         * testsuite/libgomp.c/simd-2.c: New test.
16608         * testsuite/libgomp.c/simd-3.c: New test.
16609         * testsuite/libgomp.c/simd-4.c: New test.
16610         * testsuite/libgomp.c/simd-5.c: New test.
16611         * testsuite/libgomp.c/simd-6.c: New test.
16612         * testsuite/libgomp.c/target-1.c: New test.
16613         * testsuite/libgomp.c/target-2.c: New test.
16614         * testsuite/libgomp.c/target-3.c: New test.
16615         * testsuite/libgomp.c/target-4.c: New test.
16616         * testsuite/libgomp.c/target-5.c: New test.
16617         * testsuite/libgomp.c/target-6.c: New test.
16618         * testsuite/libgomp.c/target-7.c: New test.
16619         * testsuite/libgomp.c/taskgroup-1.c: New test.
16620         * testsuite/libgomp.c/thread-limit-1.c: New test.
16621         * testsuite/libgomp.c/thread-limit-2.c: New test.
16622         * testsuite/libgomp.c/thread-limit-3.c: New test.
16623         * testsuite/libgomp.c/udr-1.c: New test.
16624         * testsuite/libgomp.c/udr-2.c: New test.
16625         * testsuite/libgomp.c/udr-3.c: New test.
16626         * testsuite/libgomp.c++/affinity-1.C: New test.
16627         * testsuite/libgomp.c++/atomic-10.C: New test.
16628         * testsuite/libgomp.c++/atomic-11.C: New test.
16629         * testsuite/libgomp.c++/atomic-12.C: New test.
16630         * testsuite/libgomp.c++/atomic-13.C: New test.
16631         * testsuite/libgomp.c++/atomic-14.C: New test.
16632         * testsuite/libgomp.c++/atomic-15.C: New test.
16633         * testsuite/libgomp.c++/cancel-for-1.C: New test.
16634         * testsuite/libgomp.c++/cancel-for-2.C: New test.
16635         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16636         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16637         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16638         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16639         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16640         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16641         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16642         * testsuite/libgomp.c++/cancel-test.h: New file.
16643         * testsuite/libgomp.c++/for-9.C: New test.
16644         * testsuite/libgomp.c++/for-10.C: New test.
16645         * testsuite/libgomp.c++/for-11.C: New test.
16646         * testsuite/libgomp.c++/simd-1.C: New test.
16647         * testsuite/libgomp.c++/simd-2.C: New test.
16648         * testsuite/libgomp.c++/simd-3.C: New test.
16649         * testsuite/libgomp.c++/simd-4.C: New test.
16650         * testsuite/libgomp.c++/simd-5.C: New test.
16651         * testsuite/libgomp.c++/simd-6.C: New test.
16652         * testsuite/libgomp.c++/simd-7.C: New test.
16653         * testsuite/libgomp.c++/simd-8.C: New test.
16654         * testsuite/libgomp.c++/target-1.C: New test.
16655         * testsuite/libgomp.c++/target-2.C: New test.
16656         * testsuite/libgomp.c++/target-2-aux.cc: New file.
16657         * testsuite/libgomp.c++/target-3.C: New test.
16658         * testsuite/libgomp.c++/taskgroup-1.C: New test.
16659         * testsuite/libgomp.c++/udr-1.C: New test.
16660         * testsuite/libgomp.c++/udr-2.C: New test.
16661         * testsuite/libgomp.c++/udr-3.C: New test.
16662         * testsuite/libgomp.c++/udr-4.C: New test.
16663         * testsuite/libgomp.c++/udr-5.C: New test.
16664         * testsuite/libgomp.c++/udr-6.C: New test.
16665         * testsuite/libgomp.c++/udr-7.C: New test.
16666         * testsuite/libgomp.c++/udr-8.C: New test.
16667         * testsuite/libgomp.c++/udr-9.C: New test.
16669 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
16671         PR testsuite/57605
16672         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16673         ALWAYS_CFLAGS.
16675 2013-09-20  Alan Modra  <amodra@gmail.com>
16677         * configure: Regenerate.
16679 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
16681         * testsuite/libgomp.c/sections-2.c: New test.
16683 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16685         * testsuite/libgomp.fortran/strassen.f90:
16686         Add dg-skip-if aarch64_tiny.
16688 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
16689             Cesar Philippidis  <cesar@codesourcery.com>
16691         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16692         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16693         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16694         * testsuite/libgomp.fortran/fortran.exp: Likewise.
16695         * testsuite/libgomp.graphite/graphite.exp: Likewise.
16696         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16697         Use dg-runtest rather than gfortran-dg-runtest.
16699 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16701         * testsuite/libgomp.c/icv-2.c: Extend current handling of
16702         Linux-based x86 systems to cover all GNU systems.
16703         * testsuite/libgomp.c/lock-3.c: Likewise.
16704         * testsuite/libgomp.c/pr48591.c: Likewise.
16706 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
16708         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16709         GNU/Hurd, as done for Linux-based systems.
16711         * config/posix/ptrlock.h: Fix comment.
16713 2013-05-27  Tobias Burnus  <burnus@net-b.de>
16715         PR fortran/57423
16716         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16717         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16718         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16719         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16720         omp_destroy_nest_lock): Correct arguments to match the one in
16721         the OpenMP spec.
16722         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16723         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16724         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16725         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16727 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
16729         * testsuite/libgomp.c/loop-13.c: New test.
16730         * testsuite/libgomp.c/loop-14.c: New test.
16731         * testsuite/libgomp.c/loop-15.c: New test.
16732         * testsuite/libgomp.c++/loop-13.C: New test.
16733         * testsuite/libgomp.c++/loop-14.C: New test.
16734         * testsuite/libgomp.c++/loop-15.C: New test.
16736 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
16738         PR middle-end/56217
16739         * testsuite/libgomp.c++/pr56217.C: New test.
16741 2013-02-01  Alan Modra  <amodra@gmail.com>
16743         * task.c (GOMP_task, GOMP_taskwait): Comment.
16745 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
16746             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
16748         PR libgomp/55561
16749         * config/linux/wait.h (do_spin): Use atomic load for addr.
16750         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16751         for intptr and ptrlock.
16752         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16753         for ptrlock.
16755 2013-01-22  Alan Modra  <amodra@gmail.com>
16757         PR libgomp/51376
16758         PR libgomp/56073
16759         * task.c (GOMP_task): Revert 2011-12-09 change.
16760         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
16761         barrier to read task->children..
16762         (gomp_barrier_handle_tasks): ..and matching atomic store with
16763         release barrier here when setting parent->children to NULL.
16765 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
16766             Tobias Burnus  <burnus@net-b.de>
16768         PR driver/55884
16769         * testsuite/libgomp.fortran/fortran.exp: Use
16770         -fintrinsic-modules-path= instead of
16771         -fintrinsic-modules-path.
16773 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
16775         Update copyright years.
16777 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16779         * testsuite/libgomp.fortran/fortran.exp: Set
16780         -fintrinsic-modules-path.
16782 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16784         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16785         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16787 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
16789         PR libgomp/55411
16790         * team.c (gomp_free_thread): Decrease gomp_managed_threads
16791         if pool had any threads_used.
16793 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
16795         * testsuite/libgomp.c++/pr24455.C: Use
16796         -Wl,-undefined,dynamic_lookup on darwin.
16798 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
16800         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16802 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
16804         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16806 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
16807             Jim MacArthur  <jim.macarthur@arm.com>
16808             Marcus Shawcroft  <marcus.shawcroft@arm.com>
16809             Nigel Stephens  <nigel.stephens@arm.com>
16810             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16811             Richard Earnshaw  <rearnsha@arm.com>
16812             Sofiane Naci  <sofiane.naci@arm.com>
16813             Stephen Thomas  <stephen.thomas@arm.com>
16814             Tejas Belagod  <tejas.belagod@arm.com>
16815             Yufeng Zhang  <yufeng.zhang@arm.com>
16817         * configure.tgt: Add AArch64.
16819 2012-10-04  Jason Merrill  <jason@redhat.com>
16821         * testsuite/libgomp.c++/tls-init1.C: New.
16823 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
16825         * configure: Regenerated.
16827 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
16829         * config/linux/mips/futex.h (sys_futex0): Change to static
16830         function with noinline, nomips16 attributes under MIPS16. Adjust
16831         asm statement to place 'li v0,SYS_futex' immediately before
16832         syscall insn.
16834 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
16836         * libgomp.texi (Library Index): Renamed from "Index" to prevent
16837         conflict with index.html on case-insensitive file systems.
16839 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
16841         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16842         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16844 2012-07-02  Richard Guenther  <rguenther@suse.de>
16845             Michael Matz  <matz@suse.de>
16846             Tobias Grosser <tobias@grosser.es>
16847             Sebastian Pop <sebpop@gmail.com>
16849         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16850         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16851         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16852         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16854 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
16856         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16858 2012-06-22  Richard Guenther  <rguenther@suse.de>
16860         Merge from graphite branch
16861         2012-01-13  Tobias Grosser  <tobias@grosser.es>
16863         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16864         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16866 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
16868         PR middle-end/53580
16869         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16870         use GOMP_barrier () call instead.
16871         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16872         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16873         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16874         call GOMP_barrier instead.
16875         * testsuite/libgomp.fortran/vla5.f90: Likewise.
16877 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
16879         PR libgomp/52993
16880         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16881         argument to memset call.
16883 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16885         * configure: Regenerated.
16887 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16889         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16891 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
16893         PR bootstrap/52812
16894         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16896 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
16898         PR middle-end/52547
16899         * testsuite/libgomp.c/pr52547.c: New test.
16901 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16903         * testsuite/lib/libgomp.exp: load fortran-modules.exp
16905 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16907         * configure.tgt (mips-sgi-irix6*): Remove.
16909 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16911         * configure.tgt (alpha*-dec-osf*): Remove.
16913         * config/osf/sem.h: Remove.
16914         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16916 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16918         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16920 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16922         PR libstdc++/52188
16923         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16924         Remove ENABLE_SYMVERS_SOL2.
16925         * configure: Regenerate.
16926         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16927         (PREPROCESS): New variable.
16928         (libgomp.ver): New target.
16929         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16930         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16931         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16932         Use libgomp.ver.
16933         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16934         * Makefile.in: Regenerate.
16936 2012-02-14  Walter Lee  <walt@tilera.com>
16938         * configure.tgt: Handle tilegx and tilepro.
16939         * config/linux/tile/futex.h: New file.
16941 2012-02-08  Richard Guenther  <rguenther@suse.de>
16943         PR tree-optimization/46886
16944         * testsuite/libgomp.c/pr46886.c: New testcase.
16946 2012-01-25  Matthias Klose  <doko@ubuntu.com>
16948         * config/linux/arm: Remove empty directory.
16949         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16951 2011-12-09  Alan Modra  <amodra@gmail.com>
16953         PR libgomp/51376
16954         * task.c (GOMP_taskwait): Don't access task->children outside of
16955         task_lock mutex region.
16956         (GOMP_task): Likewise.
16958 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
16960         PR libgomp/51132
16961         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16962         to file scope.
16963         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16964         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16965         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16966         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16967         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16969 2011-12-02  Alan Modra  <amodra@gmail.com>
16971         * config/linux/affinity.c: Use atomic rather than sync builtin.
16972         * config/linux/lock.c: Likewise.
16973         * config/linux/ptrlock.h: Likewise.
16974         * config/linux/ptrlock.c: Likewise.
16975         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16976         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16977         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16978         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16979         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16980         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16981         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16982         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16983         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16984         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16986 2011-11-30  Alan Modra  <amodra@gmail.com>
16988         PR libgomp/51298
16989         * config/linux/bar.h: Use atomic rather than sync builtins.
16990         * config/linux/bar.c: Likewise.  Add missing acquire
16991         synchronisation on generation field.
16992         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16993         double unlock.
16995 2011-11-30  Alan Modra  <amodra@gmail.com>
16997         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16998         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16999         * config/linux/mutex.h: Use atomic rather than sync builtins.
17000         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17001         * config/linux/omp-lock.h: Comment fix.
17002         * config/linux/arm/mutex.h: Delete.
17003         * config/linux/powerpc/mutex.h: Delete.
17004         * config/linux/ia64/mutex.h: Delete.
17005         * config/linux/mips/mutex.h: Delete.
17007 2011-11-30  Alan Modra  <amodra@gmail.com>
17009         PR libgomp/51249
17010         * config/linux/sem.h: Rewrite.
17011         * config/linux/sem.c: Rewrite.
17013 2011-11-28  Richard Henderson  <rth@redhat.com>
17015         * libgomp.h (enum memmodel): New.
17017 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17019         * configure: Regenerate.
17021 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17023         * config/posix95: Remove empty directory.
17025 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17027         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17029 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17031         PR fortran/49792
17032         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17033         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17035 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17037         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17039 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17041         PR libgomp/49965
17042         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17044 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17046         * config/linux/proc.h: New.
17047         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17048         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17049         (gomp_init_num_threads): Update call to cpuset_popcount.
17050         (get_num_procs): Ditto.
17051         * config/linux/affinity.c (gomp_init_affinity): Call
17052         gomp_cpuset_popcount.
17054 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17056         PR fortran/42041
17057         PR fortran/46752
17058         * omp.h.in (omp_in_final): New prototype.
17059         * omp_lib.f90.in (omp_in_final): New interface.
17060         (omp_integer_kind, omp_logical_kind): Remove
17061         and replace all its uses in the module with 4.
17062         (openmp_version): Change to 201107.
17063         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17064         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17065         kind for the parameters.
17066         (omp_in_final): New external.
17067         (openmp_version): Change to 201107.
17068         * task.c (omp_in_final): New function.
17069         (gomp_init_task): Initialize final_task.
17070         (GOMP_task): Remove unused attribute from flags.  Handle final
17071         tasks.
17072         (GOMP_taskyield): New function.
17073         (omp_in_final): Return true if if (false) or final (true) task
17074         or descendant of final (true).
17075         * fortran.c (omp_in_final_): New function.
17076         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17077         (GOMP_3.0): Export GOMP_taskyield.
17078         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17079         variables.
17080         (parse_unsigned_long_list): New function.
17081         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17082         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17083         even if parse_affinity returned false.
17084         * config/linux/affinity.c (gomp_init_affinity): Handle
17085         gomp_cpu_affinity_len == 0.
17086         * libgomp_g.h (GOMP_taskyield): New prototype.
17087         * libgomp.h (struct gomp_task): Add final_task field.
17088         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17089         * team.c (gomp_team_start): Override new task's nthreads_var icv
17090         if list form OMP_NUM_THREADS has been used and it has value for
17091         the new nesting level.
17093         * testsuite/libgomp.c/atomic-11.c: New test.
17094         * testsuite/libgomp.c/atomic-12.c: New test.
17095         * testsuite/libgomp.c/atomic-13.c: New test.
17096         * testsuite/libgomp.c/atomic-14.c: New test.
17097         * testsuite/libgomp.c/reduction-6.c: New test.
17098         * testsuite/libgomp.c/task-5.c: New test.
17099         * testsuite/libgomp.c++/atomic-2.C: New test.
17100         * testsuite/libgomp.c++/atomic-3.C: New test.
17101         * testsuite/libgomp.c++/atomic-4.C: New test.
17102         * testsuite/libgomp.c++/atomic-5.C: New test.
17103         * testsuite/libgomp.c++/atomic-6.C: New test.
17104         * testsuite/libgomp.c++/atomic-7.C: New test.
17105         * testsuite/libgomp.c++/atomic-8.C: New test.
17106         * testsuite/libgomp.c++/atomic-9.C: New test.
17107         * testsuite/libgomp.c++/task-8.C: New test.
17108         * testsuite/libgomp.c++/reduction-4.C: New test.
17109         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17110         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17111         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17112         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17113         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17114         * testsuite/libgomp.fortran/pointer1.f90: New test.
17115         * testsuite/libgomp.fortran/pointer2.f90: New test.
17116         * testsuite/libgomp.fortran/task4.f90: New test.
17118 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17120         * libgomp.texi: Update OpenMP spec references to 3.1.
17121         (omp_in_final,OMP_PROC_BIND): New sections.
17122         (OMP_NUM_THREADS): Document that the value can be now a list.
17123         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17125 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17127         * config/linux/x86/futex.h: Check __x86_64__ instead of
17128         __LP64__.
17130 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17132         PR middle-end/49897
17133         PR middle-end/49898
17134         * testsuite/libgomp.c/pr49897-1.c: New test.
17135         * testsuite/libgomp.c/pr49897-2.c: New test.
17136         * testsuite/libgomp.c/pr49898-1.c: New test.
17137         * testsuite/libgomp.c/pr49898-2.c: New test.
17139 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17141         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17142         for ia32 instead of ilp32.
17144         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17145         * testsuite/libgomp.c/atomic-6.c: Likewise.
17147 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17149         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17150         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17152 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17154         PR libgomp/45351
17155         * config/osf/sem.h: New file.
17156         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17158 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17160         PR target/49541
17161         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17162         ldflags.
17164 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17166         * config/linux/wait.h (do_spin): New inline, largely copied
17167         from do_wait, just don't do futex_wait here, instead return true if
17168         it should be done.
17169         (do_wait): Implement using do_spin.
17170         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17171         to prototype.
17172         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17173         __sync_bool_compare_and_swap, pass the oldval to
17174         gomp_mutex_lock_slow.
17175         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17176         If all mutex contenders are just spinning and not sleeping, don't
17177         change state to 2 unnecessarily.  Optimize the loop when state has
17178         already become 2 to use just one atomic operation per loop instead
17179         of two.
17180         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17181         to prototype.
17182         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17183         __sync_bool_compare_and_swap, pass the oldval to
17184         gomp_mutex_lock_slow.
17186 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17188         PR libgomp/49490
17189         * iter.c (gomp_iter_static_next): For chunk size 0
17190         only use n ceil/ nthreads size for the first
17191         n % nthreads threads in the team instead of
17192         all threads except for the last few ones which
17193         get less work or none at all.
17194         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17195         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17196         chunk argument, set run_sched_modifier to 0 for static
17197         resp. 1 for other kinds.  If chunk argument is 0
17198         and not static, set value to 1.
17200 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17202         PR c++/49043
17203         * testsuite/libgomp.c++/pr49043.C: New test.
17205         PR c++/48869
17206         * testsuite/libgomp.c++/pr48869.C: New test.
17208 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17210         PR fortran/48894
17211         * fortran.c: Include limits.h.
17212         (TO_INT): Define.
17213         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17214         *set.
17215         (omp_set_num_threads_8_, omp_set_schedule_8_,
17216         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17217         omp_get_team_size_8_): Use TO_INT macro.
17218         * testsuite/libgomp.fortran/pr48894.f90: New test.
17220 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17222         PR middle-end/48591
17223         * testsuite/libgomp.c/pr48591.c: New test.
17225 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17227         PR bootstrap/48135
17228         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17229         * configure: Regenerate.
17231 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
17233         PR fortran/47886
17234         * testsuite/libgomp.fortran/task3.f90: New test.
17236 2011-02-24  Tobias Burnus  <burnus@net-b.de>
17238         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17240 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
17242         PR libgomp/47854
17243         * libgomp.texi (omp_get_wtime): Don't say time in the past
17244         must be Unix Epoch.
17246 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17248         PR libgomp/47804
17249         * testsuite/libgomp.fortran/fortran.exp: Check for both
17250         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
17251         but $blddir != "", still append ${blddir}/${lang_library_path}
17252         to ld_library_path.
17254 2011-02-16  Tobias Burnus  <burnus@net-b.de>
17256         PR libgomp/47758
17257         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17258         of libquadmath.a before adding its libpath to ldflags.
17260 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17262         PR libgomp/47731
17263         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17264         to FUTEX_WAIT futex syscall.
17265         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17267 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17269         * configure: Regenerate.
17271 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
17273         PR libstdc++/36104
17274         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17276 2011-01-16  Gerald Pfeifer
17278         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17280 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
17282         PR fortran/46874
17283         * libgomp.fortran/allocatable6.f90: New test.
17285 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17287         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17288         * configure: Regenerate.
17290 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17292         PR target/40125
17293         PR lto/46695
17294         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17295         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17296         * aclocal.m4: Regenerate.
17297         * configure: Regenerate.
17298         * Makefile.in: Regenerate.
17299         * testsuite/Makefile.in: Regenerate.
17301 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
17303         PR fortran/46753
17304         * libgomp.fortran/pr46753.f90: New test.
17306         PR libgomp/43706
17307         * env.c (initialize_env): Default to spin count 300000
17308         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17309         is specified.
17311         PR libgomp/45240
17312         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17313         at the end if sync builtins aren't supported.
17315 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17317         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17319 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17321         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17323 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
17325         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17327 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17328             Tobias Burnus  <burnus@net-b.de>
17330         PR fortran/32049
17331         * configure.ac:
17332         * configure: Regenerate.
17334 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17336         * config/linux/futex.h: New.
17337         * config/linux/arm/mutex.h: New.
17338         * configure.tgt (arm*-*-linux*): Add config path.
17340 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
17342         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17344 2010-09-23  Tobias Burnus  <burnus@net-b.de>
17346         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17347         Change Fortran datatype to LOGICAL.
17348         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17349         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17351 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17353         * configure: Regenerate.
17355 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
17357         * libgomp.texi: Add function keyword to a couple of Fortran
17358         interfaces, use integer instead of int for Fortran.
17360 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
17362         * libgomp.texi: Fix spelling and pasto problems throughout.
17363         Adjust prototypes to match code.
17365 2010-07-24  Tobias Burnus  <burnus@net-b.de>
17367         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17368         silence -fwhole-file warning.
17370 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17372         * configure.tgt (*-*-solaris2.[56]*): Removed.
17374 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17376         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17377         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17378         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17379         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17380         targetting solaris2*.
17381         * configure: Regenerate.
17382         * config.h.in: Regenerate.
17384         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17385         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17386         Add libgomp_version_dep.
17387         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17388         versioning.
17389         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17390         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17391         * Makefile.in: Regenerate.
17393         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17394         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17395         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17396         to common block, protected by
17397         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17399 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17401         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
17403 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
17405         PR bootstrap/43170
17406         * configure: Regenerate.
17408 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17410         PR other/43620
17411         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17412         * configure: Regenerate.
17413         * Makefile.in: Regenerate.
17414         * testsuite/Makefile.in: Regenerate.
17416 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17418         PR c/43893
17419         * testsuite/libgomp.c/pr43893.c: New test.
17420         * testsuite/libgomp.c++/pr43893.C: New test.
17422 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17424         PR middle-end/43570
17425         * testsuite/libgomp.fortran/vla8.f90: New test.
17427 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17429         PR libgomp/43706
17430         * config/linux/affinity.c (gomp_init_affinity): Decrease
17431         gomp_available_cpus if affinity mask confines the process to fewer
17432         CPUs.
17433         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17434         non-NULL, just return gomp_available_cpus.
17436         PR libgomp/43569
17437         * sections.c (gomp_sections_init): Initialize ws->mode.
17439 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17441         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17442         not unused bar variable.
17443         * configure: Regenerate.
17445 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17447         * Makefile.in: Regenerate.
17448         * aclocal.m4: Regenerate.
17449         * testsuite/Makefile.in: Regenerate.
17451 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17453         PR libgomp/42942
17454         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17455         (initialize_env): Adjust callers.
17456         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17457         when the argument is 0.
17459         * testsuite/libgomp.c/pr42942.c: New test.
17461 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17463         PR middle-end/42644
17464         PR middle-end/42130
17465         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17466         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17468 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17470         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17471         * testsuite/libgomp.c++/task-6.C: Likewise.
17473 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
17475         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17477 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
17479         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17480         * configure: Regenerate.
17482 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17484         PR fortran/42866
17485         * testsuite/libgomp.fortran/allocatable5.f90: New test.
17487 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
17489         * configure.ac: Test for executability of GFORTRAN.
17490         * configure: Regenerate.
17492 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17494         * configure: Regenerate.
17496 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17498         PR libgomp/42602
17499         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17501 2010-01-03  Richard Guenther  <rguenther@suse.de>
17503         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17505 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
17507         * testsuite/libgomp.graphite/pr4118.c: New.
17509 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17511         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17512         for darwin, protect the test with require-effective-target tls_runtime.
17513         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17515 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17517         PR target/41605
17518         * testsuite/lib/libgomp.exp: Provide -B options to allow for
17519         link spec %s substitutions for static libraries.
17521 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
17523         PR testsuite/42135
17524         * libgomp.graphite/force-parallel-2.c: Reduce array size.
17526 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17528         * Makefile.in: Regenerate.
17529         * configure: Regenerate.
17530         * testsuite/Makefile.in: Regenerate.
17532 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17534         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17535         settings for LC_ALL and LANG.
17537 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
17539         PR fortran/42162
17540         * testsuite/libgomp.fortran/pr42162.f90: New test.
17542 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
17544         PR middle-end/42029
17545         * testsuite/libgomp.c/pr42029.c: New test.
17547 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
17549         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17550         *s.  Accept ld version without text in ()s.
17551         * configure: Regenerated.
17553 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
17555         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17557 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17559         PR libgomp/41418
17560         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17561         or a hyphen (happens with fortran language disabled).
17562         * configure: Regenerate.
17564 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17566         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17567         use sed script portable to Solaris /bin/sed for extracting ld
17568         version.
17569         * configure: Regenerate.
17571 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
17573         * testsuite/libgomp.graphite/bounds.c: New test.
17575 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17577         * Makefile.am (libgomp_la_LINK): New.
17578         * Makefile.in: Regenerate.
17580 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17582         * configure.ac (AC_PREREQ): Bump to 2.64.
17584 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17586         * Makefile.am (install-html, install-pdf): Remove.
17587         * Makefile.in: Regenerate.
17589         * Makefile.in: Regenerate.
17590         * aclocal.m4: Regenerate.
17591         * config.h.in: Regenerate.
17592         * configure: Regenerate.
17593         * testsuite/Makefile.in: Regenerate.
17595 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17597         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17598         * Makefile.in: Regenerate.
17600 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
17602         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17603         * Makefile.in: Regenerate.
17605 2009-08-19  Tobias Burnus  <burnus@net-b.de>
17607         PR fortran/41102
17608         omp_lib.h.in: Fix -std=f95 errors.
17610 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
17612         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17613         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17614         * testsuite/libgomp.graphite/graphite.exp: New.
17616 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
17618         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17619         only build.
17621 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
17623         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17624         needed memory barrier semantics.
17625         * config/linux/mips/mutex.h: New file.
17627 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17629         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17631 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
17633         * configure: Regenerate.
17635 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
17637         PR testsuite/40699
17638         PR testsuite/40707
17639         PR testsuite/40709
17640         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17641         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17642         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17644 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17646         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17647         options when choosing a multilib.
17649 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
17651         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17652         ld_library_path.  Use add_path.  Add just find_libgcc_s to
17653         ld_library_path, not every libgcc multilib directory.
17654         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17655         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17656         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17657         Use add_path.
17658         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17660 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
17662         * Makefile.am (LTLDFLAGS): Define.
17663         (LINK): Define.
17664         * Makefile.in: Regenerate.
17666 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
17668         PR fortran/39718
17669         * testsuite/libgomp.fortran/fortran.exp: Don't link with
17670         libgfortranbegin, check existence of libgfortran.a instead of
17671         libgfortranbegin.a.
17673 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
17675         PR libgomp/40174
17676         * team.c (gomp_thread_start): Destroy thr->release semaphore.
17677         (gomp_free_pool_helper): Likewise.
17679 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
17680             Jakub Jelinek  <jakub@redhat.com>
17682         PR fortran/35423
17683         * testsuite/libgomp.fortran/workshare2.f90: New test.
17685 2009-04-09  Nick Clifton  <nickc@redhat.com>
17687         * iter.c: Change copyright header to refer to version 3 of the
17688         GNU General Public License with version 3.1 of the GCC Runtime
17689         Library Exception and to point readers at the COPYING3 and
17690         COPYING3.RUNTIME files and the FSF's license web page.
17691         * alloc.c: Likewise.
17692         * barrier.c: Likewise.
17693         * config/bsd/proc.c: Likewise.
17694         * config/linux/affinity.c: Likewise.
17695         * config/linux/alpha/futex.h: Likewise.
17696         * config/linux/bar.c: Likewise.
17697         * config/linux/bar.h: Likewise.
17698         * config/linux/ia64/futex.h: Likewise.
17699         * config/linux/ia64/mutex.h: Likewise.
17700         * config/linux/lock.c: Likewise.
17701         * config/linux/mips/futex.h: Likewise.
17702         * config/linux/mutex.c: Likewise.
17703         * config/linux/mutex.h: Likewise.
17704         * config/linux/powerpc/futex.h: Likewise.
17705         * config/linux/proc.c: Likewise.
17706         * config/linux/ptrlock.c: Likewise.
17707         * config/linux/ptrlock.h: Likewise.
17708         * config/linux/s390/futex.h: Likewise.
17709         * config/linux/sem.c: Likewise.
17710         * config/linux/sem.h: Likewise.
17711         * config/linux/sparc/futex.h: Likewise.
17712         * config/linux/wait.h: Likewise.
17713         * config/linux/x86/futex.h: Likewise.
17714         * config/mingw32/proc.c: Likewise.
17715         * config/mingw32/time.c: Likewise.
17716         * config/posix/affinity.c: Likewise.
17717         * config/posix/bar.c: Likewise.
17718         * config/posix/bar.h: Likewise.
17719         * config/posix/lock.c: Likewise.
17720         * config/posix/mutex.h: Likewise.
17721         * config/posix/proc.c: Likewise.
17722         * config/posix/ptrlock.h: Likewise.
17723         * config/posix/sem.c: Likewise.
17724         * config/posix/sem.h: Likewise.
17725         * config/posix/time.c: Likewise.
17726         * config/posix95/lock.c: Likewise.
17727         * critical.c: Likewise.
17728         * env.c: Likewise.
17729         * error.c: Likewise.
17730         * fortran.c: Likewise.
17731         * iter_ull.c: Likewise.
17732         * libgomp.h: Likewise.
17733         * libgomp_f.h.in: Likewise.
17734         * libgomp_g.h: Likewise.
17735         * loop.c: Likewise.
17736         * loop_ull.c: Likewise.
17737         * omp.h.in: Likewise.
17738         * omp_lib.f90.in: Likewise.
17739         * omp_lib.h.in: Likewise.
17740         * ordered.c: Likewise.
17741         * parallel.c: Likewise.
17742         * sections.c: Likewise.
17743         * single.c: Likewise.
17744         * task.c: Likewise.
17745         * team.c: Likewise.
17746         * work.c: Likewise.
17748 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
17750         * testsuite/config/default.exp: Change copyright header to refer to
17751         version 3 of the GNU General Public License and to point readers
17752         at the COPYING3 file and the FSF's license web page.
17754 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
17756         PR middle-end/39573
17757         * libgomp.c++/pr39573.C: New test.
17759 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
17761         PR other/39591
17762         * testsuite/libgomp.c/pr39591-1.c: New test.
17763         * testsuite/libgomp.c/pr39591-2.c: New test.
17764         * testsuite/libgomp.c/pr39591-3.c: New test.
17766 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
17768         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17769         * testsuite/libgomp.c/atomic-6.c: Ditto.
17771 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17773         PR c/39495
17774         * testsuite/libgomp.c/loop-12.c: New test.
17775         * testsuite/libgomp.c/loop-11.c: New test.
17776         * testsuite/libgomp.c++/loop-11.C: New test.
17777         * testsuite/libgomp.c++/loop-12.C: New test.
17778         * testsuite/libgomp.c++/for-8.C: New test.
17780 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17782         * configure: Regenerate.
17784 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
17786         PR middle-end/39154
17787         * testsuite/libgomp.c/pr39154.c: New test.
17789 2009-01-30  Ian Lance Taylor  <iant@google.com>
17791         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17792         libgomp_ld_is_gold.  Get gold version number.
17793         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17794         * configure: Rebuild.
17796 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17798         * testsuite/lib/libgomp.exp: Add -B option for targets that
17799         use libgfortran.a%s in their specs.
17801 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
17803         PR libgomp/38086
17804         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17805         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17806         HAVE_AS_SYMVER_DIRECTIVE is not defined.
17807         * configure: Regenerated.
17808         * config.h.in: Likewise.
17810 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
17812         PR c++/38650
17813         * testsuite/libgomp.c/pr38650.c: New test.
17814         * testsuite/libgomp.c++/pr38650.C: New test.
17816 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
17818         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17820 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
17822         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17824 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17826         * configure: Regenerate.
17828 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
17830         PR middle-end/36802
17831         * testsuite/libgomp.c/pr36802-1.c: New test.
17832         * testsuite/libgomp.c/pr36802-2.c: New test.
17833         * testsuite/libgomp.c/pr36802-3.c: New test.
17835 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
17837         PR libgomp/38270
17838         * config/linux/powerpc/mutex.h: New.
17840 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
17842         PR c++/38257
17843         * testsuite/libgomp.c++/for-7.C: New test.
17845         PR c++/38348
17846         * testsuite/libgomp.c++/for-6.C: New test.
17848 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
17850         PR testsuite/28870
17851         * testsuite/lib/libgomp.exp: Include new timeout library files.
17852         (libgomp_target_compile): Set timeout value from new proc.
17854 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
17856         PR libgomp/37938
17857         * config/linux/ia64/mutex.h: New.
17859 2008-11-04  Tobias Burnus  <burnus@net-b.de>
17861         PR libgomp/37935
17862         * libgomp.texi (Runtime library routines, environment variables):
17863         Update for OpenMP version 3.0.
17865 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
17866             Steve Ellcey  <sje@cup.hp.com>
17868         * configure: Regenerate for new libtool.
17869         * Makefile.in: Ditto.
17870         * testsuite/Makefile.in: Ditto.
17872 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
17873             Andreas Tobler  <a.tobler@schweiz.org>
17875         * config/bsd/proc.c: New file.
17876         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17877         * configure.ac: Check for header <sys/sysctl.h>
17878         * configure: Regenerate.
17879         * config.h.in: Likewise.
17881 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
17883         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17885 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17887         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17888         * Makefile.in: Regenerated.
17889         * testsuite/Makefile.in: Regenerated.
17891 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
17893         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17894         depend on blddir if blddir exists.
17895         (libgomp_target_compile): Likewise.
17896         * testsuite/libgomp.c++/c++.exp: Likewise.
17897         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17899 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17901         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
17902         Do not list GPL as Invariant Section.
17904 2008-07-28  Ilie Garbacea  <ilie@mips.com>
17905             Chao-ying Fu  <fu@mips.com>
17907         * configure.tgt: Enable futex for MIPS.
17908         * config/linux/mips/futex.h: New file.
17910 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
17912         * team.c (gomp_team_end): Free team immediately if it has
17913         just one thread.
17915 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
17917         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17918         * testsuite/libgomp.fortran/fortran.exp: Same.
17919         * testsuite/libgomp.c/c.exp: Same.
17920         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17921         directory to library path first.
17923 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
17925         * env.c (parse_stacksize): Add cast to avoid warning.
17926         (parse_spincount): Likewise.
17928 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
17930         * testsuite/libgomp.c/loop-10.c: New test.
17931         * libgomp.c/loop-3.c (main): Add lastprivate clause.
17932         * libgomp.c++/loop-6.C (main): Likewise.
17934         PR debug/36617
17935         * testsuite/libgomp.c/debug-1.c: New test.
17937 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
17939         * testsuite/libgomp.c/nqueens-1.c: New test.
17941         PR c++/36523
17942         * testsuite/libgomp.c++/task-7.C: New function.
17944 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17946         * configure: Regenerate.
17948 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17950         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17951         mutex when HAVE_SYNC_BUILTINS isn't defined.
17953 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17955         * libgomp.texi (omp_test_lock): Fix typo.
17957 2008-06-12  Tobias Burnus  <burnus@net-b.de>
17959         * omp_lib.f90.in: Add "implicit none".
17961 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
17963         PR middle-end/36506
17964         * testsuite/libgomp.c/reduction-5.c: New test.
17966 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
17968         * libgomp.h (struct gomp_task): Add in_tied_task field.
17969         * task.c (gomp_init_task): Initialize it.
17970         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
17971         unconditionally.  Don't call gomp_team_barrier_wake if
17972         current task is implicit or if(0) from implicit and number of
17973         running tasks is equal to nthreads - 1.
17975         PR libgomp/36471
17976         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17977         omp_get_team_size_8): Fix pastos.
17979         PR libgomp/36469
17980         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17981         * configure: Regenerated.
17982         * config.h.in: Regenerated.
17983         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17984         defined.
17986 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
17988         PR bootstrap/36452
17989         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17990         (GOMP_loop_ull_dynamic_start): Likewise.
17991         (GOMP_loop_ull_guided_start): Likewise.
17992         (GOMP_loop_ull_ordered_static_start): Likewise.
17993         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17994         (GOMP_loop_ull_ordered_guided_start): Likewise.
17996 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
17997             Richard Henderson  <rth@redhat.com>
17998             Ulrich Drepper  <drepper@redhat.com>
17999             Jakob Blomer  <jakob.blomer@ira.uka.de>
18001         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18002         Substitute also OMP_*LOCK_25*.
18003         * configure: Regenerated.
18004         * config.h.in: Regenerated.
18005         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18006         ptrlock.c and task.c.
18007         * Makefile.in: Regenerated.
18008         * testsuite/Makefile.in: Regenerated.
18009         * task.c: New file.
18010         * loop_ull.c: New file.
18011         * iter_ull.c: New file.
18012         * libgomp.h: Include ptrlock.h.
18013         (enum gomp_task_kind): New type.
18014         (struct gomp_team): Add task_lock, task_queue, task_count,
18015         task_running_count, single_count fields.  Add
18016         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18017         Remove work_share_lock, generation_mask,
18018         oldest_live_gen, num_live_gen and init_work_shares fields, add
18019         work work_share_list_alloc, work_share_list_free and work_share_chunk
18020         fields.  Change work_shares from pointer to pointers into an array.
18021         Change ordered_release field into gomp_sem_t ** from flexible array
18022         member.  Add implicit_task and initial_work_shares fields.
18023         Move close to the end of the struct.
18024         (struct gomp_team_state): Add single_count, last_work_share,
18025         active_level and level fields, remove work_share_generation.
18026         (gomp_barrier_handle_tasks): New prototype.
18027         (gomp_finish_task): New inline function.
18028         (struct gomp_work_share): Move chunk_size, end, incr into
18029         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18030         next_ll fields.  Reshuffle fields.  Add next_alloc,
18031         next_ws, next_free and inline_ordered_team_ids fields, change
18032         ordered_team_ids into pointer from flexible array member.
18033         Add mode field.  Put lock and next into a different cache line
18034         from most of the write-once fields.
18035         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18036         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18037         gomp_iter_ull_guided_next): New prototypes.
18038         (gomp_new_icv): New prototype.
18039         (struct gomp_thread): Add thread_pool and task fields.
18040         (struct gomp_thread_pool): New type.
18041         (gomp_new_team): New prototype.
18042         (gomp_team_start): Change type of last argument.
18043         (gomp_new_work_share): Removed.
18044         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18045         (gomp_work_share_init_done): New static inline.
18046         (gomp_throttled_spin_count_var, gomp_available_cpus,
18047         gomp_managed_threads): New extern decls.
18048         (gomp_init_task): New prototype.
18049         (gomp_spin_count_var): New extern var decl.
18050         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18051         or no alias support, or if not PIC.
18052         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18053         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18054         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18055         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18056         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18057         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18058         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18059         gomp_test_nest_lock_25): New prototypes.
18060         (omp_lock_symver, strong_alias): Define.
18061         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18062         decls.
18063         (gomp_end_task): New.
18064         (struct gomp_task_icv, gomp_global_icv): New.
18065         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18066         (struct gomp_task): New.
18067         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18068         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18069         (gomp_icv): New.
18070         (gomp_schedule_type): Reorder enum to match
18071         omp_sched_t.
18072         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18073         fields.
18074         (gomp_thread_start): Add gomp_team_barrier_wait call.
18075         For non-nested case remove clearing of docked thread thr fields.
18076         Use pool fields instead of global gomp_* variables.  Use
18077         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18078         Create tasks for each member thread.
18079         (free_team): Only destroy team barrier, task_lock here and free it.
18080         (gomp_free_thread): Free last_team if non-NULL.
18081         (gomp_team_end): Call gomp_team_barrier_wait instead of
18082         gomp_barrier_wait.  For nested case call one extra
18083         gomp_barrier_wait.  Move here some destruction from free_team.
18084         Call free_team on pool->last_team if any, rather than freeing
18085         current team.  Destroy work_share_list_free_lock ifndef
18086         HAVE_SYNC_BUILTINS.
18087         (gomp_new_icv): New function.
18088         (gomp_threads, gomp_threads_size, gomp_threads_used,
18089         gomp_threads_dock): Removed.
18090         (gomp_thread_destructor): New variable.
18091         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18092         functions.
18093         (gomp_team_start): Create new pool if current thread doesn't have
18094         one.  Use pool fields instead of global gomp_* variables.
18095         Initialize thread_pool field for new threads.  Clear single_count.
18096         Change last argument from ws to team, don't create
18097         new team, set ts.work_share to &team->work_shares[0] and clear
18098         ts.last_work_share.  Don't clear ts.work_share_generation.
18099         If number of threads changed, adjust atomically gomp_managed_threads.
18100         Use gomp_init_task instead of gomp_new_task,
18101         set thr->task to the corresponding implicit_task array entry.
18102         Create tasks for each member thread.  Initialize ts.level.
18103         (initialize_team): Call pthread_key_create on
18104         gomp_thread_destructor.
18105         (team_destructor): New function.
18106         (new_team): Removed.
18107         (gomp_new_team): New function.
18108         (free_team): Free gomp_work_share blocks chained through next_alloc,
18109         instead of freeing work_shares and destroying work_share_lock.
18110         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18111         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18112         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18113         of gomp_barrier_wait.
18114         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18115         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18116         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18117         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18118         of gomp_barrier_wait.
18119         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18120         gomp_work_share_init_done if gomp_work_share_start returned true.
18121         Don't unlock ws->lock.
18122         * work.c: Include stddef.h.
18123         (free_work_share): Use work_share_list_free_lock instead
18124         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18125         Call gomp_fini_work_share and then either free ws if orphaned, or
18126         put it into work_share_list_free list of the current team.
18127         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18128         functions.
18129         (gomp_work_share_start, gomp_work_share_end,
18130         gomp_work_share_end_nowait): Rewritten.
18131         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18132         (openmp_version): Set to 200805.
18133         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18134         omp_sched_guided, omp_sched_auto): New parameters.
18135         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18136         omp_set_max_active_levels, omp_get_max_active_levels,
18137         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18138         omp_get_active_level): New interfaces.
18139         * omp_lib.h.in (openmp_version): Set to 200805.
18140         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18141         omp_sched_guided, omp_sched_auto): New parameters.
18142         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18143         omp_set_max_active_levels, omp_get_max_active_levels,
18144         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18145         omp_get_active_level): New externals.
18146         * loop.c: Include limits.h.
18147         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18148         GFS_AUTO.
18149         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18150         Likewise.  Use gomp_icv.
18151         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18152         ts.static_trip here.
18153         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18154         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18155         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18156         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18157         don't unlock ws->lock, otherwise lock it.
18158         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18159         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18160         (gomp_parallel_loop_start): Call gomp_new_team instead of
18161         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18162         Adjust gomp_team_start caller.  Pass 0 as second argument to
18163         gomp_resolve_num_threads.
18164         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18165         If adding ws->chunk_size nthreads + 1 times after end won't
18166         overflow, set ws->mode to 1.
18167         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18168         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18169         GOMP_loop_ull_ordered_static_start,
18170         GOMP_loop_ull_ordered_dynamic_start,
18171         GOMP_loop_ull_ordered_guided_start,
18172         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18173         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18174         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18175         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18176         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18177         prototypes.
18178         * libgomp.map: Export lock routines also @@OMP_2.0.
18179         (GOMP_loop_ordered_dynamic_first,
18180         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18181         GOMP_loop_ordered_static_first): Remove.
18182         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18183         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18184         GOMP_loop_ull_ordered_dynamic_next,
18185         GOMP_loop_ull_ordered_dynamic_start,
18186         GOMP_loop_ull_ordered_guided_next,
18187         GOMP_loop_ull_ordered_guided_start,
18188         GOMP_loop_ull_ordered_runtime_next,
18189         GOMP_loop_ull_ordered_runtime_start,
18190         GOMP_loop_ull_ordered_static_next,
18191         GOMP_loop_ull_ordered_static_start,
18192         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18193         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18194         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18195         (omp_set_schedule, omp_get_schedule,
18196         omp_get_thread_limit, omp_set_max_active_levels,
18197         omp_get_max_active_levels, omp_get_level,
18198         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18199         omp_set_schedule_, omp_set_schedule_8_,
18200         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18201         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18202         omp_get_max_active_levels_, omp_get_level_,
18203         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18204         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18205         New exports @@OMP_3.0.
18206         * omp.h.in (omp_sched_t): New type.
18207         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18208         omp_set_max_active_levels, omp_get_max_active_levels,
18209         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18210         omp_get_active_level): New prototypes.
18211         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18212         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18213         gomp_thread_limit_var, gomp_remaining_threads_count,
18214         gomp_remaining_threads_lock): New variables.
18215         (parse_spincount): New function.
18216         (initialize_env): Call gomp_init_num_threads unconditionally.
18217         Initialize gomp_available_cpus.  Call parse_spincount,
18218         initialize gomp_{,throttled_}spin_count_var
18219         depending on presence and value of OMP_WAIT_POLICY and
18220         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
18221         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18222         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
18223         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
18224         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
18225         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18226         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18227         (gomp_global_icv): New.
18228         (parse_schedule): Use it.  Parse "auto".
18229         (omp_set_num_threads): Use gomp_icv.
18230         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18231         Likewise.
18232         (omp_get_max_threads): Move from parallel.c.
18233         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18234         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18235         add ialias.
18236         (parse_stacksize, parse_wait_policy): New functions.
18237         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18238         both wrappers for compatibility and new locks.
18239         (omp_set_schedule, omp_get_schedule,
18240         omp_get_thread_limit, omp_set_max_active_levels,
18241         omp_get_max_active_levels, omp_get_level,
18242         omp_get_ancestor_thread_num, omp_get_team_size,
18243         omp_get_active_level): New ialias_redirect.
18244         (omp_set_schedule_, omp_set_schedule_8_,
18245         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18246         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18247         omp_get_max_active_levels_, omp_get_level_,
18248         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18249         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18250         New functions.
18251         * parallel.c: Include limits.h.
18252         (gomp_resolve_num_threads): Add count argument.  Rewritten.
18253         (GOMP_parallel_start): Call gomp_new_team and pass that as last
18254         argument to gomp_team_start.  Pass 0 as second argument to
18255         gomp_resolve_num_threads.
18256         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18257         if gomp_thread_limit_var != ULONG_MAX.
18258         (omp_in_parallel): Implement using ts.active_level.
18259         (omp_get_max_threads): Move to env.c.
18260         (omp_get_level, omp_get_ancestor_thread_num,
18261         omp_get_team_size, omp_get_active_level): New functions,
18262         add ialias.
18263         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18264         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
18265         gomp_iter_dynamic_next instead of the _locked variant and don't take
18266         lock around it, otherwise acquire it before calling
18267         gomp_iter_dynamic_next_locked.
18268         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18269         gomp_iter_dynamic_next instead of the _locked variant and don't take
18270         lock around it.
18271         (GOMP_parallel_sections_start): Call gomp_new_team instead of
18272         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
18273         Adjust gomp_team_start caller.  Pass count as second argument to
18274         gomp_resolve_num_threads, don't adjust num_threads after the call.
18275         Use gomp_icv.
18276         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18277         ws->chunk_size by incr.
18278         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
18279         code.
18280         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18281         types.
18282         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18283         (omp_check_defines): Check even the compat defines.
18284         * config/linux/ptrlock.c: New file.
18285         * config/linux/ptrlock.h: New file.
18286         * config/linux/wait.h: New file.
18287         * config/posix/ptrlock.c: New file.
18288         * config/posix/ptrlock.h: New file.
18289         * config/linux/bar.h (gomp_team_barrier_wait,
18290         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18291         (gomp_team_barrier_set_task_pending,
18292         gomp_team_barrier_clear_task_pending,
18293         gomp_team_barrier_set_waiting_for_tasks,
18294         gomp_team_barrier_waiting_for_tasks,
18295         gomp_team_barrier_done): New inlines.
18296         (gomp_barrier_t): Rewritten.
18297         (gomp_barrier_state_t): New typedef.
18298         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18299         gomp_barrier_wait_start): Rewritten.
18300         (gomp_barrier_wait_end): Change second argument to
18301         gomp_barrier_state_t.
18302         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18303         inlines.
18304         * config/linux/bar.c: Include wait.h instead of libgomp.h and
18305         futex.h.
18306         (gomp_barrier_wait_end): Rewritten.
18307         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18308         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18309         * config/posix/bar.h (gomp_barrier_t): Add generation field.
18310         (gomp_barrier_state_t): New typedef.
18311         (gomp_team_barrier_wait,
18312         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18313         (gomp_barrier_wait_start): Or all but low 2 bits from generation
18314         into the return value.  Return gomp_barrier_state_t.
18315         (gomp_team_barrier_set_task_pending,
18316         gomp_team_barrier_clear_task_pending,
18317         gomp_team_barrier_set_waiting_for_tasks,
18318         gomp_team_barrier_waiting_for_tasks,
18319         gomp_team_barrier_done): New inlines.
18320         (gomp_barrier_wait_end): Change second argument to
18321         gomp_barrier_state_t.
18322         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18323         inlines.
18324         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18325         (gomp_barrier_wait_end): Change second argument to
18326         gomp_barrier_state_t.
18327         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18328         gomp_team_barrier_wake): New functions.
18329         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18330         futex.h.
18331         (gomp_futex_wake, gomp_futex_wait): New variables.
18332         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18333         * config/linux/lock.c: Rewrite to make locks task owned,
18334         for backwards compatibility provide the old entrypoints
18335         if symbol versioning.  Include wait.h instead of libgomp.h and
18336         futex.h.
18337         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18338         * config/posix95/lock.c: Rewrite to make locks task owned,
18339         for backwards compatibility provide the old entrypoints
18340         if symbol versioning.
18341         * config/posix/lock.c: Rewrite to make locks task owned,
18342         for backwards compatibility provide the old entrypoints
18343         if symbol versioning.
18344         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18345         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18346         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18347         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18348         (sys_futex0): Return error code.
18349         (futex_wake, futex_wait): If ENOSYS was returned, clear
18350         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18351         (cpu_relax, atomic_write_barrier): New static inlines.
18352         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18353         (futex_wake, futex_wait): If ENOSYS was returned, clear
18354         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18355         (cpu_relax, atomic_write_barrier): New static inlines.
18356         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18357         (sys_futex0): Return error code.
18358         (futex_wake, futex_wait): If ENOSYS was returned, clear
18359         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18360         (cpu_relax, atomic_write_barrier): New static inlines.
18361         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18362         (sys_futex0): Return error code.
18363         (futex_wake, futex_wait): If ENOSYS was returned, clear
18364         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18365         (cpu_relax, atomic_write_barrier): New static inlines.
18366         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18367         (sys_futex0): Return error code.
18368         (futex_wake, futex_wait): If ENOSYS was returned, clear
18369         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18370         (cpu_relax, atomic_write_barrier): New static inlines.
18371         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18372         (sys_futex0): Return error code.
18373         (futex_wake, futex_wait): If ENOSYS was returned, clear
18374         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18375         (cpu_relax, atomic_write_barrier): New static inlines.
18376         * config/linux/sem.c: Include wait.h instead of libgomp.h and
18377         futex.h.
18378         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18379         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18380         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18381         types.
18382         (omp_nest_lock_t): Change owner into void *, add lock field.
18383         * config/posix95/omp-lock.h: Include semaphore.h.
18384         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18385         (omp_lock_t): Use sem_t instead of mutex if semaphores
18386         aren't broken.
18387         (omp_nest_lock_t): Likewise.  Change owner to void *.
18388         * config/posix/omp-lock.h: Include semaphore.h.
18389         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18390         (omp_lock_t): Use sem_t instead of mutex if semaphores
18391         aren't broken.
18392         (omp_nest_lock_t): Likewise.  Add owner field.
18394 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18396         * testsuite/libgomp.c/collapse-1.c: New test.
18397         * testsuite/libgomp.c/collapse-2.c: New test.
18398         * testsuite/libgomp.c/collapse-3.c: New test.
18399         * testsuite/libgomp.c/icv-1.c: New test.
18400         * testsuite/libgomp.c/icv-2.c: New test.
18401         * testsuite/libgomp.c/lib-2.c: New test.
18402         * testsuite/libgomp.c/lock-1.c: New test.
18403         * testsuite/libgomp.c/lock-2.c: New test.
18404         * testsuite/libgomp.c/lock-3.c: New test.
18405         * testsuite/libgomp.c/loop-4.c: New test.
18406         * testsuite/libgomp.c/loop-5.c: New test.
18407         * testsuite/libgomp.c/loop-6.c: New test.
18408         * testsuite/libgomp.c/loop-7.c: New test.
18409         * testsuite/libgomp.c/loop-8.c: New test.
18410         * testsuite/libgomp.c/loop-9.c: New test.
18411         * testsuite/libgomp.c/nested-3.c: New test.
18412         * testsuite/libgomp.c/nestedfn-6.c: New test.
18413         * testsuite/libgomp.c/sort-1.c: New test.
18414         * testsuite/libgomp.c/task-1.c: New test.
18415         * testsuite/libgomp.c/task-2.c: New test.
18416         * testsuite/libgomp.c/task-3.c: New test.
18417         * testsuite/libgomp.c/task-4.c: New test.
18418         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18419         to C++ testsuite default compiler options.
18420         * testsuite/libgomp.c++/collapse-1.C: New test.
18421         * testsuite/libgomp.c++/collapse-2.C: New test.
18422         * testsuite/libgomp.c++/ctor-10.C: New test.
18423         * testsuite/libgomp.c++/for-1.C: New test.
18424         * testsuite/libgomp.c++/for-2.C: New test.
18425         * testsuite/libgomp.c++/for-3.C: New test.
18426         * testsuite/libgomp.c++/for-4.C: New test.
18427         * testsuite/libgomp.c++/for-5.C: New test.
18428         * testsuite/libgomp.c++/loop-8.C: New test.
18429         * testsuite/libgomp.c++/loop-9.C: New test.
18430         * testsuite/libgomp.c++/loop-10.C: New test.
18431         * testsuite/libgomp.c++/task-1.C: New test.
18432         * testsuite/libgomp.c++/task-2.C: New test.
18433         * testsuite/libgomp.c++/task-3.C: New test.
18434         * testsuite/libgomp.c++/task-4.C: New test.
18435         * testsuite/libgomp.c++/task-5.C: New test.
18436         * testsuite/libgomp.c++/task-6.C: New test.
18437         * testsuite/libgomp.fortran/allocatable1.f90: New test.
18438         * testsuite/libgomp.fortran/allocatable2.f90: New test.
18439         * testsuite/libgomp.fortran/allocatable3.f90: New test.
18440         * testsuite/libgomp.fortran/allocatable4.f90: New test.
18441         * testsuite/libgomp.fortran/collapse1.f90: New test.
18442         * testsuite/libgomp.fortran/collapse2.f90: New test.
18443         * testsuite/libgomp.fortran/collapse3.f90: New test.
18444         * testsuite/libgomp.fortran/collapse4.f90: New test.
18445         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18446         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18447         * testsuite/libgomp.fortran/lib4.f90: New test.
18448         * testsuite/libgomp.fortran/lock-1.f90: New test.
18449         * testsuite/libgomp.fortran/lock-2.f90: New test.
18450         * testsuite/libgomp.fortran/nested1.f90: New test.
18451         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18452         * testsuite/libgomp.fortran/strassen.f90: New test.
18453         * testsuite/libgomp.fortran/tabs1.f90: New test.
18454         * testsuite/libgomp.fortran/tabs2.f: New test.
18455         * testsuite/libgomp.fortran/task1.f90: New test.
18456         * testsuite/libgomp.fortran/task2.f90: New test.
18457         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18458         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18459         * testsuite/libgomp.c/pr26943-2.c: Likewise.
18460         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18461         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18463 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
18465         PR c++/36308
18466         * testsuite/libgomp.c++/ctor-11.C: New test.
18467         * testsuite/libgomp.c++/ctor-12.C: New test.
18469 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18471         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18473 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
18475         PR middle-end/36106
18476         * testsuite/libgomp.c/atomic-5.c: New test.
18477         * testsuite/libgomp.c/atomic-6.c: New test.
18478         * testsuite/libgomp.c/autopar-1.c: New test.
18480 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18482         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18483         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18484         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18485         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18486         * configure: Regenerate.
18487         * Makefile.in, testsuite/Makefile.in: Likewise.
18489 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18491         PR bootstrap/35457
18492         * aclocal.m4: Regenerate.
18493         * configure: Regenerate.
18495 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18497         PR middle-end/35611
18498         * testsuite/libgomp.c/atomic-4.c: New test.
18500         PR libgomp/35625
18501         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18502         (gomp_iter_guided_next): Likewise.
18503         * testsuite/libgomp.c/pr35625.c: New test.
18505 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18507         * aclocal.m4: Regenerate.
18508         * configure: Likewise.
18509         * Makefile.in: Likewise.
18510         * testsuite/Makefile.in: Likewise.
18512 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18514         PR middle-end/35185
18515         * testsuite/libgomp.c++/pr35185.C: New test.
18517 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18519         PR middle-end/35549
18520         * testsuite/libgomp.c/pr35549.c: New test.
18522 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18524         * testsuite/libgomp.c/atomic-3.c: New test.
18526 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18528         PR fortran/33197
18529         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18530         .F08 file suffixes.
18532 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
18534         PR libgomp/33131
18535         * configure.ac: Add ACX_HEADER_STRING.
18536         * env.c: Include strings.h.
18537         * aclocal.m4: Regenerate.
18538         * config.h.in: Regenerate.
18539         * configure: Regenerate.
18540         * Makefile.in: Regenerate.
18541         * testsuite/Makefile.in: Regenerate.
18543 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
18545         PR middle-end/35196
18546         * testsuite/libgomp.c/pr35196.c: New test.
18548         PR middle-end/35130
18549         * testsuite/libgomp.fortran/pr35130.f90: New test.
18550         * testsuite/libgomp.c/pr35130.c: New test.
18552 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18554         PR middle-end/33880
18555         * testsuite/libgomp.c/pr33880.c: New test.
18556         * testsuite/libgomp.fortran/pr33880.f90: New test.
18558 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
18560         * configure: Regenerate.
18562 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18564         * configure.ac: Move futex checking into ../config/futex.m4.
18565         * configure: Rebuilt.
18566         * aclocal.m4: Rebuilt.
18567         * Makefile.in: Rebuilt.
18569         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18570         2007-10-15 ../config/tls.m4 change.
18572 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
18574         PR c++/34513
18575         * testsuite/libgomp.c/pr34513.c: New test.
18576         * testsuite/libgomp.c++/pr34513.C: New test.
18578 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
18580         PR target/32765
18581         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18583 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
18585         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
18587 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
18589         * testsuite/libgomp.c/private-1.c: New test.
18591 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
18592             Paolo Bonzini  <bonzini@gnu.org>
18594         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
18595         instead of 'VPATH ='.
18596         * Makefile.in: Regenerate.
18598 2007-11-23  Matthias Klose  <doko@ubuntu.com>
18600         * configure.ac: Adjust makeinfo version check.
18601         * configure: Regenerate.
18603 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
18605         PR fortran/34020
18606         * testsuite/libgomp.fortran/pr34020.f90: New test.
18608 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
18610         PR c++/33894
18611         * testsuite/libgomp.c++/atomic-1.C: New test.
18613 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
18615         PR libgomp/33275
18616         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18617         Make x and y integers rather than (implicit) reals.  Add private (j)
18618         clause to the last omp parallel.
18620 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
18622         * configure: Regenerate following changes to ../config/tls.m4.
18624 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
18626         * testsuite/libgomp.fortran/stack.f90: New test.
18628 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
18630         * config/mingw32/proc.c: New file.
18632 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
18634         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18635         (main): Use __get_cpuid to get i386 target fetaures.
18636         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18637         (main): Use __get_cpuid to get x86_64 target fetaures.
18639 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
18641         PR target/32765
18642         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18643         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18645 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
18647         PR fortran/32550
18648         * testsuite/libgomp.fortran/pr32550.f90: New test.
18649         * testsuite/libgomp.fortran/crayptr2.f90: New test.
18651 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
18653         * aclocal.m4: Regenerated.
18655 2007-07-05  Tobias Burnus  <burnus@net-b.de>
18657         PR fortran/32359
18658         * testsuite/libgomp.fortran/pr32359.f90: New.
18660 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
18662         PR libgomp/32468
18663         * sections.c (GOMP_parallel_sections_start): Only decrease
18664         number of threads to COUNT if dyn_var is true.
18665         * testsuite/libgomp.c/pr32468.c: New test.
18667 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18669         PR libgomp/26308
18670         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18672 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
18674         PR middle-end/32362
18675         * testsuite/libgomp.c/pr32362-1.c: New test.
18676         * testsuite/libgomp.c/pr32362-2.c: New test.
18677         * testsuite/libgomp.c/pr32362-3.c: New test.
18679 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
18681         * team.c (gomp_team_start): Fix setting up thread_attr
18682         stack size.
18684 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
18686         * configure: Regenerate.
18688 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
18690         * Makefile.in: Regenerate.
18691         * configure: Regenerate.
18692         * aclocal.m4: Regenerate.
18693         * testsuite/Makefile.in: Regenerate.
18695 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
18697         * config/linux/proc.c: New file.
18699         PR libgomp/28482
18700         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18702 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
18704         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18706 2007-04-16  Matthias Klose  <doko@debian.org>
18708         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18709         flags if not building with -m64.
18710         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18711         flag for i?86-*-* targets, if current target matches -m64.
18713 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
18715         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18716         * Makefile.in: Regenerate.
18718 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18720         PR testsuite/31369
18721         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18722         ld_library_path.
18723         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18725 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
18727         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18728         decls.
18729         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18730         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18731         (parse_affinity): New function.
18732         (initialize_env): Call it and gomp_init_affinity.
18733         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18734         create new pthread_attr_t and call gomp_init_thread_affinity
18735         on it for each thread before passing the attribute to pthread_create.
18736         * config/linux/affinity.c: New file.
18737         * config/posix/affinity.c: New file.
18738         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18739         * configure: Rebuilt.
18740         * config.h.in: Rebuilt.
18741         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18742         * Makefile.in: Rebuilt.
18744 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
18746         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18747         *-*-darwin*.
18748         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18749         and use it if found.
18751 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
18753         * testsuite/config/default.exp: New file.
18754         * testsuite/lib/libgomp.exp: New file.
18755         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18756         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18757         load_lib *, load_gcc_lib *): Move to libgomp.exp.
18758         (libgomp_load): Remove.
18759         * testsuite/lib/libgomp.exp (libgomp_init): Compute
18760         always_ld_library_path, not ld_library_path.  Set additional_flags
18761         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18762         (target_compile): Do not call libgomp_init.  Append lang_library_path
18763         and lang_link_flags to options.
18764         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
18765         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
18766         here.
18767         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18768         always_ld_library_path.  Set LD_LIBRARY_PATH here.
18769         * testsuite/libgomp.fortran/fortran.exp: Ditto.
18770         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18771         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18772         CX8 flag.
18773         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18774         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18775         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18776         * testsuite/libgomp.c/pr29947-1.c: Ditto.
18777         * testsuite/libgomp.c/atomic-10.c: Ditto.
18779 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
18781         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18782         dg-final cleanup-modules line.
18783         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18784         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18785         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18786         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18787         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18788         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18789         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18791 2007-03-18  Andreas Schwab  <schwab@suse.de>
18793         * acinclude.m4: Adjust regular expression for ld version
18794         extraction.
18795         * configure: Regenerate.
18797 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
18799         * Makefile.am: Add install-pdf target as copied from
18800         automake v1.10 rules.
18801         * Makefile.in: Regenerate
18803 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
18805         PR libgomp/28486
18806         * configure: Regenerate.
18808         PR c++/30703
18809         * testsuite/libgomp.c++/pr30703.C: New test.
18811 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
18813         Revert:
18814         2006-07-05  Eric Christopher  <echristo@apple.com>
18815         * configure.ac: Depend addition of -pthread on host OS.
18816         * configure: Regenerate.
18818 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18820         * libgomp.texi: Fix spacing after abbreviations.
18822 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
18824         PR libgomp/30546
18825         * configure.ac: Add check for makeinfo
18826         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18827         if an appropriate version of makeinfo is found.
18828         * aclocal.m4: Regenerated.
18829         * configure: Regenerated.
18830         * Makefile.in: Regenerated.
18831         * testsuite/Makefile.in: Regenerated.
18833 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
18835         PR libgomp/30540
18836         * libgomp.texi: More about implementation-dependent settings.
18838 2007-01-26  Tobias Burnus  <burnus@net-b.de>
18840         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18842 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
18844         PR middle-end/30494
18845         * testsuite/libgomp.c/pr30494.c: New test.
18847 2007-01-15  Tom Tromey  <tromey@redhat.com>
18849         * configure: Rebuilt.
18850         * configure.ac: Fixed comment.
18852 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
18854         * libgomp.texi: Document implementation specific default values of
18855         environment variables.
18857 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
18859         PR libgomp/28209
18860         * libgomp.texi: New file.
18861         * configure.ac: Add --enable-generated-files-in-srcdir option.
18862         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18863         files to srcdir.
18864         * Makefile.in: Regenerated.
18865         * config.h.in: Regenerated.
18866         * testsuite/Makefile.in: Regenerated.
18867         * NOTES: Removed.
18869 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
18871         PR libgomp/29949
18872         * env.c (omp_set_num_threads): Set illegal thread count to 1.
18874 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
18876         * configure: Regenerate.
18878 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
18880         PR libgomp/29947
18881         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
18882         start if there shouldn't be any loop iterations.
18883         (gomp_loop_ordered_static_start): Remove start == end test.
18884         * testsuite/libgomp.c/pr29947-1.c: New test.
18885         * testsuite/libgomp.c/pr29947-2.c: New test.
18887 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
18889         * configure.tgt: Force initial-exec TLS model on Linux only.
18891 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
18893         * configure: Regenerated.
18895 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
18897         * env.c (parse_schedule): Reject out of range values.
18898         (parse_unsigned_long): Reject out of range, negative or zero values.
18900 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
18902         PR fortran/29629
18903         * testsuite/libgomp.fortran/pr29629.f90: New test.
18905 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
18907         PR libgomp/29494
18908         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18909         * config/posix95: New directory.
18910         * config/posix95/omp-lock.h: New file.
18911         * config/posix95/lock.c: Likewise.
18913 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
18915         * aclocal.m4: Regenerate.
18916         * configure: Regenerate.
18918 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18920         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18921         '<' to '<='.
18923 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18925         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18926         test.
18927         * configure: Regenerate.
18928         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18930 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
18932         PR middle-end/25261
18933         PR middle-end/28790
18934         * testsuite/libgomp.c/nestedfn-4.c: New test.
18935         * testsuite/libgomp.c/nestedfn-5.c: New test.
18936         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18938         PR fortran/29097
18939         * testsuite/libgomp.fortran/condinc1.f: New test.
18940         * testsuite/libgomp.fortran/condinc2.f: New test.
18941         * testsuite/libgomp.fortran/condinc3.f90: New test.
18942         * testsuite/libgomp.fortran/condinc4.f90: New test.
18943         * testsuite/libgomp.fortran/condinc1.inc: New file.
18945 2006-09-18  Tom Tromey  <tromey@redhat.com>
18947         * configure: Rebuilt.
18949 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
18951         PR c/28768
18952         PR preprocessor/14634
18953         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18954         to AC_DEFINE.
18955         * configure: Regenerate.
18957 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18959         * testsuite/libgomp.fortran/reduction3.f90: Change
18960         -2147483648 to -huge(i)-1 to avoid overflow.
18961         * testsuite/libgomp.fortran/reduction4.f90: Change
18962         Z'ffffffff' to not(0) to avoid overflow.
18964 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
18966         PR libgomp/25938
18967         * Makefile.am (libsubincludedir): New.
18968         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18969         * Makefile.in: Regenerate.
18971 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
18973         PR libgomp/28725
18974         * env.c: Include ctype.h.
18975         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18976         leading and/or trailing whitespace and compare strings case
18977         insensitively.
18979 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
18981         PR fortran/28390
18982         * testsuite/libgomp.fortran/pr28390.f: New test.
18984 2006-07-05  Eric Christopher  <echristo@apple.com>
18986         * configure.ac: Depend addition of -pthread on host OS.
18987         * configure: Regenerate.
18989 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
18991         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18992         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18993         defined.
18995 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
18997         PR libgomp/26175
18998         PR libgomp/26477
18999         * configure.ac: If neither --enable-linux-futex nor
19000         --disable-linux-futex is passed, determine the default by checking
19001         for compiling and/or running against NPTL.  With --enable-linux-futex,
19002         check if SYS_gettid and SYS_futex are defined.
19003         * configure: Rebuilt.
19005 2006-06-14  Richard Henderson  <rth@redhat.com>
19007         PR libgomp/28008
19008         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19009         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19011 2006-06-09  Richard Henderson  <rth@redhat.com>
19013         * env.c (gomp_nthreads_var): Change to unsigned long.
19014         (gomp_run_sched_chunk): Likewise.
19015         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19016         (initialize_env): Initialize gomp_thread_attr.
19017         * libgomp.h (gomp_nthreads_var): Update decl.
19018         (gomp_run_sched_chunk): Likewise.
19019         (gomp_thread_attr): Declare.
19020         * team.c (gomp_thread_attr): Export.
19021         (initialize_team): Don't initialize it.
19023 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19025         PR fortran/27916
19026         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19027         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19029 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19031         * config/mingw32/time.c: New file.
19032         * configure.tgt: Use it.
19034 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19036         * Makefile.am: Add install-html target. Add install-html to .PHONY
19037         * Makefile.in: Regenerate.
19039 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19041         PR libgomp/27612
19042         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19043         * testsuite/libgomp.c/critical-1.c: Likewise.
19044         * testsuite/libgomp.c/loop-1.c: Likewise.
19045         * testsuite/libgomp.c/loop-2.c: Likewise.
19046         * testsuite/libgomp.c/single-1.c: Likewise.
19047         * testsuite/libgomp.c/ordered-1.c: Likewise.
19048         * testsuite/libgomp.c/ordered-2.c: Likewise.
19050 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19052         PR middle-end/27416
19053         * libgomp.fortran/pr27416-1.f90: New test.
19055 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19057         PR fortran/27395
19058         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19059         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19061 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19063         PR c++/26943
19064         * testsuite/libgomp.c/pr26943-1.c: New test.
19065         * testsuite/libgomp.c/pr26943-2.c: New test.
19066         * testsuite/libgomp.c/pr26943-3.c: New test.
19067         * testsuite/libgomp.c/pr26943-4.c: New test.
19068         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19069         * testsuite/libgomp.c++/pr26943.C: New test.
19071 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19073         PR middle-end/27337
19074         * testsuite/libgomp.c++/pr27337.C: New test.
19076 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19078         PR c/26171
19079         * testsuite/libgomp.c/pr26171.c: New test.
19081 2006-04-25  Richard Henderson  <rth@redhat.com>
19083         PR libgomp/25865
19084         * configure.ac: Use GCC_CHECK_TLS.
19085         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19086         * Makefile.in, aclocal.m4, configure: Regenerate.
19088 2006-04-10  Matthias Klose  <doko@debian.org>
19090         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19091         directory names containing underscores.
19093 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19095         PR c++/26691
19096         * testsuite/libgomp.c++/pr26691.C: New test.
19098 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19100         * testsuite/libgomp.fortran/retval2.f90: New test.
19102 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19104         * testsuite/libgomp.c++: New directory.
19106 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19108         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19109         * config/posix/sem.c: Implement the above.
19111 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19113         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19114         define HAVE_BROKEN_POSIX_SEMAPHORES.
19115         * configure: Rebuilt.
19116         * config.h.in: Rebuilt.
19118 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19120         PR bootstrap/26161
19121         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19122         for the other pthread check.
19123         * configure: Regenerate.
19124         * config.h.in: Regenerate.
19126 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19128         PR libgomp/25938
19129         PR libgomp/25984
19130         * Makefile.am (fincludedir): New variable.
19131         (nodist_include_HEADERS): Remove Fortran files.
19132         (nodist_finclude_HEADERS): New variable.
19133         * Makefile.in: Regenerated.
19135 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19137         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19138         Remove tests for returning assumed character length arrays.
19140 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19141             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19143         PR libgomp/25936
19144         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19146 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19148         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19150 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19152         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19153         part of LD_LIBRARY_PATH manually.
19155 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19157         PR libgomp/25852
19158         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19159         libgomp_init.
19161 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19163         PR libgomp/25884
19164         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19165         * configure.ac (PERL): Don't set.
19166         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19167         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19168         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19169         * omp.h.in: Wrap the new configure substitutions with @ characters.
19170         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19171         * aclocal.m4, configure, Makefile.in: Regenerate.
19172         * mkomp_h.pl: Delete.
19174 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19176         PR libgomp/25259
19177         * configure.ac: Use GCC_HEADER_STDINT.
19178         * libgomp.h: Include gstdint.h.
19179         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19180         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19182 2006-01-24  Richard Henderson  <rth@redhat.com>
19184         PR libgomp/25942
19185         * configure.ac: Add AM_MAINTAINER_MODE.
19186         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19188 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
19190         * Makefile.in: Regenerate.
19191         * testsuite/Makefile.in: Regenerate.
19192         * aclocal.m4: Regenerate.
19194 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
19196         * config/posix/proc.c: Conditional include of sys/loadavg.h for
19197         Solaris.
19198         * configure.ac: Add check for loadavg.h.
19199         (link_gomp): Adjust comment.
19200         * configure: Regenerate.
19201         * config.h.in: Regenerate.
19203 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
19205         PR libgomp/25877
19206         * configure.ac: Remove check for alloca.h.
19207         * configure: Regenerate.
19208         * config.h.in: Regenerate.
19209         * libgomp.h: define gomp_alloca to be __builtin_alloca.
19210         * team.c: Remove use of alloca.h.
19211         Call gomp_alloca instead of alloca.
19213 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
19215         PR libgomp/25877
19216         * team.c: Add include of alloca.h.
19217         * configure.ac: Add check for alloca.h.
19218         * configure: Regenerate.
19219         * config.h.in: Regenerate.
19221 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
19223         PR fortran/25219
19224         * testsuite/libgomp.fortran/pr25219.f90: New test.
19226 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
19228         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19229         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19230         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19231         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19232         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19233         testsuite/libgomp.fortran/threadprivate1.f90,
19234         testsuite/libgomp.fortran/threadprivate2.f90,
19235         testsuite/libgomp.fortran/threadprivate3.f90,
19236         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19237         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19238         testsuite/libgomp.fortran/omp_parse3.f90: Change required
19239         effective-target to TLS runtime.
19241         * testsuite/libgomp.fortran/pr25162.f: Require
19242         effective-target TLS runtime.
19244 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
19246         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19247         * testsuite/libgomp.c/nestedfn-3.c: New test.
19249 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
19251         PR fortran/25162
19252         * testsuite/libgomp.fortran/pr25162.f: New test.
19254 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
19256         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19257         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19259 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
19261         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19262         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19263         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19264         single.c, team.c, work.c, config/linux/alpha/futex.h,
19265         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19266         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19267         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19268         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19269         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19270         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19271         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19272         FSF address.
19274 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19276         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19277         to nodist_noinst_HEADERS.
19278         * Makefile.in: Rebuilt.
19280         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19281         add integer count field.
19282         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19283         omp_nest_lock_t type change.
19284         (omp_init_nest_lock): Likewise.  Initialize count to 0.
19285         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19286         Increment count.
19287         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19288         Decrement count.
19289         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19290         Increment count if successful and return the new nesting level.
19291         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19292         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19293         * testsuite/libgomp.c/lib-1.c: New test.
19294         * testsuite/libgomp.fortran/lib1.f90: New test.
19295         * testsuite/libgomp.fortran/lib2.f: New test.
19296         * testsuite/libgomp.fortran/lib3.f: New test.
19298 2005-11-17  Richard Henderson  <rth@redhat.com>
19300         PR 24845
19301         * Makefile.am (nodist_toolexeclib_HEADERS): New.
19302         * configure.ac (link_gomp): New.  Substitute it.
19303         (AC_CONFIG_FILES): Add libgomp.spec.
19304         * libgomp.spec.in: New file.
19305         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19306         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19308 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19310         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19311         reduction(-:var) behaving the same as reduction(+:var).
19312         * testsuite/libgomp.c/reduction-4.c: New test.
19314 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
19316         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19317         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19318         testsuite/libgomp.c/copyin-3.c,
19319         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19320         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19321         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19322         testsuite/libgomp.c++/pr24455.C,
19323         testsuite/libgomp.fortran/threadprivate1.f90,
19324         testsuite/libgomp.fortran/threadprivate2.f90,
19325         testsuite/libgomp.fortran/threadprivate3.f90,
19326         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19327         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19328         testsuite/libgomp.fortran/omp_parse3.f90: Require
19329         effective-target TLS.
19331 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
19333         * HEADER: Remove.
19335 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
19337         PR libgomp/24797
19338         * team.c (initialize_team): Pass NULL rather than free as
19339         pthread_key_create destructor.  Initialize thread specific data
19340         pointer in initial thread to a static local variable rather than
19341         malloced memory.
19343 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
19345         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19346         its location to ld_library_path.
19348 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19350         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19352 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19354         * testsuite/libgomp.c: Rename from libgomp.dg.
19356 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
19358         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19359         threadprivate variable 'i'.
19361 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
19363         * config/linux/s390/futex.h: New file.
19364         * configure.tgt: Use it.
19366         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19367         before the parallel.
19369 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
19371         PR c++/24734
19372         * testsuite/libgomp.c++/master-1.C: New test.
19374 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19376         * testsuite/libgomp.dg/copyin-3.c: New test.
19378 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19380         * testsuite/libgomp.fortran/retval1.f90: New test.
19381         * testsuite/libgomp.fortran/vla7.f90: New test.
19383 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
19385         * testsuite/libgomp.fortran/vla2.f90: New test.
19386         * testsuite/libgomp.fortran/vla3.f90: New test.
19387         * testsuite/libgomp.fortran/vla4.f90: New test.
19388         * testsuite/libgomp.fortran/vla5.f90: New test.
19389         * testsuite/libgomp.fortran/vla6.f90: New test.
19391 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
19393         * config/linux/sparc/futex.h: New file.
19394         * configure.tgt: Use it.
19395         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19397         * critical.c: Include stdlib.h.
19398         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19399         ignoring return value.
19400         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19401         LIBGOMP_CHECK_SYNC_BUILTINS check.
19402         * configure: Rebuilt.
19404 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19406         * testsuite/libgomp.fortran/vla1.f90: New test.
19408 2005-10-31  Richard Henderson  <rth@redhat.com>
19410         * testsuite/libgomp.fortran/character2.f90: Fix race condition
19411         setting 's' in different threads.
19413 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19415         * libgomp.h (attribute_hidden, ialias): Define.
19416         * config/posix/proc.c (omp_get_num_procs): Add ialias.
19417         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19418         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19419         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19420         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19421         omp_test_lock, omp_test_nest_lock): Likewise.
19422         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19423         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19424         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19425         omp_test_lock, omp_test_nest_lock): Likewise.
19426         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19427         omp_get_dynamic, omp_get_nested): Likewise.
19428         * parallel.c (omp_get_num_threads, omp_get_max_threads,
19429         omp_get_thread_num, omp_in_parallel): Likewise.
19430         * fortran.c (ialias_redirect): Define.
19431         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19432         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19433         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19434         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19435         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19436         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19437         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19438         omp_get_wtime): Add ialias_redirect.
19440 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
19442         * fortran.c: Include stdlib.h.
19444 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
19446         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19447         * Makefile.in: Regenerated.
19449 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
19451         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19452         * libgomp_f.h.in (omp_check_defines): New function.
19453         * env.c: Include libgomp_f.h.
19454         (initialize_env): Call omp_check_defines.
19456         * testsuite/libgomp.dg/copyin-2.c: New test.
19457         * testsuite/libgomp.c++/copyin-2.C: New test.
19458         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19460         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19461         * testsuite/libgomp.fortran/sharing2.f90: New test.
19463         * testsuite/libgomp.dg/copyin-1.c: New test.
19464         * testsuite/libgomp.c++/copyin-1.C: New test.
19466 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
19468         * testsuite/libgomp.fortran/crayptr1.f90: New test.
19470         * testsuite/libgomp.fortran/workshare1.f90: New test.
19472         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19473         only test.
19474         * libgomp.fortran/sharing1.f90: New test.
19476 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
19478         PR c++/24502
19479         * testsuite/libgomp.c++/loop-7.C: New test.
19481         * testsuite/libgomp.dg/nestedfn-2.c: New test.
19483         * testsuite/libgomp.dg/nestedfn-1.c: New test.
19484         * testsuite/libgomp.fortran/reduction6.f90: New test.
19485         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19487 2005-10-23  Richard Henderson  <rth@redhat.com>
19489         * testsuite/libgomp.c++/ctor-1.C: New.
19490         * testsuite/libgomp.c++/ctor-2.C: New.
19491         * testsuite/libgomp.c++/ctor-3.C: New.
19492         * testsuite/libgomp.c++/ctor-4.C: New.
19493         * testsuite/libgomp.c++/ctor-5.C: New.
19494         * testsuite/libgomp.c++/ctor-6.C: New.
19495         * testsuite/libgomp.c++/ctor-7.C: New.
19496         * testsuite/libgomp.c++/ctor-8.C: New.
19497         * testsuite/libgomp.c++/ctor-9.C: New.
19499 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
19501         PR 24455
19502         * testsuite/libgomp.c++/pr24455-1.C: New test.
19503         * testsuite/libgomp.c++/pr24455.C: New test.
19504         * testsuite/libgomp.dg/pr24455-1.c: New test.
19505         * testsuite/libgomp.dg/pr24455.c: New test.
19507 2005-10-20  Richard Henderson  <rth@redhat.com>
19509         * testsuite/libgomp.c++/loop-6.C: New.
19510         * testsuite/libgomp.dg/loop-3.c: New.
19512 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
19514         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19515         explicitly private.
19516         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19517         explicitly shared.
19519 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
19521         * testsuite/libgomp.fortran/jacobi.f: New test.
19523 2005-10-19  Richard Henderson  <rth@redhat.com>
19525         * configure.tgt (i?86-linux): Default to with_arch instead of
19526         CFLAGS.  Add -mtune to match target_cpu.
19527         (x86_64-linux): Tune to i686.
19529         * fortran.c (omp_test_nest_lock_): Fix typo.
19531 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
19533         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19534         gomp_ordered_sync): Do nothing if team->nthreads == 1.
19535         * testsuite/libgomp.dg/ordered-3.c: New test.
19537         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19538         Remove volatile keyword.
19540         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19541         in COMMON block to avoid warnings on 64-bit targets.
19543 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
19545         * testsuite/libgomp.dg/shared-3.c: New test.
19547 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19549         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19550         * testsuite/libgomp.fortran/reduction5.f90: New test.
19552 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19554         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19555         dg-options.
19556         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
19557         flush loop now that __sync_synchronize has proper memory barrier.
19558         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19559         Add -ffixed-form to dg-options.
19561 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19563         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19564         from subdirectories.
19565         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19566         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19567         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19568         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19569         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19570         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19571         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19572         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19573         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19574         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19575         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19576         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19577         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19578         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19579         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19580         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19581         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19582         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19583         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19584         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19585         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19586         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19587         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19588         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19589         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19591 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
19593         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19594         lang_library_path exists.  Use find instead of glob to gather tests.
19595         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19597 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19599         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19600         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19601         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19602         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19603         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19604         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19605         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19606         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19607         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19608         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19609         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19610         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19611         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19613 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
19615         * testsuite/libgomp.dg/vla-1.c: New test.
19617         * testsuite/libgomp.fortran/reference2.f90: New test.
19619         * testsuite/libgomp.fortran/character2.f90: Remove explicit
19620         declaration of omp_get_thread_num.
19621         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
19622         use omp_lib.
19624         * testsuite/libgomp.fortran/reduction1.f90: New test.
19625         * testsuite/libgomp.fortran/reduction2.f90: New test.
19626         * testsuite/libgomp.fortran/reduction3.f90: New test.
19627         * testsuite/libgomp.fortran/reduction4.f90: New test.
19629 2005-10-13  Richard Henderson  <rth@redhat.com>
19631         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19632         * Makefile.in: Regenerate.
19633         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19634         * libgomp.h: Include bar.h.
19635         (struct gomp_barrier): Remove.
19636         (struct gomp_team): Add barrier.  Replace master_barrier with
19637         master_release.  Replace threads with ordered_release.
19638         (struct gomp_thread): Replace barrier with release.
19639         * ordered.c (gomp_ordered_first): Update for ordered_release change.
19640         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19641         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19642         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19643         (GOMP_single_copy_end): Likewise.
19644         * team.c (gomp_threads_dock): New.
19645         (gomp_barrier_init, gomp_barrier_destroy): Remove.
19646         (gomp_thread_start): Use gomp_barrier_wait.
19647         (new_team, free_team): Update for gomp_team changes.
19648         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19649         (gomp_team_end): Use gomp_barrier_wait.
19650         (initialize_team): Update for gomp_thread changes.
19651         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19652         (gomp_work_share_end_nowait): Use atomic ops when available.
19653         * config/linux/bar.c, config/linux/bar.h: New files.
19654         * config/posix/bar.c, config/posix/bar.h: New files.
19656 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
19658         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19659         * testsuite/libgomp.dg/single-2.c: New test.
19661         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19662         lang_link_flags): Unset, so that they aren't inherited from previously
19663         sourced *.exp.
19665         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19667 2005-10-12  Richard Henderson  <rth@redhat.com>
19669         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19670         (libgomp_init): Use lang_test_file, lang_library_path, and
19671         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
19673         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19674         (lang_test_file, lang_link_flags): New.
19675         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19677         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19678         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19679         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19680         testsuite/libgomp.c++/parallel-1.C,
19681         testsuite/libgomp.c++/reduction-1.C,
19682         testsuite/libgomp.c++/reduction-2.C,
19683         testsuite/libgomp.c++/reduction-3.C,
19684         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19685         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19686         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19687         New files, largely cribbed from the C testsuite.
19689 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
19691         * testsuite/libgomp.fortran/character1.f90: New test.
19692         * testsuite/libgomp.fortran/character2.f90: New test.
19694         * testsuite/libgomp.dg/nested-1.c: New test.
19695         * testsuite/libgomp.dg/nested-2.c: New test.
19696         * testsuite/libgomp.fortran/do1.f90: New test.
19697         * testsuite/libgomp.fortran/do2.f90: New test.
19699         * testsuite/libgomp.fortran/reference1.f90: New test.
19701 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
19703         * testsuite/libgomp.dg/reduction-1.c: New test.
19704         * testsuite/libgomp.dg/reduction-2.c: New test.
19705         * testsuite/libgomp.dg/reduction-3.c: New test.
19707 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
19709         * testsuite/libgomp.dg/atomic-1.c: New test.
19710         * testsuite/libgomp.dg/atomic-2.c: New test.
19712 2005-10-09  Richard Henderson  <rth@redhat.com>
19714         * critical.c (atomic_lock): New.
19715         (initialize_critical): Initialize it.
19716         (GOMP_atomic_start, GOMP_atomic_end): New.
19717         * libgomp.map: Export them.
19718         * libgomp_g.h: Declare them.
19720         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19722 2005-10-02  Richard Henderson  <rth@redhat.com>
19724         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
19725         to XCFLAGS instead of CFLAGS.
19727 2005-09-30  Richard Henderson  <rth@redhat.com>
19729         * configure.ac: Determine whether -pthread or -lpthread is needed.
19730         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19731         * Makefile.in, configure: Rebuild.
19733 2005-09-28  Richard Henderson  <rth@redhat.com>
19735         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19736         * testsuite/libgomp.dg/omp-single-3.c: New test.
19738 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
19740         * testsuite/libgomp.dg/omp-single-2.c: New test.
19741         * testsuite/libgomp.dg/shared-2.c: Fix return code.
19743 2005-09-27  Richard Henderson  <rth@redhat.com>
19745         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19746         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19748 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
19750         * testsuite/libgomp.dg/omp-loop03.c: New test.
19752 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19754         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19756 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19758         * testsuite/libgomp.dg/omp-single-1.c: New test.
19759         * testsuite/libgomp.dg/shared-1.c: Return 0.
19760         Add prototype for abort.
19761         * testsuite/libgomp.dg/shared-2.c: Likewise.
19763 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
19765         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19766         constructs.
19768 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
19770         * testsuite/libgomp.dg/shared-1.c: New test.
19771         * testsuite/libgomp.dg/shared-2.c: New test.
19773 2005-09-24  Richard Henderson  <rth@redhat.com>
19775         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19777 2005-09-24  Richard Henderson  <rth@redhat.com>
19779         * iter.c (gomp_iter_static_next): Round up when computing number
19780         of iterations.  Don't bother distributing a remainder equally.
19782         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19783         Don't call srand.  Zero b before testing.
19784         (main): New.
19786 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
19788         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19789         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19791 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
19793         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19794         without !$omp end do, followed immediately by subroutine end.
19796 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
19798         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19800 2005-09-22  Richard Henderson  <rth@redhat.com>
19802         * critical.c (GOMP_critical_name_start): Change argument to void**.
19803         Reuse the pointer space if the mutex fits.
19804         (GOMP_critical_name_end): Likewise.
19805         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19806         * libgomp_g.h (GOMP_critical_name_start): Update decl.
19807         (GOMP_critical_name_end): Likewise.
19808         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19809         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19811 2005-09-20  Richard Henderson  <rth@redhat.com>
19813         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19814         (create_lock_lock): New.
19815         (initialize_critical): Initialize it.
19816         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19817         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19819 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19821         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19823 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19825         * testsuite/libgomp.dg/omp-loop01.c: New test.
19826         * testsuite/libgomp.dg/omp-loop02.c: New test.
19828 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
19830         * configure.ac (AC_PROG_FC): Add.
19831         (USE_FORTRAN): New automake conditional.
19832         * configure: Rebuilt.
19833         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19834         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19835         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19836         Add rules to build them.
19837         * Makefile.in: Rebuilt.
19838         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19839         OMP_NEST_LOCK_KIND.
19840         * libgomp.map: Add Fortran wrappers.
19841         * libgomp_f.h.in: New file.
19842         * omp_lib.h.in: New file.
19843         * omp_lib.f90.in: New file.
19844         * fortran.c: New file.
19845         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19846         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19847         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19848         libgfortran has been built.
19849         * testsuite/libgomp.fortran/fortran.exp: New file.
19850         * testsuite/libgomp.fortran/omp_cond1.f: New test.
19851         * testsuite/libgomp.fortran/omp_cond2.f: New test.
19852         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19853         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19854         * testsuite/libgomp.fortran/omp_hello.f: New test.
19855         * testsuite/libgomp.fortran/omp_orphan.f: New test.
19856         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19857         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19858         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19859         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19860         * testsuite/libgomp.fortran/omp_reduction.f: New test.
19861         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19862         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19864 2005-08-30  Richard Henderson  <rth@redhat.com>
19866         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19867         function for when aliases are not usable.
19868         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19869         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19870         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19871         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19872         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19873         GOMP_loop_ordered_guided_next): Likewise.
19874         * ordered.c (GOMP_ordered_start): Likewise.
19876 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
19878         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19879         * testsuite/libgomp.dg/omp_hello.c: Fix return code
19880         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19881         * testsuite/libgomp.dg/omp_orphan.c: Likewise
19882         * testsuite/libgomp.dg/omp_reduction.c: Likewise
19883         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19884         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19885         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19886         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19888 2005-07-07  Eric Christopher  <echristo@redhat.com>
19889             Diego Novillo  <dnovillo@redhat.com>
19891         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19892         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19893         up code.
19894         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19895         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19896         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19897         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19898         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19899         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19900         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19902 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
19904         * TOPLEVEL.patch: Remove.
19906 2005-05-16  Richard Henderson  <rth@redhat.com>
19908         * configure.ac: Test for clock_gettime.
19909         * config.h.in, configure: Rebuild.
19910         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19911         (omp_get_wtime): Use clock_gettime if available.
19912         (omp_get_wtick): Use clock_getres if available.
19914 2005-05-11  Richard Henderson  <rth@redhat.com>
19916         * config/linux/ia64/futex.h: New file.
19917         * configure.tgt: Use it.
19919         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19921 2005-05-07  Richard Henderson  <rth@redhat.com>
19923         * config/linux/powerpc/futex.h: New file.
19924         * configure.tgt: Use it.
19926         * config/linux/i486/futex.h: Merge ...
19927         * config/linux/x86_64/futex.h: ... into ...
19928         * config/linux/x86/futex.h: ... here.
19929         * configure.tgt: Update to match.
19931 2005-05-06  Richard Henderson  <rth@redhat.com>
19933         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19934         * config/linux/i486/futex.h: Likewise.
19935         * config/linux/x86_64/futex.h: Likewise.
19937         * config/linux/lock.c: New file.
19938         * config/linux/omp-lock.h: New file.
19940         * critical.c, env.h: Don't include omp.h
19941         * config/posix/lock.c: Include libgomp.h instead of omp.h.
19942         * config/posix/time.c: Likewise.
19943         * config/posix/omp-lock.h: New file.
19944         * libgomp.h: Include omp-lock.h and omp.h.
19945         * Makefile.am (nodist_include_HEADERS): New.
19946         (omp.h): New rule.
19947         * configure.ac (PERL): New.
19948         * mkomp_h.pl: New file.
19949         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19950         with templates.
19951         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19953         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19954         build directory.  Re-add -march=i486 hack.
19956         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19957         (libgomp_link_flags): Remove.
19958         (libgomp_initialized): Remove.
19959         (libgomp_init): Don't protect from reinitialization.  Copy code
19960         from libstdc++ for getting the multilib set correctly.
19962 2005-05-05  Richard Henderson  <rth@redhat.com>
19964         * config/linux/alpha/futex.h: New file.
19965         * configure.tgt (alpha*-*-linux*): Use it.
19967         * config/posix/mutex.c: New file.
19968         * config/posix/sem.c: Use libgomp.h.
19970         * configure.tgt (x86_64-linux): Also test CC for -m32.
19971         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19973         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19974         after $gccpath.
19976         * Makefile.am (SUBDIRS): New.
19977         (libgomp_la_LDFLAGS): Add -lpthread.
19978         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19979         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19981         * libgomp_g.h: New file.
19982         * libgomp.h: Split out all public declarations to libgomp_g.h.
19983         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19984         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19985         * config/linux/sem.h: Likewise.
19986         * config/posix/sem.h: Likewise.
19988         * Makefile.am (AM_LDFLAGS): New.
19989         (libgomp_version_script): Split out from ...
19990         (libgomp_la_LDFLAGS): ... here.
19991         (libgomp_version_info): New.
19992         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19993         (LIBGOMP_ENABLE): New.
19994         (LIBGOMP_CHECK_LINKER_FEATURES): New.
19995         (LIBGOMP_ENABLE_SYMVERS): New.
19996         * configure.ac (AC_INIT): Version 1.0.
19997         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19998         (enable-linux-futex): Likewise.  Rename from enable-futex.
19999         (libtool_VERSION): New.
20000         (LIBGOMP_ENABLE_SYMVERS): Use it.
20001         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20002         * Makefile.in, aclocal.m4, configure: Rebuild.
20004         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20005         (gomp_mutex_unlock_slow): Fix typo.
20006         * config/linux/sem.c: Similarly.
20007         (gomp_sem_post_slow): Fix typo.
20008         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20009         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20010         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20012         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20013         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20014         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20015         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20016         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20017         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20018         LDFLAGS.  Pull enable_futex check to top-level.
20019         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20020         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20022         First attempt at real configury.
20023         * Makefile, config.h: Remove file.
20024         * Makefile.am, Makefile.in: New file.
20025         * acinclude.m4 aclocal.m4: New file.
20026         * configure.ac, configure.tgt, configure: New file.
20028         * config/posix/lock.c: Rename from sys-lock.c.
20029         * config/posix/mutex.h: Rename from sys-mutex.h.
20030         * config/posix/sem.c: Rename from sys-sem.c.
20031         * config/posix/sem.h: Rename from sys-sem.h.
20032         * config/posix/proc.c: Rename from sys-proc.c.
20033         * config/posix/time.c: Rename from sys-proc.c.
20035         * config/linux/mutex.c: New file.
20036         * config/linux/mutex.h: New file.
20037         * config/linux/sem.c: New file.
20038         * config/linux/sem.h: New file.
20039         * config/linux/i486/futex.h: New file.
20040         * config/linux/x86_64/futex.h: New file.
20042 2005-05-04  Richard Henderson  <rth@redhat.com>
20044         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20045         * libgomp.h: Declare them.
20046         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20047         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20049 2005-05-04  Richard Henderson  <rth@redhat.com>
20051         * libgomp-1 code drop
20053 2005-05-04  Richard Henderson  <rth@redhat.com>
20055         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20056         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20057         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20058         (gomp_iter_static_next): Update.
20059         (gomp_ordered_static_next): Update.
20060         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20061         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20062         totally empty range.
20063         (gomp_loop_ordered_static_next): Refine test for calling
20064         gomp_ordered_static_next.
20065         * testsuite/ordered-1.c: Add case for more threads than iterations.
20067         * iter.c (gomp_iter_runtime_next_locked): Remove.
20068         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20069         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20070         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20071         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20072         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20073         gomp_loop_ordered_guided_next): Downcase name, make static, add
20074         an external alias with the old name.
20075         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20076         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20077         switch and call one of the above static functions.
20078         * libgomp.h: Update.
20080         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20081         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20082         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20083         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20084         GOMP_loop_ordered_guided_start): Update to match.
20085         * sections.c (GOMP_sections_start): Likewise.
20086         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20088         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20089         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20090         Use bounds check instead of modulus.
20091         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20092         (gomp_ordered_last): Don't sync with ordered_owner here.
20093         (gomp_ordered_next): Likewise.
20094         (gomp_ordered_static_loop_next): Likewise.
20095         * loop.c, libgomp.h: Update to match.
20097         * libgomp.h (GOMP_barrier): Declare.
20099         * testsuite/barrier-1.c: New file.
20100         * testsuite/critical-1.c: New file.
20101         * testsuite/ordered-2.c: New file.
20102         * testsuite/ordered-1.c: New file.
20103         * testsuite/sections-1.c: New file.
20104         * testsuite/single-1.c: New file.
20105         * testsuite/Makefile (TESTS): Add them.
20107 2005-05-04  Richard Henderson  <rth@redhat.com>
20109         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20110         * loop.c (GOMP_loop_static_start): If not the startup thread,
20111         acquire the mutex to wait for initialization complete.
20112         (GOMP_loop_ordered_static_start): Likewise.
20113         (GOMP_loop_ordered_runtime_start): Likewise.
20114         (GOMP_loop_ordered_static_first): Remove.
20115         (GOMP_loop_ordered_dynamic_first): Remove.
20116         (GOMP_loop_ordered_guided_first): Remove.
20117         (GOMP_loop_ordered_runtime_first): Remove.
20118         * ordered.c (gomp_ordered_loop_first): Post to own release when
20119         we're the first thread.
20120         (gomp_ordered_loop_last): Wait on release if not owner.
20121         (gomp_ordered_loop_next): Likewise.
20122         (gomp_ordered_static_loop_init): New.
20123         (gomp_ordered_static_loop_next): Use ordered_owner.
20124         (GOMP_ordered_start): Likewise.
20125         * work.c (gomp_new_work_share): Initialize ordered_owner.
20127 2005-05-03  Richard Henderson  <rth@redhat.com>
20129         * Makefile (OPT): New.
20130         (CFLAGS): Use it.
20132         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20133         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20134         * libgomp.h, libgomp.map, NOTES: Update to match.
20136         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20137         Add initialized and thr members.
20138         (gomp_thread_start): Pause when initially spawned to wait for
20139         the whole team to be created.
20140         (gomp_team_start): Release team members at the end.
20142         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20143         (f_foo_1): Use GOMP_loop_end.
20144         (f_foo_2): Use GOMP_loop_end_nowait.
20146         * testsuite/loop-2.c: New file.
20147         * testsuite/Makefile (TESTS): Add it.
20149 2005-05-03  Richard Henderson  <rth@redhat.com>
20151         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20152         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20153         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20154         initial work_share.
20156         * testsuite/Makefile: New file.
20157         * testsuite/loop-1.c: New file.
20159 2005-05-03  Richard Henderson  <rth@redhat.com>
20161         Initial implementation and checkin.
20163 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20165 Copying and distribution of this file, with or without modification,
20166 are permitted in any medium without royalty provided the copyright
20167 notice and this notice are preserved.