d: Add testcase from PR108962
[official-gcc.git] / libgomp / ChangeLog
blob3bbcf41dc5aab7929657b8dee6c90facbe05c017
1 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
3         * libgomp.texi: Use @var for ICV vars.
4         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
5         document which ICV is set and which scope the ICV has; extend/cleanup
6         some @ref.
7         (Implementation-defined ICV Initialization): New.
8         (nvptx): Document the implementation-defined used per-warp stack size.
10 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
12         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
13         error.
15 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
17         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
18         as expected dg-output.
20 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
22         PR middle-end/110270
23         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
24         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
25         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
26         * testsuite/libgomp.c/target-19.c: Update expected value.
27         * testsuite/libgomp.c++/target-18.C: Likewise.
28         * testsuite/libgomp.c++/target-19.C: Likewise.
29         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
30         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
31         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
33 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
35         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
36         gomp_init_targets_once was called before using default-device-var.
37         * testsuite/libgomp.c/target-55.c: New test.
38         * testsuite/libgomp.c/target-55a.c: New test.
40 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
42         * env.c (gomp_def_allocator_envvar): New var.
43         (parse_allocator): Handle OpenMP 5.1 syntax.
44         (cleanup_env): New.
45         (omp_display_env): Output gomp_def_allocator_envvar
46         for an allocator with traits.
47         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
48         OMP_DISPLAY_AFFINITY): New.
49         * testsuite/libgomp.c/allocator-1.c: New test.
50         * testsuite/libgomp.c/allocator-2.c: New test.
51         * testsuite/libgomp.c/allocator-3.c: New test.
52         * testsuite/libgomp.c/allocator-4.c: New test.
53         * testsuite/libgomp.c/allocator-5.c: New test.
54         * testsuite/libgomp.c/allocator-6.c: New test.
56 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
58         * target.c (resolve_device): Align a
59         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
60         * testsuite/libgomp.c/target-51.c: Adjust.
62 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
64         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
65         set.
66         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
67         Likewise.
68         * testsuite/libgomp.c/simd-math-1.c: Remove
69         '-foffload-options=-lm'.
70         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
71         Likewise.
72         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
73         Likewise.
75 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
77         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
78         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
79         Likewise.
81 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
83         * testsuite/libgomp.c/target-51.c: Fix typo.
85 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
87         * env.c (gomp_default_icv_values): Init default_device_var to
88         an nonconforming value - INT_MIN.
89         (initialize_env): After env-var parsing, set default_device_var to
90         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
91         (omp_display_env): If default_device_var is INT_MIN, call
92         gomp_init_targets_once.
93         * icv-device.c (omp_get_default_device): Likewise.
94         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
95         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
96         * target.c (resolve_device): Improve error message device-num < 0
97         with 'mandatory' and no no-host devices available.
98         (gomp_target_init): Set default-device-var if INT_MIN.
99         * testsuite/libgomp.c/target-48.c: New test.
100         * testsuite/libgomp.c/target-49.c: New test.
101         * testsuite/libgomp.c/target-50.c: New test.
102         * testsuite/libgomp.c/target-50a.c: New test.
103         * testsuite/libgomp.c/target-51.c: New test.
104         * testsuite/libgomp.c/target-52.c: New test.
105         * testsuite/libgomp.c/target-53.c: New test.
106         * testsuite/libgomp.c/target-54.c: New test.
108 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
110         PR libgomp/109837
111         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
112         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
114 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
116         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
117         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
118         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
119         error message.
120         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
121         changed error message.
122         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
123         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
124         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
125         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
126         extend testcase to check that data is copied when needed.
127         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
128         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
130 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
131             Tobias Burnus  <tobias@codesourcery.com>
133         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
134         also for non-offload_device targets; check that it runs
135         successfully for those and for all until a checkpoint for all
136         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
137         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
138         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
139         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
140         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
141         add missing vars to map clause.
143 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
145         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
146         unified_address requirement as supported.
147         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
148         'unified_address' from the not-supported requirements.
150 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
151             Tobias Burnus  <tobias@codesourcery.com>
153         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
154         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
155         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
156         modifier.
157         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
158         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
159         Emit runtime error if memory region not present.
160         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
161         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
162         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
163         * testsuite/libgomp.fortran/target-present-1.f90: New test.
164         * testsuite/libgomp.fortran/target-present-2.f90: New test.
165         * testsuite/libgomp.fortran/target-present-3.f90: New test.
167 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
169         PR testsuite/66005
170         * testsuite/lib/libgomp.exp: 'flock' through stdout.
171         * testsuite/flock: New.
172         * configure.ac (FLOCK): Point to that if no 'flock' available, but
173         'perl' is.
174         * configure: Regenerate.
176 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
178         * configure.ac (PERL): Remove.
179         * configure: Regenerate.
180         * Makefile.in: Likewise.
181         * testsuite/Makefile.in: Likewise.
183 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
185         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
187 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
189         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
191 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
193         PR libgomp/109875
194         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
195         * config/nvptx/target.c (GOMP_teams4): Likewise.
196         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
197         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
198         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
199         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
201 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
203         PR libgomp/109904
204         * configure.ac (link_gomp): Include also $DL_LIBS.
205         * configure: Regenerated.
207 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
209         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
210         'target exit data'.
211         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
212         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
213         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
214         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
216 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
218         PR testsuite/66005
219         * configure.ac: Look for 'flock'.
220         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
221         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
222         * testsuite/lib/libgomp.exp: ... but here, instead.
223         (libgomp_load): Override for parallel testing.
224         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
225         * configure: Regenerate.
226         * Makefile.in: Regenerate.
227         * testsuite/Makefile.in: Regenerate.
229 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
230             Thomas Schwinge  <thomas@codesourcery.com>
232         PR testsuite/66005
233         * testsuite/Makefile.am (PWD_COMMAND): New variable.
234         (%/site.exp): New target.
235         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
236         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
237         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
238         (check_p_subdirs)
239         (check_DEJAGNU_libgomp_targets): New variables.
240         ($(check_DEJAGNU_libgomp_targets)): New target.
241         ($(check_DEJAGNU_libgomp_targets)): New dependency.
242         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
243         * testsuite/Makefile.in: Regenerate.
244         * testsuite/lib/libgomp.exp: For parallel testing,
245         'load_file ../libgomp-test-support.exp'.
247 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
249         PR testsuite/91884
250         * configure.ac: 'AC_SUBST(CXX)'.
251         * configure: Regenerate.
252         * Makefile.in: Likewise.
253         * testsuite/Makefile.in: Likewise.
254         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
255         (GFORTRAN_UNDER_TEST): Set.
256         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
257         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
258         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
259         * testsuite/libgomp.fortran/fortran.exp: Use
260         'GFORTRAN_UNDER_TEST'.
261         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
263 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
265         PR testsuite/91884
266         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
267         specify compiler.
268         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
269         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
270         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
271         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
272         Likewise.
273         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
274         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
275         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
276         Likewise.
278 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
280         PR libstdc++/109816
281         * testsuite/libgomp.c++/target-map-class-1.C: New test.
282         * testsuite/libgomp.c++/target-map-class-2.C: New test.
284 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
286         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
287         'lang_library_path' into a list of 'lang_library_paths'.
288         * testsuite/libgomp.c++/c++.exp: Adjust.
289         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
290         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
291         libquadmath, too.
292         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
294 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
296         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
297         at 'lang_test_file_found'.
298         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
299         'return' early if not able to test.  Simplify 'ld_library_path' setup.
300         * testsuite/libgomp.fortran/fortran.exp: Likewise.
301         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
302         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
304 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
306         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
307         first.
308         * testsuite/libgomp.fortran/fortran.exp: Likewise.
309         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
310         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
312 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
314         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
315         * testsuite/libgomp.c/c.exp: Likewise.
316         * testsuite/libgomp.fortran/fortran.exp: Likewise.
317         * testsuite/libgomp.graphite/graphite.exp: Likewise.
318         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
319         * testsuite/libgomp.oacc-c/c.exp: Likewise.
320         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
322 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
324         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
325         * testsuite/libgomp.fortran/fortran.exp: Likewise.
326         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
327         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
328         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
329         'lang_test_file'.
330         * testsuite/libgomp.oacc-c/c.exp: Likewise.
331         * testsuite/libgomp.graphite/graphite.exp: Likewise.
332         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
333         'lang_test_file_found' instead of 'lang_test_file'.
335 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
337         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
338         set.
339         * testsuite/libgomp.c++/c++.exp: Likewise.
340         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
342 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
344         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
345         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
347 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
349         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
350         of 'libstdcxx_includes'.
351         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
353 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
355         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
356         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
357         * libgomp.h (gomp_target_rev): Adjust.
358         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
359         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
360         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
361         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
362         (rev_off_host_to_dev_cpy): Remove.
363         (GOMP_OFFLOAD_run): Adjust.
365 2023-05-04  Julian Brown  <julian@codesourcery.com>
367         PR fortran/109622
368         * testsuite/libgomp.fortran/pr109622.f90: Move test...
369         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
370         vector length warning.
371         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
372         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
373         missing copyin/copyout variable. Ignore vector length warnings.
374         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
375         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
376         vector length warnings.
377         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
379 2023-04-28  Julian Brown  <julian@codesourcery.com>
381         PR fortran/109622
382         * testsuite/libgomp.fortran/pr109622.f90: New test.
383         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
384         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
386 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
388         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
389         * testsuite/libgomp.c/scan-23.c: New test.
390         * testsuite/libgomp.fortran/scan-2.f90: New test.
392 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
394         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
395         weak_undefined options.
397 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
399         * libgomp.texi (Offload-Target Specifics): Grammar fix.
401 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
403         PR fortran/104949
404         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
405         caveat/safeguard.
407 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
409         PR libgomp/90596
410         * target.c (gomp_map_vars_internal): Allow for
411         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
412         * oacc-parallel.c (GOACC_parallel_keyed): Pass
413         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
414         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
415         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
416         Adjust, simplify.
417         (gomp_offload_free): Remove.
418         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
419         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
420         (cuda_free_argmem): Remove.
421         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
422         Adjust.
424 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
426         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
427         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
428         data.
430 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
432         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
433         'GOMP_MAP_IF_PRESENT'.
434         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
435         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
436         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
437         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
438         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
439         testing.
440         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
442 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
444         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
445         shortcut.
447 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
449         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
450         another aspect of OpenACC 'async' semantics.
452 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
454         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
455         position.
456         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
457         Verify 'acc_ev_alloc', 'acc_ev_free'.
459 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
461         PR libgomp/109062
462         * env.c (wait_policy): Initialize to -1.
463         (initialize_icvs): Initialize icvs->wait_policy to -1.
464         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
466 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
468         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
470 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
471             Paul-Antoine Arras  <pa@codesourcery.com>
473         * testsuite/libgomp.c/simd-math-1.c: New testcase.
475 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
477         PR middle-end/108546
478         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
479         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
481 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
483         * testsuite/libgomp.fortran/alloc-10.f90: Use
484         '-Wno-complain-wrong-lang'.
485         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
486         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
487         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
488         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
489         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
490         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
491         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
492         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
493         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
494         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
495         Likewise.
496         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
497         Likewise.
498         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
499         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
500         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
501         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
502         'dg-prune-output'.
504 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
506         * libgomp.texi: Fix typos - theads -> threads.
508 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
510         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
511         comment typo and improve its wording.
513 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
515         * target.c (gomp_target_rev): Dereference ptr
516         to get device address.
517         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
518         for unallocated allocatable.
520 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
522         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
523         kind check.
524         (GOMP_target_enter_exit_data): If the next map item is
525         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
526         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
528 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
530         PR fortran/107424
531         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
532         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
533         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
534         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
535         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
536         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
538 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
540         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
541         offloading compilation.
543 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
545         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
546         freeing not allocated memory.
547         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
549 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
551         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
552         reverse offload.
553         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
554         reverse-offload requirement.
556 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
558         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
559         (DEFAULT_TEAM_ARENA_SIZE): New define.
560         (struct heap): Move to this file.
561         (struct kernargs_abi): Likewise.
562         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
563         the kernargs.
564         * libgomp.h: Include libgomp-gcn.h.
565         (TEAM_ARENA_SIZE): Remove.
566         (team_malloc): Update the error message.
567         * plugin/plugin-gcn.c (struct kernargs): Move common content to
568         struct kernargs_abi.
569         (struct agent_info): Rename team arenas to ephemeral memories.
570         (struct team_arena_list): Rename ....
571         (struct ephemeral_memories_list): to this.
572         (struct heap): Delete.
573         (team_arena_size): New variable.
574         (stack_size): New variable.
575         (print_kernel_dispatch): Update debug messages.
576         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
577         Read GCN_STACK_SIZE.
578         (get_team_arena): Rename ...
579         (configure_ephemeral_memories): ... to this, and set up stacks.
580         (release_team_arena): Rename ...
581         (release_ephemeral_memories): ... to this.
582         (destroy_team_arenas): Rename ...
583         (destroy_ephemeral_memories): ... to this.
584         (create_kernel_dispatch): Add num_threads parameter.
585         Adjust for kernargs_abi refactor and ephemeral memories.
586         (release_kernel_dispatch): Adjust for ephemeral memories.
587         (run_kernel): Pass thread-count to create_kernel_dispatch.
588         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
589         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
591 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
593         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
595 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
597         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
598         usage, remove unused -fdump-tree-original.
599         * testsuite/libgomp.fortran/allocate-4.f90: New.
601 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
603         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
604         (GCN): Add item about 'omp requires'.
605         (nvptx): Likewise; add item about reverse offload.
607 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
609         PR fortran/108558
610         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
612 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
614         * libgomp.texi (OpenMP 5.0): Set non-rectangular
615         loop nest back to 'P' as Fortran support is incomplete.
617 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
619         PR middle-end/108459
620         * testsuite/libgomp.c/pr108459.c: New test.
622 2023-01-17  Martin Liska  <mliska@suse.cz>
624         * Makefile.in: Regenerate.
625         * configure: Regenerate.
627 2023-01-07  LIU Hao  <lh_mouse@126.com>
629         PR middle-end/108300
630         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
631         <windows.h>.
633 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
635         PR c++/108286
636         * testsuite/libgomp.c++/pr108286.C: New test.
638 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
640         * libgomp.texi: Bump @copying's copyright year.
642 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
644         PR target/99555
645         * config/nvptx/bar.c (generation_to_barrier): Remove.
646         (futex_wait,futex_wake,do_spin,do_wait): Remove.
647         (GOMP_WAIT_H): Remove.
648         (#include "../linux/bar.c"): Remove.
649         (gomp_barrier_wait_end): New function.
650         (gomp_barrier_wait): Likewise.
651         (gomp_barrier_wait_last): Likewise.
652         (gomp_team_barrier_wait_end): Likewise.
653         (gomp_team_barrier_wait): Likewise.
654         (gomp_team_barrier_wait_final): Likewise.
655         (gomp_team_barrier_wait_cancel_end): Likewise.
656         (gomp_team_barrier_wait_cancel): Likewise.
657         (gomp_team_barrier_cancel): Likewise.
658         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
659         (gomp_barrier_init): Remove init of waiters, lock fields.
660         (gomp_team_barrier_wake): Remove prototype, add new static inline
661         function.
663 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
665         PR c++/108180
666         * testsuite/libgomp.c++/pr108180.C: New test.
668 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
670         PR libfortran/108056
671         * testsuite/libgomp.fortran/allocate-4.f90: Remove
672         accidentally added file.
674 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
676         PR libfortran/108056
677         * testsuite/libgomp.fortran/allocate-4.f90: New file.
679 2022-12-14  Julian Brown  <julian@codesourcery.com>
681         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
682         test.
684 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
686         * libgomp.h (struct target_mem_desc): Predeclare; move
687         below after 'reverse_splay_tree_node' and add rev_array
688         member.
689         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
690         (reverse_splay_tree_node, reverse_splay_tree,
691         reverse_splay_tree_key): New typedef.
692         (struct gomp_device_descr): Add mem_map_rev member.
693         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
694         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
695         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
696         * splay-tree.h (splay_tree_callback_stop): New typedef; like
697         splay_tree_callback but returning int not void.
698         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
699         taking splay_tree_callback_stop as argument.
700         * splay-tree.c (splay_tree_foreach_internal_lazy,
701         splay_tree_foreach_lazy): New; but early exit if callback returns
702         nonzero.
703         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
704         (gomp_map_lookup_rev): New.
705         (gomp_load_image_to_device): Handle reverse-offload function
706         lookup table.
707         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
708         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
709         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
710         gomp_map_cdata_lookup): New auxiliary structs and functions for
711         gomp_target_rev.
712         (gomp_target_rev): Implement reverse offloading and its mapping.
713         (gomp_target_init): Init current_device.mem_map_rev.root.
714         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
715         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
716         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
717         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
718         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
719         mapping of on-device allocated variables.
721 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
723         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
724         item about 'align'; mark clause as 'Y' and directive as 'N'.
725         * testsuite/libgomp.fortran/allocate-2.f90: New test.
726         * testsuite/libgomp.fortran/allocate-3.f90: New test.
728 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
730         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
731         allow processing of device-specific values.
732         (omp_set_teams_thread_limit): Likewise.
733         (ialias): Likewise.
734         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
735         (omp_set_teams_thread_limit): Likewise.
736         (ialias): Likewise.
737         * icv-device.c (omp_get_teams_thread_limit): Likewise.
738         (ialias): Likewise.
739         (omp_set_teams_thread_limit): Likewise.
740         * icv.c (omp_set_teams_thread_limit): Removed.
741         (omp_get_teams_thread_limit): Likewise.
742         (ialias): Likewise.
743         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
744         to the limitation of the number of teams.
745         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
746         the number of teams by twice the number of compute units.
747         (parse_target_attributes): Limit the number of teams on gcn offload
748         devices.
749         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
750         handling.
751         (gomp_load_image_to_device): Added a size check for the ICVs struct
752         variable.
753         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
754         copy back the ICV values from device to host.
755         (GOMP_target_ext): Update the number of teams and threads in the kernel
756         args also considering device-specific values.
757         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
758         of OMP_TEAMS_THREAD_LIMIT from the environment.
759         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
760         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
761         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
762         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
763         * testsuite/libgomp.fortran/icv-5.f90: New test.
764         * testsuite/libgomp.fortran/icv-6.f90: New test.
766 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
768         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
769         (TR11): Add missing '@tab N @tab'.
771 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
773         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
775 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
777         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
778         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
779         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
780         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
781         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
782         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
783         * testsuite/libgomp.c/declare-variant-4.h: New header file.
785 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
787         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
789 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
791         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
792         * testsuite/libgomp.c/target-simd-clone-1.c: New.
793         * testsuite/libgomp.c/target-simd-clone-2.c: New.
794         * testsuite/libgomp.c/target-simd-clone-3.c: New.
796 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
798         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
799         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
800         as valid and the code having no reverse-offload code.
801         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
803 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
805         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
806         and status for Technical Report (TR) 11.
808 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
810         * config/gcn/libgomp-gcn.h (struct output):
811         Remove 'msg_u64' from the union, change
812         value_u64[2] to value_u64[6].
813         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
814         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
815         Likewise.
817 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
819         * config/gcn/libgomp-gcn.h: New file; contains
820         struct output, declared previously in plugin-gcn.c.
821         * config/gcn/target.c: Include it.
822         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
823         (GOMP_target_ext): Handle reverse offload.
824         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
825         (struct kernargs): Replace struct def by the one
826         from libgomp-gcn.h for output_data.
827         (process_reverse_offload): New.
828         (console_output): Call it.
830 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
831             Andrew Stubbs  <ams@codesourcery.com>
833         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
834         __builtin_gcn_kernarg_ptr instead of asm ("s8").
836 2022-11-14  Martin Liska  <mliska@suse.cz>
838         Revert:
839         2022-11-14  Martin Liska  <mliska@suse.cz>
841         * doc/amd-radeon-gcn.rst: New file.
842         * doc/conf.py: New file.
843         * doc/copyright.rst: New file.
844         * doc/cuda-streams-usage.rst: New file.
845         * doc/enabling-openacc.rst: New file.
846         * doc/enabling-openmp.rst: New file.
847         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
848         * doc/first-invocation-openacc-library-api.rst: New file.
849         * doc/funding.rst: New file.
850         * doc/general-public-license-3.rst: New file.
851         * doc/gnu-free-documentation-license.rst: New file.
852         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
853         * doc/index.rst: New file.
854         * doc/indices-and-tables.rst: New file.
855         * doc/introduction.rst: New file.
856         * doc/memory-allocation-with-libmemkind.rst: New file.
857         * doc/nvptx.rst: New file.
858         * doc/offload-target-specifics.rst: New file.
859         * doc/openacc-environment-variables.rst: New file.
860         * doc/openacc-environment-variables/accdevicenum.rst: New file.
861         * doc/openacc-environment-variables/accdevicetype.rst: New file.
862         * doc/openacc-environment-variables/accproflib.rst: New file.
863         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
864         * doc/openacc-introduction.rst: New file.
865         * doc/openacc-library-and-environment-variables.rst: New file.
866         * doc/openacc-library-interoperability.rst: New file.
867         * doc/openacc-profiling-interface.rst: New file.
868         * doc/openacc-runtime-library-routines.rst: New file.
869         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
870         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
871         * doc/openacc-runtime-library-routines/accattach.rst: New file.
872         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
873         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
874         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
875         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
876         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
877         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
878         * doc/openacc-runtime-library-routines/accfree.rst: New file.
879         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
880         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
881         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
882         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
883         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
884         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
885         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
886         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
887         * doc/openacc-runtime-library-routines/accinit.rst: New file.
888         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
889         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
890         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
891         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
892         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
893         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
894         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
895         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
896         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
897         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
898         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
899         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
900         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
901         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
902         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
903         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
904         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
905         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
906         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
907         * doc/openacc-runtime-library-routines/accwait.rst: New file.
908         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
909         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
910         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
911         * doc/openmp-context-selectors.rst: New file.
912         * doc/openmp-environment-variables.rst: New file.
913         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
914         * doc/openmp-environment-variables/gompdebug.rst: New file.
915         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
916         * doc/openmp-environment-variables/gompspincount.rst: New file.
917         * doc/openmp-environment-variables/gompstacksize.rst: New file.
918         * doc/openmp-environment-variables/ompcancellation.rst: New file.
919         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
920         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
921         * doc/openmp-environment-variables/ompdynamic.rst: New file.
922         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
923         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
924         * doc/openmp-environment-variables/ompnested.rst: New file.
925         * doc/openmp-environment-variables/ompnumteams.rst: New file.
926         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
927         * doc/openmp-environment-variables/ompplaces.rst: New file.
928         * doc/openmp-environment-variables/ompprocbind.rst: New file.
929         * doc/openmp-environment-variables/ompschedule.rst: New file.
930         * doc/openmp-environment-variables/ompstacksize.rst: New file.
931         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
932         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
933         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
934         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
935         * doc/openmp-implementation-specifics.rst: New file.
936         * doc/openmp-implementation-status.rst: New file.
937         * doc/openmp-implementation-status/openmp-45.rst: New file.
938         * doc/openmp-implementation-status/openmp-50.rst: New file.
939         * doc/openmp-implementation-status/openmp-51.rst: New file.
940         * doc/openmp-implementation-status/openmp-52.rst: New file.
941         * doc/openmp-runtime-library-routines.rst: New file.
942         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
943         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
944         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
945         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
946         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
947         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
948         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
949         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
950         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
951         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
952         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
953         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
954         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
955         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
956         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
957         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
958         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
959         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
960         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
961         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
962         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
963         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
964         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
965         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
966         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
967         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
968         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
969         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
970         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
971         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
972         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
973         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
974         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
975         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
976         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
977         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
978         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
979         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
980         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
981         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
982         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
983         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
984         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
985         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
986         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
987         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
988         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
989         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
990         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
991         * doc/reporting-bugs.rst: New file.
992         * doc/the-libgomp-abi.rst: New file.
993         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
994         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
995         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
996         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
997         New file.
998         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
999         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1000         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1001         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1002         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1003         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1004         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1005         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1006         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1007         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1008         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1010 2022-11-14  Martin Liska  <mliska@suse.cz>
1012         Revert:
1013         2022-11-14  Martin Liska  <mliska@suse.cz>
1015         * Makefile.in: Support Sphinx based documentation.
1017 2022-11-14  Martin Liska  <mliska@suse.cz>
1019         Revert:
1020         2022-11-14  Martin Liska  <mliska@suse.cz>
1022         * libgomp.texi: Removed.
1024 2022-11-14  Martin Liska  <mliska@suse.cz>
1026         Revert:
1027         2022-11-14  Martin Liska  <mliska@suse.cz>
1029         * Makefile.in: Support --with-sphinx-build.
1030         * configure.ac: Likewise..
1031         * configure: Regenerate.
1033 2022-11-14  Martin Liska  <mliska@suse.cz>
1035         Revert:
1036         2022-11-09  Martin Liska  <mliska@suse.cz>
1038         * Makefile.in: Build info pages conditionally.
1040 2022-11-14  Martin Liska  <mliska@suse.cz>
1042         Revert:
1043         2022-11-14  Martin Liska  <mliska@suse.cz>
1045         * doc/amd-radeon-gcn.rst:
1046         Add trailing newline.
1047         * doc/copyright.rst:
1048         Add trailing newline.
1049         * doc/cuda-streams-usage.rst:
1050         Add trailing newline.
1051         * doc/enabling-openacc.rst:
1052         Add trailing newline.
1053         * doc/enabling-openmp.rst:
1054         Add trailing newline.
1055         * doc/first-invocation-nvidia-cublas-library-api.rst:
1056         Add trailing newline.
1057         * doc/first-invocation-openacc-library-api.rst:
1058         Add trailing newline.
1059         * doc/funding.rst:
1060         Add trailing newline.
1061         * doc/general-public-license-3.rst:
1062         Add trailing newline.
1063         * doc/gnu-free-documentation-license.rst:
1064         Add trailing newline.
1065         * doc/implementation-status-and-implementation-defined-behavior.rst:
1066         Add trailing newline.
1067         * doc/index.rst:
1068         Add trailing newline.
1069         * doc/indices-and-tables.rst:
1070         Add trailing newline.
1071         * doc/introduction.rst:
1072         Add trailing newline.
1073         * doc/memory-allocation-with-libmemkind.rst:
1074         Add trailing newline.
1075         * doc/nvptx.rst:
1076         Add trailing newline.
1077         * doc/offload-target-specifics.rst:
1078         Add trailing newline.
1079         * doc/openacc-environment-variables.rst:
1080         Add trailing newline.
1081         * doc/openacc-environment-variables/accdevicenum.rst:
1082         Add trailing newline.
1083         * doc/openacc-environment-variables/accdevicetype.rst:
1084         Add trailing newline.
1085         * doc/openacc-environment-variables/accproflib.rst:
1086         Add trailing newline.
1087         * doc/openacc-environment-variables/gccaccnotify.rst:
1088         Add trailing newline.
1089         * doc/openacc-introduction.rst:
1090         Add trailing newline.
1091         * doc/openacc-library-and-environment-variables.rst:
1092         Add trailing newline.
1093         * doc/openacc-library-interoperability.rst:
1094         Add trailing newline.
1095         * doc/openacc-profiling-interface.rst:
1096         Add trailing newline.
1097         * doc/openacc-runtime-library-routines.rst:
1098         Add trailing newline.
1099         * doc/openacc-runtime-library-routines/accasynctest.rst:
1100         Add trailing newline.
1101         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1102         Add trailing newline.
1103         * doc/openacc-runtime-library-routines/accattach.rst:
1104         Add trailing newline.
1105         * doc/openacc-runtime-library-routines/acccopyin.rst:
1106         Add trailing newline.
1107         * doc/openacc-runtime-library-routines/acccopyout.rst:
1108         Add trailing newline.
1109         * doc/openacc-runtime-library-routines/acccreate.rst:
1110         Add trailing newline.
1111         * doc/openacc-runtime-library-routines/accdelete.rst:
1112         Add trailing newline.
1113         * doc/openacc-runtime-library-routines/accdetach.rst:
1114         Add trailing newline.
1115         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1116         Add trailing newline.
1117         * doc/openacc-runtime-library-routines/accfree.rst:
1118         Add trailing newline.
1119         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1120         Add trailing newline.
1121         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1122         Add trailing newline.
1123         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1124         Add trailing newline.
1125         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1126         Add trailing newline.
1127         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1128         Add trailing newline.
1129         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1130         Add trailing newline.
1131         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1132         Add trailing newline.
1133         * doc/openacc-runtime-library-routines/acchostptr.rst:
1134         Add trailing newline.
1135         * doc/openacc-runtime-library-routines/accinit.rst:
1136         Add trailing newline.
1137         * doc/openacc-runtime-library-routines/accispresent.rst:
1138         Add trailing newline.
1139         * doc/openacc-runtime-library-routines/accmalloc.rst:
1140         Add trailing newline.
1141         * doc/openacc-runtime-library-routines/accmapdata.rst:
1142         Add trailing newline.
1143         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1144         Add trailing newline.
1145         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1146         Add trailing newline.
1147         * doc/openacc-runtime-library-routines/accondevice.rst:
1148         Add trailing newline.
1149         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1150         Add trailing newline.
1151         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1152         Add trailing newline.
1153         * doc/openacc-runtime-library-routines/accproflookup.rst:
1154         Add trailing newline.
1155         * doc/openacc-runtime-library-routines/accprofregister.rst:
1156         Add trailing newline.
1157         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1158         Add trailing newline.
1159         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1160         Add trailing newline.
1161         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1162         Add trailing newline.
1163         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1164         Add trailing newline.
1165         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1166         Add trailing newline.
1167         * doc/openacc-runtime-library-routines/accshutdown.rst:
1168         Add trailing newline.
1169         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1170         Add trailing newline.
1171         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1172         Add trailing newline.
1173         * doc/openacc-runtime-library-routines/accupdateself.rst:
1174         Add trailing newline.
1175         * doc/openacc-runtime-library-routines/accwait.rst:
1176         Add trailing newline.
1177         * doc/openacc-runtime-library-routines/accwaitall.rst:
1178         Add trailing newline.
1179         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1180         Add trailing newline.
1181         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1182         Add trailing newline.
1183         * doc/openmp-context-selectors.rst:
1184         Add trailing newline.
1185         * doc/openmp-environment-variables.rst:
1186         Add trailing newline.
1187         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1188         Add trailing newline.
1189         * doc/openmp-environment-variables/gompdebug.rst:
1190         Add trailing newline.
1191         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1192         Add trailing newline.
1193         * doc/openmp-environment-variables/gompspincount.rst:
1194         Add trailing newline.
1195         * doc/openmp-environment-variables/gompstacksize.rst:
1196         Add trailing newline.
1197         * doc/openmp-environment-variables/ompcancellation.rst:
1198         Add trailing newline.
1199         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1200         Add trailing newline.
1201         * doc/openmp-environment-variables/ompdisplayenv.rst:
1202         Add trailing newline.
1203         * doc/openmp-environment-variables/ompdynamic.rst:
1204         Add trailing newline.
1205         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1206         Add trailing newline.
1207         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1208         Add trailing newline.
1209         * doc/openmp-environment-variables/ompnested.rst:
1210         Add trailing newline.
1211         * doc/openmp-environment-variables/ompnumteams.rst:
1212         Add trailing newline.
1213         * doc/openmp-environment-variables/ompnumthreads.rst:
1214         Add trailing newline.
1215         * doc/openmp-environment-variables/ompplaces.rst:
1216         Add trailing newline.
1217         * doc/openmp-environment-variables/ompprocbind.rst:
1218         Add trailing newline.
1219         * doc/openmp-environment-variables/ompschedule.rst:
1220         Add trailing newline.
1221         * doc/openmp-environment-variables/ompstacksize.rst:
1222         Add trailing newline.
1223         * doc/openmp-environment-variables/omptargetoffload.rst:
1224         Add trailing newline.
1225         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1226         Add trailing newline.
1227         * doc/openmp-environment-variables/ompthreadlimit.rst:
1228         Add trailing newline.
1229         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1230         Add trailing newline.
1231         * doc/openmp-implementation-specifics.rst:
1232         Add trailing newline.
1233         * doc/openmp-implementation-status.rst:
1234         Add trailing newline.
1235         * doc/openmp-implementation-status/openmp-45.rst:
1236         Add trailing newline.
1237         * doc/openmp-implementation-status/openmp-50.rst:
1238         Add trailing newline.
1239         * doc/openmp-implementation-status/openmp-51.rst:
1240         Add trailing newline.
1241         * doc/openmp-implementation-status/openmp-52.rst:
1242         Add trailing newline.
1243         * doc/openmp-runtime-library-routines.rst:
1244         Add trailing newline.
1245         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1246         Add trailing newline.
1247         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1248         Add trailing newline.
1249         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1250         Add trailing newline.
1251         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1252         Add trailing newline.
1253         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1254         Add trailing newline.
1255         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1256         Add trailing newline.
1257         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1258         Add trailing newline.
1259         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1260         Add trailing newline.
1261         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1262         Add trailing newline.
1263         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1264         Add trailing newline.
1265         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1266         Add trailing newline.
1267         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1268         Add trailing newline.
1269         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1270         Add trailing newline.
1271         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1272         Add trailing newline.
1273         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1274         Add trailing newline.
1275         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1276         Add trailing newline.
1277         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1278         Add trailing newline.
1279         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1280         Add trailing newline.
1281         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1282         Add trailing newline.
1283         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1284         Add trailing newline.
1285         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1286         Add trailing newline.
1287         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1288         Add trailing newline.
1289         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1290         Add trailing newline.
1291         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1292         Add trailing newline.
1293         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1294         Add trailing newline.
1295         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1296         Add trailing newline.
1297         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1298         Add trailing newline.
1299         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1300         Add trailing newline.
1301         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1302         Add trailing newline.
1303         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1304         Add trailing newline.
1305         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1306         Add trailing newline.
1307         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1308         Add trailing newline.
1309         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1310         Add trailing newline.
1311         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1312         Add trailing newline.
1313         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1314         Add trailing newline.
1315         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1316         Add trailing newline.
1317         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1318         Add trailing newline.
1319         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1320         Add trailing newline.
1321         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1322         Add trailing newline.
1323         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1324         Add trailing newline.
1325         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1326         Add trailing newline.
1327         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1328         Add trailing newline.
1329         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1330         Add trailing newline.
1331         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1332         Add trailing newline.
1333         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1334         Add trailing newline.
1335         * doc/openmp-runtime-library-routines/omptestlock.rst:
1336         Add trailing newline.
1337         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1338         Add trailing newline.
1339         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1340         Add trailing newline.
1341         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1342         Add trailing newline.
1343         * doc/reporting-bugs.rst:
1344         Add trailing newline.
1345         * doc/the-libgomp-abi.rst:
1346         Add trailing newline.
1347         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1348         Add trailing newline.
1349         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1350         Add trailing newline.
1351         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1352         Add trailing newline.
1353         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1354         Add trailing newline.
1355         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1356         Add trailing newline.
1357         * doc/the-libgomp-abi/implementing-for-construct.rst:
1358         Add trailing newline.
1359         * doc/the-libgomp-abi/implementing-master-construct.rst:
1360         Add trailing newline.
1361         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1362         Add trailing newline.
1363         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1364         Add trailing newline.
1365         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1366         Add trailing newline.
1367         * doc/the-libgomp-abi/implementing-private-clause.rst:
1368         Add trailing newline.
1369         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1370         Add trailing newline.
1371         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1372         Add trailing newline.
1373         * doc/the-libgomp-abi/implementing-single-construct.rst:
1374         Add trailing newline.
1375         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1376         Add trailing newline.
1378 2022-11-14  Martin Liska  <mliska@suse.cz>
1380         Revert:
1381         2022-11-09  Martin Liska  <mliska@suse.cz>
1383         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1385 2022-11-14  Martin Liska  <mliska@suse.cz>
1387         Revert:
1388         2022-11-14  Martin Liska  <mliska@suse.cz>
1390         * doc/conf.py: Add newline at last line.
1392 2022-11-14  Martin Liska  <mliska@suse.cz>
1394         Revert:
1395         2022-11-14  Martin Liska  <mliska@suse.cz>
1397         PR other/107620
1398         * configure: Regenerate.
1399         * configure.ac: Always set sphinx-build.
1401 2022-11-13  Martin Liska  <mliska@suse.cz>
1403         PR other/107620
1404         * configure: Regenerate.
1405         * configure.ac: Always set sphinx-build.
1407 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
1409         PR libgomp/107641
1410         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1411         unsigned long.  Change type of upper from unsigned to unsigned long.
1413 2022-11-10  Martin Liska  <mliska@suse.cz>
1415         * doc/conf.py: Add newline at last line.
1417 2022-11-09  Martin Liska  <mliska@suse.cz>
1419         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1421 2022-11-09  Martin Liska  <mliska@suse.cz>
1423         * doc/amd-radeon-gcn.rst:
1424         Add trailing newline.
1425         * doc/copyright.rst:
1426         Add trailing newline.
1427         * doc/cuda-streams-usage.rst:
1428         Add trailing newline.
1429         * doc/enabling-openacc.rst:
1430         Add trailing newline.
1431         * doc/enabling-openmp.rst:
1432         Add trailing newline.
1433         * doc/first-invocation-nvidia-cublas-library-api.rst:
1434         Add trailing newline.
1435         * doc/first-invocation-openacc-library-api.rst:
1436         Add trailing newline.
1437         * doc/funding.rst:
1438         Add trailing newline.
1439         * doc/general-public-license-3.rst:
1440         Add trailing newline.
1441         * doc/gnu-free-documentation-license.rst:
1442         Add trailing newline.
1443         * doc/implementation-status-and-implementation-defined-behavior.rst:
1444         Add trailing newline.
1445         * doc/index.rst:
1446         Add trailing newline.
1447         * doc/indices-and-tables.rst:
1448         Add trailing newline.
1449         * doc/introduction.rst:
1450         Add trailing newline.
1451         * doc/memory-allocation-with-libmemkind.rst:
1452         Add trailing newline.
1453         * doc/nvptx.rst:
1454         Add trailing newline.
1455         * doc/offload-target-specifics.rst:
1456         Add trailing newline.
1457         * doc/openacc-environment-variables.rst:
1458         Add trailing newline.
1459         * doc/openacc-environment-variables/accdevicenum.rst:
1460         Add trailing newline.
1461         * doc/openacc-environment-variables/accdevicetype.rst:
1462         Add trailing newline.
1463         * doc/openacc-environment-variables/accproflib.rst:
1464         Add trailing newline.
1465         * doc/openacc-environment-variables/gccaccnotify.rst:
1466         Add trailing newline.
1467         * doc/openacc-introduction.rst:
1468         Add trailing newline.
1469         * doc/openacc-library-and-environment-variables.rst:
1470         Add trailing newline.
1471         * doc/openacc-library-interoperability.rst:
1472         Add trailing newline.
1473         * doc/openacc-profiling-interface.rst:
1474         Add trailing newline.
1475         * doc/openacc-runtime-library-routines.rst:
1476         Add trailing newline.
1477         * doc/openacc-runtime-library-routines/accasynctest.rst:
1478         Add trailing newline.
1479         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1480         Add trailing newline.
1481         * doc/openacc-runtime-library-routines/accattach.rst:
1482         Add trailing newline.
1483         * doc/openacc-runtime-library-routines/acccopyin.rst:
1484         Add trailing newline.
1485         * doc/openacc-runtime-library-routines/acccopyout.rst:
1486         Add trailing newline.
1487         * doc/openacc-runtime-library-routines/acccreate.rst:
1488         Add trailing newline.
1489         * doc/openacc-runtime-library-routines/accdelete.rst:
1490         Add trailing newline.
1491         * doc/openacc-runtime-library-routines/accdetach.rst:
1492         Add trailing newline.
1493         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1494         Add trailing newline.
1495         * doc/openacc-runtime-library-routines/accfree.rst:
1496         Add trailing newline.
1497         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1498         Add trailing newline.
1499         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1500         Add trailing newline.
1501         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1502         Add trailing newline.
1503         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1504         Add trailing newline.
1505         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1506         Add trailing newline.
1507         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1508         Add trailing newline.
1509         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1510         Add trailing newline.
1511         * doc/openacc-runtime-library-routines/acchostptr.rst:
1512         Add trailing newline.
1513         * doc/openacc-runtime-library-routines/accinit.rst:
1514         Add trailing newline.
1515         * doc/openacc-runtime-library-routines/accispresent.rst:
1516         Add trailing newline.
1517         * doc/openacc-runtime-library-routines/accmalloc.rst:
1518         Add trailing newline.
1519         * doc/openacc-runtime-library-routines/accmapdata.rst:
1520         Add trailing newline.
1521         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1522         Add trailing newline.
1523         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1524         Add trailing newline.
1525         * doc/openacc-runtime-library-routines/accondevice.rst:
1526         Add trailing newline.
1527         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1528         Add trailing newline.
1529         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1530         Add trailing newline.
1531         * doc/openacc-runtime-library-routines/accproflookup.rst:
1532         Add trailing newline.
1533         * doc/openacc-runtime-library-routines/accprofregister.rst:
1534         Add trailing newline.
1535         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1536         Add trailing newline.
1537         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1538         Add trailing newline.
1539         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1540         Add trailing newline.
1541         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1542         Add trailing newline.
1543         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1544         Add trailing newline.
1545         * doc/openacc-runtime-library-routines/accshutdown.rst:
1546         Add trailing newline.
1547         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1548         Add trailing newline.
1549         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1550         Add trailing newline.
1551         * doc/openacc-runtime-library-routines/accupdateself.rst:
1552         Add trailing newline.
1553         * doc/openacc-runtime-library-routines/accwait.rst:
1554         Add trailing newline.
1555         * doc/openacc-runtime-library-routines/accwaitall.rst:
1556         Add trailing newline.
1557         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1558         Add trailing newline.
1559         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1560         Add trailing newline.
1561         * doc/openmp-context-selectors.rst:
1562         Add trailing newline.
1563         * doc/openmp-environment-variables.rst:
1564         Add trailing newline.
1565         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1566         Add trailing newline.
1567         * doc/openmp-environment-variables/gompdebug.rst:
1568         Add trailing newline.
1569         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1570         Add trailing newline.
1571         * doc/openmp-environment-variables/gompspincount.rst:
1572         Add trailing newline.
1573         * doc/openmp-environment-variables/gompstacksize.rst:
1574         Add trailing newline.
1575         * doc/openmp-environment-variables/ompcancellation.rst:
1576         Add trailing newline.
1577         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1578         Add trailing newline.
1579         * doc/openmp-environment-variables/ompdisplayenv.rst:
1580         Add trailing newline.
1581         * doc/openmp-environment-variables/ompdynamic.rst:
1582         Add trailing newline.
1583         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1584         Add trailing newline.
1585         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1586         Add trailing newline.
1587         * doc/openmp-environment-variables/ompnested.rst:
1588         Add trailing newline.
1589         * doc/openmp-environment-variables/ompnumteams.rst:
1590         Add trailing newline.
1591         * doc/openmp-environment-variables/ompnumthreads.rst:
1592         Add trailing newline.
1593         * doc/openmp-environment-variables/ompplaces.rst:
1594         Add trailing newline.
1595         * doc/openmp-environment-variables/ompprocbind.rst:
1596         Add trailing newline.
1597         * doc/openmp-environment-variables/ompschedule.rst:
1598         Add trailing newline.
1599         * doc/openmp-environment-variables/ompstacksize.rst:
1600         Add trailing newline.
1601         * doc/openmp-environment-variables/omptargetoffload.rst:
1602         Add trailing newline.
1603         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1604         Add trailing newline.
1605         * doc/openmp-environment-variables/ompthreadlimit.rst:
1606         Add trailing newline.
1607         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1608         Add trailing newline.
1609         * doc/openmp-implementation-specifics.rst:
1610         Add trailing newline.
1611         * doc/openmp-implementation-status.rst:
1612         Add trailing newline.
1613         * doc/openmp-implementation-status/openmp-45.rst:
1614         Add trailing newline.
1615         * doc/openmp-implementation-status/openmp-50.rst:
1616         Add trailing newline.
1617         * doc/openmp-implementation-status/openmp-51.rst:
1618         Add trailing newline.
1619         * doc/openmp-implementation-status/openmp-52.rst:
1620         Add trailing newline.
1621         * doc/openmp-runtime-library-routines.rst:
1622         Add trailing newline.
1623         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1624         Add trailing newline.
1625         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1626         Add trailing newline.
1627         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1628         Add trailing newline.
1629         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1630         Add trailing newline.
1631         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1632         Add trailing newline.
1633         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1634         Add trailing newline.
1635         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1636         Add trailing newline.
1637         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1638         Add trailing newline.
1639         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1640         Add trailing newline.
1641         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1642         Add trailing newline.
1643         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1644         Add trailing newline.
1645         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1646         Add trailing newline.
1647         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1648         Add trailing newline.
1649         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1650         Add trailing newline.
1651         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1652         Add trailing newline.
1653         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1654         Add trailing newline.
1655         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1656         Add trailing newline.
1657         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1658         Add trailing newline.
1659         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1660         Add trailing newline.
1661         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1662         Add trailing newline.
1663         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1664         Add trailing newline.
1665         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1666         Add trailing newline.
1667         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1668         Add trailing newline.
1669         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1670         Add trailing newline.
1671         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1672         Add trailing newline.
1673         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1674         Add trailing newline.
1675         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1676         Add trailing newline.
1677         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1678         Add trailing newline.
1679         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1680         Add trailing newline.
1681         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1682         Add trailing newline.
1683         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1684         Add trailing newline.
1685         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1686         Add trailing newline.
1687         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1688         Add trailing newline.
1689         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1690         Add trailing newline.
1691         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1692         Add trailing newline.
1693         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1694         Add trailing newline.
1695         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1696         Add trailing newline.
1697         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1698         Add trailing newline.
1699         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1700         Add trailing newline.
1701         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1702         Add trailing newline.
1703         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1704         Add trailing newline.
1705         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1706         Add trailing newline.
1707         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1708         Add trailing newline.
1709         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1710         Add trailing newline.
1711         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1712         Add trailing newline.
1713         * doc/openmp-runtime-library-routines/omptestlock.rst:
1714         Add trailing newline.
1715         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1716         Add trailing newline.
1717         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1718         Add trailing newline.
1719         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1720         Add trailing newline.
1721         * doc/reporting-bugs.rst:
1722         Add trailing newline.
1723         * doc/the-libgomp-abi.rst:
1724         Add trailing newline.
1725         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1726         Add trailing newline.
1727         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1728         Add trailing newline.
1729         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1730         Add trailing newline.
1731         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1732         Add trailing newline.
1733         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1734         Add trailing newline.
1735         * doc/the-libgomp-abi/implementing-for-construct.rst:
1736         Add trailing newline.
1737         * doc/the-libgomp-abi/implementing-master-construct.rst:
1738         Add trailing newline.
1739         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1740         Add trailing newline.
1741         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1742         Add trailing newline.
1743         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1744         Add trailing newline.
1745         * doc/the-libgomp-abi/implementing-private-clause.rst:
1746         Add trailing newline.
1747         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1748         Add trailing newline.
1749         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1750         Add trailing newline.
1751         * doc/the-libgomp-abi/implementing-single-construct.rst:
1752         Add trailing newline.
1753         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1754         Add trailing newline.
1756 2022-11-09  Martin Liska  <mliska@suse.cz>
1758         * Makefile.in: Build info pages conditionally.
1760 2022-11-09  Martin Liska  <mliska@suse.cz>
1762         * Makefile.in: Support --with-sphinx-build.
1763         * configure.ac: Likewise..
1764         * configure: Regenerate.
1766 2022-11-09  Martin Liska  <mliska@suse.cz>
1768         * libgomp.texi: Removed.
1770 2022-11-09  Martin Liska  <mliska@suse.cz>
1772         * Makefile.in: Support Sphinx based documentation.
1774 2022-11-09  Martin Liska  <mliska@suse.cz>
1776         * doc/amd-radeon-gcn.rst: New file.
1777         * doc/conf.py: New file.
1778         * doc/copyright.rst: New file.
1779         * doc/cuda-streams-usage.rst: New file.
1780         * doc/enabling-openacc.rst: New file.
1781         * doc/enabling-openmp.rst: New file.
1782         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1783         * doc/first-invocation-openacc-library-api.rst: New file.
1784         * doc/funding.rst: New file.
1785         * doc/general-public-license-3.rst: New file.
1786         * doc/gnu-free-documentation-license.rst: New file.
1787         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1788         * doc/index.rst: New file.
1789         * doc/indices-and-tables.rst: New file.
1790         * doc/introduction.rst: New file.
1791         * doc/memory-allocation-with-libmemkind.rst: New file.
1792         * doc/nvptx.rst: New file.
1793         * doc/offload-target-specifics.rst: New file.
1794         * doc/openacc-environment-variables.rst: New file.
1795         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1796         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1797         * doc/openacc-environment-variables/accproflib.rst: New file.
1798         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1799         * doc/openacc-introduction.rst: New file.
1800         * doc/openacc-library-and-environment-variables.rst: New file.
1801         * doc/openacc-library-interoperability.rst: New file.
1802         * doc/openacc-profiling-interface.rst: New file.
1803         * doc/openacc-runtime-library-routines.rst: New file.
1804         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1805         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1806         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1807         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1808         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1809         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1810         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1811         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1812         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1813         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1814         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1815         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1816         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1817         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1818         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1819         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1820         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1821         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1822         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1823         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1824         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1825         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1826         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1827         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1828         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1829         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1830         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1831         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1832         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1833         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1834         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1835         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1836         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1837         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1838         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1839         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1840         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1841         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1842         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1843         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1844         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1845         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1846         * doc/openmp-context-selectors.rst: New file.
1847         * doc/openmp-environment-variables.rst: New file.
1848         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1849         * doc/openmp-environment-variables/gompdebug.rst: New file.
1850         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1851         * doc/openmp-environment-variables/gompspincount.rst: New file.
1852         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1853         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1854         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1855         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1856         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1857         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1858         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1859         * doc/openmp-environment-variables/ompnested.rst: New file.
1860         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1861         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1862         * doc/openmp-environment-variables/ompplaces.rst: New file.
1863         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1864         * doc/openmp-environment-variables/ompschedule.rst: New file.
1865         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1866         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1867         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1868         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1869         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1870         * doc/openmp-implementation-specifics.rst: New file.
1871         * doc/openmp-implementation-status.rst: New file.
1872         * doc/openmp-implementation-status/openmp-45.rst: New file.
1873         * doc/openmp-implementation-status/openmp-50.rst: New file.
1874         * doc/openmp-implementation-status/openmp-51.rst: New file.
1875         * doc/openmp-implementation-status/openmp-52.rst: New file.
1876         * doc/openmp-runtime-library-routines.rst: New file.
1877         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1878         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1879         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1880         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1881         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1882         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1883         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1884         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1885         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1886         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1887         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1888         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1889         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1890         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1891         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1892         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1893         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1894         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1895         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1896         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1897         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1898         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1899         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1900         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1901         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1902         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1903         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1904         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1905         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1906         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1907         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1908         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1909         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1910         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1911         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1912         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1913         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1914         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1915         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1916         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1917         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1918         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1919         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1920         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1921         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1922         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1923         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1924         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1925         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1926         * doc/reporting-bugs.rst: New file.
1927         * doc/the-libgomp-abi.rst: New file.
1928         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1929         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1930         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1931         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1932         New file.
1933         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1934         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1935         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1936         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1937         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1938         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1939         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1940         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1941         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1942         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1943         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1945 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
1947         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
1948         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
1949         documentation.
1950         * plugin/configfrag.ac <enable_offload_targets>
1951         [*-intelmic-* | *-intelmicemul-*]: Remove.
1952         * configure: Regenerate.
1953         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
1954         handling.
1955         (offload_target_to_openacc_device_type)
1956         [$offload_target = *-intelmic*]: Remove.
1957         (check_effective_target_offload_device_intel_mic)
1958         (check_effective_target_offload_device_any_intel_mic): Remove.
1959         * testsuite/libgomp.c-c++-common/on_device_arch.h
1960         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
1961         (any_device_arch_intel_mic): Remove.
1962         * testsuite/libgomp.c-c++-common/target-45.c: Remove
1963         'offload_device_any_intel_mic' XFAIL.
1964         * testsuite/libgomp.fortran/target10.f90: Likewise.
1966 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
1968         * testsuite/libgomp.fortran/target-11.f90: New test.
1969         * testsuite/libgomp.fortran/target-13.f90: New test.
1971 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1973         PR libgomp/106643
1974         PR fortran/96668
1975         * oacc-mem.c (goacc_enter_data_internal): Support
1976         OpenACC 'declare create' with Fortran allocatable arrays, part II.
1977         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1978         Adjust.
1979         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
1981 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1983         PR libgomp/106643
1984         * oacc-mem.c (goacc_enter_data_internal): Support
1985         OpenACC 'declare create' with Fortran allocatable arrays, part I.
1986         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
1987         New.
1988         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
1989         New.
1991 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1993         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
1994         New.
1996 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1998         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
1999         New.
2001 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2002             Thomas Schwinge  <thomas@codesourcery.com>
2004         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2006 2022-10-28  Julian Brown  <julian@codesourcery.com>
2007             Thomas Schwinge  <thomas@codesourcery.com>
2009         PR middle-end/90115
2010         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2011         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2012         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2013         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2014         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2016 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2018         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2019         'ptx_dev->rev_data'.
2021 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2023         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2024         'static' for this variable.
2025         * config/nvptx/libgomp-nvptx.h: New file.
2026         * config/nvptx/target.c: Include it.
2027         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2028         (GOMP_REV_OFFLOAD_VAR): Declare var.
2029         (GOMP_target_ext): Handle reverse offload.
2030         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2031         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2032         * target.c (gomp_target_rev): ... this new stub function.
2033         * libgomp.h (gomp_target_rev): Declare.
2034         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2035         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2036         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2037         (struct ptx_device): Add rev_data member.
2038         (nvptx_open_device): Remove async_engines query, last used in
2039         r10-304-g1f4c5b9b; add unified-address assert check.
2040         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2041         support.
2042         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2043         offload functions exist. Make offload var available
2044         on host and device.
2045         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2046         (GOMP_OFFLOAD_run): Handle reverse offload.
2048 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2050         PR tree-optimization/107195
2051         PR target/107344
2052         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2053         regions checking.
2055 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2057         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2058         New.
2059         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2060         on_device_arch_gcn): New.
2061         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2062         requires-4.c but using heap-allocated memory.
2064 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2066         PR target/105421
2067         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2069 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2071         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2072         '-foffload-options' syntax.
2074 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2076         * testsuite/libgomp.fortran/task-7.f90: New test.
2077         * testsuite/libgomp.fortran/task-8.f90: New test.
2078         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2079         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2080         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2081         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2082         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2084 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2086         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2087         in deprecation bullet.
2089 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2091         * omp.h.in (omp_in_explicit_task): Declare.
2092         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2093         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2094         * libgomp.map (OMP_5.2): New symbol version, export
2095         omp_in_explicit_task and omp_in_explicit_task_.
2096         * task.c (omp_in_explicit_task): New function.
2097         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2098         (omp_in_explicit_task_): New function.
2099         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2100         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2101         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2102         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2104 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2106         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2107         from within explicit task.
2108         * target.c (GOMP_target_ext): Likewise.
2109         * testsuite/libgomp.c/task-7.c: New test.
2110         * testsuite/libgomp.c/task-8.c: New test.
2111         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2112         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2114 2022-10-12  Martin Liska  <mliska@suse.cz>
2116         * configure: Regenerate.
2118 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2119             Olivier Hainque  <hainque@adacore.com>
2121         * configure: Regenerate.
2123 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2125         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2127 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
2129         * libgomp.texi (Support begin/end declare target syntax in C/C++):
2130         Mark as implemented.
2132 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
2134         PR fortran/105318
2135         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2137 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
2139         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2140         for C/C++. Remove duplicated 'begin declare target' entry.
2142 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
2144         PR c/106981
2145         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2147 2022-09-14  Julian Brown  <julian@codesourcery.com>
2149         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2150         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2151         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2152         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2153         test to here, make "run" test.
2155 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
2157         PR libgomp/106906
2158         * env.c (get_icv_member_addr): Cast false to void * before assigning
2159         it to icv_addr[1], and comment the whole assignment out.
2161 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
2163         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2164         (nvptx): ... here.
2166 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2168         * libgomp.texi (Offload-Target Specifics: nvptx): Document
2169         that reverse offload requires >= -march=sm_35.
2170         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2171         with -misa=sm_35.
2172         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2173         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2174         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2175         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2176         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2178 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2180         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2181         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2183 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
2185         PR libgomp/106894
2186         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2187         (main): Avoid tests for which corresponding non-_ALL suffixed variable
2188         is in the environment, or for OMP_NUM_TEAMS on the device
2189         OMP_NUM_TEAMS_DEV_?.
2191 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
2193         * env.c (initialize_env): Include libiberty environ.h.
2195 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2197         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2198         function address table '$offload_func_table' if rev_fn_table
2199         is not NULL.
2201 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2203         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2204         .offload_func_table to populate rev_fn_table when requested.
2206 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2208         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2209         'uint64_t **rev_fn_table' argument.
2210         * oacc-host.c (host_load_image): Likewise.
2211         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2212         currently unused.
2213         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2214         * target.c (gomp_load_image_to_device): Update call but pass
2215         NULL for now.
2217 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
2219         PR libgomp/106894
2220         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2221         char * for dest[1] initialization from params[1].  Formatting fixes.
2223 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2225         PR fortran/106670
2226         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2228 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2230         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2231         section; move OpenMP Context Selectors from ...
2232         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2233         'nvptx' sections.
2235 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
2237         * config/gcn/icv-device.c (omp_get_default_device): Return device-
2238         specific ICV.
2239         (omp_get_max_teams): Added for GCN devices.
2240         (omp_set_num_teams): Likewise.
2241         (ialias): Likewise.
2242         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2243         specific ICV.
2244         (omp_get_max_teams): Added for NVPTX devices.
2245         (omp_set_num_teams): Likewise.
2246         (ialias): Likewise.
2247         * env.c (struct gomp_icv_list): New struct to store entries of initial
2248         ICV values.
2249         (struct gomp_offload_icv_list): New struct to store entries of device-
2250         specific ICV values that are copied to the device and back.
2251         (struct gomp_default_icv_values): New struct to store default values of
2252         ICVs according to the OpenMP standard.
2253         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2254         (print_env_var_error): Function that prints an error for invalid values
2255         for ICVs.
2256         (parse_unsigned_long_1): Removed getenv.  Generalized.
2257         (parse_unsigned_long): Likewise.
2258         (parse_int_1): Likewise.
2259         (parse_int): Likewise.
2260         (parse_int_secure): Likewise.
2261         (parse_unsigned_long_list): Likewise.
2262         (parse_target_offload): Likewise.
2263         (parse_bind_var): Likewise.
2264         (parse_stacksize): Likewise.
2265         (parse_boolean): Likewise.
2266         (parse_wait_policy): Likewise.
2267         (parse_allocator): Likewise.
2268         (omp_display_env): Extended to output different variants of environment
2269         variables.
2270         (print_schedule): New helper function for omp_display_env which prints
2271         the values of run_sched_var.
2272         (print_proc_bind): New helper function for omp_display_env which prints
2273         the values of proc_bind_var.
2274         (enum gomp_parse_type): Collection of types used for parsing environment
2275         variables.
2276         (ENTRY): Preprocess string lengths of environment variables.
2277         (OMP_VAR_CNT): Preprocess table size.
2278         (OMP_HOST_VAR_CNT): Likewise.
2279         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2280         number.
2281         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2282         (gomp_set_icv_flag): Sets a flag for a particular ICV.
2283         (print_device_specific_icvs): New helper function for omp_display_env to
2284         print device specific ICV values.
2285         (get_device_num): New helper function for parse_device_specific.
2286         Extracts the device number from an environment variable name.
2287         (get_icv_member_addr): Gets the memory address for a particular member
2288         of an ICV struct.
2289         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2290         (initialize_icvs): New function to initialize a gomp_initial_icvs
2291         struct.
2292         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2293         (startswith): Checks if a string starts with a given prefix.
2294         (initialize_env): Extended to parse the new syntax of environment
2295         variables.
2296         * icv-device.c (omp_get_max_teams): Added.
2297         (ialias): Likewise.
2298         (omp_set_num_teams): Likewise.
2299         * icv.c (omp_set_num_teams): Moved to icv-device.c.
2300         (omp_get_max_teams): Likewise.
2301         (ialias): Likewise.
2302         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2303         (GOMP_ADDITIONAL_ICVS): New target-side struct that
2304         holds the designated ICVs of the target device.
2305         * libgomp.h (enum gomp_icvs): Collection of ICVs.
2306         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2307         no suffix.
2308         (enum gomp_env_suffix): Collection of possible suffixes of environment
2309         variables.
2310         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2311         initial values.
2312         (struct gomp_default_icv):New struct to hold ICVs for which we need
2313         to store initial values.
2314         (struct gomp_icv_list): Definition of a linked list that is used for
2315         storing ICVs for the devices and also for _DEV, _ALL, and without
2316         suffix.
2317         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2318         a device.
2319         (struct gomp_offload_icv_list): Definition of a linked list that holds
2320         device-specific ICVs that are copied to devices.
2321         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2322         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2323         * libgomp.texi: Updated.
2324         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2325         further ICVs from the offload image.
2326         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2327         * target.c (gomp_get_offload_icv_item): Get a list item of
2328         gomp_offload_icv_list.
2329         (get_gomp_offload_icvs): New. Returns the ICV values
2330         depending on the device num and the variable hierarchy.
2331         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2332         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2333         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2334         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2335         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2336         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2337         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2339 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
2341         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2342         fully supported.
2343         * testsuite/libgomp.c/doacross-4.c: New test.
2344         * testsuite/libgomp.c/doacross-5.c: New test.
2345         * testsuite/libgomp.c/doacross-6.c: New test.
2346         * testsuite/libgomp.c/doacross-7.c: New test.
2348 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
2350         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2352 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
2354         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2355         refer to 'requires'.
2356         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2357         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2358         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2359         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2361 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2363         PR middle-end/106548
2364         * testsuite/libgomp.c/linear-2.c: New test.
2366 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2368         * splay-tree.h: Fix splay_* macro unsetting if
2369         splay_tree_prefix is defined.
2371 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
2373         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2375 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
2377         PR middle-end/106449
2378         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2380 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
2382         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2384 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
2386         PR middle-end/101551
2387         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2388         'offloading_enabled' diagnostics issue.
2390 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
2392         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2393         '_Pragma' diagnostics verification.
2395 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
2397         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2398         improved warning locations.
2399         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2401 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2403         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2404         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2405         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2406         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2407         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2409 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2411         * target.c (GOMP_offload_register, GOMP_offload_unregister):
2412         Denote as legacy entry points.
2413         * testsuite/lib/libgomp.exp
2414         (check_effective_target_offload_target_any): New proc.
2415         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2416         'offload_target_any'.
2417         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2418         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2419         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2421 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2423         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2424         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2426 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2428         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2430 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
2432         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2433         'data'.
2434         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
2436 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2437             Jakub Jelinek  <jakub@redhat.com>
2439         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2441 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2442             Chung-Lin Tang  <cltang@codesourcery.com>
2443             Thomas Schwinge  <thomas@codesourcery.com>
2445         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2446         omp_requires_mask arg.
2447         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2448         return -1 when device available but omp_requires_mask != 0.
2449         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2450         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2451         Update call.
2452         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2453         goacc_attach_host_thread_to_device, acc_get_num_devices,
2454         acc_set_device_num, get_property_any): Likewise.
2455         * target.c (omp_requires_mask): New global var.
2456         (gomp_requires_to_name): New.
2457         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2458         (gomp_target_init): Handle omp_requires_mask.
2459         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2460         (OpenMP 5.1): Add a missed item.
2461         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2462         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2463         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2464         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2465         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2466         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2467         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2468         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2469         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2470         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2471         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2472         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2473         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2474         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2475         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2476         * testsuite/libgomp.fortran/requires-1.f90: New test.
2478 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
2480         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2481         with fromto as implemented.
2483 2022-06-28  Martin Liska  <mliska@suse.cz>
2485         * acinclude.m4: Fix typo in mold linker detection.
2486         * Makefile.in: Regenerate.
2487         * configure: Regenerate.
2489 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
2490             Paul Iannetta  <piannetta@kalrayinc.com>
2492         PR libgomp/106045
2493         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2495 2022-06-17  Martin Liska  <mliska@suse.cz>
2497         * libgomp.texi: Add table header for new features of
2498         OpenMP 5.2.
2500 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
2502         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2503         q to ddress of an automatic variable.  Use -5 instead of -1 in
2504         omp_get_mapped_ptr call.  Add test with omp_initial_device.
2505         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2506         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
2507         Renumber stop arguments afterwards.
2509 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
2511         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2512         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2513         parameters.
2514         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2515         * target.c (resolve_device): Add remapped argument, handle
2516         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2517         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2518         if remapped, otherwise treat omp_initial_device that way.  For
2519         omp_invalid_device, always emit gomp_fatal, even when
2520         OMP_TARGET_OFFLOAD isn't mandatory.
2521         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2522         GOMP_target_update, GOMP_target_update_ext,
2523         GOMP_target_enter_exit_data): Pass true as remapped argument to
2524         resolve_device.
2525         (omp_target_alloc, omp_target_free, omp_target_is_present,
2526         omp_target_memcpy_check, omp_target_associate_ptr,
2527         omp_target_disassociate_ptr, omp_get_mapped_ptr,
2528         omp_target_is_accessible): Pass false as remapped argument to
2529         resolve_device.  Treat omp_initial_device the same as
2530         gomp_get_num_devices ().  Don't bypass resolve_device calls if
2531         device_num is negative.
2532         (omp_pause_resource): Treat omp_initial_device the same as
2533         gomp_get_num_devices ().  Call resolve_device.
2534         * icv-device.c (omp_set_default_device): Always set to device_num
2535         even when it is negative.
2536         * libgomp.texi: Document that Conforming device numbers,
2537         omp_initial_device and omp_invalid_device is implemented.
2538         * testsuite/libgomp.c/target-41.c (main): Add test with
2539         omp_initial_device.
2540         * testsuite/libgomp.c/target-45.c: New test.
2541         * testsuite/libgomp.c/target-46.c: New test.
2542         * testsuite/libgomp.c/target-47.c: New test.
2543         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2544         test with omp_initial_device.  Use -5 instead of -1 for negative value
2545         test.
2546         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2547         Likewise.  Reorder stop numbers.
2549 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
2551         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2552         rather than "libmemkind.so".
2554 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2556         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2557         * plugin/configfrag.ac (--with-cuda-driver)
2558         (--with-cuda-driver-include, --with-cuda-driver-lib)
2559         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2560         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2561         Remove.
2562         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2563         (cuda_driver_lib): Remove.
2564         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2565         * Makefile.in: Regenerate.
2566         * configure: Likewise.
2567         * testsuite/Makefile.in: Likewise.
2569 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2571         * config/linux/allocator.c: Fix up #include directive.
2573 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2575         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2576         (enum gomp_memkind_kind): New type.
2577         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2578         is defined.
2579         (struct gomp_memkind_data): New type.
2580         (memkind_data, memkind_data_once): New variables.
2581         (gomp_init_memkind, gomp_get_memkind): New functions.
2582         (omp_init_allocator): Initialize data.memkind, don't fail for
2583         omp_high_bw_mem_space if libmemkind supports it.
2584         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2585         memkind support of LIBGOMP_USE_MEMKIND is defined.
2586         * config/linux/allocator.c: New file.
2588 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
2590         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2591         * testsuite/libgomp.fortran/scope-2.f90: New test.
2593 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
2595         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2597 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
2599         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2600         scope construct with allocate clause.
2601         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2602         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2604 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
2606         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2607         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2608         explicit 'to' and 'enter' clause.
2609         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2611 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
2613         PR libgomp/105745
2614         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2615         defined(HAVE__ALIGNED_MALLOC) case.
2616         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2617         handling as last option before fallback instead of first.
2618         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2619         _aligned_free.
2621 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
2623         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2624         clauses to enter.
2625         * testsuite/libgomp.c/target-41.c: Likewise.
2627 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
2629         * libgomp.texi (Other new OpenMP 5.1 features): Add
2630         'begin declare target'.
2631         (Other new OpenMP 5.2 features): New.
2633 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
2635         * task.c (gomp_task_run_post_handle_dependers): If empty_task
2636         is the last task taskwait depend depends on, wake it up.
2637         Similarly if it is the last child of a taskgroup, use atomic
2638         store instead of decrement and awak taskgroup wait if any.
2639         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2641 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
2643         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2644         EF_AMDGPU_MACH_AMDGCN_GFX90a.
2645         (gcn_gfx90a_s): New.
2646         (isa_hsa_name): Support gfx90a.
2647         (isa_code): Likewise.
2649 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
2651         PR c/105378
2652         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2653         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2655 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
2657         PR c/105378
2658         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
2659         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
2660         * task.c (empty_task): New function.
2661         (gomp_task_run_post_handle_depend_hash): Declare earlier.
2662         (gomp_task_run_post_handle_depend): Declare.
2663         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
2664         for.
2665         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
2666         (GOMP_taskwait_depend_nowait): New function.
2667         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
2669 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
2671         PR fortran/104949
2672         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
2673         Support attach for GOMP_MAP_FIRSTPRIVATE.
2674         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
2675         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
2676         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
2678 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
2680         * libgomp.map: Added omp_target_memcpy_async and
2681         omp_target_memcpy_rect_async.
2682         * libgomp.texi: Both functions are now supported.
2683         * omp.h.in: Added omp_target_memcpy_async and
2684         omp_target_memcpy_rect_async.
2685         * omp_lib.f90.in: Added interfaces for both new functions.
2686         * omp_lib.h.in: Likewise.
2687         * target.c (ialias_redirect): Added for GOMP_task.
2688         (omp_target_memcpy): Restructured into check and copy part.
2689         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
2690         omp_target_memcpy_async that checks requirements.
2691         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
2692         omp_target_memcpy_async that performs the memcpy.
2693         (omp_target_memcpy_async_helper): New helper function that is used in
2694         omp_target_memcpy_async for the asynchronous task.
2695         (omp_target_memcpy_async): Added.
2696         (omp_target_memcpy_rect): Restructured into check and copy part.
2697         (omp_target_memcpy_rect_check): New helper function for
2698         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
2699         requirements.
2700         (omp_target_memcpy_rect_copy): New helper function for
2701         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
2702         the memcpy.
2703         (omp_target_memcpy_rect_async_helper): New helper function that is used
2704         in omp_target_memcpy_rect_async for the asynchronous task.
2705         (omp_target_memcpy_rect_async): Added.
2706         * task.c (ialias): Added for GOMP_task.
2707         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
2708         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
2709         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
2710         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
2711         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
2712         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
2713         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
2714         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
2716 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
2718         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
2719         (OpenMP Context Selectors): Add missing comma.
2720         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
2721         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
2722         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
2723         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
2725 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2727         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
2728         comment for omp_display_env feature.
2730 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2732         * libgomp.texi (Offload-Target Specifics): New chapter; add section
2733         to document OpenMP context selectors.
2735 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
2737         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
2738         from bool to unsigned char.
2739         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
2740         Ignore dependencies where
2741         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
2742         rather than just task->depend[i].is_in && ent->is_in.  Remember
2743         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
2744         conditional.
2745         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
2746         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
2747         rather than just elem.is_in && ent->is_in.
2748         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
2749         inoutset depend-kind.
2750         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
2751         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
2752         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
2754 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2756         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
2758 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
2760         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
2761         * testsuite/libgomp.fortran/depend-5.f90: New test.
2762         * testsuite/libgomp.fortran/depend-6.f90: New test.
2763         * testsuite/libgomp.fortran/depend-7.f90: New test.
2765 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
2767         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
2768         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
2769         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
2771 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2773         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2775 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
2777         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
2779 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
2781         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
2782         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
2783         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
2784         append '$(PLUGIN_NVPTX_LDFLAGS)'.
2785         * Makefile.in: Regenerate.
2787 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2789         * Makefile.am (libgomp_la_LIBADD): Initialize.
2790         * plugin/configfrag.ac (DL_LIBS): New.
2791         (PLUGIN_GCN_LIBS): Remove.
2792         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
2793         * plugin/Makefrag.am (libgomp_la_LIBADD)
2794         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
2795         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
2796         * Makefile.in: Regenerate.
2797         * config.h.in: Likewise.
2798         * configure: Likewise.
2799         * testsuite/Makefile.in: Likewise.
2801 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2803         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
2804         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
2805         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
2806         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
2807         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
2808         'PLUGIN_NVPTX_LINK_LIBCUDA'.
2809         * Makefile.in: Regenerate.
2810         * config.h.in: Likewise.
2811         * configure: Likewise.
2813 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2815         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
2816         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
2817         * Makefile.in: Regenerate.
2818         * config.h.in: Likewise.
2819         * configure: Likewise.
2820         * testsuite/Makefile.in: Likewise.
2822 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
2824         * libgomp.h (struct gomp_task): Add depend_all_memory member.
2825         * task.c (gomp_init_task): Initialize depend_all_memory.
2826         (gomp_task_handle_depend): Handle omp_all_memory.
2827         (gomp_task_run_post_handle_depend_hash): Clear
2828         parent->depend_all_memory if equal to current task.
2829         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
2830         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
2831         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
2832         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
2834 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2836         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
2837         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
2838         * Makefile.in: Regenerate.
2839         * configure: Likewise.
2840         * testsuite/Makefile.in: Likewise.
2842 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2844         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
2845         consider 'PLUGIN_GCN_CPPFLAGS'.
2846         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
2847         'PLUGIN_GCN_LDFLAGS'.
2848         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
2849         Remove.
2850         * Makefile.in: Regenerate.
2851         * configure: Likewise.
2852         * testsuite/Makefile.in: Likewise.
2854 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2856         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
2857         (HSA_RUNTIME_LDFLAGS): Remove.
2858         * configure: Regenerate.
2860 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2862         * testsuite/lib/libgomp.exp (libgomp_init): Don't
2863         'append always_ld_library_path ":$hsa_runtime_lib"'.
2864         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
2866 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
2868         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
2869         multi-device testing.
2871 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
2873         * libgomp.map: Added omp_target_is_accessible.
2874         * libgomp.texi: Tagged omp_target_is_accessible as supported.
2875         * omp.h.in: Added omp_target_is_accessible.
2876         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
2877         * omp_lib.h.in: Likewise.
2878         * target.c (omp_target_is_accessible): Added implementation of
2879         omp_target_is_accessible.
2880         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
2881         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
2883 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
2885         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
2887 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2889         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
2891 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
2893         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
2895 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
2897         * libgomp.map: Added omp_get_mapped_ptr.
2898         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
2899         * omp.h.in: Added omp_get_mapped_ptr.
2900         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
2901         * omp_lib.h.in: Likewise.
2902         * target.c (omp_get_mapped_ptr): Added implementation of
2903         omp_get_mapped_ptr.
2904         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
2905         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
2906         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
2907         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
2908         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
2909         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
2910         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
2911         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
2913 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
2915         PR fortran/104717
2916         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
2917         privatization scanning.  For GCN offloading compilation, raise
2918         '-mgang-private-size'.
2920 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
2922         PR libgomp/105358
2923         * work.c (gomp_init_work_share): Don't mask of adjustment for
2924         dynamic long long realignment if struct gomp_work_share has smaller
2925         alignof than long long.
2926         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
2927         struct gomp_work_share has smaller alignof than long long or if
2928         sizeof (struct gomp_work_share) is smaller than
2929         INLINE_ORDERED_TEAM_IDS_OFF.
2930         * loop_ull.c (GOMP_loop_ull_start): Likewise.
2931         * sections.c (GOMP_sections2_start): Likewise.
2933 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
2934             Thomas Schwinge  <thomas@codesourcery.com>
2936         PR fortran/104717
2937         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
2939 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
2941         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
2943 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
2945         * plugin/cuda/cuda.h: Remove file.
2946         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
2947         "cuda/cuda.h" instead of <cuda.h>.
2948         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
2949         'PLUGIN_NVPTX_CPPFLAGS'.
2950         * configure: Regenerate.
2952 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
2954         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
2956 2022-04-04  Tom de Vries  <tdevries@suse.de>
2958         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
2959         on_device_arch_nvptx instead of offload_target_nvptx.
2960         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2962 2022-04-01  Tom de Vries  <tdevries@suse.de>
2964         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
2965         and use REC_DEPTH.
2966         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2968 2022-04-01  Tom de Vries  <tdevries@suse.de>
2970         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
2971         num_workers check.
2973 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
2974             Lulu Cheng  <chenglulu@loongson.cn>
2976         * configure.tgt: Add LoongArch triplet.
2978 2022-03-28  Tom de Vries  <tdevries@suse.de>
2980         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
2981         instead of /libexec/.
2982         * configure: Regenerate.
2984 2022-03-25  Tom de Vries  <tdevries@suse.de>
2986         PR libgomp/105042
2987         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
2988         execution time.
2989         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
2990         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
2992 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
2994         PR middle-end/104285
2995         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
2996         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
2997         * testsuite/libgomp.c++/target-same-name-2.C: New test.
2998         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
2999         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3000         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3002 2022-03-22  Tom de Vries  <tdevries@suse.de>
3004         PR target/104916
3005         PR target/104783
3006         * testsuite/libgomp.c/pr104783-2.c: New test.
3008 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3010         PR fortran/103039
3011         * testsuite/libgomp.fortran/associate4.f90: New test.
3013 2022-03-18  Tom de Vries  <tdevries@suse.de>
3015         PR target/104952
3016         * testsuite/libgomp.c/pr104952-1.c: New test.
3017         * testsuite/libgomp.c/pr104952-2.c: New test.
3019 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3021         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3022         variable next to pl variable.
3024 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3026         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3027         Enhance.
3028         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3029         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3031 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3033         PR middle-end/90115
3034         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3035         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3037 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3039         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3040         omp_set_max_active_levels.
3041         * testsuite/libgomp.fortran/icv-8.f90: New test.
3043 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3045         PR testsuite/102841
3046         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3048 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3050         * libgomp.texi: Fix typo.
3052 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3054         PR middle-end/100280
3055         PR middle-end/104892
3056         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3057         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3058         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3059         Likewise.
3060         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3061         Likewise.
3062         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3063         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3064         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3065         Likewise.
3067 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3069         PR middle-end/104892
3070         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3071         to PR104892.
3072         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3073         enable '--param=openacc-kernels=decompose' and adjust.
3074         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3075         Likewise.
3076         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3077         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3078         Likewise.
3080 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3082         PR middle-end/90115
3083         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3084         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3085         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3086         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3088 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3090         PR middle-end/100280
3091         PR middle-end/104086
3092         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3093         Merge this...
3094         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3095         ..., and this...
3096         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3097         this, and adjust.
3098         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3099         Extend.
3101 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3103         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3104         trait.  Test last index in w and v array.  Remove redundant
3105         assignment to V(1).  Move alignment checks at the end of
3106         parallel region.
3108 2022-03-10  Tom de Vries  <tdevries@suse.de>
3110         * testsuite/libgomp.c/pr104783.c: New test.
3112 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3114         PR middle-end/90115
3115         PR middle-end/102330
3116         PR middle-end/104774
3117         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3118         Enhance.
3119         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3120         Adjust.
3121         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3122         Likewise.
3123         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3124         Likewise.
3125         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3126         Likewise.
3127         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3128         Likewise.
3129         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3130         Likewise.
3131         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3132         Likewise.
3133         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3134         Likewise.
3135         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3136         Likewise.
3137         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3138         Likewise.
3139         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3140         Likewise.
3141         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3142         Likewise.
3143         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3144         Likewise.
3145         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3146         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3147         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3149 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3151         PR middle-end/90115
3152         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3153         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3154         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3155         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3157 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3159         PR testsuite/104791
3160         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3161         expected diagnostics.
3163 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3165         PR middle-end/104784
3166         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3167         Test with '--param=openacc-kernels=decompose'.
3168         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3169         Likewise.
3170         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3171         Likewise.
3172         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3173         Likewise.
3174         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3175         Likewise.
3176         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3177         Likewise.
3178         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3179         Likewise.
3180         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3181         Likewise.
3182         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3183         Likewise.
3184         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3185         Likewise.
3186         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3187         Likewise.
3188         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3189         Likewise.
3190         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3191         Likewise.
3192         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3193         Likewise.
3194         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3195         Likewise.
3196         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3197         Likewise.
3198         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3199         Likewise.
3200         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3201         Likewise.
3202         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3203         Likewise.
3204         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3205         Likewise.
3206         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3207         Likewise.
3208         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3209         Likewise.
3210         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3211         Likewise.
3212         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3213         Likewise.
3214         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3215         Likewise.
3216         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3217         Likewise.
3218         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3219         Likewise.
3220         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3221         Likewise.
3222         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3223         Likewise.
3224         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3225         Likewise.
3226         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3227         Likewise.
3228         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3229         Likewise.
3230         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3231         Likewise.
3233 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3235         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3236         Test '-fopt-info-omp-all'.
3237         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3238         Likewise.
3239         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3240         Likewise.
3241         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3242         Likewise.
3243         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3244         Likewise.
3245         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3246         Likewise.
3247         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3248         Likewise.
3249         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3250         Likewise.
3251         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3252         Likewise.
3253         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3254         Likewise.
3255         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3256         Likewise.
3257         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3258         Likewise.
3259         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3260         Likewise.
3261         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3262         Likewise.
3263         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3264         Likewise.
3265         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3266         Likewise.
3267         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3268         Likewise.
3269         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3270         Likewise.
3271         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3272         Likewise.
3273         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3274         Likewise.
3275         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3276         Likewise.
3277         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3278         Likewise.
3279         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3280         Likewise.
3281         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3282         Likewise.
3283         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3284         Likewise.
3285         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3286         Likewise.
3287         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3288         Likewise.
3289         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3290         Likewise.
3291         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3292         Likewise.
3293         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3294         Likewise.
3295         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3296         Likewise.
3297         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3298         Likewise.
3299         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3300         Likewise.
3302 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3304         PR middle-end/100280
3305         PR middle-end/104132
3306         PR middle-end/104133
3307         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3308         Extend.
3310 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3312         PR middle-end/100280
3313         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3314         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3315         Likewise.
3317 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3319         PR middle-end/100280
3320         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3321         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3322         Likewise.
3324 2022-02-28  Tom de Vries  <tdevries@suse.de>
3326         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3327         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3328         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3329         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3330         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3331         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3333 2022-02-24  Tom de Vries  <tdevries@suse.de>
3335         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3336         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3337         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3338         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3339         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3340         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3341         * testsuite/libgomp.c/declare-variant-3.h: New header file.
3343 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3345         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3346         gang-redundant execution.
3348 2022-02-22  Tom de Vries  <tdevries@suse.de>
3350         PR target/99555
3351         * config/nvptx/bar.c (generation_to_barrier): New function, copied
3352         from config/rtems/bar.c.
3353         (futex_wait, futex_wake): New function.
3354         (do_spin, do_wait): New function, copied from config/linux/wait.h.
3355         (gomp_barrier_wait_end, gomp_barrier_wait_last)
3356         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3357         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3358         and replace with include of config/linux/bar.c.
3359         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3360         (gomp_barrier_init): Init new fields.
3361         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3362         workarounds.
3363         * testsuite/libgomp.c/pr99555-1.c: Same.
3364         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3366 2022-02-22  Tom de Vries  <tdevries@suse.de>
3368         PR testsuite/104146
3369         * testsuite/libgomp.c++/pr96390.C: Add additional-option
3370         -foffload=-Wa,--verify for nvptx.
3371         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3373 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
3375         * testsuite/libgomp.fortran/depend-4.f90: New test.
3377 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
3379         PR c++/102204
3380         * testsuite/libgomp.c++/target-virtual-1.C: New test.
3382 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
3384         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3385         * target.c (copy_firstprivate_data): Copy only if host address is not
3386         NULL.
3387         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3388         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3389         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3390         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3391         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3392         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3393         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3394         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3395         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3396         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3398 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
3400         PR libgomp/104385
3401         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3402         clear task->parent.
3403         * testsuite/libgomp.c/pr104385.c: New test.
3405 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3407         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3408         STOP of previous commit.
3410 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3412         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3413         from is_64bit_aligned_.
3414         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3415         and use it, more implicit none, remove unused argument.
3417 2022-02-03  David Seifert  <soap@gentoo.org>
3418             Jakub Jelinek  <jakub@redhat.com>
3420         * configure.ac: Support --disable-werror.
3421         * configure: Regenerate.
3423 2022-02-01  Tom de Vries  <tdevries@suse.de>
3425         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3426         PR83812 workaround.
3427         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3428         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3430 2022-02-01  Tom de Vries  <tdevries@suse.de>
3432         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3433         num_workers for nvidia accelerator to fix libgomp error 'insufficient
3434         resources'.
3435         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3436         Same.
3437         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3439 2022-02-01  Tom de Vries  <tdevries@suse.de>
3441         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3442         recursion depth.
3443         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3445 2022-01-31  Martin Liska  <mliska@suse.cz>
3447         * acinclude.m4: Detect *_ld_is_mold and use it.
3448         * configure: Regenerate.
3450 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
3452         * libgomp.texi (OpenMP 5.0): Update implementation status.
3454 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
3456         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3457         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3458         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3459         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3460         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3461         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3462         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3463         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3464         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3465         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3466         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3467         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3468         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3469         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3470         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3472 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
3474         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3475         "static") to make the device num available in the offload image.
3477 2022-01-19  Martin Liska  <mliska@suse.cz>
3478             Thomas Schwinge  <thomas@codesourcery.com>
3480         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3481         patterns.
3482         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3483         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3484         Likewise.
3485         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3486         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3487         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3488         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3489         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3490         Likewise.
3491         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3492         Likewise.
3493         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3494         Likewise.
3495         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3496         Likewise.
3497         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3498         Likewise.
3499         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3500         Likewise.
3501         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3502         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3503         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3505 2022-01-18  Martin Liska  <mliska@suse.cz>
3507         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3508         in dg-warning.
3509         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3510         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3511         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3512         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3513         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3514         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3515         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3516         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3517         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3518         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3519         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3520         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3521         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3522         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3523         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3525 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
3527         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3528         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3529         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3531 2022-01-17  Julian Brown  <julian@codesourcery.com>
3532             Thomas Schwinge  <thomas@codesourcery.com>
3534         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3535         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3536         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3538 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3539             Andrew Stubbs   <ams@codesourcery.com>
3541         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3542         the number of teams and threads if necessary.
3543         (gcn_exec): Automatically set the number of gangs and workers if
3544         necessary.
3546 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3548         * testsuite/libgomp.fortran/allocate-1.c: New test.
3549         * testsuite/libgomp.fortran/allocate-1.f90: New test.
3550         * libgomp.texi: Remove string that says that allocate clause
3551         support is for C/C++ only.
3553 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3555         * testsuite/libgomp.c-c++-common/on_device_arch.h
3556         (any_device_arch, any_device_arch_intel_mic): New.
3557         * testsuite/lib/libgomp.exp
3558         (check_effective_target_offload_device_any_intel_mic): New.
3559         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3560         * testsuite/libgomp.fortran/target10.f90: Likewise.
3562 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3564         PR tree-optimization/102192
3565         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3566         '-Wuninitialized' diagnostics.
3568 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3570         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3571         current '-Wuninitialized' diagnostics.
3572         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3573         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3574         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3575         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3576         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3577         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3578         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3579         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3580         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3581         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3582         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3583         Likewise.
3585 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3587         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3588         for 'offload_device_intel_mic'.
3590 2022-01-13  Julian Brown  <julian@codesourcery.com>
3591             Thomas Schwinge  <thomas@codesourcery.com>
3593         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3594         offloading execution XFAIL.
3596 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3598         PR middle-end/100280
3599         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3600         Update.
3601         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3602         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3603         Likewise.
3605 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3607         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3608         Enhance.
3609         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3610         Likewise.
3611         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3612         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3613         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3614         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3615         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3616         Likewise.
3617         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3618         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3619         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3620         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3622 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
3624         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3625         * testsuite/libgomp.fortran/target10.f90: Likewise.
3627 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
3629         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3630         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3631         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3633 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
3635         * libgomp.texi: Bump @copying's copyright year.
3637 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
3639         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3640         * testsuite/libgomp.fortran/atomic-19.f90: New test.
3642 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
3644         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3645         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3646         table, not individual symbols.
3648 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
3650         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3651         "target offload_device_nonshared_as"
3652         * testsuite/libgomp.c++/target-this-3.C: Likewise.
3653         * testsuite/libgomp.c++/target-this-4.C: Likewise.
3655 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3657         * target.c (gomp_map_vars_existing): Make sure attached pointer is
3658         not overwritten during cross-host/device copying.
3659         (gomp_update): Likewise.
3660         (gomp_exit_data): Likewise.
3661         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
3662         * testsuite/libgomp.c++/target-12.C: Likewise.
3663         * testsuite/libgomp.c++/target-15.C: Likewise.
3664         * testsuite/libgomp.c++/target-16.C: Likewise.
3665         * testsuite/libgomp.c++/target-17.C: Likewise.
3666         * testsuite/libgomp.c++/target-21.C: Likewise.
3667         * testsuite/libgomp.c++/target-23.C: Likewise.
3668         * testsuite/libgomp.c/target-23.c: Likewise.
3669         * testsuite/libgomp.c/target-29.c: Likewise.
3670         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
3672 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3674         PR middle-end/92120
3675         * libgomp.h (gomp_attach_pointer): Add bool parameter.
3676         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
3677         (goacc_enter_data_internal): Likewise.
3678         * target.c (gomp_map_vars_existing): Update assert condition to
3679         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
3680         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
3681         parameter, add support for mapping a pointer with NULL target.
3682         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
3683         parameter, add support for attaching a pointer with NULL target.
3684         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
3685         gomp_attach_pointer, add handling for
3686         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
3687         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
3688         * testsuite/libgomp.c++/target-23.C: New testcase.
3689         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
3690         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
3691         * testsuite/libgomp.c++/target-this-1.C: New testcase.
3692         * testsuite/libgomp.c++/target-this-2.C: New testcase.
3693         * testsuite/libgomp.c++/target-this-3.C: New testcase.
3694         * testsuite/libgomp.c++/target-this-4.C: New testcase.
3695         * testsuite/libgomp.c++/target-this-5.C: New testcase.
3697 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3699         * libgomp.texi (OpenMP 5.1): Update status.
3701 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
3703         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
3705 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
3707         PR fortran/90030
3708         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
3709         * testsuite/libgomp.fortran/pr90030.f90: New test.
3711 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
3712             Thomas Schwinge  <thomas@codesourcery.com>
3714         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
3715         temporary skip.
3717 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
3718             Thomas Schwinge  <thomas@codesourcery.com>
3720         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
3721         skip.
3723 2021-11-29  Richard Biener  <rguenther@suse.de>
3725         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
3726         return.
3728 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
3730         PR middle-end/103384
3731         * testsuite/libgomp.c/declare-variant-2.c: New test.
3733 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
3735         * alloc.c (gomp_aligned_alloc): Fix typo.
3737 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3739         PR libgomp/102838
3740         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
3741         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
3742         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
3743         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3744         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
3745         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
3746         gomp_aligned_alloc instead of team_malloc.
3748 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
3750         PR libgomp/102838
3751         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
3752         memalign over posix_memalign over aligned_alloc over fallback
3753         with malloc instead of aligned_alloc over _aligned_alloc over
3754         posix_memalign over memalign over fallback with malloc.  For
3755         aligned_alloc, round up size up to multiple of al.
3757 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
3759         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
3760         construct as implemented.
3762 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
3764         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
3766 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3768         * task.c (gomp_create_target_task): Copy args array as well.
3769         * target.c (gomp_target_fallback): Add args argument.
3770         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
3771         (GOMP_target): Adjust gomp_target_fallback caller.
3772         (GOMP_target_ext): Likewise.
3773         (gomp_target_task_fn): Likewise.
3774         * config/nvptx/team.c (gomp_nvptx_main): Set
3775         gomp_global_icv.thread_limit_var.
3776         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
3778 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3780         * config/nvptx/team.c (__gomp_team_num): Define as
3781         __attribute__((shared)) var.
3782         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
3783         * config/nvptx/target.c (__gomp_team_num): Declare as
3784         extern __attribute__((shared)) var.
3785         (GOMP_teams4): Use __gomp_team_num as the team number instead of
3786         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
3787         is bigger than num_blocks, use num_teams_lower teams and arrange for
3788         bumping of __gomp_team_num if !first and returning false once we run
3789         out of teams.
3790         * config/nvptx/teams.c (__gomp_team_num): Declare as
3791         extern __attribute__((shared)) var.
3792         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
3794 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
3796         * testsuite/libgomp.c/teams-5.c: New test.
3798 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3800         PR target/103201
3801         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
3802         to ...
3803         * config/gcn/teams.c: ... here.  New file.
3805 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
3807         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
3808         implicit map handling to allow a "superset" existing map as valid case.
3809         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
3810         (get_implicit): New function to extract implicit status.
3811         (gomp_map_fields_existing): Adjust arguments in calls to
3812         gomp_map_vars_existing, and add uses of get_implicit.
3813         (gomp_map_vars_internal): Likewise.
3814         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
3816 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
3818         * libgomp_g.h (GOMP_teams4): Declare.
3819         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
3820         * target.c (GOMP_teams4): New function.
3821         * config/nvptx/target.c (GOMP_teams): Remove.
3822         (GOMP_teams4): New function.
3823         * config/gcn/target.c (GOMP_teams): Remove.
3824         (GOMP_teams4): New function.
3825         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
3826         teams instead of <= 2.
3827         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
3829 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
3831         * testsuite/libgomp.fortran/teams-1.f90: New test.
3833 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3835         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
3836         * team.c (struct gomp_thread_start_data): Likewise.
3837         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
3838         (gomp_team_start): Initialize start_data->num_teams and
3839         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
3840         * teams.c (gomp_num_teams, gomp_team_num): Remove.
3841         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
3842         instead of gomp_num_teams and gomp_team_num.
3843         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
3844         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
3845         * testsuite/libgomp.c/teams-4.c: New test.
3847 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
3849         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
3851 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
3853         * env.c (parse_gomp_openacc_dim): Restore parsing.
3855 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
3857         PR middle-end/102972
3858         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
3859         parallel construct.
3860         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
3861         * testsuite/libgomp.c/target-3.c: Likewise.
3862         * testsuite/libgomp.c/target-5.c: Likewise.
3863         * testsuite/libgomp.c/target-6.c: Likewise.
3864         * testsuite/libgomp.c/target-teams-1.c: Likewise.
3865         * testsuite/libgomp.c/teams-1.c: Likewise.
3866         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
3867         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
3868         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
3869         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
3870         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
3871         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
3872         * testsuite/libgomp.fortran/teams1.f90: Likewise.
3874 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
3876         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
3877         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
3879 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3881         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
3882         aren't implemented for Fortran yet.
3884 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
3886         * testsuite/libgomp.c/loop-26.c: New test.
3887         * testsuite/libgomp.c/loop-27.c: New test.
3889 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
3891         PR testsuite/102910
3892         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
3893         instead of #include <alloca.h> + alloca.
3895 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
3897         * libgomp.texi (Support of strictly structured blocks in Fortran):
3898         Adjust to 'Y'.
3899         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
3901 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
3903         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
3904         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
3906 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
3908         PR libgomp/102838
3909         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
3910         (struct gomp_work_share): Only use aligned(64) attribute if
3911         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
3912         add padding before lock to ensure lock is at offset 64 bytes
3913         into the structure.
3914         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
3915         New poor man's static assertions.
3916         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
3917         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
3919 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
3920             Richard Biener  <rguenther@suse.de>
3922         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
3924 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
3926         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
3927         && gomp_places_list_len < count after nfirst <= nlast loop condition.
3929 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
3931         PR fortran/102086
3932         PR fortran/92189
3933         PR fortran/92621
3934         PR fortran/101308
3935         PR fortran/101309
3936         PR fortran/101635
3937         PR fortran/92482
3938         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
3940 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3942         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
3943         type from char [50] to const char *.
3944         (places_array): Add a testcase for simplified syntax place followed
3945         by length or length and stride.
3947 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3949         * env.c (parse_one_place): Handle non-negative-number the same
3950         as { non-negative-number }.  Reject even !number:1 and
3951         !number:1:stride or !place:1 or !place:1:stride instead of just
3952         length other than 1.
3953         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
3954         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
3955         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
3956         as implemented.
3957         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
3958         simplified syntax.
3960 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3962         * env.c (parse_schedule): For strtoul or strtoull calls which don't
3963         clearly reject return value 0 as invalid handle the case where end
3964         pointer is the same as first argument as invalid.
3965         (parse_unsigned_long_1): Likewise.
3966         (parse_one_place): Likewise.
3967         (parse_places_var): Likewise.
3968         (parse_stacksize): Likewise.
3969         (parse_spincount): Likewise.
3970         (parse_affinity): Likewise.
3971         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
3972         Make code valid C89.
3973         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
3974         For strtoul calls which don't clearly reject return value 0 as
3975         invalid handle the case where end pointer is the same as first
3976         argument as invalid.
3977         (gomp_affinity_init_level_1): Likewise.
3978         (gomp_affinity_init_numa_domains): Likewise.
3979         * config/rtems/proc.c (parse_thread_pools): Likewise.
3981 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3983         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
3984         after creating count places clean up and return immediately.
3985         * testsuite/libgomp.c/places-6.c: New test.
3986         * testsuite/libgomp.c/places-7.c: New test.
3987         * testsuite/libgomp.c/places-8.c: New test.
3988         * testsuite/libgomp.c/places-9.c: New test.
3989         * testsuite/libgomp.c/places-10.c: New test.
3991 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
3993         * env.c (parse_places_var): Handle numa_domains as level 5.
3994         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
3995         function.
3996         (gomp_affinity_init_level): Use it instead of
3997         gomp_affinity_init_level_1 for level == 5.
3998         * testsuite/libgomp.c/places-5.c: New test.
4000 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4002         * env.c (parse_places_var): Handle ll_caches as level 4.
4003         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4004         function.
4005         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4006         last level cache.
4007         (gomp_affinity_init_level): Likewise.
4008         * testsuite/libgomp.c/places-1.c: New test.
4009         * testsuite/libgomp.c/places-2.c: New test.
4010         * testsuite/libgomp.c/places-3.c: New test.
4011         * testsuite/libgomp.c/places-4.c: New test.
4013 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4015         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4016         directive.
4018 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4020         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4022 2021-10-12  Julian Brown  <julian@codesourcery.com>
4024         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4025         error path.
4027 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4029         * testsuite/libgomp.fortran/icv-3.f90: New.
4030         * testsuite/libgomp.fortran/icv-4.f90: New.
4032 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4034         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4035         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4036         OMP_TEAMS_THREAD_LIMIT): Document.
4038 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4040         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4041         to avoid makeinfo warnings.
4043 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4045         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4046         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4048 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4050         PR libgomp/102628
4051         PR libgomp/102668
4052         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4053         allocation sizes from 420 to 320 and from 768 to 568.
4054         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4055         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4056         for cr from 16 to 4.
4058 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4060         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4061         * testsuite/libgomp.c/scan-12.c: Likewise.
4062         * testsuite/libgomp.c/scan-13.c: Likewise.
4063         * testsuite/libgomp.c/scan-14.c: Likewise.
4064         * testsuite/libgomp.c/scan-15.c: Likewise.
4065         * testsuite/libgomp.c/scan-16.c: Likewise.
4066         * testsuite/libgomp.c/scan-17.c: Likewise.
4067         * testsuite/libgomp.c/scan-18.c: Likewise.
4068         * testsuite/libgomp.c/scan-19.c: Likewise.
4069         * testsuite/libgomp.c/scan-20.c: Likewise.
4070         * testsuite/libgomp.c/scan-21.c: Likewise.
4071         * testsuite/libgomp.c/scan-22.c: Likewise.
4072         * testsuite/libgomp.c++/scan-9.C: Likewise.
4073         * testsuite/libgomp.c++/scan-10.C: Likewise.
4074         * testsuite/libgomp.c++/scan-11.C: Likewise.
4075         * testsuite/libgomp.c++/scan-12.C: Likewise.
4076         * testsuite/libgomp.c++/scan-13.C: Likewise.
4077         * testsuite/libgomp.c++/scan-14.C: Likewise.
4078         * testsuite/libgomp.c++/scan-15.C: Likewise.
4079         * testsuite/libgomp.c++/scan-16.C: Likewise.
4081 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4083         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4085 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4087         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4088         omp_atv_serialized.
4089         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4090         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4091         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4092         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4094 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4096         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4097         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4098         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4099         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4100         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4101         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4102         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4103         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4104         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4105         omp_set_teams_thread_limit{,_,_8_}.
4106         * icv.c (omp_set_num_teams, omp_get_max_teams,
4107         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4108         functions.
4109         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4110         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4111         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4112         vars.
4113         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4114         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4115         is not specified, use gomp_nteams_var.
4116         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4117         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4118         ialias_redirect.
4119         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4120         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4121         omp_get_teams_thread_limit_): New functions.
4123 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4125         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4126         * testsuite/libgomp.c++/scan-11.C: Ditto.
4127         * testsuite/libgomp.c++/scan-12.C: Ditto.
4128         * testsuite/libgomp.c++/scan-13.C: Ditto.
4129         * testsuite/libgomp.c++/scan-14.C: Ditto.
4130         * testsuite/libgomp.c++/scan-15.C: Ditto.
4131         * testsuite/libgomp.c++/scan-16.C: Ditto.
4132         * testsuite/libgomp.c++/scan-9.C: Ditto.
4133         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4134         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4135         * testsuite/libgomp.c/scan-11.c: Ditto.
4136         * testsuite/libgomp.c/scan-12.c: Ditto.
4137         * testsuite/libgomp.c/scan-13.c: Ditto.
4138         * testsuite/libgomp.c/scan-14.c: Ditto.
4139         * testsuite/libgomp.c/scan-15.c: Ditto.
4140         * testsuite/libgomp.c/scan-16.c: Ditto.
4141         * testsuite/libgomp.c/scan-17.c: Ditto.
4142         * testsuite/libgomp.c/scan-18.c: Ditto.
4143         * testsuite/libgomp.c/scan-19.c: Ditto.
4144         * testsuite/libgomp.c/scan-20.c: Ditto.
4145         * testsuite/libgomp.c/scan-21.c: Ditto.
4146         * testsuite/libgomp.c/scan-22.c: Ditto.
4148 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
4150         * libgomp.texi (OpenMP 5.1): Mention implemented support for
4151         structured block sequences in C/C++.  Mention support for
4152         unconstrained/reproducible modifiers on order clause.
4153         Mention partial (C/C++ only) support of extentensions to atomics
4154         construct.  Mention partial (C/C++ on clause only) support of
4155         align/allocator modifiers on allocate clause.
4157 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
4159         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4160         based on libgomp.c-c++-common/order-reproducible-1.c.
4161         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4162         * testsuite/libgomp.fortran/my-usleep.c: New test.
4164 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
4166         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4167         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4168         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4169         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4170         based on libgomp.c-c++-common/alloc-9.c.
4172 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4174         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4175         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4177 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4179         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4180         ialias_redirect.
4181         * env.c (handle_omp_display_env): Use ialias_call.
4182         * icv-device.c: Move ialias right below each function.
4183         (omp_get_device_num): Use ialias_call.
4184         * fortran.c (omp_fulfill_event): Add ialias_redirect.
4185         * icv.c (omp_get_active_level): Add ialias_redirect.
4187 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4189         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4190         __alloc_align__ (1) attribute.
4191         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4193 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4195         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4196         for -fintrinsic-modules-path= warning of the C compiler.
4197         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4198         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4200 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4202         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4203         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4204         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4205         omp_realloc): Add.
4206         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4207         omp_realloc): Add.
4208         * testsuite/libgomp.fortran/alloc-10.f90: New test.
4209         * testsuite/libgomp.fortran/alloc-6.f90: New test.
4210         * testsuite/libgomp.fortran/alloc-7.c: New test.
4211         * testsuite/libgomp.fortran/alloc-7.f90: New test.
4212         * testsuite/libgomp.fortran/alloc-8.f90: New test.
4213         * testsuite/libgomp.fortran/alloc-9.f90: New test.
4215 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
4217         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4218         omp_realloc): New prototypes.
4219         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4220         attribute.
4221         * allocator.c: Include string.h.
4222         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
4223         variable and use it instead of alignment so that when retrying the old
4224         alignment is used again.  Don't retry if new alignment is the same
4225         as old alignment, unless allocator had pool size.
4226         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4227         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4228         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4229         omp_aligned_calloc and omp_realloc.
4230         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4231         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4232         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4233         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4234         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4235         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4237 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
4239         PR libgomp/96661
4240         * configure.ac: Only check for int-type = 2*size_t support when
4241         building with Fortran support.
4242         * configure: Regenerate.
4244 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
4246         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4247         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4249 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
4251         * team.c: Initialize start_data.
4252         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4253         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4255 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4257         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4258         dg-message back to dg-note.
4260 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4262         PR fortran/94070
4263         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4264         expected dg-note output.
4266 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
4268         PR fortran/55534
4269         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4270         r12-3722 by removing -Wno-missing-include-dirs.
4271         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4273 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
4275         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4276         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4278 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
4280         PR fortran/55534
4281         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4282         to ALWAYS_CFLAGS.
4283         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4285 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
4287         * testsuite/libgomp.c++/default-1.C: New test.
4288         * testsuite/libgomp.c-c++-common/default-1.c: New test.
4289         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4290         to default clause in C and C++" as implemented.
4292 2021-09-17  Julian Brown  <julian@codesourcery.com>
4294         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4296 2021-09-17  Julian Brown  <julian@codesourcery.com>
4298         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4300 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4302         * libgomp.texi (OpenMP 5.1): Spelling fix,
4303         declare variante -> declare variant.
4305 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4307         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4308         Use /* */ comments instead of //.
4309         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4310         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4311         * testsuite/libgomp.c++/atomic-16.C: New test.
4312         * testsuite/libgomp.c++/atomic-17.C: New test.
4314 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
4316         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4317         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4318         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4320 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4322         * libgomp.texi (OpenMP Implementation Status): Extend
4323         OpenMP 5.0 section.
4324         (OpenACC Profiling Interface): Fix typo.
4326 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4328         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4329         not to 4.5; link to new section.
4330         (OpenMP Implementation Status): New.
4332 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
4334         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4336 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
4338         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4339         dg-output.
4340         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4342 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4343             Jakub Jelinek  <jakub@redhat.com>
4345         * testsuite/libgomp.c/address-space-1.c: New file.
4347 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4349         * testsuite/lib/libgomp.exp
4350         (check_effective_target_offload_target_intelmic): Remove 'proc'.
4351         (check_effective_target_offload_device_intel_mic): New 'proc'.
4352         * testsuite/libgomp.c-c++-common/on_device_arch.h
4353         (device_arch_intel_mic, on_device_arch_intel_mic): New.
4354         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4355         'dg-xfail-run-if'.
4356         * testsuite/libgomp.fortran/target10.f90: Likewise.
4358 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
4360         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4361         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4362         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4363         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4365 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
4367         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4368         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4369         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4371 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
4373         * config/nvptx/error.c (fwrite, exit): Override, too.
4374         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4375         of offloading testing.
4376         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4378 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
4380         * testsuite/libgomp.fortran/error-1.f90: New test.
4382 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
4384         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4385         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4386         * error.c (GOMP_warning, GOMP_error): New functions.
4387         * testsuite/libgomp.c-c++-common/error-1.c: New test.
4389 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
4391         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4392         omp_target_free. omp_target_is_present, omp_target_memcpy,
4393         omp_target_memcpy_rect, omp_target_associate_ptr,
4394         omp_target_disassociate_ptr): Add interface.
4395         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4396         omp_target_free. omp_target_is_present, omp_target_memcpy,
4397         omp_target_memcpy_rect, omp_target_associate_ptr,
4398         omp_target_disassociate_ptr): Add interface.
4399         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4400         interface block for omp_alloc + omp_free.
4401         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4402         * testsuite/libgomp.fortran/refcount-1.f90: New test.
4403         * testsuite/libgomp.fortran/target-12.f90: New test.
4405 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
4407         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4409 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
4411         * testsuite/libgomp.fortran/scope-1.f90: New test.
4412         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4414 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
4416         * Makefile.am (libgomp_la_SOURCES): Add scope.c
4417         * Makefile.in: Regenerated.
4418         * libgomp_g.h (GOMP_scope_start): Declare.
4419         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4420         * scope.c: New file.
4421         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4422         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4424 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
4426         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4427         '?:' issues.
4429 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
4431         * testsuite/libgomp.fortran/masked-1.f90: New test.
4433 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
4435         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4437 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
4439         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4441 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
4443         * env.c (parse_bind_var): Accept 'primary' as alias for
4444         'master'.
4445         (omp_display_env): Add TODO comment to
4446         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4447         * libgomp.texi: Change 'master thread' to 'primary thread'
4448         in line with OpenMP 5.1.
4449         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4450         omp_proc_bind_master is an alias of it.
4451         (OMP_PROC_BIND): Mention 'PRIMARY'.
4452         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4453         (omp_proc_bind_primary): Add.
4454         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4455         * omp_lib.f90.in (omp_proc_bind_primary): Add.
4456         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4457         * omp_lib.h.in (omp_proc_bind_primary): Add.
4458         * testsuite/libgomp.c/affinity-1.c: Check that
4459         'primary' works and is identical to 'master'.
4461 2021-08-09  Julian Brown  <julian@codesourcery.com>
4462             Kwok Cheung Yeung  <kcy@codesourcery.com>
4463             Thomas Schwinge  <thomas@codesourcery.com>
4465         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4466         16.
4467         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4468         [acc_device_radeon]: Update.
4469         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4470         [ACC_DEVICE_TYPE_radeon]: Likewise.
4471         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4472         [acc_device_radeon]: Likewise.
4473         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4474         [ACC_DEVICE_TYPE_radeon]: Likewise.
4475         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4476         'openacc_radeon_accel_selected' and '-O0'.
4477         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4479 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
4481         * icv-device.c (omp_get_device_num): New API function, host side.
4482         * fortran.c (omp_get_device_num_): New interface function.
4483         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4484         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4485         omp_get_device_num_.
4486         * libgomp.texi (omp_get_device_num): Add documentation for new API
4487         function.
4488         * omp.h.in (omp_get_device_num): Add declaration.
4489         * omp_lib.f90.in (omp_get_device_num): Likewise.
4490         * omp_lib.h.in (omp_get_device_num): Likewise.
4491         * target.c (gomp_load_image_to_device): If additional entry for device
4492         number exists at end of returned entries from 'load_image_func' hook,
4493         copy the assigned device number over to the device variable.
4494         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4495         (omp_get_device_num): New API function, device side.
4496         * plugin/plugin-gcn.c ("symcat.h"): Add include.
4497         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4498         at end of returned 'target_table' entries.
4499         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4500         (omp_get_device_num): New API function, device side.
4501         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4502         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4503         at end of returned 'target_table' entries.
4504         * testsuite/lib/libgomp.exp
4505         (check_effective_target_offload_target_intelmic): New function for
4506         testing for intelmic offloading.
4507         * testsuite/libgomp.c-c++-common/target-45.c: New test.
4508         * testsuite/libgomp.fortran/target10.f90: New test.
4510 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
4511             Ulrich Drepper  <drepper@redhat.com>
4513         * fortran.c (omp_display_env_, omp_display_env_8_): Only
4514         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4516 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
4517             Julian Brown  <julian@codesourcery.com>
4518             Kwok Cheung Yeung  <kcy@codesourcery.com>
4520         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4521         's%oaccdevlow%oaccloops%g'.
4522         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4523         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4524         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4525         Likewise.
4526         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4527         Likewise.
4528         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4529         Likewise.
4530         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4531         Likewise.
4532         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4533         Likewise.
4534         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4535         Likewise.
4536         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4537         Likewise.
4538         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4539         Likewise.
4540         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4542 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
4544         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4545         threader.
4546         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4548 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
4550         * env.c (wait_policy, stacksize): New static variables,
4551         move out of handle_omp_display_env.
4552         (omp_display_env): New function.  The meat of the old
4553         handle_omp_display_env function.
4554         (handle_omp_display_env): Change to not take parameters
4555         and instead use the global variables.  Only perform
4556         parsing, defer to omp_display_env for the implementation.
4557         (initialize_env): Remove local variables wait_policy and
4558         stacksize.  Don't pass parameters to handle_omp_display_env.
4559         * fortran.c: Add ialias_redirect for omp_display_env.
4560         (omp_display_env_, omp_display_env_8_): New functions.
4561         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
4562         omp_display_env_, and omp_display_env_8_.
4563         * omp.h.in: Declare omp_display_env.
4564         * omp_lib.f90.in: Likewise.
4565         * omp_lib.h.in: Likewise.
4567 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4568             Julian Brown  <julian@codesourcery.com>
4570         * target.c (gomp_coalesce_buf_add): Update comment.
4571         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4572         'aq && cbuf'.
4573         (gomp_map_vars_internal): Only 'if (!aq)', do
4574         'gomp_coalesce_buf_add'.
4575         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4576         XFAIL.
4578 2021-07-27  Julian Brown  <julian@codesourcery.com>
4579             Thomas Schwinge  <thomas@codesourcery.com>
4581         * libgomp.h (gomp_copy_host2dev): Update prototype.
4582         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4583         argument to gomp_copy_host2dev (false).
4584         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4585         (copy_data): Don't free src.
4586         (queue_push_copy): Remove free_src handling.
4587         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4588         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4589         snapshotting.
4590         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4591         queue_push_copy.
4592         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4593         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
4594         data when true, and set up deferred freeing of temporary buffer.
4595         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4596         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4597         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4598         calls to gomp_copy_host2dev with appropriate ephemeral argument.
4599         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4600         XFAIL.
4602 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4603             Tom de Vries  <tom@codesourcery.com>
4605         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4606         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4608 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4610         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4611         sequencing of 'async' data copying vs. profiling events.
4612         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4613         Likewise.
4615 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4616             Julian Brown  <julian@codesourcery.com>
4618         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4619         'async'/'wait' issue.
4620         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4621         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4622         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4624 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
4625             Joseph Myers  <joseph@codesourcery.com>
4626             Cesar Philippidis  <cesar@codesourcery.com>
4628         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4629         file.
4630         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4631         Likewise.
4632         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4633         Likewise.
4634         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4636 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
4638         PR target/101484
4639         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4640         '-Wno-error=array-bounds'.
4641         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4642         * libgomp.h [__AMDGCN__]: Likewise.
4644 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
4646         PR target/101484
4647         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4648         * libgomp.h [__AMDGCN__]: Likewise.
4650 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
4651             Florian Weimer  <fweimer@redhat.com>
4653         * config/linux/sem.h: Don't include limits.h.
4654         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4655         * config/linux/affinity.c: Include limits.h.
4657 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
4659         PR middle-end/94366
4660         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
4662 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4664         PR other/67300
4665         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
4666         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
4667         avoid disabling other offload targets.
4668         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
4669         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
4670         * testsuite/libgomp.c/target-44.c: Likewise.
4672 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
4674         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
4675         target has shared memory and disable some scalar pointer/allocatable
4676         checks if not as firstprivate does not work.
4678 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
4680         PR testsuite/101114
4681         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
4682         Add "target offload_device_nonshared_as" condition for enabling test.
4684 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
4686         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
4687         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
4688         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
4689         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
4691 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
4693         PR middle-end/101167
4694         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
4696 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
4698         * hashtab.h (htab_clear): New function with initialization code
4699         factored out from...
4700         (htab_create): ...here, adjust to use htab_clear function.
4701         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
4702         special refcount values, add comments.
4703         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
4704         (REFCOUNT_LINK): Likewise.
4705         (REFCOUNT_STRUCTELEM): New special refcount range for structure
4706         element siblings.
4707         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
4708         sibling maps.
4709         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
4710         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
4711         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
4712         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
4713         (struct splay_tree_key_s): Add structelem_refcount and
4714         structelem_refcount_ptr fields into a union with dynamic_refcount.
4715         Add comments.
4716         (gomp_map_vars): Delete declaration.
4717         (gomp_map_vars_async): Likewise.
4718         (gomp_unmap_vars): Likewise.
4719         (gomp_unmap_vars_async): Likewise.
4720         (goacc_map_vars): New declaration.
4721         (goacc_unmap_vars): Likewise.
4722         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
4723         (goacc_enter_datum): Likewise.
4724         (goacc_enter_data_internal): Likewise.
4725         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
4726         and goacc_unmap_vars.
4727         (GOACC_data_start): Adjust to use goacc_map_vars.
4728         (GOACC_data_end): Adjust to use goacc_unmap_vars.
4729         * target.c (hash_entry_type): New typedef.
4730         (htab_alloc): New function hook for hashtab.h.
4731         (htab_free): Likewise.
4732         (htab_hash): Likewise.
4733         (htab_eq): Likewise.
4734         (hashtab.h): Add file include.
4735         (gomp_increment_refcount): New function.
4736         (gomp_decrement_refcount): Likewise.
4737         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
4738         gomp_increment_refcount.
4739         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
4740         to gomp_map_vars_existing.
4741         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
4742         variable to guard OpenMP specific paths, adjust calls to
4743         gomp_map_vars_existing, add structure element sibling splay_tree_key
4744         sequence creation code, adjust Fortran map case to avoid increment
4745         under OpenMP.
4746         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
4747         local refcount_set if caller passed in NULL, adjust call to
4748         gomp_map_vars_internal.
4749         (gomp_map_vars_async): Adjust and rename into...
4750         (goacc_map_vars): ...this new function, adjust call to
4751         gomp_map_vars_internal.
4752         (gomp_remove_splay_tree_key): New function with code factored out from
4753         gomp_remove_var_internal.
4754         (gomp_remove_var_internal): Add code to handle removing multiple
4755         splay_tree_key sequence for structure elements, adjust code to use
4756         gomp_remove_splay_tree_key for splay-tree key removal.
4757         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
4758         gomp_decrement_refcount.
4759         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
4760         local refcount_set if caller passed in NULL, adjust call to
4761         gomp_unmap_vars_internal.
4762         (gomp_unmap_vars_async): Adjust and rename into...
4763         (goacc_unmap_vars): ...this new function, adjust call to
4764         gomp_unmap_vars_internal.
4765         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
4766         gomp_unmap_vars.
4767         (GOMP_target_ext): Likewise.
4768         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
4769         (GOMP_target_data): Likewise.
4770         (GOMP_target_data_ext): Likewise.
4771         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
4772         (gomp_exit_data): Add refcount_set parameter, adjust to use
4773         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
4774         after main loop.
4775         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
4776         gomp_map_vars and gomp_exit_data.
4777         (gomp_target_task_fn): Likewise.
4778         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
4779         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
4780         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
4781         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
4782         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
4783         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
4785 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
4787         PR fortran/92568
4788         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
4790 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4791             Thomas Schwinge  <thomas@codesourcery.com>
4793         * libgomp.map (GOACC_2.0.2): New symbol version.
4794         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
4795         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
4797 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4798             Andrew Stubbs  <ams@codesourcery.com>
4800         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
4801         extracted from...
4802         (GOACC_enter_exit_data): ... here.
4803         (GOACC_declare): Use it.
4805 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4807         * oacc-parallel.c (GOACC_declare): Move...
4808         * oacc-mem.c: ... here.
4809         * libgomp_g.h: Adjust.
4811 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
4812             Thomas Schwinge  <thomas@codesourcery.com>
4814         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
4815         handling.
4817 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
4819         PR tree-optimization/100981
4820         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
4821         dsdotr and dsdoti to 0.
4823 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
4825         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
4826         if atomic compare-and-swap is supported on 'int'.
4828 2021-06-09  Richard Biener  <rguenther@suse.de>
4830         PR tree-optimization/100981
4831         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
4833 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4835         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
4836         unconditionally.
4837         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4838         Update.
4839         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4840         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
4842 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4844         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
4845         '-DACC_MEM_SHARED=0'.
4846         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4847         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4848         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4849         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4850         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4851         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4852         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4853         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4854         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4855         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4856         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4857         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4858         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4859         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
4860         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
4861         'acc_device_radeon' testing.
4862         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4863         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4864         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4865         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
4866         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4867         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4868         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4869         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4870         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4871         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4872         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
4873         for non-'openacc_nvidia_accel_selected'.
4874         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4875         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
4876         all implement this checking".
4877         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4878         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4879         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4880         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4881         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4883 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4885         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
4886         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
4888 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4890         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
4891         for 'acc_device_radeon'.
4893 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4895         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
4896         for non-'acc_device_nvidia'.
4898 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4900         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
4901         'acc_device_radeon' testing.
4902         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4903         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4904         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4906 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4908         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
4909         require 'openacc_nvidia_accel_selected'.  Fix up for
4910         'ACC_DEVICE_TYPE_radeon'.
4912 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4914         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
4915         'openacc_nvidia_accel_selected'.
4916         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
4918 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4920         * testsuite/lib/libgomp.exp
4921         (check_effective_target_openacc_radeon_accel_selected):
4922         Streamline.
4924 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4926         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
4927         PR80547 workaround.
4929 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
4931         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4932         <acc_device_nvidia>: Update comment.
4934 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
4936         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
4938 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
4940         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
4941         check_effective_target_openacc_cublas,
4942         check_effective_target_openacc_cudart): New.
4943         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
4944         target openacc_cublas.
4945         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
4946         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
4947         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
4948         target openacc_cuda.
4949         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4950         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4951         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4952         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4953         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4954         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4955         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4956         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4957         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
4958         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4959         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4960         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4961         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4962         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4963         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4964         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4965         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
4966         targets openacc_cublas and openacc_cudart.
4967         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4968         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4969         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4970         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4971         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
4972         Require effective target openacc_cudart.
4973         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
4974         for effective target openacc_cuda and add && defined USE_CUDA_H to
4975         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
4976         effective target.
4978 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
4980         PR libgomp/100573
4981         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
4982         GOMP_target_end_data, GOMP_target_update_ext,
4983         GOMP_target_enter_exit_data): New dummy entrypoints.
4984         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
4985         GOMP_target_end_data, GOMP_target_update_ext,
4986         GOMP_target_enter_exit_data): Likewise.
4987         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
4988         OMPFROM, OMPTO): Define.
4989         (main): Remove #pragma omp target teams around all the tests.
4990         * testsuite/libgomp.c-c++-common/target-41.c: New test.
4991         * testsuite/libgomp.c-c++-common/target-42.c: New test.
4993 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
4995         PR middle-end/99928
4996         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
4998 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5000         PR fortran/86470
5001         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5002         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5003         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5005 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5007         PR testsuite/90115
5008         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5009         uninteresting/varying diagnostics.
5011 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5013         PR middle-end/90115
5014         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5015         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5017 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5019         PR middle-end/90115
5020         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5021         file.
5022         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5023         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5024         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5025         Likewise.
5026         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5027         Likewise.
5028         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5029         Likewise.
5030         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5031         Likewise.
5032         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5033         Likewise.
5034         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5035         Likewise.
5036         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5037         Likewise.
5038         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5039         Likewise.
5040         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5041         Likewise.
5042         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5043         Likewise.
5044         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5045         Likewise.
5046         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5047         Likewise.
5048         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5049         Likewise.
5050         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5051         Likewise.
5052         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5053         Likewise.
5054         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5055         Likewise.
5056         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5057         Likewise.
5058         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5059         Likewise.
5060         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5061         Likewise.
5062         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5063         Likewise.
5064         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5065         Likewise.
5066         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5067         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5068         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5069         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5070         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5071         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5072         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5073         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5074         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5075         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5076         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5077         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5078         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5079         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5080         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5081         Likewise.
5082         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5083         Likewise.
5084         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5085         Likewise.
5086         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5087         Likewise.
5088         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5089         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5090         Likewise.
5091         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5092         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5093         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5094         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5095         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5096         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5097         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5098         Likewise.
5099         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5100         Likewise.
5101         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5102         Likewise.
5103         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5104         Likewise.
5105         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5106         Likewise.
5107         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5108         Likewise.
5109         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5110         Likewise.
5111         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5112         Likewise.
5113         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5114         Likewise.
5115         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5116         Likewise.
5117         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5118         Likewise.
5119         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5120         Likewise.
5121         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5122         Likewise.
5123         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5124         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5125         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5126         Likewise.
5127         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5128         Likewise.
5129         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5130         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5131         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5133 2021-05-21  Julian Brown  <julian@codesourcery.com>
5134             Chung-Lin Tang  <cltang@codesourcery.com>
5135             Thomas Schwinge  <thomas@codesourcery.com>
5137         PR middle-end/90115
5138         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5139         test.
5140         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5141         Likewise.
5142         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5143         Likewise.
5145 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5147         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5148         for nvptx offloading.
5150 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
5152         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5154 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5156         PR target/83812
5157         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5159 2021-05-19  Julian Brown  <julian@codesourcery.com>
5161         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5163 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5165         * testsuite/lib/libgomp.exp
5166         (check_effective_target_offload_target_nvptx): Don't shadow global
5167         'offload_targets' variable.
5169 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5171         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5172         '-latomic' to nvptx offloading compilation.
5173         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5175 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5177         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5178         offloading compilation.
5180 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5182         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5183         if new tasks generated.
5184         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5186 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
5188         * testsuite/libgomp.fortran/parallel-master.f90: New test.
5190 2021-05-13  Martin Liska  <mliska@suse.cz>
5192         PR testsuite/100569
5193         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5194         * testsuite/libgomp.c/pr46032-2.c: Likewise.
5195         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5196         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5198 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
5200         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5201         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5203 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
5205         PR middle-end/100471
5206         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5207         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5208         reduction pointer.
5209         * testsuite/libgomp.c/task-reduction-4.c: New test.
5211 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
5212             Tom de Vries  <tdevries@suse.de>
5214         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5215         complex/floating-point || + && reduction with 'omp target'.
5216         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5218 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5220         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5221         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5222         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5223         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5225 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5227         PR testsuite/100397
5228         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5229         declaration to scope of non-'depend'-guarded assignment to avoid races.
5231 2021-05-03  Tom de Vries  <tdevries@suse.de>
5233         PR target/100321
5234         * testsuite/libgomp.c/target-44.c: New test.
5236 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
5238         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5240 2021-04-29  Tom de Vries  <tdevries@suse.de>
5242         * testsuite/libgomp.c/pr81778.c: New test.
5244 2021-04-29  Tom de Vries  <tdevries@suse.de>
5246         PR target/100232
5247         * testsuite/libgomp.c/target-43.c: New file.
5249 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
5250             Tobias Burnus  <tobias@codesourcery.com>
5252         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5253         * target.c (gomp_load_plugin_for_device): If set and if a plugin
5254         can't be dlopened, silently assume it has no devices.
5255         * Makefile.in: Regenerate.
5256         * config.h.in: Regenerate.
5257         * configure: Regenerate.
5259 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5261         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5262         Use [Ww]arning in dg-bogus as FE diagnostic and default
5263         diagnostic differ and the result depends on ENABLE_OFFLOAD.
5264         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5265         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5266         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5268 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5270         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5271         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5272         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5273         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5274         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5276 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5277             Nathan Sidwell  <nathan@codesourcery.com>
5278             Tom de Vries  <vries@codesourcery.com>
5279             Julian Brown  <julian@codesourcery.com>
5280             Kwok Cheung Yeung  <kcy@codesourcery.com>
5282         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5283         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5284         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5285         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5286         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5287         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5288         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5289         Likewise.
5290         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5291         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5292         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5293         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5294         Likewise.
5295         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5296         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5297         Likewise.
5298         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5299         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5300         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5301         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5302         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5303         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5304         Likewise.
5305         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5306         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5307         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5308         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5309         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5310         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5311         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5312         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5313         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5314         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5315         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5317 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5319         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5320         compile with '-w'.
5321         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5322         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5323         Likewise.
5324         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5325         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5326         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5327         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5328         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5329         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5330         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5332 2021-04-22  Richard Biener  <rguenther@suse.de>
5334         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5335         only on nvptx-none.
5337 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5339         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5340         omp_depend_kind instead of defining it as 16.
5342 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5344         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5345         New, based on check_effective_target_offload_target_nvptx.
5346         (check_effective_target_offload_target_nvptx): Call it.
5347         (check_effective_target_offload_target_amdgcn): New.
5348         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5349         Require target offload_target_nvptx || offload_target_amdgcn.
5350         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5351         * testsuite/libgomp.c/pr86416-1.c: Likewise.
5352         * testsuite/libgomp.c/pr86416-2.c: Likewise.
5354 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5356         * testsuite/libgomp.fortran/depobj-1.f90: New test.
5358 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5360         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5361         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5362         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5363         Likewise.
5364         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5365         Likewise.
5366         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5368 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5370         PR target/99555
5371         * testsuite/lib/libgomp.exp
5372         (check_effective_target_offload_device_nvptx): New.
5373         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5374         resolved, make sure that we exit quickly, with error status,
5375         XFAILed.
5376         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5377         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5379 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
5381         PR testsuite/100071
5382         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5383         cp = omp_alloc with cp, p arguments instead of cq, q and call
5384         c_f_pointer after last cq = omp_alloc with cq, q.
5386 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5388         PR middle-end/98088
5389         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5390         for loop with GT/GE condition.
5391         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5393 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
5395         PR middle-end/84991
5396         PR middle-end/84992
5397         PR middle-end/90779
5398         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5400 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
5402         PR libgomp/99984
5403         * team.c (gomp_thread_start): Call pthread_setspecific for
5404         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5405         has been initialized to avoid false positive warning.
5407 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
5409         PR target/99555
5410         * testsuite/lib/on_device_arch.c: Move to ...
5411         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5412         * testsuite/libgomp.fortran/on_device_arch.c: New file;
5413         #include on_device_arch.h.
5414         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5415         on_device_arch.h instead of using dg-additional-source.
5416         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5417         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5418         on_device_arch.c without relative paths.
5420 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5422         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5423         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5424         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5425         * config.h.in: Regenerate.
5426         * configure: Likewise.
5428 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5430         PR target/99555
5431         * testsuite/lib/on_device_arch.c: New file.
5432         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5433         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5434         skip for nvptx offloading, with error status.
5435         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5437 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5439         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5440         OpenACC 'serial' construct diagnostic for nvptx offloading.
5442 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
5444         PR c++/99509
5445         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5447 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
5449         PR fortran/98858
5450         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5452 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
5454         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5455         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5456         checking of -m32 or -mx32 options on the command line.
5457         * config.h.in: Regenerated.
5458         * configure: Regenerated.
5460 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
5462         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5463         support from the target.
5465 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5466             Jakub Jelinek  <jakub@redhat.com>
5468         PR libgomp/98738
5469         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5470         (struct gomp_task): Replace detach and completion_sem fields with
5471         union containing completion_sem and detach_team.  Add deferred_p
5472         field.
5473         (struct gomp_team): Remove task_detach_queue.
5474         * task.c: Include assert.h.
5475         (gomp_init_task): Initialize deferred_p and completion_sem fields.
5476         Rearrange initialization order of fields.
5477         (task_fulfilled_p): Delete.
5478         (GOMP_task): Use address of task as the event handle.  Remove
5479         initialization of detach field.  Initialize deferred_p field.
5480         Use automatic local for completion_sem.  Initialize detach_team field
5481         for deferred tasks.
5482         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5483         Set kind of suspended detach task to GOMP_TASK_DETACHED and
5484         decrement task_running_count.  Move finish_cancelled block out of
5485         else branch.  Relocate call to gomp_team_barrier_done.
5486         (GOMP_taskwait): Handle tasks with completion events that have not
5487         been fulfilled.
5488         (GOMP_taskgroup_end): Likewise.
5489         (omp_fulfill_event): Use address of task as event handle.  Post to
5490         completion_sem for undeferred tasks.  Clear detach_team if task
5491         has not finished.  For finished tasks, handle post-execution tasks,
5492         call gomp_team_barrier_wake if necessary, and free task.
5493         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5494         (free_team): Remove free of task_detach_queue.
5495         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5496         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5497         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5498         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5499         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5500         Change data-sharing of detach events on enclosing parallel to private.
5501         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
5502         taskwait directive.
5503         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5504         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5505         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5506         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5507         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5508         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5509         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5510         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5511         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5512         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5513         Change data-sharing of detach events on enclosing parallel to private.
5514         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
5515         taskwait directive.
5516         * testsuite/libgomp.fortran/task-detach-7.f90: New.
5517         * testsuite/libgomp.fortran/task-detach-8.f90: New.
5518         * testsuite/libgomp.fortran/task-detach-9.f90: New.
5519         * testsuite/libgomp.fortran/task-detach-10.f90: New.
5520         * testsuite/libgomp.fortran/task-detach-11.f90: New.
5522 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
5524         PR fortran/99171
5525         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5527 2021-02-17  Julian Brown  <julian@codesourcery.com>
5529         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5530         expected errors.
5532 2021-02-17  Julian Brown  <julian@codesourcery.com>
5534         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5535         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5537 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5539         * config/linux/x86/futex.h (__futex_wait):
5540         Revert output type back to long.
5541         (__futex_wake): Ditto.
5542         (futex_wait): Update for revert.
5543         (futex_wake): Ditto.
5545 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5547         * config/linux/x86/futex.h (__futex_wait): New static inline
5548         wrapper function.  Correct output type to int and
5549         timeout type to void *.
5550         (__futex_wake): New static inline wrapper function.
5551         Correct output type to int.
5552         (futex_wait): Use __futex_wait.
5553         (futex_wake): Use __futex_wake.
5555 2021-02-10  Julian Brown  <julian@codesourcery.com>
5557         PR fortran/98979
5558         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5559         errors.
5561 2021-02-04  Julian Brown  <julian@codesourcery.com>
5563         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5565 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
5567         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5568         EF_AMDGPU_MACH_AMDGCN_GFX908.
5569         (gcn_gfx908_s): New constant string.
5570         (isa_hsa_name): Add gfx908.
5571         (isa_code): Add gfx908.
5573 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5575         * libgomp.texi (omp_fulfill_event): New entry.
5577 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
5579         * task.c (GOMP_task): Rename priority argument to priority_arg,
5580         add priority automatic variable and modify that variable.  Instead of
5581         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5582         check flags for that bit.
5584 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
5586         PR fortran/98476
5587         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5589 2021-01-18  Andreas Schwab  <schwab@suse.de>
5591         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5593 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5595         * config/rtems/sem.h (gomp_sem_getcount): New function.
5597 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
5599         * config/linux/sem.h (gomp_sem_getcount): New function.
5600         * config/posix/sem.h (gomp_sem_getcount): New function.
5601         * config/posix/sem.c (gomp_sem_getcount): New function.
5602         * config/accel/sem.h (gomp_sem_getcount): New function.
5603         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5604         (omp_fulfill_event): Likewise.
5606 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
5608         * fortran.c (omp_fulfill_event_): New.
5609         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5610         (struct gomp_team): Add task_detach_queue and task_detach_count
5611         fields.
5612         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5613         * libgomp_g.h (GOMP_task): Add extra argument.
5614         * omp.h.in (enum omp_event_handle_t): New.
5615         (omp_fulfill_event): New.
5616         * omp_lib.f90.in (omp_event_handle_kind): New.
5617         (omp_fulfill_event): New.
5618         * omp_lib.h.in (omp_event_handle_kind): New.
5619         (omp_fulfill_event): Declare.
5620         * priority_queue.c (priority_tree_find): New.
5621         (priority_list_find): New.
5622         (priority_queue_find): New.
5623         * priority_queue.h (priority_queue_predicate): New.
5624         (priority_queue_find): New.
5625         * task.c (gomp_init_task): Initialize detach field.
5626         (task_fulfilled_p): New.
5627         (GOMP_task): Add detach argument.  Ignore detach argument if
5628         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
5629         field.  Copy address of completion_sem into detach argument and
5630         into the start of the data record.  Wait for detach event if task
5631         not deferred.
5632         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5633         Remove completed tasks and requeue dependent tasks.
5634         (omp_fulfill_event): New.
5635         * team.c (gomp_new_team): Initialize task_detach_queue and
5636         task_detach_count fields.
5637         (free_team): Free task_detach_queue field.
5638         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5639         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5640         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5641         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5642         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5643         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5644         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5645         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5646         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5647         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5648         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5649         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5651 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
5653         PR target/70454
5654         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5655         be added through preprocessor check on
5656         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5658 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
5660         PR libgomp/65099
5661         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
5662         configurations.
5663         * configure: Regenerate.
5664         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
5665         check.
5667 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5669         * configure: Re-generate.
5671 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5673         * configure: Re-generate.
5675 2021-01-05  Julian Brown  <julian@codesourcery.com>
5677         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
5678         (struct ptx_device): Add omp_stacks struct.
5679         (nvptx_open_device): Initialise cached-stacks housekeeping info.
5680         (nvptx_close_device): Free cached stacks block and mutex.
5681         (nvptx_stacks_free): New function.
5682         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
5683         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
5684         (nvptx_stacks_alloc): Rename to...
5685         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
5686         size or smaller is required.
5687         (nvptx_stacks_free): Remove.
5688         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
5689         during kernel execution.
5691 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
5693         * libgomp.texi: Bump @copying's copyright year.
5695 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
5697         * libgomp.texi (Top): Avoid bad "up" link.
5699 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
5701         * testsuite/libgomp.c/task-6.c: New test.
5703 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
5705         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
5706         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
5708 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
5710         * testsuite/libgomp.fortran/scan-1.f90: New test.
5712 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
5714         PR target/97865
5715         * configure: Regenerate.
5717 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
5719         * configure: Regenerate.
5721 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
5723         * testsuite/libgomp.oacc-c++/cache-1.C: New.
5724         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
5726 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
5728         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
5729         expected results.
5731 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
5733         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
5734         (reserved): Delete unused define.
5736 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
5738         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
5739         Tcl 8.5-specific behavior.
5740         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5742 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5744         * env.c (gomp_global_icv): Remove nest_var field.  Add
5745         max_active_levels_var field.
5746         (gomp_max_active_levels_var): Remove.
5747         (parse_boolean): Return true on success.
5748         (handle_omp_display_env): Express OMP_NESTED in terms of
5749         max_active_levels_var.  Change format specifier for
5750         max_active_levels_var.
5751         (initialize_env): Set max_active_levels_var from
5752         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
5753         OMP_PROC_BIND.
5754         * icv.c (omp_set_nested): Express in terms of
5755         max_active_levels_var.
5756         (omp_get_nested): Likewise.
5757         (omp_set_max_active_levels): Use max_active_levels_var field instead
5758         of gomp_max_active_levels_var.
5759         (omp_get_max_active_levels): Likewise.
5760         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
5761         max_active_levels_var field.
5762         (gomp_supported_active_levels): Set to UCHAR_MAX.
5763         (gomp_max_active_levels_var): Delete.
5764         * libgomp.texi (omp_get_nested): Update documentation.
5765         (omp_set_nested): Likewise.
5766         (OMP_MAX_ACTIVE_LEVELS): Likewise.
5767         (OMP_NESTED): Likewise.
5768         (OMP_NUM_THREADS): Likewise.
5769         (OMP_PROC_BIND): Likewise.
5770         * parallel.c (gomp_resolve_num_threads): Replace reference
5771         to nest_var with max_active_levels_var.  Use max_active_levels_var
5772         field instead of gomp_max_active_levels_var.
5774 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
5776         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
5777         nvptx_usleep; use also for device={arch(gcn)}.
5779 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
5781         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
5782         (foo): Add tests for non-VLA private and firstprivate clauses on
5783         omp task.
5784         (bar): Likewise.  Remove taking of address from private/firstprivate
5785         variables.
5786         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
5787         (foo): Add p, q, px and s arguments.  Add tests for array reductions
5788         and for non-VLA private and firstprivate clauses on omp task.
5789         (bar): Removed.
5790         (main): Adjust foo caller.  Don't call bar.
5792 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5793             Thomas Schwinge  <thomas@codesourcery.com>
5795         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5796         New.
5797         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5798         Likewise.
5799         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5800         Likewise.
5801         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
5802         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5804 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
5805             Thomas Schwinge  <thomas@codesourcery.com>
5807         PR fortran/94358
5808         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
5810 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
5812         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
5813         for array reductions.
5814         (main): Adjust foo callers.
5816 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
5818         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
5819         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
5820         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
5821         * allocator.c (omp_aligned_alloc): New for now static function,
5822         add alignment argument and handle it.
5823         (omp_alloc): Reimplement using omp_aligned_alloc.
5824         (GOMP_alloc, GOMP_free): New functions.
5825         (omp_free): Add ialias.
5826         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
5827         * testsuite/libgomp.c++/allocate-1.C: New test.
5829 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
5831         PR fortran/97782
5832         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
5834 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
5836         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
5837         usable.
5838         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
5839         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
5840         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
5841         (goacc_enter_data_internal): Likewise.
5842         * target.c (gomp_map_vars_internal):
5843         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
5844         of gomp_attach_pointer for OpenMP cases.
5845         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
5846         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
5847         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
5849 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
5850             Kwok Cheung Yeung  <kcy@codesourcery.com>
5852         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
5853         * Makefile.in: Regenerate.
5854         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
5855         pragmas to ignore -Wdeprecated-declarations warnings.
5856         * icv.c: Likewise.
5857         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
5858         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
5859         and omp_get_nested with __GOMP_DEPRECATED_5_0.
5860         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
5861         deprecated.
5862         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
5863         to test options.
5864         * testsuite/libgomp.c/affinity-1.c: Likewise.
5865         * testsuite/libgomp.c/affinity-2.c: Likewise.
5866         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
5867         * testsuite/libgomp.c/lib-1.c: Likewise.
5868         * testsuite/libgomp.c/nested-1.c: Likewise.
5869         * testsuite/libgomp.c/nested-2.c: Likewise.
5870         * testsuite/libgomp.c/nested-3.c: Likewise.
5871         * testsuite/libgomp.c/pr32362-1.c: Likewise.
5872         * testsuite/libgomp.c/pr32362-2.c: Likewise.
5873         * testsuite/libgomp.c/pr32362-3.c: Likewise.
5874         * testsuite/libgomp.c/pr35549.c: Likewise.
5875         * testsuite/libgomp.c/pr42942.c: Likewise.
5876         * testsuite/libgomp.c/pr61200.c: Likewise.
5877         * testsuite/libgomp.c/sort-1.c: Likewise.
5878         * testsuite/libgomp.c/target-5.c: Likewise.
5879         * testsuite/libgomp.c/target-6.c: Likewise.
5880         * testsuite/libgomp.c/teams-1.c: Likewise.
5881         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5882         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5883         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
5884         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
5885         * testsuite/libgomp.fortran/lib1.f90: Likewise.
5886         * testsuite/libgomp.fortran/lib2.f: Likewise.
5887         * testsuite/libgomp.fortran/nested1.f90: Likewise.
5888         * testsuite/libgomp.fortran/teams1.f90: Likewise.
5890 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5892         PR target/85486
5893         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
5894         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5895         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5897 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
5899         PR testsuite/80219
5900         PR testsuite/85303
5901         * testsuite/lib/libgomp.exp (libgomp_init): Set
5902         'gcc_warning_prefix', 'gcc_error_prefix'.
5904 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
5906         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
5907         even in field_tgt_clear initializer.
5909 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5911         * testsuite/libgomp.c/target-42.c: New test.
5913 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5914             Tom de Vries  <tdevries@suse.de>
5916         PR testsuite/81690
5917         * testsuite/libgomp.c/usleep.h: New file.
5918         * testsuite/libgomp.c/target-32.c: Include usleep.h.
5919         (main): Use tgt_usleep instead of usleep.
5920         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
5921         (main): Use tgt_usleep instead of usleep.
5923 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
5925         PR lto/96680
5926         * testsuite/libgomp.c/declare-variant-1.c: New test.
5928 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5930         * testsuite/libgomp.c/target-41.c: New test.
5932 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5934         * icv.c (omp_get_initial_device): Remove including corresponding
5935         ialias.
5936         * icv-device.c (omp_get_initial_device): New function.  Return
5937         gomp_get_num_devices ().  Add ialias.
5938         * target.c (resolve_device): Don't fail with
5939         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
5940         gomp_get_num_devices ().
5941         (omp_target_alloc, omp_target_free, omp_target_is_present,
5942         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
5943         omp_target_disassociate_ptr, omp_pause_resource): Use
5944         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
5945         first use in the functions, in uses dominated by the
5946         gomp_get_num_devices call use num_devices_openmp instead.
5947         * libgomp.texi (omp_get_initial_device): Document.
5948         * config/gcn/icv-device.c (omp_get_initial_device): New function.
5949         Add ialias.
5950         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
5951         * testsuite/libgomp.c/target-40.c: New test.
5953 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
5955         * env.c (parse_target_offload): Change new_offload var type to int,
5956         preinitialize to -1, remove found var and test new_offload != -1
5957         instead of found.
5959 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
5961         * target.c (gomp_target_init): Inside of the function, use automatic
5962         variables corresponding to num_devices, num_devices_openmp and devices
5963         global variables and update the globals only at the end of the
5964         function.
5966 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
5968         * env.c (gomp_target_offload_var): New.
5969         (parse_target_offload): New.
5970         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
5971         (initialize_env): Parse OMP_TARGET_OFFLOAD.
5972         * libgomp.h (gomp_target_offload_t): New.
5973         (gomp_target_offload_var): New.
5974         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
5975         * target.c (resolve_device): Generate error if device not found and
5976         offloading is mandatory.
5977         (gomp_target_fallback): Generate error if offloading is mandatory.
5978         (GOMP_target): Add argument in call to gomp_target_fallback.
5979         (GOMP_target_ext): Likewise.
5980         (gomp_target_data_fallback): Generate error if offloading is mandatory.
5981         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
5982         (GOMP_target_data_ext): Likewise.
5983         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
5984         (gomp_target_init): Return early if offloading is disabled.
5986 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
5988         * libgomp.texi (omp_get_max_active_levels): Modify description.
5989         (omp_get_supported_active_levels): Make descriptions consistent.
5991 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
5993         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
5995 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
5997         * env.c (gomp_max_active_levels_var): Initialize to
5998         gomp_supported_active_levels.
5999         (initialize_env): Limit gomp_max_active_levels_var to be at most
6000         equal to gomp_supported_active_levels.
6001         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6002         (omp_get_supported_active_levels_): New.
6003         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6004         to at most equal to gomp_supported_active_levels.
6005         (omp_get_supported_active_levels): New.
6006         * libgomp.h (gomp_supported_active_levels): New.
6007         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6008         omp_get_supported_active_levels_.
6009         * libgomp.texi (omp_get_supported_active_levels): New.
6010         (omp_set_max_active_levels): Update.  Add reference to
6011         omp_get_supported_active_levels.
6012         * omp.h.in (omp_get_supported_active_levels): New.
6013         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6014         * omp_lib.h.in (omp_get_supported_active_levels): New.
6015         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6016         against omp_get_supported_active_levels.
6017         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6019 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6021         * config/t-aix: Delete and recreate libgomp before creating
6022         FAT library.
6024 2020-10-08  Tom de Vries  <tdevries@suse.de>
6026         PR libgomp/81802
6027         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6028         dimensions.
6030 2020-10-06  Tom de Vries  <tdevries@suse.de>
6032         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6034 2020-10-06  Tom de Vries  <tdevries@suse.de>
6036         PR middle-end/90861
6037         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6039 2020-10-05  Tom de Vries  <tdevries@suse.de>
6041         PR fortran/95654
6042         * testsuite/libgomp.fortran/pr95654.f90: New test.
6044 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6046         * Makefile.in: Regenerate with automake 1.15.1.
6047         * aclocal.m4: Likewise.
6048         * configure: Likewise.
6049         * testsuite/Makefile.in: Likewise.
6051 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6053         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6054         and amdgcn targets.
6056 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6058         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6060 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6062         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6063         total number of threads is one.
6064         (gomp_team_barrier_wake): Likewise.
6065         (gomp_team_barrier_wait_end): Likewise.
6066         (gomp_team_barrier_wait_cancel_end): Likewise.
6067         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6068         (gomp_team_barrier_wake): Likewise.
6069         (gomp_team_barrier_wait_end): Likewise.
6070         (gomp_team_barrier_wait_cancel_end): Likewise.
6071         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6073 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6075         PR middle-end/96390
6076         * testsuite/libgomp.c++/pr96390.C: New test.
6077         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6079 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6081         * config/t-aix: Use $(AR) without -X32_64.
6083 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6085         * testsuite/libgomp.c/loop-25.c: New test.
6087 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6089         PR fortran/95654
6090         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6092 2020-09-22  Tom de Vries  <tdevries@suse.de>
6094         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6095         fails.
6097 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6099         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6101 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6103         PR fortran/96668
6104         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6106 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6108         PR fortran/96668
6109         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6110         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6111         (gomp_map_vars_existing): Update call to it.
6112         (gomp_map_fields_existing): Likewise
6113         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6114         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6115         remapped.
6116         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6117         GOMP_MAP_POINTER.
6118         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6119         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6121 2020-09-14  Tom de Vries  <tdevries@suse.de>
6123         * config/nvptx/atomic.c: New file.  Add
6124         __sync_val_compare_and_swap_16.
6125         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6126         target offload_target_nvptx.
6128 2020-09-08  Julian Brown  <julian@codesourcery.com>
6130         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6131         iteration-ordering assumptions.
6133 2020-09-08  Julian Brown  <julian@codesourcery.com>
6135         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6136         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6138 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
6140         * plugin/plugin-nvptx.c (nvptx_free):
6141         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6142         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6143         comments.
6145 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
6147         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6149 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6151         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6153 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
6155         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6156         * testsuite/libgomp.c/loop-23.c (main): Likewise.
6157         * testsuite/libgomp.c/loop-24.c: New test.
6159 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
6160             Tobias Burnus  <tobias@codesourcery.com>
6162         PR fortran/93553
6163         * testsuite/libgomp.fortran/pr93553.f90: New test.
6165 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6167         * testsuite/libgomp.c/loop-22.c: New test.
6168         * testsuite/libgomp.c/loop-23.c: New test.
6170 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6172         PR middle-end/96459
6173         * testsuite/libgomp.c/teams-3.c: New test.
6174         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6175         if not defined yet.
6176         (N(test)): Use it before all N(f*) calls.
6177         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6178         (main): Don't call all test_* functions from within
6179         #pragma omp teams reduction(|:err), call them directly.
6181 2020-08-04  Tom de Vries  <tdevries@suse.de>
6183         PR target/96428
6184         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6185         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6187 2020-08-03  Julian Brown  <julian@codesourcery.com>
6188             Thomas Schwinge  <thomas@codesourcery.com>
6190         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6191         shared-memory devices.  Extend with further checking.
6193 2020-08-03  Martin Jambor  <mjambor@suse.cz>
6195         * plugin/Makefrag.am: Remove configuration of HSA plugin.
6196         * aclocal.m4: Regenerated.
6197         * Makefile.in: Regenerated.
6198         * config.h.in: Regenerated.
6199         * configure: Regenerated.
6200         * plugin/configfrag.ac: Likewise.
6201         * plugin/hsa_ext_finalize.h: Removed.
6202         * plugin/plugin-hsa.c: Likewise.
6203         * testsuite/Makefile.in: Regenerated.
6204         * testsuite/lib/libgomp.exp
6205         (offload_target_to_openacc_device_type): Remove hsa case.
6206         (check_effective_target_hsa_offloading_selected_nocache): Removed
6207         (check_effective_target_hsa_offloading_selected): Likewise.
6208         (libgomp_init): Do not add -Wno-hsa to additional_flags.
6209         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6210         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6211         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6212         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6213         * testsuite/libgomp.hsa.c/c.exp: Likewise.
6214         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6215         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6216         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6217         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6218         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6219         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6220         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6221         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6222         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6223         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6224         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6225         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6226         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6227         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6228         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6229         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6230         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6231         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6232         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6234 2020-07-27  Julian Brown  <julian@codesourcery.com>
6235             Thomas Schwinge  <thomas@codesourcery.com>
6237         * libgomp.h (struct target_var_desc): Rename do_detach field to
6238         is_attach.
6239         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
6240         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6241         (goacc_enter_data_internal): Don't affect reference counts
6242         for attach mappings.
6243         (goacc_exit_data_internal): Don't affect reference counts for detach
6244         mappings.
6245         * target.c (gomp_map_vars_existing): Don't affect reference counts for
6246         attach mappings.
6247         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6248         mark attach mappings.
6249         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6250         reference count for attach mappings.
6251         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6252         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6253         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6254         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6255         test as shouldfail.
6256         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6257         gracefully in no-finalize mode.
6258         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6260 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
6262         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6263         use.
6264         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6265         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6267 2020-07-23  Julian Brown  <julian@codesourcery.com>
6268             Thomas Schwinge  <thomas@codesourcery.com>
6270         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6271         finalization for detach operation.
6272         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6273         New test.
6275 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
6277         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6278         * libgomp_f.h.in (omp_check_defines): Check whether
6279         sizeof of determined Fortran kind and C typedef match.
6280         * omp_lib.f90.in: Add omp_depened_kind.
6281         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6282         * configure: Regenerate.
6283         * Makefile.in: Regenerate.
6284         * testsuite/Makefile.in: Regenerate.
6286 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6288         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6289         gcc/testsuite/c-c++-common/gomp/.
6290         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6291         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6292         from gcc/testsuite/gfortran.dg/gomp/.
6293         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6295 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6297         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6298         * omp_lib.h.in: Likewise.
6300 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
6302         PR target/95620
6303         * testsuite/libgomp.c/pr95620.c: New test.
6305 2020-07-16  Julian Brown  <julian@codesourcery.com>
6306             Thomas Schwinge  <thomas@codesourcery.com>
6308         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6309         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6311 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6313         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6314         avoid conversion on 32bit systems from 32bit to 64bit due
6315         to -fdefault-integer-8.
6317 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6319         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6320         variables; add character(kind=4) tests; update TODO comment.
6322 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6324         * allocator.c: Add ialias for omp_init_allocator and
6325         omp_destroy_allocator.
6326         * configure.ac: Set INTPTR_T_KIND.
6327         * configure: Regenerate.
6328         * Makefile.in: Regenerate.
6329         * testsuite/Makefile.in: Regenerate.
6330         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6331         omp_set_default_allocator_, omp_get_default_allocator_): New
6332         functions and ialias_redirect.
6333         * icv.c: Add ialias for omp_set_default_allocator and
6334         omp_get_default_allocator.
6335         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6336         omp_destroy_allocator_, omp_set_default_allocator_ and
6337         omp_get_default_allocator_.
6338         * omp_lib.f90.in: Add allocator traits parameters, declare
6339         allocator routines and add related kind parameters.
6340         * omp_lib.h.in: Likewise.
6341         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6342         * testsuite/libgomp.fortran/alloc-1.F90: New test.
6343         * testsuite/libgomp.fortran/alloc-2.F90: New test.
6344         * testsuite/libgomp.fortran/alloc-3.F: New test.
6345         * testsuite/libgomp.fortran/alloc-4.f90: New test.
6346         * testsuite/libgomp.fortran/alloc-5.f90: New test.
6348 2020-07-14  Tom de Vries  <tom@codesourcery.com>
6349             Cesar Philippidis  <cesar@codesourcery.com>
6350             Thomas Schwinge  <thomas@codesourcery.com>
6351             Kwok Cheung Yeung  <kcy@codesourcery.com>
6353         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6354         New variable.
6355         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
6356         acc_init_state to initializing at the start, and to initialized at the
6357         end.
6358         (self_initializing_p): New function.
6359         (acc_get_device_type): Return acc_device_none if called by thread that
6360         is currently executing acc_init_1.
6361         * libgomp.texi (acc_get_device_type): Update documentation.
6362         (Implementation Status and Implementation-Defined Behavior): Likewise.
6363         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6365 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
6367         * config/t-aix: Set BITS from compiler cpp macro.
6369 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6371         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6373 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6375         PR fortran/67311
6376         * testsuite/libgomp.fortran/target-map-1.f90: New test.
6378 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
6380         * testsuite/libgomp.c/loop-21.c: New test.
6382 2020-07-13  Julian Brown  <julian@codesourcery.com>
6383             Thomas Schwinge  <thomas@codesourcery.com>
6385         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6387 2020-07-10  Julian Brown  <julian@codesourcery.com>
6388             Thomas Schwinge  <thomas@codesourcery.com>
6390         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6391         dynamic_refcount.
6392         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6393         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6394         dynamic_refcount.
6395         (acc_unmap_data): Update comment.
6396         (goacc_map_var_existing, goacc_enter_datum): Adjust for
6397         dynamic_refcount semantics.
6398         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6399         Adjust for dynamic_refcount semantics.
6400         (goacc_enter_data_internal): Implement "present" case of dynamic
6401         memory-map handling here.  Update "non-present" case for
6402         dynamic_refcount semantics.
6403         (goacc_exit_data_internal): Use goacc_exit_datum_1.
6404         * target.c (gomp_map_vars_internal): Remove
6405         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
6406         handling.
6407         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6408         (gomp_load_image_to_device): Substitute dynamic_refcount for
6409         virtual_refcount.
6410         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6411         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6412         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6413         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6414         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6415         trace output.
6416         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6417         trace output.
6418         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6419         test.
6420         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6421         Remove stale comment.
6422         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6423         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6424         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6425         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6426         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6427         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6429 2020-07-10  Julian Brown  <julian@codesourcery.com>
6430             Thomas Schwinge  <thomas@codesourcery.com>
6432         * oacc-mem.c (goacc_map_var_existing): New function.
6433         (goacc_enter_datum): Use above function.
6434         (goacc_exit_datum_1): New function.
6435         (goacc_exit_datum): Use above function.
6437 2020-07-09  Julian Brown  <julian@codesourcery.com>
6438             Thomas Schwinge  <thomas@codesourcery.com>
6440         PR middle-end/95270
6441         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6442         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6444 2020-07-09  Julian Brown  <julian@codesourcery.com>
6446         * oacc-mem.c (find_group_last): Group data-movement clauses
6447         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6448         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
6450 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6452         * testsuite/libgomp.c/loop-19.c: New test.
6453         * testsuite/libgomp.c/loop-20.c: New test.
6455 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6457         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6458         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
6459         it.  Remove __omp_alloctrait_value_max__.
6460         * allocator.c (omp_init_allocator): Handle omp_atv_default for
6461         omp_atk_alignment and omp_atk_pool_size.
6463 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6465         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6466         behavior for 'GOMP_MAP_FORCE_FROM'.
6467         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6469 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6471         * oacc-mem.c (goacc_exit_data_internal): Remove
6472         'GOMP_MAP_ALWAYS_FROM' handling.
6474 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6476         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6477         'scan-assembler' with 'scan-offload-rtl'.
6478         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6479         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6480         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6481         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6483 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6485         * target.c (gomp_map_vars_existing): Assert 'kind !=
6486         GOMP_MAP_ATTACH'.
6487         (gomp_map_vars_internal): Clean up.
6489 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
6491         * testsuite/libgomp.c/loop-17.c: New test.
6492         * testsuite/libgomp.c/loop-18.c: New test.
6494 2020-06-26  Marek Polacek  <polacek@redhat.com>
6496         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6498 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
6500         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6501         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6503 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
6505         * Makefile.am: Use -include.
6506         * Makefile.in: Regenerate.
6508 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
6510         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6511         * Makefile.in: Regenerate
6512         * configure.ac (tmake_file): Substitute.
6513         * configure: Regenerate.
6514         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6515         * config/t-aix: New file.
6517 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
6519         PR lto/94848
6520         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6521         'dg-do run'.
6523 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
6525         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6526         variant for HSA_RUNTIME_LIB name.
6527         (find_executable_symbol_1): Delete.
6528         (find_executable_symbol): Delete.
6529         (init_kernel_properties): Add ".kd" suffix to symbol names.
6530         (find_load_offset): Delete.
6531         (create_and_finalize_hsa_program): Remove relocation handling.
6533 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
6535         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6537 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
6539         PR lto/94848
6540         PR middle-end/95551
6541         * testsuite/libgomp.fortran/target-var.f90: New test.
6543 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6544             Julian Brown  <julian@codesourcery.com>
6546         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6547         special handling.
6549 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6550             Julian Brown  <julian@codesourcery.com>
6552         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6553         Simplify.
6555 2020-06-05  Julian Brown  <julian@codesourcery.com>
6557         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6558         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6560 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6562         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6563         Evaluate 'copyfrom' individually for each entry.
6564         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6566 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6568         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6569         Evaluate 'finalize' individually for each entry.
6570         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6571         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6572         file.
6574 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6576         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6577         usage.
6578         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6580 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6581             Julian Brown  <julian@codesourcery.com>
6583         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6584         checking.
6585         (acc_unmap_data, goacc_exit_data_internal): Restore
6586         'is_tgt_unmapped' checking.
6587         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6588         file.
6589         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6590         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6591         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6592         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6593         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6594         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6596 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6597             Julian Brown  <julian@codesourcery.com>
6599         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6601 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6603         PR libgomp/92854
6604         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6606 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6608         PR libgomp/92854
6609         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6610         more.
6612 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6613             Julian Brown  <julian@codesourcery.com>
6615         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6616         'gomp_map_vars'.
6617         (acc_map_data): Clean up accordingly.
6619 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6621         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6622         of over-eager 'finalize' clause.
6623         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6624         file.
6625         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6626         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6627         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6628         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6629         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6630         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6631         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6632         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6634 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6636         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6638 2020-06-04  Julian Brown  <julian@codesourcery.com>
6640         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6641         error path.
6642         (goacc_detach_internal): Likewise.
6644 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6646         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6647         the checkpoint.
6648         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6649         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6650         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6651         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6652         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6654 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
6656         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
6657         defined.
6659 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6661         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
6663 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
6665         * allocator.c (omp_alloc): For size == 0, return NULL early.
6667 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
6669         PR bootstrap/95413
6670         * configure: Regenerated.
6672 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
6674         PR libfortran/95191
6675         * testsuite/libgomp.fortran/async_io_9.f90: New test.
6677 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
6679         * omp.h.in (omp_uintptr_t): New typedef.
6680         (__GOMP_UINTPTR_T_ENUM): Define.
6681         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
6682         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
6683         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
6684         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
6685         omp_get_default_allocator, omp_alloc, omp_free): Declare.
6686         * libgomp.h (struct gomp_team_state): Add def_allocator field.
6687         (gomp_def_allocator): Declare.
6688         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
6689         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
6690         omp_alloc and omp_free.
6691         * team.c (gomp_team_start): Copy over ts.def_allocator.
6692         * env.c (gomp_def_allocator): New variable.
6693         (parse_wait_policy): Adjust function comment.
6694         (parse_allocator): New function.
6695         (handle_omp_display_env): Print OMP_ALLOCATOR.
6696         (initialize_env): Call parse_allocator.
6697         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
6698         * allocator.c: New file.
6699         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
6700         functions.
6701         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
6702         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
6703         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
6704         * Makefile.in: Regenerated.
6706 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6708         PR bootstrap/95147
6709         * configure: Regenerated.
6711 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
6713         PR libfortran/95119
6714         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
6716 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6718         * configure: Regenerated.
6720 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
6722         * testsuite/libgomp.c-c++-common/target-40.c: New test.
6724 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
6726         PR fortran/94690
6727         * testsuite/libgomp.fortran/pr66199-3.f90: New.
6728         * testsuite/libgomp.fortran/pr66199-4.f90: New.
6729         * testsuite/libgomp.fortran/pr66199-5.f90: New.
6730         * testsuite/libgomp.fortran/pr66199-6.f90: New.
6731         * testsuite/libgomp.fortran/pr66199-7.f90: New.
6732         * testsuite/libgomp.fortran/pr66199-8.f90: New.
6733         * testsuite/libgomp.fortran/pr66199-9.f90: New.
6735 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
6737         * testsuite/libgomp.c/target-39.c: New test.
6739 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
6741         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
6742         * openacc.f90 (acc_device_current): Likewise.
6743         * openacc.h (acc_device_current): Likewise.
6744         * openacc_lib.h (acc_device_current): Likewise.
6746         PR target/94282
6747         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
6748         'dg-allow-blank-lines-in-output'.
6750         * oacc-init.c (get_openacc_name): Handle 'gcn'.
6751         * testsuite/lib/libgomp.exp
6752         (offload_target_to_openacc_device_type) [amdgcn*]: Return
6753         'radeon'.  Adjust all users.
6754         (check_effective_target_openacc_amdgcn_accel_present): Rename
6755         to...
6756         (check_effective_target_openacc_radeon_accel_present): ... this.
6757         Adjust all users.
6758         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
6759         (check_effective_target_openacc_radeon_accel_selected): ... this.
6760         Adjust all users.
6762         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
6763         'dg-do run'.
6765 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
6767         PR other/94629
6769         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
6770         hsa_iterate_agents.
6771         (GOMP_OFFLOAD_init_device): Check return values from both calls to
6772         hsa_agent_iterate_regions.
6774 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6776         PR middle-end/94635
6777         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
6778         run'.
6780 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
6782         PR middle-end/94120
6783         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
6784         test case.
6786 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
6788         PR middle-end/94635
6789         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
6791 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
6793         PR libgomp/92843
6794         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6795         Rename to...
6796         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
6797         ... this.
6798         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6799         Rename to...
6800         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
6801         ... this.
6802         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6803         Rename to...
6804         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
6805         ... this.
6806         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6807         Rename to...
6808         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
6809         ... this.
6810         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6811         Rename to...
6812         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
6813         ... this.
6814         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6815         Rename to...
6816         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
6817         ... this.
6818         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6819         Rename to...
6820         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
6821         ... this.
6822         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6823         Rename to...
6824         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6825         ... this.
6826         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6827         Rename to...
6828         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
6829         ... this.
6830         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6831         Rename to...
6832         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
6833         ... this.
6834         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6835         Rename to...
6836         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
6837         ... this.
6838         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6839         Rename to...
6840         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
6841         ... this.
6842         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6843         Rename to...
6844         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
6845         ... this.
6846         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6847         Rename to...
6848         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
6849         ... this.
6850         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6851         Rename to...
6852         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
6853         ... this.
6854         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
6855         Rename to...
6856         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
6857         ... this.
6859 2020-04-10  Julian Brown  <julian@codesourcery.com>
6860             Thomas Schwinge  <thomas@codesourcery.com>
6862         PR libgomp/92843
6863         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
6864         New file.
6865         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
6866         Likewise.
6867         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
6868         Likewise.
6869         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
6870         Likewise.
6871         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
6872         Likewise.
6873         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
6874         Likewise.
6875         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
6876         Likewise.
6877         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
6878         Likewise.
6879         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
6880         Likewise.
6881         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
6882         Likewise.
6883         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
6884         Likewise.
6885         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
6886         Likewise.
6887         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
6888         Likewise.
6889         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
6890         Likewise.
6891         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
6892         Likewise.
6893         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
6894         Likewise.
6896 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
6898         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
6899         run'.
6901 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
6903         PR middle-end/94120
6904         * libgomp.oacc-c++/declare-pr94120.C: New.
6906 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
6908         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
6909         files.
6910         * configure: Regenerate.
6911         * testsuite/libgomp-site-extra.exp.in: New file.
6912         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
6913         variable.
6914         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
6915         variable.
6916         * testsuite/Makefile.in: Regenerate.
6918 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
6920         PR tree-optimization/89713
6921         PR c/94392
6922         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
6923         'bar.sync'.
6924         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6926 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
6928         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
6929         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
6931 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
6933         PR libgomp/81689
6934         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
6936 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
6938         PR libgomp/94251
6939         * target.c (gomp_load_image_to_device): Fix link
6940         variable handling.
6942 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
6944         PR c++/93931
6945         * testsuite/libgomp.c++/pr93931.C: New test.
6947 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
6949         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
6950         dg-allow-blank-lines-in-output.
6952 2020-03-18  Julian Brown <julian@codesourcery.com>
6953             Tobias Burnus  <tobias@codesourcery.com>
6955         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
6956         it work concurrently.
6958 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
6960         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
6961         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
6962         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
6964 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
6966         PR middle-end/93566
6967         * testsuite/libgomp.c/pr93566.c: New test.
6969 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
6971         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
6972         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
6973         integer(acc_device_property) for the type of the return value of
6974         acc_get_property.
6976 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
6978         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
6979         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
6980         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6981         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
6982         (acc_set_device_num): Fix Fortran argument name, use same name for C.
6983         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
6984         corrections; add note about the previous interface and named constant.
6985         (OpenACC library and environment variables): Fix two typos.
6986         * openacc.f90: Use for all procedures the argument names from the spec
6987         as for â€¦_h they are user visible.
6988         (openacc_kinds): Rename acc_device_property to
6989         acc_device_property_kinds and change value to int32 ; and update users.
6990         Re-add acc_device_property for for backward compatibility.
6991         (acc_get_property_string_h): Clean up as acc_device_property_kind
6992         changed.
6993         (acc_get_property_h): Likewise and return c_size_t instead of
6994         acc_device_property.
6995         (openacc): Also export acc_device_property_kinds.
6996         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
6997         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
6998         handling; check against /= 0 instead of == 1 to match C.
6999         * openacc_lib.h: Use for all procedures the argument names from the spec
7000         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7001         be active also for fixed-form souce form.
7002         (acc_device_current, acc_device_property_kind, acc_device_property,
7003         acc_property_memory, acc_property_free_memory, acc_property_name,
7004         acc_property_vendor, acc_property_driver): New named constants.
7005         (acc_get_property, acc_get_property_string): New generic interface.
7007 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7009         PR libgomp/93481
7010         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7011         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7012         optional.
7013         (gomp_target_task_fn): Assert "devicep->async_run_func".
7014         (clear_unsupported_flags): New function to remove unsupported flags
7015         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7016         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7017         * testsuite/libgomp.c/target-33.c:
7018         Remove xfail for offload_target_nvptx.
7019         * testsuite/libgomp.c/target-34.c: Likewise.
7021 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7023         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7024         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7025         * testsuite/libgomp.c/target-34.c: Likewise.
7026         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7027         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7029 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7031         * testsuite/libgomp.c/target-38.c: New test.
7033 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7035         PR libgomp/93515
7036         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7038 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7040         * testsuite/lib/libgomp.exp
7041         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7042         and not as 'source' argument to libgomp_target_compile.
7044 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7046         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7047         (gcn_gfx801_s): Remove.
7048         (isa_hsa_name): Remove gfx801.
7049         (isa_gcc_name): Remove gfx801/carizzo.
7050         (isa_code): Remove gfx801.
7052 2020-02-03  Julian Brown  <julian@codesourcery.com>
7053             Tobias Burnus  <tobias@codesourcery.com>
7055         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7056         and *_finalize variants; document acc_attach and acc_detach; update
7057         references from OpenACC 2.0 to 2.6.
7058         * openacc.f90 (openacc_version): Update to 201711.
7059         * openacc_lib.h (openacc_version): Update to 201711.
7060         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7061         openacc_version to 201711.
7062         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7064 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7066         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7067         and vgpr_count fields.
7068         (struct kernel_info): Add a field for a hsa_kernel_description.
7069         (run_kernel): Reduce the number of threads/workers if the requested
7070         number would require too many VGPRs.
7071         (init_basic_kernel_info): Initialize description field with
7072         the hsa_kernel_description entry for the kernel.
7074 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7076         PR bootstrap/93409
7077         * plugin/configfrag.ac (enable_offload_targets): Skip
7078         HSA and GCN plugin besides -m32 also for -mx32.
7079         * configure: Regenerate.
7081 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7083         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7085 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7087         * plugin-gcn.c (struct agent_info): Add fields "name" and
7088         "vendor_name" ...
7089         (GOMP_OFFLOAD_init_device): ... and init from here.
7090         (struct hsa_context_info): Add field "driver_version_s" ...
7091         (init_hsa_contest): ... and init from here.
7092         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7093         implementation.
7094         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7095         Enable test execution for amdgcn and host offloading targets.
7096         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7097         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7098         (expect_device_properties): Split function into ...
7099         (expect_device_string_properties): ... this new function ...
7100         (expect_device_memory): ... and this new function.
7101         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7102         Add test.
7104 2020-01-28  Julian Brown  <julian@codesourcery.com>
7106         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7107         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7108         component/non-component variable refs in a single directive.
7109         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7111 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7113         * configure.ac: Handle `--with-toolexeclibdir='.
7114         * Makefile.in: Regenerate.
7115         * aclocal.m4: Regenerate.
7116         * configure: Regenerate.
7117         * testsuite/Makefile.in: Regenerate.
7119 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7121         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7122         (expect_device_properties): Remove "expected_free_mem" argument,
7123         change "expected_total_mem" argument type to size_t;
7124         change types of acc_get_property results to size_t,
7125         adapt format strings.
7126         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7127         Use %zu instead of %zd to print size_t values.
7128         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7129         rename to ...
7130         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7131         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7132         rename to ...
7133         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7135 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
7137         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7138         the device id.
7140 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
7142         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7143         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7144         Adjust test dimensions for amdgcn.
7145         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7146         gang/worker/vector expectations dynamically.
7147         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7148         (main): Likewise.
7149         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7150         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7151         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7152         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7153         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7154         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7155         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7156         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7157         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7158         (acc_gang): Recognise acc_device_radeon.
7159         (acc_worker): Likewise.
7160         (acc_vector): Likewise.
7161         (main): Set expectations for amdgcn.
7162         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7163         (main): Adjust gang/worker/vector expectations dynamically.
7164         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7165         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7166         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7167         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7168         for amdgcn.
7170 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
7172         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7173         acc_device_radeon.
7174         (openacc): Likewise.
7175         * openacc.f90 (openacc_kinds): Likewise.
7176         (openacc): Likewise.
7177         * openacc.h (acc_device_t): Likewise.
7178         * openacc_lib.h: Likewise.
7179         * testsuite/lib/libgomp.exp
7180         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7181         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7182         (cb_compute_construct_end): Likewise.
7183         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7184         (cb_enqueue_launch_start): Likewise.
7185         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7186         (cb_enter_data_end): Likewise.
7187         (cb_exit_data_start): Likewise.
7188         (cb_exit_data_end): Likewise.
7189         (cb_compute_construct_end): Likewise.
7190         (cb_enqueue_launch_start): Likewise.
7191         (cb_enqueue_launch_end): Likewise.
7192         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7193         (main): Likewise.
7195 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7197         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
7198         to use this instead of 'enum gomp_device_property'.
7199         (GOMP_OFFLOAD_get_property): Rename to...
7200         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
7201         * libgomp.h (struct gomp_device_descr): Move
7202         'GOMP_OFFLOAD_openacc_get_property'...
7203         (struct acc_dispatch_t): ... here.  Adjust all users.
7204         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7206         * target.c (gomp_map_vars_internal)
7207         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7208         paths.
7210 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
7212         PR libgomp/93219
7213         * libgomp.h (gomp_print_string): Change return type from void to int.
7214         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
7215         not all characters have been written.
7217 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
7219         * libgomp.texi: Fix typos, use https.
7221 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
7223         * testsuite/libgomp.fortran/optional-map.f90: Add test for
7224         unallocated/disassociated actual arguments to nonallocatable/nonpointer
7225         dummy arguments; those are/shall be regarded as absent arguments.
7226         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7227         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7229 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
7231         Update copyright years.
7233         * libgomp.texi: Bump @copying's copyright year.
7235 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
7237         PR libgomp/93065
7238         * oacc-init.c (goacc_runtime_deinitialize): New function.
7240 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
7242         PR bootstrap/93074
7243         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7244         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
7246 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
7247             Frederik Harwath  <frederik@codesourcery.com>
7248             Thomas Schwinge  <tschwinge@codesourcery.com>
7250         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7251         * libgomp-plugin.h (gomp_device_property_value): New union.
7252         (gomp_device_property_value): New prototype.
7253         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7254         constant.
7255         (acc_device_property_t): New enum.
7256         (acc_get_property, acc_get_property_string): New prototypes.
7257         * oacc-init.c (acc_get_device_type): Also assert that result
7258         is not `acc_device_current'.
7259         (get_property_any, acc_get_property, acc_get_property_string):
7260         New functions.
7261         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7262         `acc_property_memory', `acc_property_free_memory',
7263         `acc_property_name', `acc_property_vendor' and
7264         `acc_property_driver' constants.  Add `acc_device_property' data
7265         type.
7266         (openacc_internal): Add `acc_get_property' and
7267         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
7268         `acc_get_property_string_h', `acc_get_property_l' and
7269         `acc_get_property_string_l'.
7270         * oacc-host.c (host_get_property): New function.
7271         (host_dispatch): Wire it.
7272         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7273         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7274         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7275         * libgomp.texi (OpenACC Runtime Library Routines): Add
7276         `acc_get_property'.
7277         (acc_get_property): New node.
7278         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7279         function (stub).
7280         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7281         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7282         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7283         calls.
7284         (GOMP_OFFLOAD_get_property): New function.
7285         (struct ptx_device): Add new field "name".
7286         (cuda_driver_version_s): Add new static variable ...
7287         (nvptx_init): ... and init from here.
7289         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7290         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7291         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7292         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7293         with test helper functions.
7295         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7297 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
7299         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7300         variable.
7302 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
7304         * target.c (gomp_map_vars_internal): Restore 'omp declare target
7305         link' handling.
7307 2019-12-19  Julian Brown  <julian@codesourcery.com>
7309         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7310         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7311         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7313 2019-12-19  Julian Brown  <julian@codesourcery.com>
7314             Cesar Philippidis  <cesar@codesourcery.com>
7316         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7317         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7318         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7319         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7320         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7321         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7322         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7323         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7324         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7325         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7326         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7327         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7328         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7330 2019-12-19  Julian Brown  <julian@codesourcery.com>
7332         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7333         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7334         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7335         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7336         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7337         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7338         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7339         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7340         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7341         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7342         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7343         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7345 2019-12-19  Julian Brown  <julian@codesourcery.com>
7347         * libgomp.h (struct target_var_desc): Add do_detach flag.
7348         * oacc-init.c (acc_shutdown_1): Free aux block if present.
7349         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7350         struct components.  Tidy up and add some new checks.
7351         (goacc_enter_data_internal): Update call to find_group_last.
7352         (goacc_exit_data_internal): Support detach operations and
7353         GOMP_MAP_STRUCT.
7354         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7355         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
7356         attach/detach in enter/exit data detection code.
7357         * target.c (gomp_map_vars_existing): Initialise do_detach field of
7358         tgt_var_desc.
7359         (gomp_map_vars_internal): Support attach.
7360         (gomp_unmap_vars_internal): Support detach.
7362 2019-12-19  Julian Brown  <julian@codesourcery.com>
7363             Thomas Schwinge  <thomas@codesourcery.com>
7365         * libgomp.h (struct splay_tree_aux): Add attach_count field.
7366         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7367         * libgomp.map (OACC_2.6): New section. Add acc_attach,
7368         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7369         acc_detach_finalize_async.
7370         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7371         acc_detach, acc_detach_async, acc_detach_finalize,
7372         acc_detach_finalize_async): New functions.
7373         * openacc.h (acc_attach, acc_attach_async, acc_detach,
7374         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7375         prototypes.
7376         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7377         (gomp_remove_var_internal): Free attachment counts if present.
7378         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7379         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7381 2019-12-19  Julian Brown  <julian@codesourcery.com>
7382             Cesar Philippidis  <cesar@codesourcery.com>
7384         * libgomp.h (gomp_map_val): Add prototype.
7385         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7386         open-coding device-address calculation.
7387         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7388         non-present case.
7390 2019-12-19  Julian Brown  <julian@codesourcery.com>
7392         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7393         field for virtual_refcount.
7394         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7395         (gomp_free_memmap): Remove prototype.
7396         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7397         instead of calling gomp_free_memmap.
7398         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7399         dynamic_refcount.
7400         (acc_unmap_data): Open code instead of forcing target_mem_desc's
7401         to_free field to NULL then calling gomp_unmap_vars.  Handle
7402         REFCOUNT_INFINITY on target blocks.
7403         (goacc_enter_data): Rename to...
7404         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
7405         handling for mapping groups.  Use virtual_refcount instead of
7406         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7407         map_map_vars_async call.  Re-do lookup for target pointer return value.
7408         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7409         renamed goacc_enter_datum function.
7410         (goacc_exit_data): Rename to...
7411         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
7412         (acc_delete, acc_delete_async, acc_delete_finalize,
7413         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7414         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7415         goacc_exit_datum function.
7416         (gomp_acc_remove_pointer, find_pointer): Remove functions.
7417         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7418         New functions.
7419         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7420         goacc_exit_data_internal helper functions.
7421         * target.c (gomp_map_vars_internal): Handle
7422         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
7423         semantics.
7424         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7425         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7426         virtual_refcount field instead of dynamic_refcount.
7427         (gomp_free_memmap): Remove function.
7428         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7429         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7430         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7432 2019-12-19  Julian Brown  <julian@codesourcery.com>
7433             Thomas Schwinge  <thomas@codesourcery.com>
7435         * libgomp.h (struct splay_tree_aux): New.
7436         (struct splay_tree_key_s): Replace link_key field with aux pointer.
7437         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7438         to aux struct.
7439         (gomp_remove_var_internal): Free aux block if present.
7440         (gomp_load_image_to_device): Zero-initialise aux field instead of
7441         link_key field.
7442         (omp_target_associate_pointer): Zero-initialise aux field.
7444 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
7446         PR middle-end/86416
7447         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7448         q or none.
7449         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7450         L or none.
7452 2019-12-19  Julian Brown  <julian@codesourcery.com>
7453             Maciej W. Rozycki  <macro@codesourcery.com>
7454             Tobias Burnus  <tobias@codesourcery.com>
7455             Thomas Schwinge  <thomas@codesourcery.com>
7457         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7458         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7459         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7460         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7461         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7462         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7463         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7464         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7465         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7467 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
7469         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7470         called...
7471         (goacc_insert_pointer): ... from here, "present" case.
7472         (goacc_insert_pointer): Inline function into...
7473         (GOACC_enter_exit_data): ... here, and simplify.
7475         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7476         called...
7477         (goacc_insert_pointer): ... from here, "not present" case.
7479         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
7480         all users.
7482         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7483         'goacc_enter_data', 'goacc_exit_data'.
7485         * oacc-mem.c (delete_copyout): Refactor into...
7486         (goacc_exit_data): ... this.  Adjust all users.
7488         * oacc-mem.c (present_create_copy): Refactor into...
7489         (goacc_enter_data): ... this.  Adjust all users.
7491         * target.c (gomp_unmap_vars_internal): Add a safeguard to
7492         'gomp_remove_var'.
7494         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7495         like 'GOMP_MAP_FROM'.
7497         PR libgomp/92726
7498         PR libgomp/92970
7499         PR libgomp/92984
7500         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7501         fails.
7502         (GOACC_enter_exit_data): Simplify accordingly.
7503         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7504         subsuming...
7505         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7506         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7507         file.
7508         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7509         subsuming...
7510         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7511         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7512         file.
7513         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7514         subsuming...
7515         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7517         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7518         'finalize' handling.
7520         PR libgomp/92848
7521         * oacc-mem.c (acc_map_data, present_create_copy)
7522         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7523         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7524         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7525         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7526         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7527         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7528         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7529         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7530         Remove "XFAIL"s.
7532         * target.c (gomp_unmap_tgt): Make it 'static'.
7533         * libgomp.h (gomp_unmap_tgt): Remove.
7535 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
7537         PR middle-end/86416
7538         * testsuite/libgomp.c/pr86416-1.c: New.
7539         * testsuite/libgomp.c/pr86416-2.c: New.
7541 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
7543         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7544         all symbols as public except for the 'use â€¦, only' imported symbol,
7545         which is private.
7546         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7547         all symbols from module openacc_kinds as PUBLIC
7548         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7549         fix comment typo.
7550         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7552 2019-12-13  Julian Brown  <julian@codesourcery.com>
7554         PR libgomp/92881
7556         * libgomp.h (gomp_remove_var_async): Add prototype.
7557         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7558         gomp_remove_var.
7559         * target.c (gomp_unref_tgt): Change return type to bool, indicating
7560         whether target_mem_desc was unmapped.
7561         (gomp_unref_tgt_void): New.
7562         (gomp_remove_var): Reimplement in terms of...
7563         (gomp_remove_var_internal): ...this new helper function.
7564         (gomp_remove_var_async): New, implemented using above helper function.
7565         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7566         gomp_unref_tgt.
7568 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
7570         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7571         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7572         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7573         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7574         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7575         Likewise.
7576         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7577         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7579 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
7581         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7582         as public except for the 'use â€¦, only' imported symbol, which is
7583         private.
7584         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7585         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7586         attributes for acc_copyout_finalize and acc_delete_finalize.
7588 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
7590         PR fortran/92899
7591         * testsuite/libgomp.fortran/atomic1.f90: New test.
7593 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7595         PR libgomp/92843
7596         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7597         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
7598         assertions.
7599         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7600         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7601         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7602         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7603         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7605         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7606         * oacc-mem.c: ... here.
7607         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7608         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7609         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7610         Remove.
7611         * libgomp_g.h: Update.
7613         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7614         * oacc-async.c: ... here.
7615         * oacc-int.h (goacc_wait): Declare.
7616         * libgomp_g.h: Update
7618         PR libgomp/92854
7619         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7620         New file.
7621         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7622         Likewise.
7623         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7624         Likewise.
7625         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7626         Likewise.
7627         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7628         Likewise.
7629         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7630         Likewise.
7632 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7633             Julian Brown  <julian@codesourcery.com>
7635         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7636         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7638 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7640         * omp_lib.h.in: Fix spelling of function declaration
7641         omp_get_cancell(l)ation.
7642         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7643         Fix typos.
7644         * env.c: Fix comment typos.
7645         * oacc-host.c: Likewise.
7646         * ordered.c: Likewise.
7647         * task.c: Likewise.
7648         * team.c: Likewise.
7649         * config/gcn/task.c: Likewise.
7650         * config/gcn/team.c: Likewise.
7651         * config/nvptx/task.c: Likewise.
7652         * config/nvptx/team.c: Likewise.
7653         * plugin/plugin-gcn.c: Likewise.
7654         * testsuite/libgomp.fortran/jacobi.f: Likewise.
7655         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7656         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
7658 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7660         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
7661         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
7662         unnecessary 'dg-additional-options "-w"'.
7664 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7665             Julian Brown  <julian@codesourcery.com>
7667         PR libgomp/92116
7668         PR libgomp/92877
7670         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
7671         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
7672         Adjust all users.
7673         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7674         Remove XFAIL.
7675         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7676         Likewise.
7677         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
7679 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
7681         PR libgomp/92503
7682         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
7683         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
7684         file.
7685         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
7686         Likewise.
7687         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
7688         Likewise.
7689         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
7690         Likewise.
7691         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
7692         Likewise.
7693         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
7694         Likewise.
7695         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7696         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7697         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7698         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7699         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7700         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7701         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7702         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7703         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
7704         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7706         PR libgomp/92840
7707         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
7708         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
7709         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
7710         New file.
7711         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
7712         Likewise.
7713         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
7714         Likewise.
7715         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
7716         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
7718         PR libgomp/92511
7719         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
7720         this file...
7721         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
7722         this file...
7723         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
7724         file...
7725         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
7726         file...
7727         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7728         ... with their content moved into, and extended in this new file.
7729         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
7730         New file.
7731         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
7732         Likewise.
7733         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
7734         Likewise.
7735         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
7736         Likewise.
7738         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
7740         PR libgomp/92854
7741         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
7743         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
7745         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
7747 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
7749         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
7750         unique.
7751         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
7752         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7753         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
7754         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
7755         Ditto.
7756         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
7757         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
7759 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
7761         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
7763 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
7764             Kwok Cheung Yeung <kcy@codesourcery.com>
7766         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
7767         if input it a NULL pointer.
7768         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
7769         diagnostic of NULL pointer.
7770         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
7771         * testsuite/libgomp.fortran/optional-map.f90: New.
7772         * testsuite/libgomp.fortran/use_device_addr-1.f90
7773         (test_dummy_opt_callee_1_absent): New.
7774         (test_dummy_opt_call_1): Call it.
7775         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
7776         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
7777         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
7778         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
7779         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
7780         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
7781         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
7782         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
7783         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
7784         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
7785         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
7786         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
7787         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
7788         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
7789         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
7790         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
7792 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
7794         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
7795         expect dg-output of 'Error termination.' for GCN.
7796         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7797         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7799 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
7801         PR fortran/92756
7802         * testsuite/libgomp.fortran/teams1.f90: New test.
7803         * testsuite/libgomp.fortran/teams2.f90: New test.
7805 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
7807         * oacc-init.c (acc_known_device_type): Add function.
7808         (unknown_device_type_error): Add function.
7809         (name_of_acc_device_t): Change to call unknown_device_type_error
7810         on unknown type.
7811         (resolve_device): Use acc_known_device_type.
7812         (acc_init): Fail if acc_device_t argument is not valid.
7813         (acc_shutdown): Likewise.
7814         (acc_get_num_devices): Likewise.
7815         (acc_set_device_type): Likewise.
7816         (acc_get_device_num): Likewise.
7817         (acc_set_device_num): Likewise.
7818         (acc_on_device): Add comment that argument validity is not checked.
7820 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
7822         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
7823         Recognize amdgcn.
7824         (check_effective_target_openacc_amdgcn_accel_present): New proc.
7825         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
7826         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
7827         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7828         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7830 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7832         PR libgomp/91938
7833         * configure.tgt: Avoid IE tls on *-*-musl*.
7835 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
7837         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
7838         adding a common-block test case.
7840 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
7842         PR c++/60228
7843         * testsuite/libgomp.c++/udr-20.C: New test.
7844         * testsuite/libgomp.c++/udr-21.C: New test.
7846 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
7848         * testsuite/lib/libgomp.exp
7849         (check_effective_target_offload_target_nvptx): New proc.
7850         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
7851         'dg-skip-if'.
7852         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
7853         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
7854         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
7856 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7858         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
7859         * testsuite/libgomp.c/pr39591-2.c: Likewise.
7860         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7861         * testsuite/libgomp.c/private-1.c: Likewise.
7862         * testsuite/libgomp.c/task-1.c: Likewise.
7863         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
7865 2019-11-20  Julian Brown  <julian@codesourcery.com>
7867         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
7868         aq->mutex here.
7869         (queue_push_launch): Lock aq->mutex before calling
7870         wait_for_queue_nonfull.
7871         (queue_push_callback): Likewise.
7872         (queue_push_asyncwait): Likewise.
7873         (queue_push_placeholder): Likewise.
7875 2019-11-20  Julian Brown  <julian@codesourcery.com>
7877         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
7878         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
7879         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
7880         return code.
7882 2019-11-20  Julian Brown  <julian@codesourcery.com>
7884         PR libgomp/92511
7886         * oacc-mem.c (present_create_copy): Fix device pointer return value in
7887         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
7888         in non-present/create case.
7889         (delete_copyout): Change error condition to fail only on copies outside
7890         of mapped block.  Adjust error message accordingly.
7891         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
7892         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
7893         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
7894         message.
7895         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7896         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
7897         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7899 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
7901         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
7902         libatomic in build-tree testing.
7904 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
7906         * testsuite/Makefile.in: Regenerate.
7908 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
7910         * testsuite/libgomp.c/target-print-1.c: New file.
7911         * testsuite/libgomp.fortran/target-print-1.f90: New file.
7912         * testsuite/libgomp.oacc-c/print-1.c: New file.
7913         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
7915 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7916             Kwok Cheung Yeung  <kcy@codesourcery.com>
7917             Julian Brown  <julian@codesourcery.com>
7918             Tom de Vries  <tom@codesourcery.com>
7920         * plugin/Makefrag.am: Add amdgcn plugin support.
7921         * plugin/configfrag.ac: Likewise.
7922         * plugin/plugin-gcn.c: New file.
7923         * configure: Regenerate.
7924         * Makefile.in: Regenerate.
7925         * testsuite/Makefile.in: Regenerate.
7927 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7929         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
7930         and use team_malloc variants.
7931         (gomp_gcn_exit_kernel): Use team_free.
7932         * libgomp.h (TEAM_ARENA_SIZE): Define.
7933         (TEAM_ARENA_START): Define.
7934         (TEAM_ARENA_FREE): Define.
7935         (TEAM_ARENA_END): Define.
7936         (team_malloc): New function.
7937         (team_malloc_cleared): New function.
7938         (team_free): New function.
7939         * team.c (gomp_new_team): Initialize and use team_malloc.
7940         (free_team): Use team_free.
7941         (gomp_free_thread): Use team_free.
7942         (gomp_pause_host): Use team_free.
7943         * work.c (gomp_init_work_share): Use team_malloc.
7944         (gomp_fini_work_share): Use team_free.
7946 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7947             Kwok Cheung Yeung  <kcy@codesourcery.com>
7948             Julian Brown  <julian@codesourcery.com>
7949             Tom de Vries  <tom@codesourcery.com>
7951         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
7952         * Makefile.in: Regenerate.
7953         * config.h.in (PLUGIN_GCN): Add new undef.
7954         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
7955         * config/gcn/affinity-fmt.c: New file.
7956         * config/gcn/bar.c: New file.
7957         * config/gcn/bar.h: New file.
7958         * config/gcn/doacross.h: New file.
7959         * config/gcn/icv-device.c: New file.
7960         * config/gcn/oacc-target.c: New file.
7961         * config/gcn/simple-bar.h: New file.
7962         * config/gcn/target.c: New file.
7963         * config/gcn/task.c: New file.
7964         * config/gcn/team.c: New file.
7965         * config/gcn/time.c: New file.
7966         * configure.ac: Add amdgcn*-*-*.
7967         * configure: Regenerate.
7968         * configure.tgt: Add amdgcn*-*-*.
7969         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
7970         * libgomp.h (gcn_thrs): Add amdgcn variant.
7971         (set_gcn_thrs): Likewise.
7972         (gomp_thread): Likewise.
7973         * oacc-int.h (goacc_thread): Likewise.
7974         * oacc-target.c: New file.
7975         * openacc.f90 (acc_device_gcn): New parameter.
7976         * openacc.h (acc_device_t): Add acc_device_gcn.
7977         * team.c (gomp_free_pool_helper): Add amdgcn support.
7979 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7980             Julian Brown  <julian@codesourcery.com>
7982         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
7983         parameter.
7984         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
7985         queue constructor.
7986         * oacc-host.c (host_openacc_async_construct): Add device parameter.
7987         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
7988         device parameter.
7990 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
7992         * configure.tgt (nvptx*-*-*): Add "accel" directory.
7993         * config/nvptx/libgomp-plugin.c: Move ...
7994         * config/accel/libgomp-plugin.c: ... to here.
7995         * config/nvptx/lock.c: Move ...
7996         * config/accel/lock.c: ... to here.
7997         * config/nvptx/mutex.c: Move ...
7998         * config/accel/mutex.c: ... to here.
7999         * config/nvptx/mutex.h: Move ...
8000         * config/accel/mutex.h: ... to here.
8001         * config/nvptx/oacc-async.c: Move ...
8002         * config/accel/oacc-async.c: ... to here.
8003         * config/nvptx/oacc-cuda.c: Move ...
8004         * config/accel/oacc-cuda.c: ... to here.
8005         * config/nvptx/oacc-host.c: Move ...
8006         * config/accel/oacc-host.c: ... to here.
8007         * config/nvptx/oacc-init.c: Move ...
8008         * config/accel/oacc-init.c: ... to here.
8009         * config/nvptx/oacc-mem.c: Move ...
8010         * config/accel/oacc-mem.c: ... to here.
8011         * config/nvptx/oacc-plugin.c: Move ...
8012         * config/accel/oacc-plugin.c: ... to here.
8013         * config/nvptx/omp-lock.h: Move ...
8014         * config/accel/omp-lock.h: ... to here.
8015         * config/nvptx/openacc.f90: Move ...
8016         * config/accel/openacc.f90: ... to here.
8017         * config/nvptx/pool.h: Move ...
8018         * config/accel/pool.h: ... to here.
8019         * config/nvptx/proc.c: Move ...
8020         * config/accel/proc.c: ... to here.
8021         * config/nvptx/ptrlock.c: Move ...
8022         * config/accel/ptrlock.c: ... to here.
8023         * config/nvptx/ptrlock.h: Move ...
8024         * config/accel/ptrlock.h: ... to here.
8025         * config/nvptx/sem.c: Move ...
8026         * config/accel/sem.c: ... to here.
8027         * config/nvptx/sem.h: Move ...
8028         * config/accel/sem.h: ... to here.
8029         * config/nvptx/thread-stacksize.h: Move ...
8030         * config/accel/thread-stacksize.h: ... to here.
8032 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8033             Tobias Burnus  <tobias@codesourcery.com>
8034             Frederik Harwath  <frederik@codesourcery.com>
8035             Thomas Schwinge  <thomas@codesourcery.com>
8037         libgomp/
8038         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8039         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8040         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8042 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8043             Kwok Cheung Yeung  <kcy@codesourcery.com>
8045         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8046         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8048 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8050         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8052         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8053         run'.
8054         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8055         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8057 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8059         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8060         Add expected warnings about missing reduction clauses.
8061         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8062         Likewise.
8063         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8064         Likewise.
8065         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8066         Likewise.
8068 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8070         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8071         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8072         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8073         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8074         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8075         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8077 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8079         PR fortran/92305
8080         * testsuite/libgomp.fortran/allocatable2.f90: Use
8081         unique numbers with 'stop'.
8082         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8083         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8084         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8085         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8086         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8088 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8090         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8091         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8092         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8093         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8094         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8095         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8097 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8099         * testsuite/libgomp.fortran/target9.f90: New.
8101 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8103         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8104         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8105         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8106         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8107         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8108         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8109         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8110         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8111         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8112         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8113         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8114         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8115         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8116         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8117         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8118         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8119         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8120         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8121         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8122         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8123         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8124         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8125         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8126         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8127         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8128         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8129         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8130         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8131         * testsuite/libgomp.fortran/character1.f90: Ditto.
8132         * testsuite/libgomp.fortran/character2.f90: Ditto.
8133         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8134         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8135         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8136         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8137         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8138         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8139         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8140         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8141         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8142         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8143         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8144         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8145         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8146         * testsuite/libgomp.fortran/do1.f90: Ditto.
8147         * testsuite/libgomp.fortran/do2.f90: Ditto.
8148         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8149         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8150         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8151         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8152         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8153         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8154         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8155         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8156         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8157         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8158         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8159         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8160         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8161         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8162         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8163         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8164         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8165         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8166         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8167         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8168         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8169         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8170         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8171         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8172         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8173         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8174         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8175         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8176         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8177         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8178         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8179         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8180         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8181         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8182         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8183         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8184         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8185         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8186         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8187         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8188         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8189         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8190         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8191         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8192         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8193         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8194         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8195         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8196         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8197         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8198         * testsuite/libgomp.fortran/lib1.f90: Ditto.
8199         * testsuite/libgomp.fortran/lib4.f90: Ditto.
8200         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8201         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8202         * testsuite/libgomp.fortran/nested1.f90: Ditto.
8203         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8204         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8205         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8206         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8207         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8208         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8209         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8210         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8211         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8212         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8213         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8214         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8215         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8216         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8217         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8218         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8219         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8220         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8221         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8222         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8223         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8224         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8225         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8226         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8227         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8228         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8229         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8230         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8231         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8232         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8233         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8234         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8235         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8236         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8237         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8238         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8239         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8240         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8241         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8242         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8243         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8244         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8245         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8246         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8247         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8248         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8249         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8250         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8251         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8252         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8253         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8254         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8255         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8256         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8257         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8258         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8259         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8260         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8261         * testsuite/libgomp.fortran/reference1.f90: Ditto.
8262         * testsuite/libgomp.fortran/reference2.f90: Ditto.
8263         * testsuite/libgomp.fortran/retval1.f90: Ditto.
8264         * testsuite/libgomp.fortran/retval2.f90: Ditto.
8265         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8266         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8267         * testsuite/libgomp.fortran/simd1.f90: Ditto.
8268         * testsuite/libgomp.fortran/simd2.f90: Ditto.
8269         * testsuite/libgomp.fortran/simd3.f90: Ditto.
8270         * testsuite/libgomp.fortran/simd4.f90: Ditto.
8271         * testsuite/libgomp.fortran/simd5.f90: Ditto.
8272         * testsuite/libgomp.fortran/simd6.f90: Ditto.
8273         * testsuite/libgomp.fortran/simd7.f90: Ditto.
8274         * testsuite/libgomp.fortran/stack.f90: Ditto.
8275         * testsuite/libgomp.fortran/strassen.f90: Ditto.
8276         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8277         * testsuite/libgomp.fortran/tabs2.f: Ditto.
8278         * testsuite/libgomp.fortran/target1.f90: Ditto.
8279         * testsuite/libgomp.fortran/target2.f90: Ditto.
8280         * testsuite/libgomp.fortran/target3.f90: Ditto.
8281         * testsuite/libgomp.fortran/target4.f90: Ditto.
8282         * testsuite/libgomp.fortran/target5.f90: Ditto.
8283         * testsuite/libgomp.fortran/target6.f90: Ditto.
8284         * testsuite/libgomp.fortran/target7.f90: Ditto.
8285         * testsuite/libgomp.fortran/target8.f90: Ditto.
8286         * testsuite/libgomp.fortran/task1.f90: Ditto.
8287         * testsuite/libgomp.fortran/task2.f90: Ditto.
8288         * testsuite/libgomp.fortran/task3.f90: Ditto.
8289         * testsuite/libgomp.fortran/task4.f90: Ditto.
8290         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8291         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8292         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8293         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8294         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8295         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8296         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8297         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8298         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8299         * testsuite/libgomp.fortran/udr1.f90: Ditto.
8300         * testsuite/libgomp.fortran/udr10.f90: Ditto.
8301         * testsuite/libgomp.fortran/udr11.f90: Ditto.
8302         * testsuite/libgomp.fortran/udr12.f90: Ditto.
8303         * testsuite/libgomp.fortran/udr13.f90: Ditto.
8304         * testsuite/libgomp.fortran/udr14.f90: Ditto.
8305         * testsuite/libgomp.fortran/udr15.f90: Ditto.
8306         * testsuite/libgomp.fortran/udr2.f90: Ditto.
8307         * testsuite/libgomp.fortran/udr3.f90: Ditto.
8308         * testsuite/libgomp.fortran/udr4.f90: Ditto.
8309         * testsuite/libgomp.fortran/udr5.f90: Ditto.
8310         * testsuite/libgomp.fortran/udr6.f90: Ditto.
8311         * testsuite/libgomp.fortran/udr7.f90: Ditto.
8312         * testsuite/libgomp.fortran/udr8.f90: Ditto.
8313         * testsuite/libgomp.fortran/udr9.f90: Ditto.
8314         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8315         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8316         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8317         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8318         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8319         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8320         * testsuite/libgomp.fortran/vla7.f90: Ditto.
8321         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8322         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8323         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8325 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8327         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8328         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8329         Ditto; add 'dg-do run' for torture testing.
8330         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
8331         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8332         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8333         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8334         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8335         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8336         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8337         * testsuite/libgomp.fortran/task2.f90: Ditto.
8338         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8339         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8340         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8341         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8342         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8343         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8345 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
8347         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8348         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8349         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8350         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8351         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8352         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8353         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8354         Use 'stop' not abort().
8355         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8356         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8357         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8358         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8359         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8360         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8361         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8362         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8363         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8364         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8365         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8366         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8367         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8368         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8369         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8370         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8371         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8372         Ditto.
8373         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8374         Ditto.
8375         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8376         Ditto.
8377         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8378         Ditto.
8379         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8380         Ditto.
8381         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8382         Ditto.
8383         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8384         Ditto.
8385         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8386         Ditto.
8387         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8388         Ditto.
8389         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8390         Ditto.
8391         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8392         Ditto.
8393         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8394         Ditto.
8395         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8396         Ditto.
8397         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8398         Ditto.
8399         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8400         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8401         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8402         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8403         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8404         Likewise and also add 'dg-do run'.
8405         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8406         Ditto.
8408 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8409             Tobias Burnus  <tobias@codesourcery.com>
8411         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8412         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8413         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8415 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
8417         PR libgomp/92081
8418         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8419         than 0.
8421 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8423         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8424         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8426 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
8428         PR middle-end/92036
8429         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8430         file.
8432 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
8434         PR testsuite/91884
8435         * testsuite/libgomp.fortran/fortran.exp: Conditionally
8436         add -lquadmath.
8437         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8439 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
8441         PR libgomp/92028
8442         * target.c (gomp_map_vars_internal): Readd the previous
8443         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8444         though do that just in the !not_found_cnt case.
8446 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
8448         * gfortran.dg/gomp/target-simd.f90: New.
8450 2019-10-02  Julian Brown  <julian@codesourcery.com>
8451             Cesar Philippidis  <cesar@codesourcery.com>
8453         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8454         * target.c (FIELD_TGT_EMPTY): Define.
8455         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
8456         as switch instead of list of ifs.
8457         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8459 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
8461         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8462         include. Replace alloca () with __builtin_alloca ().
8463         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8465 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
8467         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8468         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8469         * oacc-parallel.c: Don't include "libgomp_g.h".
8470         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8471         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8472         * aclocal.m4: Regenerated.
8473         * config.h.in: Regenerated.
8474         * configure: Regenerated.
8475         * Makefile.in: Regenerated.
8477 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
8479         * libgomp_g.h: Include stdint.h instead of gstdint.h.
8481 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
8483         * configure: Regenerate.
8485 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
8487         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8488         string is initialized.
8490 2019-09-06  Florian Weimer  <fweimer@redhat.com>
8492         * configure: Regenerate.
8494 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
8496         PR other/79543
8497         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8498         scanning to conform to the GNU Coding Standards.
8499         * configure: Regenerate.
8501 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
8503         PR libgomp/91530
8504         * testsuite/libgomp.c/scan-21.c: New test.
8505         * testsuite/libgomp.c/scan-22.c: New test.
8507 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
8509         PR libgomp/91530
8510         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8511         targets.
8512         * testsuite/libgomp.c/scan-12.c: Likewise.
8513         * testsuite/libgomp.c/scan-13.c: Likewise.
8514         * testsuite/libgomp.c/scan-14.c: Likewise.
8515         * testsuite/libgomp.c/scan-15.c: Likewise.
8516         * testsuite/libgomp.c/scan-16.c: Likewise.
8517         * testsuite/libgomp.c/scan-17.c: Likewise.
8518         * testsuite/libgomp.c/scan-18.c: Likewise.
8519         * testsuite/libgomp.c/scan-19.c: Likewise.
8520         * testsuite/libgomp.c/scan-20.c: Likewise.
8521         * testsuite/libgomp.c++/scan-9.C: Likewise.
8522         * testsuite/libgomp.c++/scan-10.C: Likewise.
8523         * testsuite/libgomp.c++/scan-11.C: Likewise.
8524         * testsuite/libgomp.c++/scan-12.C: Likewise.
8525         * testsuite/libgomp.c++/scan-14.C: Likewise.
8526         * testsuite/libgomp.c++/scan-15.C: Likewise.
8527         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
8528         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8529         * testsuite/libgomp.c++/scan-16.C: Likewise.
8531 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
8533         PR fortran/91473
8534         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8535         -std=legacy so invalid code in the test case is accepted.
8537 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8539         PR fortran/91422
8540         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8541         dimension.
8543 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8545         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8546         perform the lookup in the first loop only if !not_found_cnt, otherwise
8547         perform lookups for it in the second loop guarded with
8548         if (not_found_cnt || has_firstprivate).
8549         * testsuite/libgomp.c/target-37.c: New test.
8550         * testsuite/libgomp.c++/target-22.C: New test.
8552 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8554         * testsuite/libgomp.c/target-18.c (struct S): New type.
8555         (foo): Use use_device_addr clause instead of use_device_ptr clause
8556         where required by OpenMP 5.0, add further tests for both use_device_ptr
8557         and use_device_addr clauses.
8558         * testsuite/libgomp.c++/target-9.C (struct S): New type.
8559         (foo): Use use_device_addr clause instead of use_device_ptr clause
8560         where required by OpenMP 5.0, add further tests for both use_device_ptr
8561         and use_device_addr clauses.  Add t and u arguments.
8562         (main): Adjust caller.
8564 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8566         * testsuite/libgomp.c++/loop-13.C: New test.
8567         * testsuite/libgomp.c++/loop-14.C: New test.
8568         * testsuite/libgomp.c++/loop-15.C: New test.
8570 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8572         PR middle-end/91301
8573         * testsuite/libgomp.c++/for-27.C: New test.
8575 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
8577         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8578         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8580 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8582         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8584 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
8586         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8587         * testsuite/libgomp.c++/scan-16.C: Likewise.
8589 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
8591         * testsuite/libgomp.c/scan-19.c: New test.
8592         * testsuite/libgomp.c/scan-20.c: New test.
8594         * testsuite/libgomp.c/scan-11.c: New test.
8595         * testsuite/libgomp.c/scan-12.c: New test.
8596         * testsuite/libgomp.c/scan-13.c: New test.
8597         * testsuite/libgomp.c/scan-14.c: New test.
8598         * testsuite/libgomp.c/scan-15.c: New test.
8599         * testsuite/libgomp.c/scan-16.c: New test.
8600         * testsuite/libgomp.c/scan-17.c: New test.
8601         * testsuite/libgomp.c/scan-18.c: New test.
8602         * testsuite/libgomp.c++/scan-9.C: New test.
8603         * testsuite/libgomp.c++/scan-10.C: New test.
8604         * testsuite/libgomp.c++/scan-11.C: New test.
8605         * testsuite/libgomp.c++/scan-12.C: New test.
8606         * testsuite/libgomp.c++/scan-13.C: New test.
8607         * testsuite/libgomp.c++/scan-14.C: New test.
8608         * testsuite/libgomp.c++/scan-15.C: New test.
8609         * testsuite/libgomp.c++/scan-16.C: New test.
8611 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
8613         * testsuite/libgomp.c/scan-9.c: New test.
8614         * testsuite/libgomp.c/scan-10.c: New test.
8616 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
8618         * testsuite/libgomp.c++/scan-1.C: New test.
8619         * testsuite/libgomp.c++/scan-2.C: New test.
8620         * testsuite/libgomp.c++/scan-3.C: New test.
8621         * testsuite/libgomp.c++/scan-4.C: New test.
8622         * testsuite/libgomp.c++/scan-5.C: New test.
8623         * testsuite/libgomp.c++/scan-6.C: New test.
8624         * testsuite/libgomp.c++/scan-7.C: New test.
8625         * testsuite/libgomp.c++/scan-8.C: New test.
8626         * testsuite/libgomp.c/scan-1.c: New test.
8627         * testsuite/libgomp.c/scan-2.c: New test.
8628         * testsuite/libgomp.c/scan-3.c: New test.
8629         * testsuite/libgomp.c/scan-4.c: New test.
8630         * testsuite/libgomp.c/scan-5.c: New test.
8631         * testsuite/libgomp.c/scan-6.c: New test.
8632         * testsuite/libgomp.c/scan-7.c: New test.
8633         * testsuite/libgomp.c/scan-8.c: New test.
8635 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8637         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8638         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8639         Likewise.
8641         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8642         check.
8644 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
8646         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8647         file.
8649 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8651         PR fortran/90743
8652         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8653         case.
8654         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8655         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
8656         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
8657         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
8659         PR testsuite/90861
8660         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
8662         PR middle-end/90862
8663         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
8665 2019-06-16  Tom de Vries  <tdevries@suse.de>
8667         PR tree-optimization/89376
8668         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
8670 2019-06-15  Tom de Vries  <tdevries@suse.de>
8672         PR tree-optimization/89713
8673         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
8674         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
8676 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
8678         PR middle-end/90779
8679         * testsuite/libgomp.c/pr90779.c: New test.
8680         * testsuite/libgomp.fortran/pr90779.f90: New test.
8682 2019-06-15  Tom de Vries  <tdevries@suse.de>
8684         PR tree-optimization/90009
8685         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
8687 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
8689         PR tree-optimization/89713
8690         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
8692 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
8694         PR target/90811
8695         * testsuite/libgomp.c/pr90811.c: New test.
8697 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
8699         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
8700         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
8702 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
8704         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
8705         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
8706         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
8707         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
8709 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8711         * configure.ac: Call AX_COUNT_CPUS.
8712         Substitute CPU_COUNT.
8713         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
8714         count fallback.
8715         * aclocal.m4: Regenerate.
8716         * configure: Regenerate.
8717         * Makefile.in, testsuite/Makefile.in: Regenerate.
8719 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
8721         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
8722         to ...
8723         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
8724         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
8725         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
8727 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
8729         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
8731         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
8733         PR libgomp/90641
8734         * work.c (gomp_init_work_share): Instead of aligning final ordered
8735         value to multiples of long long alignment, align to that the
8736         first part (ordered team ids) and if inline_ordered_team_ids
8737         is not on a long long alignment boundary within the structure,
8738         use __alignof__ (long long) - 1 pad size always.
8739         * loop.c (GOMP_loop_start): Fix *mem computation if
8740         inline_ordered_team_ids is not aligned on long long alignment boundary
8741         within the structure.
8742         * loop-ull.c (GOMP_loop_ull_start): Likewise.
8743         * sections.c (GOMP_sections2_start): Likewise.
8745 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
8747         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
8748         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
8750         PR libgomp/90585
8751         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
8752         HAVE_INTTYPES_H is defined.
8753         (print_uint64_t): New typedef.
8754         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
8755         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
8756         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
8757         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
8758         before casting to void *.
8759         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
8760         * oacc-mem.c: Don't include config.h nor stdint.h.
8761         * target.c: Don't include config.h.
8762         * oacc-cuda.c: Likewise.
8763         * oacc-host.c: Don't include stdint.h.
8765 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
8767         PR libgomp/90527
8768         * alloc.c (_GNU_SOURCE): Define.
8770 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
8772         * acc_prof.h: New file.
8773         * oacc-profiling.c: Likewise.
8774         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
8775         Add these, respectively.
8776         * Makefile.in: Regenerate.
8777         * env.c (initialize_env): Call goacc_profiling_initialize.
8778         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
8779         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
8780         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
8781         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
8782         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
8783         acc_prof_register, acc_prof_unregister, and acc_register_library.
8784         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
8785         GOMP_PLUGIN_goacc_thread.
8786         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
8787         prof_callbacks_enabled members.
8788         (goacc_prof_enabled, goacc_profiling_initialize)
8789         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
8790         (goacc_profiling_dispatch): Declare.
8791         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
8792         (GOACC_PROFILING_SETUP_P): Define.
8793         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
8794         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
8795         OpenACC Profiling Interface.
8796         * oacc-cuda.c (acc_get_current_cuda_device)
8797         (acc_get_current_cuda_context, acc_get_cuda_stream)
8798         (acc_set_cuda_stream): Likewise.
8799         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
8800         (acc_init, acc_set_device_type, acc_get_device_type)
8801         (acc_get_device_num, goacc_lazy_initialize): Likewise.
8802         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
8803         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
8804         (acc_unmap_data, present_create_copy, delete_copyout)
8805         (update_dev_host): Likewise.
8806         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
8807         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
8808         Likewise.
8809         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
8810         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
8811         Likewise.
8812         * libgomp.texi: Update.
8813         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
8814         file.
8815         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
8816         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
8817         Likewise.
8818         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
8819         Likewise.
8820         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
8821         Likewise.
8822         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
8823         Likewise.
8825 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
8827         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
8828         (struct goacc_asyncqueue_list): Likewise.
8829         (goacc_aq): Likewise.
8830         (goacc_aq_list): Likewise.
8831         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8832         (GOMP_OFFLOAD_openacc_async_test): Remove.
8833         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8834         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8835         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8836         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8837         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8838         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8839         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
8840         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
8841         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
8842         (GOMP_OFFLOAD_openacc_async_exec): Declare.
8843         (GOMP_OFFLOAD_openacc_async_construct): Declare.
8844         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
8845         (GOMP_OFFLOAD_openacc_async_test): Declare.
8846         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
8847         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
8848         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
8849         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
8850         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
8852         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
8853         (gomp_acc_insert_pointer): Adjust declaration.
8854         (gomp_copy_host2dev): New declaration.
8855         (gomp_copy_dev2host): Likewise.
8856         (gomp_map_vars_async): Likewise.
8857         (gomp_unmap_tgt): Likewise.
8858         (gomp_unmap_vars_async): Likewise.
8859         (gomp_fini_device): Likewise.
8861         * oacc-async.c (get_goacc_thread): New function.
8862         (get_goacc_thread_device): New function.
8863         (lookup_goacc_asyncqueue): New function.
8864         (get_goacc_asyncqueue): New function.
8865         (acc_async_test): Adjust code to use new async design.
8866         (acc_async_test_all): Likewise.
8867         (acc_wait): Likewise.
8868         (acc_wait_async): Likewise.
8869         (acc_wait_all): Likewise.
8870         (acc_wait_all_async): Likewise.
8871         (goacc_async_free): New function.
8872         (goacc_init_asyncqueues): Likewise.
8873         (goacc_fini_asyncqueues): Likewise.
8874         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
8875         design.
8876         (acc_set_cuda_stream): Likewise.
8877         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
8878         (host_openacc_register_async_cleanup): Remove.
8879         (host_openacc_async_exec): New function.
8880         (host_openacc_async_test): Adjust parameters.
8881         (host_openacc_async_test_all): Remove.
8882         (host_openacc_async_wait): Remove.
8883         (host_openacc_async_wait_async): Remove.
8884         (host_openacc_async_wait_all): Remove.
8885         (host_openacc_async_wait_all_async): Remove.
8886         (host_openacc_async_set_async): Remove.
8887         (host_openacc_async_synchronize): New function.
8888         (host_openacc_async_serialize): New function.
8889         (host_openacc_async_host2dev): New function.
8890         (host_openacc_async_dev2host): New function.
8891         (host_openacc_async_queue_callback): New function.
8892         (host_openacc_async_construct): New function.
8893         (host_openacc_async_destruct): New function.
8894         (struct gomp_device_descr host_dispatch): Remove initialization of old
8895         interface, add initialization of new async sub-struct.
8896         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
8897         (goacc_attach_host_thread_to_device): Remove old async code usage.
8898         * oacc-int.h (goacc_init_asyncqueues): New declaration.
8899         (goacc_fini_asyncqueues): Likewise.
8900         (goacc_async_copyout_unmap_vars): Likewise.
8901         (goacc_async_free): Likewise.
8902         (get_goacc_asyncqueue): Likewise.
8903         (lookup_goacc_asyncqueue): Likewise.
8904         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
8905         design.
8906         (present_create_copy): Adjust code to use new async design.
8907         (delete_copyout): Likewise.
8908         (update_dev_host): Likewise.
8909         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
8910         async design.
8911         (gomp_acc_remove_pointer): Adjust code to use new async design.
8912         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
8913         design.
8914         (GOACC_enter_exit_data): Likewise.
8915         (goacc_wait): Likewise.
8916         (GOACC_update): Likewise.
8917         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
8918         when called, warn as obsolete in comment.
8919         * target.c (goacc_device_copy_async): New function.
8920         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
8921         add goacc_device_copy_async case.
8922         (gomp_copy_dev2host): Likewise.
8923         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
8924         (gomp_map_pointer): Likewise.
8925         (gomp_map_fields_existing): Likewise.
8926         (gomp_map_vars_internal): New always_inline function, renamed from
8927         gomp_map_vars.
8928         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
8929         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
8930         passing goacc_asyncqueue argument.
8931         (gomp_unmap_tgt): Remove static, add attribute_hidden.
8932         (gomp_unref_tgt): New function.
8933         (gomp_unmap_vars_internal): New always_inline function, renamed from
8934         gomp_unmap_vars.
8935         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
8936         (gomp_unmap_vars_async): Implement by calling
8937         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
8938         (gomp_fini_device): New function.
8939         (gomp_exit_data): Adjust gomp_copy_dev2host call.
8940         (gomp_load_plugin_for_device): Remove old interface, adjust to load
8941         new async interface.
8942         (gomp_target_fini): Adjust code to call gomp_fini_device.
8944         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
8945         (struct ptx_stream): Remove.
8946         (struct nvptx_thread): Remove current_stream field.
8947         (cuda_map_create): Remove.
8948         (cuda_map_destroy): Remove.
8949         (map_init): Remove.
8950         (map_fini): Remove.
8951         (map_pop): Remove.
8952         (map_push): Remove.
8953         (struct goacc_asyncqueue): Define.
8954         (struct nvptx_callback): Define.
8955         (struct ptx_free_block): Define.
8956         (struct ptx_device): Remove null_stream, active_streams, async_streams,
8957         stream_lock, and next fields.
8958         (enum ptx_event_type): Remove.
8959         (struct ptx_event): Remove.
8960         (ptx_event_lock): Remove.
8961         (ptx_events): Remove.
8962         (init_streams_for_device): Remove.
8963         (fini_streams_for_device): Remove.
8964         (select_stream_for_async): Remove.
8965         (nvptx_init): Remove ptx_events and ptx_event_lock references.
8966         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
8967         case.
8968         (nvptx_open_device): Add free_blocks initialization, remove
8969         init_streams_for_device call.
8970         (nvptx_close_device): Remove fini_streams_for_device call, add
8971         free_blocks destruct code.
8972         (event_gc): Remove.
8973         (event_add): Remove.
8974         (nvptx_exec): Adjust parameters and code.
8975         (nvptx_free): Likewise.
8976         (nvptx_host2dev): Remove.
8977         (nvptx_dev2host): Remove.
8978         (nvptx_set_async): Remove.
8979         (nvptx_async_test): Remove.
8980         (nvptx_async_test_all): Remove.
8981         (nvptx_wait): Remove.
8982         (nvptx_wait_async): Remove.
8983         (nvptx_wait_all): Remove.
8984         (nvptx_wait_all_async): Remove.
8985         (nvptx_get_cuda_stream): Remove.
8986         (nvptx_set_cuda_stream): Remove.
8987         (GOMP_OFFLOAD_alloc): Adjust code.
8988         (GOMP_OFFLOAD_free): Likewise.
8989         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
8990         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
8991         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
8992         (GOMP_OFFLOAD_openacc_async_wait): Remove.
8993         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
8994         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
8995         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
8996         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
8997         (cuda_free_argmem): New function.
8998         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
8999         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9000         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9001         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9002         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9003         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9004         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9005         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9006         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9007         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9008         (cuda_callback_wrapper): New function.
9009         (cuda_memcpy_sanity_check): New function.
9010         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9011         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9012         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9013         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9015 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9017         PR target/87835
9018         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9020 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9022         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9024 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9026         * team.c (gomp_team_start): Initialize pool->threads[0].
9028 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9030         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9031         "-foffload=$offload_target".
9032         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9033         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9034         * testsuite/lib/libgomp.exp
9035         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9036         as (conceptually) merged into
9037         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9038         users.
9040         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9041         * testsuite/libgomp-test-support.exp.in: Adjust.
9042         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9043         openacc_device_types_s.
9044         (offload_target_to_openacc_device_type): New proc.
9045         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9046         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9047         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9048         * Makefile.in: Regenerate.
9049         * configure: Likewise.
9050         * testsuite/Makefile.in: Likewise.
9052         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9053         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9054         instead of OFFLOAD_TARGETS.
9055         * target.c (gomp_target_init): Adjust.
9056         * testsuite/libgomp-test-support.exp.in: Likewise.
9057         * testsuite/lib/libgomp.exp: Likewise.  Populate
9058         openacc_device_types_s instead of offload_targets_s_openacc.
9059         (check_effective_target_openacc_nvidia_accel_selected)
9060         (check_effective_target_openacc_host_selected): Adjust.
9061         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9062         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9063         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9064         * Makefile.in: Regenerate.
9065         * config.h.in: Likewise.
9066         * configure: Likewise.
9067         * testsuite/Makefile.in: Likewise.
9069         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9070         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9071         "offloading: supported, but hardware not accessible".
9072         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9073         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9075 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9077         PR c/87924
9078         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9079         goacc_wait().
9080         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9081         and related adjustment.
9083 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9085         PR c++/88988
9086         * testsuite/libgomp.c++/pr88988.C: New test.
9088 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9090         PR middle-end/89002
9091         * testsuite/libgomp.c/pr89002.c: New test.
9093 2019-01-28  Richard Biener  <rguenther@suse.de>
9095         PR testsuite/89064
9096         PR tree-optimization/86865
9097         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9099 2019-01-24  Tom de Vries  <tdevries@suse.de>
9101         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9102         once instantiated_devices drops to 0.
9104 2019-01-23  Tom de Vries  <tdevries@suse.de>
9106         PR target/PR88946
9107         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9108         cuMemFree.
9109         (nvptx_exec): Don't call map_push if mapnum == 0.
9110         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9112 2019-01-23  Tom de Vries  <tdevries@suse.de>
9114         PR target/88941
9115         PR target/88939
9116         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9117         (map_fini): Remove "assert (!s->map->active)".
9118         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9120 2019-01-23  Tom de Vries  <tdevries@suse.de>
9122         PR target/87835
9123         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9124         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9126 2019-01-15  Tom de Vries  <tdevries@suse.de>
9128         PR target/80547
9129         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9130         New test.
9132 2019-01-12  Tom de Vries  <tdevries@suse.de>
9134         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9135         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9136         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9137         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9139 2019-01-12  Tom de Vries  <tdevries@suse.de>
9141         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9143 2019-01-12  Tom de Vries  <tdevries@suse.de>
9145         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9146         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9147         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9149 2019-01-12  Tom de Vries  <tdevries@suse.de>
9151         PR target/85486
9152         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9153         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9155 2019-01-12  Tom de Vries  <tdevries@suse.de>
9157         PR target/85381
9158         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9159         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9161 2019-01-12  Tom de Vries  <tdevries@suse.de>
9163         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9164         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9165         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9167 2019-01-12  Tom de Vries  <tdevries@suse.de>
9169         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9170         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9171         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9173 2019-01-12  Tom de Vries  <tdevries@suse.de>
9175         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9176         resources diagnostic.
9178 2019-01-12  Tom de Vries  <tdevries@suse.de>
9180         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9181         vector length to be 128.
9182         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9183         length 2097152 to be reduced to 1024 instead of 32.
9185 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
9186             James Norris  <jnorris@codesourcery.com>
9188         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9189         Library Routines", and "Environment Variables".
9191 2019-01-11  Tom de Vries  <tdevries@suse.de>
9193         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9194         num_workers 16.
9196 2019-01-11  Tom de Vries  <tdevries@suse.de>
9198         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9199         -foffload=-w.
9200         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9201         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9202         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9203         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9205 2019-01-11  Tom de Vries  <tdevries@suse.de>
9207         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9208         test.
9210 2019-01-10  Nathan Sidwell  <nathan@acm.org>
9211             Julian Brown  <julian@codesourcery.com>
9213         PR lto/71959
9214         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9215         * testsuite/libgomp.oacc-c++/pr71959.C: New.
9217 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9219         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9220         and paste code.
9222 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9224         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
9225         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9226         write.
9228 2019-01-09  Tom de Vries  <tdevries@suse.de>
9230         PR target/88756
9231         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9232         #define instead of "const int".
9233         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9234         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9235         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9236         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9238 2019-01-09  Tom de Vries  <tdevries@suse.de>
9240         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9241         one worker.
9243 2019-01-07  Tom de Vries  <tdevries@suse.de>
9245         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9246         GOMP_OPENACC_DIM argument.
9248 2019-01-03  Tom de Vries  <tdevries@suse.de>
9250         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9251         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9253 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9255         Update copyright years.
9257 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9259         * libgomp.texi: Bump @copying's copyright year.
9261 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9263         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9264         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9265         (GOACC_declare): Redefine the "device" argument to "flags".
9267 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9268             Cesar Philippidis  <cesar@codesourcery.com>
9270         * target.c (struct gomp_coalesce_chunk): New structure.
9271         (struct gomp_coalesce_buf): Update the chunks member to use that
9272         type.  Adjust all users.
9274 2018-12-19  Tom de Vries  <tdevries@suse.de>
9276         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9277         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9278         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9280 2018-12-19  Tom de Vries  <tdevries@suse.de>
9282         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9283         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9284         gcc/testsuite/gcc.dg/goacc.
9285         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9287 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9288             Chung-Lin Tang  <cltang@codesourcery.com>
9290         * oacc-mem.c (acc_present_or_create): Remove definition and change
9291         to alias of acc_create.
9292         (acc_present_or_copyin): Remove definition and change to alias of
9293         acc_copyin.
9294         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9295         of acc_present_or_create.
9296         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9297         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9298         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9299         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9300         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9301         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9302         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9303         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9304         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9305         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9306         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9307         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9308         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9309         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9310         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9311         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9313 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9315         PR libgomp/88495
9316         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9317         "identical parameters".
9318         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9319         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9321         PR libgomp/88484
9322         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9323         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9325         PR libgomp/88407
9326         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9327         (nvptx_wait_async): Unseen async-argument is a no-op.
9328         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9329         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9330         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9331         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9332         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9333         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9334         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
9335         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9336         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
9338         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9339         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9341 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
9343         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9344         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9345         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9347 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9349         PR libgomp/88370
9350         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9351         (acc_set_cuda_stream): Clarify.
9352         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9353         "async_valid_p".
9354         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9355         acc_async_sync".
9356         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9357         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9358         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9359         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9361 2018-12-14  Tom de Vries  <tdevries@suse.de>
9363         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9364         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9365         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9366         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9367         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9369 2018-12-13  Tom de Vries  <tdevries@suse.de>
9371         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9372         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9373         * fortran.c (omp_display_affinity_): ... here.
9374         * libgomp.h (gomp_print_string): Declare.
9375         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
9376         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9377         write.
9379 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
9381         PR libgomp/88460
9382         * testsuite/libgomp.c++/for-24.C (results): Include it in
9383         omp declare target region.
9384         (main): Use map (always, tofrom: results) instead of
9385         map (tofrom: results).
9387 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
9389         PR fortran/88463
9390         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9391         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9393         * testsuite/libgomp.c-c++-common/for-16.c: New test.
9395 2018-12-12  Andreas Schwab  <schwab@suse.de>
9397         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9398         clobbered.
9400 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
9402         PR fortran/88411
9403         * testsuite/libgomp.fortran/async_io_8.f90: New test.
9405 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9406             Jakub Jelinek  <jakub@redhat.com>
9408         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9409         devicep->host2dev_func.
9411 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
9413         PR libgomp/87995
9414         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9415         tls_runtime effective target.
9416         (t): New threadprivate variable.
9417         (main): Set t in threads which execute iterations of the worksharing
9418         loop.  Propagate that to the task after the loop and don't abort
9419         if the current taskgroup hasn't been cancelled.
9421 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
9423         * testsuite/libgomp.c/task-reduction-3.c: New test.
9425         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9427 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
9429         PR libgomp/88288
9430         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9431         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9433 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
9435         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9437 2018-10-19  Richard Biener  <rguenther@suse.de>
9439         PR tree-optimization/88182
9440         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9442 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
9444         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9445         (RUNTEST): Don't define.
9446         (RUNTESTDEFAULTFLAGS): Add.
9447         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9448         (distclean-am): Depend on distclean-DEJAGNU.
9449         (check-am): If -j% option is present in MFLAGS and if
9450         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9451         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9452         * testsuite/Makefile.in: Regenerated.
9454 2018-11-26  Richard Biener  <rguenther@suse.de>
9456         PR tree-optimization/88182
9457         * testsuite/libgomp.c++/pr88182.C: New testcase.
9459 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
9461         PR bootstrap/88106
9462         * config/mingw32/affinity-fmt.c: New file.
9464 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
9466         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9467         (gomp_display_affinity): Use __builtin_choose_expr to handle
9468         properly handle argument having integral, or pointer or some other
9469         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
9470         with uint64_t type instead of %llx and unsigned long long.
9472         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9473         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9475 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9477         * affinity.c: Include <string.h>, <stdio.h>.
9478         (gomp_display_affinity_place): Remove cpusetp.
9479         * teams.c: Include <limits.h>.
9481 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
9483         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9484         in_reduction clause for s[0].
9486         * affinity.c (gomp_display_affinity_place): New function.
9487         * affinity-fmt.c: New file.
9488         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9489         * config/linux/affinity.c (gomp_display_affinity_place): New function.
9490         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9491         Move these functions to ...
9492         * config/nvptx/teams.c: ... here.  New file.
9493         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9494         New functions.
9495         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9496         functions.
9497         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9498         and _aligned_malloc.
9499         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9500         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9501         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9502         gomp_affinity_format_len): New variables.
9503         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9504         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
9505         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9506         modifiers.  Display (non-default) chunk sizes.  Print
9507         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9508         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
9509         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9510         * fortran.c: Include stdio.h and string.h.
9511         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9512         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9513         (omp_set_affinity_format_, omp_get_affinity_format_,
9514         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9515         omp_pause_resource_all_): New functions.
9516         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9517         switch.
9518         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9519         functions to ...
9520         * teams.c: ... here.  New file.
9521         * libgomp_g.h: Include gstdint.h.
9522         (GOMP_loop_nonmonotonic_runtime_start,
9523         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9524         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9525         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9526         GOMP_parallel_loop_nonmonotonic_runtime,
9527         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9528         GOMP_loop_ull_nonmonotonic_runtime_start,
9529         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9530         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9531         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9532         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9533         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9534         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9535         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9536         GOMP_teams_reg): Declare.
9537         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9538         gomp_aligned_alloc uses fallback implementation.
9539         (gomp_aligned_alloc, gomp_aligned_free): Declare.
9540         (enum gomp_schedule_type): Add GFS_MONOTONIC.
9541         (struct gomp_doacross_work_share): Add extra field.
9542         (struct gomp_work_share): Add task_reductions field.
9543         (struct gomp_taskgroup): Add workshare and reductions fields.
9544         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9545         (gomp_thread_handle): New typedef.
9546         (gomp_display_affinity_place, gomp_set_affinity_format,
9547         gomp_display_string, gomp_display_affinity,
9548         gomp_display_affinity_thread): Declare.
9549         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9550         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9551         gomp_workshare_task_reduction_register): Declare.
9552         (gomp_team_start): Add taskgroup argument.
9553         (gomp_pause_host): Declare.
9554         (gomp_init_work_share, gomp_work_share_start): Change bool argument
9555         to size_t.
9556         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9557         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9558         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9559         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9560         GOMP_loop_ull_doacross_start,
9561         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9562         GOMP_loop_maybe_nonmonotonic_runtime_next,
9563         GOMP_loop_maybe_nonmonotonic_runtime_start,
9564         GOMP_loop_nonmonotonic_runtime_next,
9565         GOMP_loop_nonmonotonic_runtime_start,
9566         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9567         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9568         GOMP_loop_ull_nonmonotonic_runtime_next,
9569         GOMP_loop_ull_nonmonotonic_runtime_start,
9570         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9571         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9572         GOMP_taskgroup_reduction_register,
9573         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9574         GOMP_teams_reg and GOMP_taskwait_depend.
9575         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9576         omp_{capture,display}_affinity{,_}, and
9577         omp_[gs]et_affinity_format{,_}.
9578         * loop.c: Include string.h.
9579         (GOMP_loop_runtime_next): Add ialias.
9580         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9581         (gomp_loop_static_start, gomp_loop_dynamic_start,
9582         gomp_loop_guided_start, gomp_loop_ordered_static_start,
9583         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9584         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9585         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9586         or gomp_doacross_init callers.
9587         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9588         GOMP_loop_doacross_start): New functions.
9589         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9590         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9591         Mask off GFS_MONOTONIC bit.
9592         (GOMP_loop_maybe_nonmonotonic_runtime_next,
9593         GOMP_loop_maybe_nonmonotonic_runtime_start,
9594         GOMP_loop_nonmonotonic_runtime_next,
9595         GOMP_loop_nonmonotonic_runtime_start,
9596         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9597         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9598         functions.
9599         (gomp_parallel_loop_start): Pass NULL as taskgroup to
9600         gomp_team_start.
9601         * loop_ull.c: Include string.h.
9602         (GOMP_loop_ull_runtime_next): Add ialias.
9603         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9604         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9605         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9606         gomp_loop_ull_ordered_dynamic_start,
9607         gomp_loop_ull_ordered_guided_start,
9608         gomp_loop_ull_doacross_static_start,
9609         gomp_loop_ull_doacross_dynamic_start,
9610         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9611         and gomp_doacross_ull_init callers.
9612         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9613         GOMP_loop_ull_doacross_start): New functions.
9614         (GOMP_loop_ull_runtime_start,
9615         GOMP_loop_ull_ordered_runtime_start,
9616         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9617         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9618         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9619         GOMP_loop_ull_nonmonotonic_runtime_next,
9620         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9621         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9622         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9623         (omp_pause_resource_t, omp_depend_t): New typedefs.
9624         (enum omp_lock_hint_t): Renamed to ...
9625         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
9626         enumerators using numbers and omp_lock_hint_* as their aliases.
9627         (omp_lock_hint_t): New typedef.  Rename to ...
9628         (omp_sync_hint_t): ... this.
9629         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9630         omp_sync_hint_t instead of omp_lock_hint_t.
9631         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9632         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9633         Declare.
9634         (omp_target_is_present, omp_target_disassociate_ptr):
9635         Change first argument from void * to const void *.
9636         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9637         from void * to const void *.
9638         (omp_target_associate_ptr): Change first and second arguments from
9639         void * to const void *.
9640         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9641         omp_pause_hard): New parameters.
9642         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9643         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9644         New interfaces.
9645         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9646         omp_pause_hard): New parameters.
9647         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9648         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9649         New externals.
9650         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9651         EXTRA argument.  If not needed to prepare array, if extra is 0,
9652         clear ws->doacross, otherwise allocate just doacross structure and
9653         extra payload.  If array is needed, allocate also extra payload.
9654         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9655         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
9656         doacross == NULL.
9657         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
9658         gomp_team_start.
9659         (GOMP_parallel): Likewise.  Formatting fix.
9660         (GOMP_parallel_reductions): New function.
9661         (GOMP_cancellation_point): If taskgroup has workshare
9662         flag set, check cancelled of prev taskgroup if any.
9663         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
9664         on prev taskgroup if any.
9665         * sections.c: Include string.h.
9666         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9667         (GOMP_sections_start): Adjust gomp_work_share_start caller.
9668         (GOMP_sections2_start): New function.
9669         (GOMP_parallel_sections_start, GOMP_parallel_sections):
9670         Pass NULL as taskgroup to gomp_team_start.
9671         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
9672         gomp_work_share_start callers.
9673         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
9674         If taskgroup has workshare flag set, check cancelled on prev
9675         taskgroup if any.  Guard all cancellation tests with
9676         gomp_cancel_var test.
9677         (omp_target_is_present, omp_target_disassociate_ptr):
9678         Change ptr argument from void * to const void *.
9679         (omp_target_memcpy): Change src argument from void * to const void *.
9680         (omp_target_memcpy_rect): Likewise.
9681         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
9682         instead of char * where needed.
9683         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
9684         from void * to const void *.
9685         (omp_pause_resource, omp_pause_resource_all): New functions.
9686         * task.c (gomp_task_handle_depend): Handle new depend array format
9687         in addition to the old.  Handle mutexinoutset kinds the same as
9688         inout for now, handle unspecified kinds.
9689         (gomp_create_target_task): If taskgroup has workshare flag set, check
9690         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9691         gomp_cancel_var test.  Handle new depend array format count in
9692         addition to the old.
9693         (GOMP_task): Likewise.  Adjust function comment.
9694         (gomp_task_run_pre): If taskgroup has workshare flag set, check
9695         cancelled on prev taskgroup if any.  Guard all cancellation tests with
9696         gomp_cancel_var test.
9697         (GOMP_taskwait_depend): New function.
9698         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
9699         format in addition to the old.  Handle mutexinoutset kinds the same as
9700         inout for now, handle unspecified kinds.  Fix a function comment typo.
9701         (gomp_taskgroup_init): New function.
9702         (GOMP_taskgroup_start): Use it.
9703         (gomp_reduction_register, gomp_create_artificial_team,
9704         GOMP_taskgroup_reduction_register,
9705         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9706         gomp_parallel_reduction_register,
9707         gomp_workshare_task_reduction_register,
9708         gomp_workshare_taskgroup_start,
9709         GOMP_workshare_task_reduction_unregister): New functions.
9710         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
9711         check cancelled on prev taskgroup if any.  Guard all cancellation
9712         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
9713         by calling GOMP_taskgroup_reduction_register.
9714         * team.c (gomp_thread_attr): Remove comment.
9715         (struct gomp_thread_start_data): Add handle field.
9716         (gomp_thread_start): Call pthread_detach.
9717         (gomp_new_team): Adjust gomp_init_work_share caller.
9718         (gomp_free_pool_helper): Call pthread_detach.
9719         (gomp_team_start): Add taskgroup argument, initialize implicit
9720         tasks' taskgroup field to that.  Don't call
9721         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
9722         (gomp_team_end): Determine nesting by thr->ts.level != 0
9723         rather than thr->ts.team != NULL.
9724         (gomp_pause_pool_helper, gomp_pause_host): New functions.
9725         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
9726         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
9727         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
9728         if more than 1 allocate also extra payload at the end of array.  Never
9729         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
9730         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
9731         return true instead of ws.
9732         * Makefile.in: Regenerated.
9733         * configure: Regenerated.
9734         * config.h.in: Regenerated.
9735         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
9736         in some cases.
9737         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
9738         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
9739         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
9740         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
9741         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
9742         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
9743         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
9744         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
9745         * testsuite/libgomp.c-c++-common/for-10.c: New test.
9746         * testsuite/libgomp.c-c++-common/for-11.c: New test.
9747         * testsuite/libgomp.c-c++-common/for-12.c: New test.
9748         * testsuite/libgomp.c-c++-common/for-13.c: New test.
9749         * testsuite/libgomp.c-c++-common/for-14.c: New test.
9750         * testsuite/libgomp.c-c++-common/for-15.c: New test.
9751         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
9752         define a different N(test), don't define N(f0) to N(f14), but instead
9753         define N(f20) to N(f34) using != comparisons.
9754         * testsuite/libgomp.c-c++-common/for-7.c: New test.
9755         * testsuite/libgomp.c-c++-common/for-8.c: New test.
9756         * testsuite/libgomp.c-c++-common/for-9.c: New test.
9757         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
9758         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
9759         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
9760         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
9761         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
9762         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
9763         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
9764         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
9765         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
9766         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
9767         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
9768         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
9769         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
9770         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
9771         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
9772         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
9773         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
9774         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
9775         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
9776         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
9777         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
9778         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
9779         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
9780         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
9781         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
9782         * testsuite/libgomp.c++/depend-1.C: New test.
9783         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
9784         * testsuite/libgomp.c++/depobj-1.C: New test.
9785         * testsuite/libgomp.c++/for-16.C: New test.
9786         * testsuite/libgomp.c++/for-21.C: New test.
9787         * testsuite/libgomp.c++/for-22.C: New test.
9788         * testsuite/libgomp.c++/for-23.C: New test.
9789         * testsuite/libgomp.c++/for-24.C: New test.
9790         * testsuite/libgomp.c++/for-25.C: New test.
9791         * testsuite/libgomp.c++/for-26.C: New test.
9792         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
9793         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
9794         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
9795         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
9796         * testsuite/libgomp.c++/task-reduction-10.C: New test.
9797         * testsuite/libgomp.c++/task-reduction-11.C: New test.
9798         * testsuite/libgomp.c++/task-reduction-12.C: New test.
9799         * testsuite/libgomp.c++/task-reduction-13.C: New test.
9800         * testsuite/libgomp.c++/task-reduction-14.C: New test.
9801         * testsuite/libgomp.c++/task-reduction-15.C: New test.
9802         * testsuite/libgomp.c++/task-reduction-16.C: New test.
9803         * testsuite/libgomp.c++/task-reduction-17.C: New test.
9804         * testsuite/libgomp.c++/task-reduction-18.C: New test.
9805         * testsuite/libgomp.c++/task-reduction-19.C: New test.
9806         * testsuite/libgomp.c/task-reduction-1.c: New test.
9807         * testsuite/libgomp.c++/task-reduction-1.C: New test.
9808         * testsuite/libgomp.c/task-reduction-2.c: New test.
9809         * testsuite/libgomp.c++/task-reduction-2.C: New test.
9810         * testsuite/libgomp.c++/task-reduction-3.C: New test.
9811         * testsuite/libgomp.c++/task-reduction-4.C: New test.
9812         * testsuite/libgomp.c++/task-reduction-5.C: New test.
9813         * testsuite/libgomp.c++/task-reduction-6.C: New test.
9814         * testsuite/libgomp.c++/task-reduction-7.C: New test.
9815         * testsuite/libgomp.c++/task-reduction-8.C: New test.
9816         * testsuite/libgomp.c++/task-reduction-9.C: New test.
9817         * testsuite/libgomp.c/teams-1.c: New test.
9818         * testsuite/libgomp.c/teams-2.c: New test.
9819         * testsuite/libgomp.c/thread-limit-4.c: New test.
9820         * testsuite/libgomp.c/thread-limit-5.c: New test.
9821         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
9823 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
9825         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
9826         acc_memcpy_to/from_device functions, now with async parameter.
9827         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
9828         (acc_memcpy_from_device): Likewise.
9829         (acc_memcpy_to_device_async): New API function.
9830         (acc_memcpy_from_device_async): Likewise.
9831         (present_create_copy): Add async parameter and async setting/unsetting.
9832         (acc_create): Adjust present_create_copy call.
9833         (acc_copyin): Likewise.
9834         (acc_present_or_create): Likewise.
9835         (acc_present_or_copyin): Likewise.
9836         (acc_create_async): New API function.
9837         (acc_copyin_async): New API function.
9838         (delete_copyout): Add async parameter and async setting/unsetting.
9839         (acc_delete): Adjust delete_copyout call.
9840         (acc_copyout): Likewise.
9841         (acc_delete_async): New API function.
9842         (acc_copyout_async): Likewise.
9843         (update_dev_host): Add async parameter and async setting/unsetting.
9844         (acc_update_device): Adjust update_dev_host call.
9845         (acc_update_self): Likewise.
9846         (acc_update_device_async): New API function.
9847         (acc_update_self_async): Likewise.
9848         * openacc.h (acc_copyin_async): Declare new API function.
9849         (acc_create_async): Likewise.
9850         (acc_copyout_async): Likewise.
9851         (acc_delete_async): Likewise.
9852         (acc_update_device_async): Likewise.
9853         (acc_update_self_async): Likewise.
9854         (acc_memcpy_to_device_async): Likewise.
9855         (acc_memcpy_from_device_async): Likewise.
9856         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
9857         (acc_copyin_async_64_h): New subroutine.
9858         (acc_copyin_async_array_h): New subroutine.
9859         (acc_create_async_32_h): New subroutine.
9860         (acc_create_async_64_h): New subroutine.
9861         (acc_create_async_array_h): New subroutine.
9862         (acc_copyout_async_32_h): New subroutine.
9863         (acc_copyout_async_64_h): New subroutine.
9864         (acc_copyout_async_array_h): New subroutine.
9865         (acc_delete_async_32_h): New subroutine.
9866         (acc_delete_async_64_h): New subroutine.
9867         (acc_delete_async_array_h): New subroutine.
9868         (acc_update_device_async_32_h): New subroutine.
9869         (acc_update_device_async_64_h): New subroutine.
9870         (acc_update_device_async_array_h): New subroutine.
9871         (acc_update_self_async_32_h): New subroutine.
9872         (acc_update_self_async_64_h): New subroutine.
9873         (acc_update_self_async_array_h): New subroutine.
9874         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
9875         (acc_copyin_async_64_h): New subroutine.
9876         (acc_copyin_async_array_h): New subroutine.
9877         (acc_create_async_32_h): New subroutine.
9878         (acc_create_async_64_h): New subroutine.
9879         (acc_create_async_array_h): New subroutine.
9880         (acc_copyout_async_32_h): New subroutine.
9881         (acc_copyout_async_64_h): New subroutine.
9882         (acc_copyout_async_array_h): New subroutine.
9883         (acc_delete_async_32_h): New subroutine.
9884         (acc_delete_async_64_h): New subroutine.
9885         (acc_delete_async_array_h): New subroutine.
9886         (acc_update_device_async_32_h): New subroutine.
9887         (acc_update_device_async_64_h): New subroutine.
9888         (acc_update_device_async_array_h): New subroutine.
9889         (acc_update_self_async_32_h): New subroutine.
9890         (acc_update_self_async_64_h): New subroutine.
9891         (acc_update_self_async_array_h): New subroutine.
9892         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
9893         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
9894         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
9895         acc_memcpy_to_device_async*, acc_update_device_async*, and
9896         acc_update_self_async* entries.
9897         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
9898         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
9899         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
9901 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
9903         PR bootstrap/82856
9904         * Makefile.am: Include multilib.am
9905         (AUTOMAKE_OPTIONS): Add info-in-builddir.
9906         (CLEANFILES): Remove libgomp.info.
9907         * configure.ac: Remove AC_PREREQ.
9908         * testsuite/Makefile.am (RUNTEST): Remove quotes.
9909         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
9910         Regenerate.
9912 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
9913             Julian Brown  <julian@codesourcery.com>
9915         * testsuite/libgomp.oacc-c++/this.C: New.
9917 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
9919         * plugin/plugin-nvptx.c (struct cuda_map): New.
9920         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
9921         h_tail with (cuda_map *) map.
9922         (cuda_map_create): New function.
9923         (cuda_map_destroy): New function.
9924         (map_init): Update to use a linked list of cuda_map objects.
9925         (map_fini): Likewise.
9926         (map_pop): Likewise.
9927         (map_push): Likewise.  Return CUdeviceptr instead of void.
9928         (init_streams_for_device): Remove stales references to ptx_stream
9929         members.
9930         (select_stream_for_async): Likewise.
9931         (nvptx_exec): Update call to map_init.
9933 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
9934             Julian Brown  <julian@codesourcery.com>
9936         PR middle-end/86336
9937         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
9939 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
9940         Thomas Koenig <tkoenig@gcc.gnu.org>
9942         PR fortran/25829
9943         * testsuite/libgomp.fortran/async_io_1.f90: New test.
9944         * testsuite/libgomp.fortran/async_io_2.f90: New test.
9945         * testsuite/libgomp.fortran/async_io_3.f90: New test.
9946         * testsuite/libgomp.fortran/async_io_4.f90: New test.
9947         * testsuite/libgomp.fortran/async_io_5.f90: New test.
9948         * testsuite/libgomp.fortran/async_io_6.f90: New test.
9949         * testsuite/libgomp.fortran/async_io_7.f90: New test.
9951 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
9952             Tom de Vries  <tdevries@suse.de>
9954         PR target/85590
9955         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
9956         (cuOccupancyMaxPotentialBlockSize): Declare.
9957         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
9958         CUDA_ONE_CALL_MAYBE_NULL.
9959         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
9960         CUoccupancyB2DSize and declare
9961         cuOccupancyMaxPotentialBlockSize.
9962         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
9963         default num_gangs and num_workers when the driver supports it.
9965 2018-08-08  Tom de Vries  <tdevries@suse.de>
9967         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
9968         CUDA_ONE_CALL_MAYBE_NULL.
9969         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
9970         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
9971         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
9972         are not found.
9974 2018-08-08  Tom de Vries  <tdevries@suse.de>
9976         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
9977         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
9978         present.
9980 2018-08-08  Tom de Vries  <tdevries@suse.de>
9982         * plugin/plugin-nvptx.c
9983         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
9984         (nvptx_open_device): Use
9985         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
9987 2018-08-08  Tom de Vries  <tdevries@suse.de>
9989         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
9990         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
9992 2018-08-07  Tom de Vries  <tdevries@suse.de>
9994         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
9995         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
9996         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
9997         corresponding call in CUDA_ONE_CALL.  Add def/undef of
9998         CUDA_ONE_CALL_MAYBE_NULL.
9999         (CUDA_CALL_EXISTS): Define.
10001 2018-08-07  Tom de Vries  <tdevries@suse.de>
10003         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10004         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10005         corresponding undefs right after.
10007 2018-08-04  Tom de Vries  <tdevries@suse.de>
10009         * plugin/configfrag.ac: For --without-cuda-driver, set
10010         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10011         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10012         * configure: Regenerate.
10014 2018-08-02  Tom de Vries  <tdevries@suse.de>
10016         PR target/86660
10017         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10018         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10019         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10020         Same.
10021         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10022         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10023         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10025 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10026             Thomas Schwinge <thomas@codesourcery.com>
10028         * config/nvptx/oacc-parallel.c: Truncate.
10030 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10031             James Norris <jnorris@codesourcery.com>
10033         * plugin/plugin-nvptx.c (struct map): Removed.
10034         (map_init, map_pop): Remove use of struct map.
10035         (map_push): Likewise and change argument list.
10036         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10038 2018-08-01  Tom de Vries  <tdevries@suse.de>
10040         * plugin/cuda-lib.def: New file.  Factor out of ...
10041         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10042         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10043         using CUDA_CALLS.
10045 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10047         Revert 'AsyncI/O patch committed'.
10048         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10049                 Thomas Koenig <tkoenig@gcc.gnu.org>
10051         PR fortran/25829
10052         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10053         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10054         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10055         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10056         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10057         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10058         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10060 2018-07-30  Tom de Vries  <tdevries@suse.de>
10062         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10063         (nvptx_exec): Ensure worker and vector default dims don't exceed
10064         targ_fn->max_threads_per_block.
10066 2018-07-30  Tom de Vries  <tdevries@suse.de>
10068         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10069         (nvptx_open_device): Init default_dims for device.
10070         (nvptx_exec): Use default_dims from device.
10072 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10074         PR testsuite/86660
10075         * testsuite/libgomp.c++/for-15.C (results): Include it in
10076         omp declare target region.
10077         (main): Use map (always, tofrom: results) instead of
10078         map (tofrom: results).
10080         PR middle-end/86660
10081         * testsuite/libgomp.c/pr86660.c: New test.
10083 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10084             Tom de Vries  <tdevries@suse.de>
10086         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10087         sufficient resources to launch a kernel, and give a hint on how to fix
10088         it.
10090 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10091             Tom de Vries  <tdevries@suse.de>
10093         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10094         max_threads_per_block and max_threads_per_multiprocessor fields.
10095         (nvptx_open_device): Initialize new fields.
10096         (nvptx_exec): Use num_sms, and new fields.
10098 2018-07-26  Tom de Vries  <tdevries@suse.de>
10100         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10101         to correct locations.  Remove xfail.
10103 2018-07-26  Tom de Vries  <tdevries@suse.de>
10105         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10106         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10107         xfail.
10109 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10110         Thomas Koenig <tkoenig@gcc.gnu.org>
10112         PR fortran/25829
10113         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10114         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10115         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10116         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10117         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10118         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10119         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10121 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10123         PR middle-end/86542
10124         * testsuite/libgomp.c++/pr86542.C: New test.
10126         PR middle-end/86539
10127         * testsuite/libgomp.c++/pr86539.C: New test.
10129 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
10131         PR c++/86443
10132         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10133         (results): Make sure the variable is not inside declare target region.
10134         (qux): Remove unused function.
10136 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
10138         PR c++/86443
10139         * testsuite/libgomp.c++/for-15.C: New test.
10141 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
10143         PR c++/86291
10144         * testsuite/libgomp.c++/pr86291.C: New test.
10146 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
10148         * libgomp.texi (Top): Move www.openmp.org to https.
10149         (Enabling OpenMP): Ditto.
10150         (omp_get_active_level): Ditto.
10151         (omp_get_ancestor_thread_num): Ditto.
10152         (omp_get_cancellation): Ditto.
10153         (omp_get_default_device): Ditto.
10154         (omp_get_dynamic): Ditto.
10155         (omp_get_level): Ditto.
10156         (omp_get_max_active_levels): Ditto.
10157         (omp_get_max_task_priority): Ditto.
10158         (omp_get_max_threads): Ditto.
10159         (omp_get_nested): Ditto.
10160         (omp_get_num_devices): Ditto.
10161         (omp_get_num_procs): Ditto.
10162         (omp_get_num_teams): Ditto.
10163         (omp_get_num_threads): Ditto.
10164         (omp_get_proc_bind): Ditto.
10165         (omp_get_schedule): Ditto.
10166         (omp_get_team_num): Ditto.
10167         (omp_get_team_size): Ditto.
10168         (omp_get_thread_limit): Ditto.
10169         (omp_get_thread_num): Ditto.
10170         (omp_in_parallel): Ditto.
10171         (omp_in_final): Ditto.
10172         (omp_is_initial_device): Ditto.
10173         (omp_set_default_device): Ditto.
10174         (omp_set_dynamic): Ditto.
10175         (omp_set_max_active_levels): Ditto.
10176         (omp_set_nested): Ditto.
10177         (omp_set_num_threads): Ditto.
10178         (omp_set_schedule): Ditto.
10179         (omp_init_lock): Ditto.
10180         (omp_set_lock): Ditto.
10181         (omp_test_lock): Ditto.
10182         (omp_unset_lock): Ditto.
10183         (omp_destroy_lock): Ditto.
10184         (omp_init_nest_lock): Ditto.
10185         (omp_set_nest_lock): Ditto.
10186         (omp_test_nest_lock): Ditto.
10187         (omp_unset_nest_lock): Ditto.
10188         (omp_destroy_nest_lock): Ditto.
10189         (omp_get_wtick): Ditto.
10190         (omp_get_wtime): Ditto.
10191         (OMP_CANCELLATION): Ditto.
10192         (OMP_DISPLAY_ENV): Ditto.
10193         (OMP_DEFAULT_DEVICE): Ditto.
10194         (OMP_DYNAMIC): Ditto.
10195         (OMP_MAX_ACTIVE_LEVELS): Ditto.
10196         (OMP_MAX_TASK_PRIORITY): Ditto.
10197         (OMP_NESTED): Ditto.
10198         (OMP_NUM_THREADS): Ditto.
10199         (OMP_PROC_BIND): Ditto.
10200         (OMP_PLACES): Ditto.
10201         (OMP_STACKSIZE): Ditto.
10202         (OMP_SCHEDULE): Ditto.
10203         (OMP_THREAD_LIMIT): Ditto.
10204         (OMP_WAIT_POLICY): Ditto.
10206 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
10207             James Norris  <jnorris@codesourcery.com>
10208             Julian Brown  <julian@codesourcery.com>
10209             Thomas Schwinge  <thomas@codesourcery.com>
10210             Tom de Vries  <tom@codesourcery.com>
10212         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10213         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10214         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10215         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10216         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10217         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10218         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10219         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10220         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10221         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10222         Likewise.
10223         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10224         Likewise.
10225         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10226         Likewise.
10227         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10228         Likewise.
10229         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10230         Likewise.
10231         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10232         Likewise.
10233         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10234         Likewise.
10235         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10236         Likewise.
10237         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10238         Likewise.
10239         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10240         Likewise.
10241         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10242         Likewise.
10243         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10244         Likewise.
10245         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10246         Likewise.
10247         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10248         Likewise.
10249         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10250         Likewise.
10251         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10252         Likewise.
10253         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10254         Likewise.
10255         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10256         Likewise.
10257         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10258         Likewise.
10259         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10260         Likewise.
10261         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10262         Likewise.
10263         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10264         Likewise.
10265         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10266         Likewise.
10267         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10268         Likewise.
10269         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10270         Likewise.
10271         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10272         Likewise.
10273         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10274         Likewise.
10275         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10276         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10277         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10278         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10279         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10280         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10281         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10282         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10283         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10284         Likewise.
10285         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10286         Likewise.
10287         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10288         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10289         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10290         Likewise.
10291         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10292         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10293         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10294         Likewise.
10295         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10296         Likewise.
10297         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10298         Likewise.
10299         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10300         Likewise.
10301         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10302         Likewise.
10303         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10304         Likewise.
10305         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10306         Likewise.
10307         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10308         Likewise.
10309         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10310         Likewise.
10311         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10312         Likewise.
10313         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10314         Likewise.
10315         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10316         Likewise.
10317         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10318         Likewise.
10319         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10320         Likewise.
10321         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10322         Likewise.
10323         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10324         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10325         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10326         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10327         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10328         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10329         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10331 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
10332             Thomas Schwinge <thomas@codesourcery.com>
10333             Cesar Philippidis  <cesar@codesourcery.com>
10335         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10336         (gomp_acc_remove_pointer): Update declaration.
10337         (gomp_acc_declare_allocate): Declare.
10338         (gomp_remove_var): Declare.
10339         * libgomp.map (OACC_2.5): Define.
10340         * oacc-mem.c (acc_map_data): Update refcount.
10341         (acc_unmap_data): Likewise.
10342         (present_create_copy): Likewise.
10343         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10344         (acc_copyin): Likewise.
10345         (FLAG_FINALIZE): Define.
10346         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10347         (acc_delete_finalize): New function.
10348         (acc_delete_finalize_async): New function.
10349         (acc_copyout_finalize): New function.
10350         (acc_copyout_finalize_async): New function.
10351         (gomp_acc_insert_pointer): Update refcounts.
10352         (gomp_acc_remove_pointer): Return if data is not present on the
10353         accelerator.
10354         * oacc-parallel.c (find_pset): Rename to find_pointer.
10355         (find_pointer): Add support for GOMP_MAP_POINTER.
10356         (handle_ftn_pointers): New function.
10357         (GOACC_parallel_keyed): Update refcounts of variables.
10358         (GOACC_enter_exit_data): Add support for finalized data mappings.
10359         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10360         of fortran arrays.
10361         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10362         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10363         for GOMP_MAP_FORCE_FROM.
10364         * openacc.f90 (module openacc_internal): Add
10365         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10366         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10367         acc_copyout_finalize and acc_delete_finalize.
10368         (acc_copyout_finalize_32_h): New subroutine.
10369         (acc_copyout_finalize_64_h): New subroutine.
10370         (acc_copyout_finalize_array_h): New subroutine.
10371         (acc_delete_finalize_32_h): New subroutine.
10372         (acc_delete_finalize_64_h): New subroutine.
10373         (acc_delete_finalize_array_h): New subroutine.
10374         * openacc.h (acc_copyout_finalize): Declare.
10375         (acc_copyout_finalize_async): Declare.
10376         (acc_delete_finalize): Declare.
10377         (acc_delete_finalize_async): Declare.
10378         * openacc_lib.h (acc_copyout_finalize): New interface.
10379         (acc_delete_finalize): New interface.
10380         * target.c (gomp_map_vars): Update dynamic_refcount.
10381         (gomp_remove_var): New function.
10382         (gomp_unmap_vars): Use it.
10383         (gomp_unload_image_from_device): Likewise.
10384         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10385         case to utilize OpenACC 2.5 data clause semantics.
10386         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10387         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10388         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10389         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10390         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10391         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10392         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10393         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10394         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10395         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10396         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10397         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10398         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10399         utilize OpenACC 2.5 data clause semantics.
10400         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10401         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10402         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10403         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10404         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10405         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10406         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10407         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10408         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10410 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
10412         PR fortran/85841
10413         PR testsuite/85865
10414         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10415         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10416         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10417         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10418         * testsuite/libgomp.fortran/task2.f90: Ditto.
10419         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10420         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10421         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10422         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10423         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10424         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10425         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10426         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10427         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10429 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
10431         PR c++/85782
10432         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10434 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10436         PR libgomp/82901
10437         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10438         to GOACC_enter_exit_data.
10440 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10442         PR libgomp/83792
10443         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10444         (async_synchronous_p): New function.
10445         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10446         async_valid_p.
10447         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10448         async_valid_stream_id_p.
10449         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10450         * oacc-parallel.c (GOACC_parallel_keyed): Same.
10452 2018-05-07  Tom de Vries  <tom@codesourcery.com>
10454         PR testsuite/85677
10455         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10456         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10458 2018-05-03  Tom de Vries  <tom@codesourcery.com>
10460         PR testsuite/85106
10461         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10462         extra_tool_flags if it contains an -foffload=-fdump-* flag.
10463         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10464         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10466 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10468         PR libgomp/85411
10469         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10470         GOMP_OPENACC_DIM ...
10471         * env.c (parse_gomp_openacc_dim): ... here.  New function.
10472         (initialize_env): Call parse_gomp_openacc_dim.
10473         (goacc_default_dims): Define.
10474         * libgomp.h (goacc_default_dims): Declare.
10475         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10476         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10477         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10478         GOMP_PLUGIN_acc_default_dim.
10479         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10480         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10482 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10484         PR testsuite/83791
10485         * testsuite/libgomp.c++/udr-9.C: Update.
10486         * testsuite/libgomp.c++/atomic-16.C: Remove.
10487         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10488         * testsuite/libgomp.c++/loop-13.C: Remove.
10489         * testsuite/libgomp.c++/loop-14.C: Remove.
10490         * testsuite/libgomp.c++/loop-15.C: Remove.
10491         * testsuite/libgomp.c++/monotonic-1.C: Remove.
10492         * testsuite/libgomp.c++/monotonic-2.C: Remove.
10493         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10494         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10495         * testsuite/libgomp.c++/ordered-1.C: Remove.
10496         * testsuite/libgomp.c++/pr45784.C: Remove.
10497         * testsuite/libgomp.c++/pr64824.C: Remove.
10498         * testsuite/libgomp.c++/pr64868.C: Remove.
10499         * testsuite/libgomp.c++/pr66199-1.C: Remove.
10500         * testsuite/libgomp.c++/pr66199-2.C: Remove.
10501         * testsuite/libgomp.c++/pr66199-3.C: Remove.
10502         * testsuite/libgomp.c++/pr66199-4.C: Remove.
10503         * testsuite/libgomp.c++/pr66199-5.C: Remove.
10504         * testsuite/libgomp.c++/pr66199-6.C: Remove.
10505         * testsuite/libgomp.c++/pr66199-7.C: Remove.
10506         * testsuite/libgomp.c++/pr66199-8.C: Remove.
10507         * testsuite/libgomp.c++/pr66199-9.C: Remove.
10508         * testsuite/libgomp.c++/pr69389.C: Remove.
10509         * testsuite/libgomp.c++/simd10.C: Remove.
10510         * testsuite/libgomp.c++/simd11.C: Remove.
10511         * testsuite/libgomp.c++/simd12.C: Remove.
10512         * testsuite/libgomp.c++/simd13.C: Remove.
10513         * testsuite/libgomp.c++/target-1.C: Remove.
10514         * testsuite/libgomp.c++/target-3.C: Remove.
10515         * testsuite/libgomp.c++/target-4.C: Remove.
10516         * testsuite/libgomp.c++/target-5.C: Remove.
10517         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10518         * testsuite/libgomp.c++/taskloop-1.C: Remove.
10519         * testsuite/libgomp.c++/taskloop-2.C: Remove.
10520         * testsuite/libgomp.c++/taskloop-3.C: Remove.
10521         * testsuite/libgomp.c++/taskloop-4.C: Remove.
10522         * testsuite/libgomp.c++/udr-9.C: Remove.
10523         * testsuite/libgomp.c++/for-10.C: Remove.
10524         * testsuite/libgomp.c++/for-11.C: Remove.
10525         * testsuite/libgomp.c++/for-12.C: Remove.
10526         * testsuite/libgomp.c++/for-13.C: Remove.
10527         * testsuite/libgomp.c++/for-14.C: Remove.
10528         * testsuite/libgomp.c++/for-9.C: Remove.
10529         * testsuite/libgomp.c/atomic-18.c: Move ...
10530         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10531         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10532         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10533         * testsuite/libgomp.c/loop-13.c: Move ...
10534         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10535         * testsuite/libgomp.c/loop-14.c: Move ...
10536         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10537         * testsuite/libgomp.c/loop-15.c: Remove.
10538         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10539         * testsuite/libgomp.c/monotonic-1.c: Move ...
10540         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10541         * testsuite/libgomp.c/monotonic-2.c: Move ...
10542         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10543         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10544         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10545         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10546         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10547         * testsuite/libgomp.c/ordered-4.c: Move ...
10548         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10549         * testsuite/libgomp.c/pr45784.c: Move ...
10550         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10551         * testsuite/libgomp.c/pr64824.c: Move ...
10552         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10553         * testsuite/libgomp.c/pr64868.c: Move ...
10554         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10555         * testsuite/libgomp.c/pr66199-1.c: Move ...
10556         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10557         * testsuite/libgomp.c/pr66199-2.c: Move ...
10558         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10559         * testsuite/libgomp.c/pr66199-3.c: Move ...
10560         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10561         * testsuite/libgomp.c/pr66199-4.c: Move ...
10562         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10563         * testsuite/libgomp.c/pr66199-5.c: Move ...
10564         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10565         * testsuite/libgomp.c/pr66199-6.c: Move ...
10566         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10567         * testsuite/libgomp.c/pr66199-7.c: Move ...
10568         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10569         * testsuite/libgomp.c/pr66199-8.c: Move ...
10570         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10571         * testsuite/libgomp.c/pr66199-9.c: Move ...
10572         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10573         * testsuite/libgomp.c/pr69389.c: Move ...
10574         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10575         * testsuite/libgomp.c/simd-14.c: Move ...
10576         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10577         * testsuite/libgomp.c/simd-15.c: Move ...
10578         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10579         * testsuite/libgomp.c/simd-16.c: Move ...
10580         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10581         * testsuite/libgomp.c/simd-17.c: Move ...
10582         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10583         * testsuite/libgomp.c/target-1.c: Move ...
10584         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10585         * testsuite/libgomp.c/target-10.c: Move ...
10586         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10587         * testsuite/libgomp.c/target-13.c: Move ...
10588         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10589         * testsuite/libgomp.c/target-2.c: Move ...
10590         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10591         * testsuite/libgomp.c/taskgroup-1.c: Move ...
10592         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10593         * testsuite/libgomp.c/taskloop-1.c: Move ...
10594         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10595         * testsuite/libgomp.c/taskloop-2.c: Move ...
10596         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10597         * testsuite/libgomp.c/taskloop-3.c: Move ...
10598         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10599         * testsuite/libgomp.c/taskloop-4.c: Move ...
10600         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10601         * testsuite/libgomp.c/udr-1.c: Move ...
10602         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10603         * testsuite/libgomp.c/for-1.c: Move ...
10604         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10605         * testsuite/libgomp.c/for-1.h: Move ...
10606         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10607         * testsuite/libgomp.c/for-2.c: Move ...
10608         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10609         * testsuite/libgomp.c/for-2.h: Move ...
10610         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10611         * testsuite/libgomp.c/for-3.c: Move ...
10612         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10613         * testsuite/libgomp.c/for-4.c: Move ...
10614         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10615         * testsuite/libgomp.c/for-5.c: Move ...
10616         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10617         * testsuite/libgomp.c/for-6.c: Move ...
10618         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10620 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10622         PR libgomp/82428
10623         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10624         __builtin_goacc_parlevel_{id,size}.
10625         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10626         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10627         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10628         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10629         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10630         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10631         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10632         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10633         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10634         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10635         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10636         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10637         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10638         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10639         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10640         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10641         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10642         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10643         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10644         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10645         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10646         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10647         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10649 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10651         PR testsuite/85106
10652         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10654 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10656         PR testsuite/85106
10657         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
10659 2018-04-29  Julian Brown  <julian@codesourcery.com>
10660             Tom de Vries  <tom@codesourcery.com>
10662         PR testsuite/85527
10663         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
10664         arbitrary order for iterations of atomic subtract check.
10666 2018-04-28  Tom de Vries  <tom@codesourcery.com>
10668         PR testsuite/85527
10669         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
10670         atomic capture results obtained in parallel loop to an array, instead of
10671         to a scalar.
10673 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10675         PR libgomp/84020
10676         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
10677         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
10678         (process_GOMP_NVPTX_JIT): New function.
10679         (link_ptx): Use process_GOMP_NVPTX_JIT.
10681 2018-04-26  Richard Biener <rguenther@suse.de>
10682             Tom de Vries  <tom@codesourcery.com>
10684         PR lto/85422
10685         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
10687 2018-04-26  Tom de Vries  <tom@codesourcery.com>
10689         PR target/85519
10690         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
10691         recursion depth from 25 to 23.
10692         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
10694 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
10696         * configure: Regenerated.
10698 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
10699             Tom de Vries  <tom@codesourcery.com>
10701         PR target/85445
10702         * testsuite/libgomp.oacc-c++/ref-1.C: New.
10704 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
10706         PR libgomp/85463
10707         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
10708         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
10709         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
10710         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
10711         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
10712         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
10714         PR libfortran/85166
10715         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
10716         abort".
10717         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10719 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
10721         * configure: Regenerated.
10723 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
10725         PR jit/85384
10726         * configure: Regenerate.
10728 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
10729             Tom de Vries  <tom@codesourcery.com>
10731         PR middle-end/84955
10732         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10733         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10735 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
10737         PR fortran/83064
10738         PR testsuite/85346
10739         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
10740         test from gfortran.dg to here.
10742 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10744         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
10745         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
10747 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
10749         PR middle-end/84955
10750         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
10751         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
10753 2018-04-05  Tom de Vries  <tom@codesourcery.com>
10755         PR target/85204
10756         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
10758 2018-03-26  Tom de Vries  <tom@codesourcery.com>
10760         PR tree-optimization/85063
10761         * testsuite/libgomp.c/switch-conversion-2.c: New test.
10762         * testsuite/libgomp.c/switch-conversion.c: New test.
10763         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
10764         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
10766 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
10768         PR fortran/84381
10769         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
10770         call abort by STOP n.
10771         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
10772         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
10773         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
10774         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
10775         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
10776         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
10777         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
10778         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
10779         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
10780         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
10781         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
10782         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
10783         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
10784         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
10785         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
10786         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
10787         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
10788         * testsuite/libgomp.fortran/associate1.f90: Likewise.
10789         * testsuite/libgomp.fortran/associate2.f90: Likewise.
10790         * testsuite/libgomp.fortran/associate3.f90: Likewise.
10791         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
10792         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
10793         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
10794         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
10795         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
10796         * testsuite/libgomp.fortran/character1.f90: Likewise.
10797         * testsuite/libgomp.fortran/character2.f90: Likewise.
10798         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
10799         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
10800         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
10801         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
10802         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
10803         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
10804         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
10805         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
10806         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
10807         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
10808         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
10809         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
10810         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
10811         * testsuite/libgomp.fortran/do1.f90: Likewise.
10812         * testsuite/libgomp.fortran/do2.f90: Likewise.
10813         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
10814         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
10815         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
10816         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
10817         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
10818         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
10819         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
10820         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
10821         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
10822         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
10823         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
10824         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
10825         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
10826         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
10827         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
10828         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
10829         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
10830         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
10831         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
10832         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
10833         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
10834         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
10835         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
10836         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
10837         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
10838         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
10839         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
10840         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
10841         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
10842         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
10843         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
10844         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
10845         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
10846         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
10847         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
10848         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
10849         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
10850         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
10851         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
10852         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
10853         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
10854         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
10855         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
10856         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
10857         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
10858         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
10859         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
10860         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
10861         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
10862         * testsuite/libgomp.fortran/lib1.f90: Likewise.
10863         * testsuite/libgomp.fortran/lib2.f: Likewise.
10864         * testsuite/libgomp.fortran/lib3.f: Likewise.
10865         * testsuite/libgomp.fortran/lib4.f90: Likewise.
10866         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
10867         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
10868         * testsuite/libgomp.fortran/nested1.f90: Likewise.
10869         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
10870         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
10871         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
10872         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
10873         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
10874         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
10875         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
10876         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
10877         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
10878         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
10879         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
10880         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
10881         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
10882         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
10883         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
10884         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
10885         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
10886         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
10887         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
10888         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10889         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
10890         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
10891         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
10892         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
10893         * testsuite/libgomp.fortran/pr25162.f: Likewise.
10894         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
10895         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
10896         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
10897         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
10898         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
10899         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
10900         * testsuite/libgomp.fortran/pr28390.f: Likewise.
10901         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
10902         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
10903         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
10904         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
10905         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
10906         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
10907         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
10908         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
10909         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
10910         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
10911         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
10912         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
10913         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
10914         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
10915         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
10916         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
10917         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
10918         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
10919         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
10920         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
10921         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
10922         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
10923         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
10924         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
10925         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
10926         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10927         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
10928         * testsuite/libgomp.fortran/reference1.f90: Likewise.
10929         * testsuite/libgomp.fortran/reference2.f90: Likewise.
10930         * testsuite/libgomp.fortran/retval1.f90: Likewise.
10931         * testsuite/libgomp.fortran/retval2.f90: Likewise.
10932         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
10933         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
10934         * testsuite/libgomp.fortran/simd1.f90: Likewise.
10935         * testsuite/libgomp.fortran/simd2.f90: Likewise.
10936         * testsuite/libgomp.fortran/simd3.f90: Likewise.
10937         * testsuite/libgomp.fortran/simd4.f90: Likewise.
10938         * testsuite/libgomp.fortran/simd5.f90: Likewise.
10939         * testsuite/libgomp.fortran/simd6.f90: Likewise.
10940         * testsuite/libgomp.fortran/simd7.f90: Likewise.
10941         * testsuite/libgomp.fortran/stack.f90: Likewise.
10942         * testsuite/libgomp.fortran/strassen.f90: Likewise.
10943         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
10944         * testsuite/libgomp.fortran/tabs2.f: Likewise.
10945         * testsuite/libgomp.fortran/target1.f90: Likewise.
10946         * testsuite/libgomp.fortran/target2.f90: Likewise.
10947         * testsuite/libgomp.fortran/target3.f90: Likewise.
10948         * testsuite/libgomp.fortran/target4.f90: Likewise.
10949         * testsuite/libgomp.fortran/target5.f90: Likewise.
10950         * testsuite/libgomp.fortran/target6.f90: Likewise.
10951         * testsuite/libgomp.fortran/target7.f90: Likewise.
10952         * testsuite/libgomp.fortran/target8.f90: Likewise.
10953         * testsuite/libgomp.fortran/task1.f90: Likewise.
10954         * testsuite/libgomp.fortran/task2.f90: Likewise.
10955         * testsuite/libgomp.fortran/task3.f90: Likewise.
10956         * testsuite/libgomp.fortran/task4.f90: Likewise.
10957         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
10958         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
10959         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
10960         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
10961         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
10962         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10963         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10964         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10965         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
10966         * testsuite/libgomp.fortran/udr1.f90: Likewise.
10967         * testsuite/libgomp.fortran/udr10.f90: Likewise.
10968         * testsuite/libgomp.fortran/udr11.f90: Likewise.
10969         * testsuite/libgomp.fortran/udr12.f90: Likewise.
10970         * testsuite/libgomp.fortran/udr13.f90: Likewise.
10971         * testsuite/libgomp.fortran/udr14.f90: Likewise.
10972         * testsuite/libgomp.fortran/udr15.f90: Likewise.
10973         * testsuite/libgomp.fortran/udr2.f90: Likewise.
10974         * testsuite/libgomp.fortran/udr3.f90: Likewise.
10975         * testsuite/libgomp.fortran/udr4.f90: Likewise.
10976         * testsuite/libgomp.fortran/udr5.f90: Likewise.
10977         * testsuite/libgomp.fortran/udr6.f90: Likewise.
10978         * testsuite/libgomp.fortran/udr7.f90: Likewise.
10979         * testsuite/libgomp.fortran/udr8.f90: Likewise.
10980         * testsuite/libgomp.fortran/udr9.f90: Likewise.
10981         * testsuite/libgomp.fortran/vla1.f90: Likewise.
10982         * testsuite/libgomp.fortran/vla2.f90: Likewise.
10983         * testsuite/libgomp.fortran/vla3.f90: Likewise.
10984         * testsuite/libgomp.fortran/vla4.f90: Likewise.
10985         * testsuite/libgomp.fortran/vla5.f90: Likewise.
10986         * testsuite/libgomp.fortran/vla6.f90: Likewise.
10987         * testsuite/libgomp.fortran/vla7.f90: Likewise.
10988         * testsuite/libgomp.fortran/vla8.f90: Likewise.
10989         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
10990         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
10991         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10992         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10993         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10994         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10995         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10996         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10997         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10998         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10999         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11000         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11001         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11002         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11003         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11004         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11005         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11006         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11007         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11008         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11009         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11010         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11011         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11012         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11013         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11014         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11015         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11016         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11017         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11018         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11019         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11020         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11021         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11022         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11023         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11024         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11025         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11026         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11027         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11028         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11029         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11030         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11031         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11032         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11033         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11034         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11035         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11036         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11037         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11038         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11039         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11040         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11041         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11042         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11043         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11044         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11045         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11046         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11047         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11048         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11049         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11050         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11051         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11052         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11053         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11054         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11055         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11056         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11057         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11058         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11059         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11060         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11061         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11062         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11063         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11064         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11065         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11066         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11067         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11068         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11069         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11070         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11071         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11072         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11073         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11074         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11075         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11076         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11077         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11078         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11079         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11080         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11081         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11082         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11084 2018-03-20  Richard Biener  <rguenther@suse.de>
11086         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11087         parallelizable loop.
11089 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11091         PR target/84148
11092         * configure: Regenerate.
11094 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11096         PR fortran/84418
11097         * libgomp.fortran/pr84418-1.f90: New test.
11098         * libgomp.fortran/pr84418-2.f90: New test.
11100 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11102         PR fortran/84313
11103         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11104         -std=f2003 -fall-intrinsics into dg-additional-options.
11106 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11108         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11109         clonable.
11111 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11113         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11115 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11117         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11118         [__cplusplus]: Declare extern "C".
11120 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11122         PR libgomp/84217
11123         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11125 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11126             Jakub Jelinek  <jakub@redhat.com>
11128         PR libgomp/84096
11129         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11130         instead of omp_lock_t.
11132 2018-01-25  Tom de Vries  <tom@codesourcery.com>
11134         PR target/84028
11135         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11137 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11139         PR target/83589
11140         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11142 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11144         PR target/81352
11145         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11147 2018-01-19  Tom de Vries  <tom@codesourcery.com>
11148             Cesar Philippidis  <cesar@codesourcery.com>
11150         PR target/83920
11151         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11152         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11154 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11156         Update copyright years.
11158         * libgomp.texi: Bump @copying's copyright year.
11160 2017-12-30  Tom de Vries  <tom@codesourcery.com>
11162         PR libgomp/83046
11163         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11164         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11166 2017-12-27  Tom de Vries  <tom@codesourcery.com>
11168         PR c++/83046
11169         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11170         (test_nonstatic): Fix return type to workaround PR83046.
11172 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
11174         PR testsuite/83281
11175         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11176         j suffix instead of i.
11177         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11178         Likewise.
11180 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
11182         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11183         call to acc_wait (1).
11185 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
11187         PR fortran/81304
11188         * testsuite/libgomp.fortran/pr81304.f90: New test.
11190 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
11192         PR fortran/81841
11193         * libgomp.fortran/pr81841.f90: New test.
11195 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
11197         PR libgomp/83106
11198         * target.c (gomp_target_init): Compute lengths just once and
11199         use them in both malloc size and subsequent copying.
11201 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11203         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11204         * acinclude.m4: Add cet.m4.
11205         * configure: Regenerate.
11206         * Makefile.in: Likewise.
11207         * testsuite/Makefile.in: Likewise.
11209 2017-11-15  Tom de Vries  <tom@codesourcery.com>
11211         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11212         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
11213         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11214         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
11215         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11216         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
11218 2017-11-14  Tom de Vries  <tom@codesourcery.com>
11220         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11221         non-nvidia devices.
11223 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
11225         PR c++/82835
11226         * testsuite/libgomp.c++/pr82835.C: New test.
11228 2017-11-06  Martin Liska  <mliska@suse.cz>
11230         * testsuite/libgomp.c++/loop-2.C: Return a value
11231         for functions with non-void return type, or change type to void,
11232         or add -Wno-return-type for test.
11233         * testsuite/libgomp.c++/loop-4.C: Likewise.
11234         * testsuite/libgomp.c++/parallel-1.C: Likewise.
11235         * testsuite/libgomp.c++/shared-1.C: Likewise.
11236         * testsuite/libgomp.c++/single-1.C: Likewise.
11237         * testsuite/libgomp.c++/single-2.C: Likewise.
11239 2017-10-31  Tom de Vries  <tom@codesourcery.com>
11241         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11242         "do {} while (false)".
11243         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11244         after HSA_DEBUG call.
11246 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
11248         * target.c (struct gomp_coalesce_buf): New type.
11249         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11250         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11251         (gomp_copy_host2dev): Add CBUF argument, if copying into
11252         the cached ranges, memcpy into buffer instead of copying
11253         into device.
11254         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11255         Add CBUF argument, pass it through to other calls.
11256         (gomp_map_vars): Aggregate copies from host to device if small enough
11257         and with small enough gaps in between into memcpy into a buffer and
11258         fewer host to device copies from the buffer.
11259         (gomp_update): Adjust gomp_copy_host2dev caller.
11261 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
11263         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11264         run" directive.
11265         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11266         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11267         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11268         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11270 2017-10-16  Tom de Vries  <tom@codesourcery.com>
11272         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11273         openacc_nvidia_accel_selected.
11274         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11275         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11276         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11277         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11278         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11279         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11280         openacc_nvidia_accel_selected. Skip for shared memory device.
11281         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11282         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11284 2017-10-09  Martin Jambor  <mjambor@suse.cz>
11286         PR hsa/82416
11287         * testsuite/libgomp.hsa.c/pr82416.c: New test.
11289 2017-10-07  Tom de Vries  <tom@codesourcery.com>
11291         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11292         Remove acc_device_nvidia references.
11293         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11294         Same.
11296 2017-10-05  Tom de Vries  <tom@codesourcery.com>
11298         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11299         vector_length(32) clause from acc parallel directive.
11300         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11302 2017-10-04  Tom de Vries  <tom@codesourcery.com>
11304         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11305         (main): Reduce sum of arr elements.  Assert that hres is exactly
11306         representable in 32-bit floating point.
11307         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11308         (main): Reduce sum of arr elements.  Assert that hres and hmres are
11309         exactly representable in 32-bit floating point.
11310         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11312 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11314         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11315         setting.
11316         * testsuite/libgomp.c++/pr69393.C: Same.
11317         * testsuite/libgomp.c++/taskloop-1.C: Same.
11318         * testsuite/libgomp.c++/taskloop-3.C: Same.
11319         * testsuite/libgomp.c++/taskloop-4.C: Same.
11320         * testsuite/libgomp.c/for-4.c: Same.
11321         * testsuite/libgomp.c/pr66199-3.c: Same.
11322         * testsuite/libgomp.c/pr66199-4.c: Same.
11323         * testsuite/libgomp.c/pr66199-6.c: Same.
11324         * testsuite/libgomp.c/taskloop-1.c: Same.
11325         * testsuite/libgomp.c/taskloop-3.c: Same.
11326         * testsuite/libgomp.c/taskloop-4.c: Same.
11327         * testsuite/libgomp.fortran/aligned1.f03: Same.
11328         * testsuite/libgomp.fortran/condinc1.f: Same.
11329         * testsuite/libgomp.fortran/condinc3.f90: Same.
11330         * testsuite/libgomp.fortran/crayptr1.f90: Same.
11331         * testsuite/libgomp.fortran/crayptr2.f90: Same.
11332         * testsuite/libgomp.fortran/crayptr3.f90: Same.
11333         * testsuite/libgomp.fortran/omp_cond1.f: Same.
11334         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11335         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11336         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11337         * testsuite/libgomp.fortran/recursion1.f90: Same.
11338         * testsuite/libgomp.fortran/target2.f90: Same.
11339         * testsuite/libgomp.fortran/target5.f90: Same.
11340         * testsuite/libgomp.fortran/task3.f90: Same.
11342 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11344         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11345         vector_length(32) clause from acc parallel directive.
11346         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11348 2017-09-27  Tom de Vries  <tom@codesourcery.com>
11350         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11351         Remove acc_device_nvidia references.
11353 2017-09-16  Tom de Vries  <tom@codesourcery.com>
11355         PR c/81875
11356         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11358 2017-09-14  Tom de Vries  <tom@codesourcery.com>
11360         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11361         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11362         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11363         * testsuite/libgomp.c/c.exp: Include test-cases from
11364         libgomp.c-c++-common.
11365         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
11366         files.
11368 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
11370         PR c++/81314
11371         * testsuite/libgomp.c++/pr81314.C: New test.
11373 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
11375         * libgomp.texi (Top): www.openacc.org now uses https.
11376         (Enabling OpenACC): Ditto.
11377         (acc_get_num_devices): Ditto.
11378         (acc_set_device_type): Ditto.
11379         (acc_get_device_type): Ditto.
11380         (acc_set_device_num): Ditto.
11381         (acc_get_device_num): Ditto.
11382         (acc_async_test): Ditto.
11383         (acc_async_test_all): Ditto.
11384         (acc_wait): Ditto.
11385         (acc_wait_all): Ditto.
11386         (acc_wait_all_async): Ditto.
11387         (acc_wait_async): Ditto.
11388         (acc_init): Ditto.
11389         (acc_shutdown): Ditto.
11390         (acc_on_device): Ditto.
11391         (acc_malloc): Ditto.
11392         (acc_free): Ditto.
11393         (acc_copyin): Ditto.
11394         (acc_present_or_copyin): Ditto.
11395         (acc_create): Ditto.
11396         (acc_present_or_create): Ditto.
11397         (acc_copyout): Ditto.
11398         (acc_delete): Ditto.
11399         (acc_update_device): Ditto.
11400         (acc_update_self): Ditto.
11401         (acc_map_data): Ditto.
11402         (acc_unmap_data): Ditto.
11403         (acc_deviceptr): Ditto.
11404         (acc_hostptr): Ditto.
11405         (acc_is_present): Ditto.
11406         (acc_memcpy_to_device): Ditto.
11407         (acc_memcpy_from_device): Ditto.
11408         (acc_get_current_cuda_device): Ditto.
11409         (acc_get_current_cuda_context): Ditto.
11410         (acc_get_cuda_stream): Ditto.
11411         (acc_set_cuda_stream): Ditto.
11412         (ACC_DEVICE_TYPE): Ditto.
11413         (ACC_DEVICE_NUM): Ditto.
11414         (OpenACC Library Interoperability): Ditto.
11416 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11418         PR c/81687
11419         * testsuite/libgomp.c/pr81687-1.c: New test.
11420         * testsuite/libgomp.c/pr81687-2.c: New test.
11422 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11424         PR c/69389
11425         * testsuite/libgomp.c/pr69389.c: New test.
11426         * testsuite/libgomp.c++/pr69389.C: New test.
11428 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11430         PR middle-end/78266
11431         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11432         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11434 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
11436         PR c/45784
11437         * testsuite/libgomp.c/pr45784.c: New test.
11438         * testsuite/libgomp.c++/pr45784.C: New test.
11440 2017-07-19  Tom de Vries  <tom@codesourcery.com>
11442         * testsuite/libgomp.oacc-c/vec.c: New test.
11444 2017-07-03  Tom de Vries  <tom@codesourcery.com>
11446         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11448 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11450         * plugin/plugin-nvptx.c (notify_var): New function.
11451         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11453 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11455         * env.c (parse_unsigned_long_1): Factor out of ...
11456         (parse_unsigned_long): ... here.
11457         (parse_int_1): Factor out of ...
11458         (parse_int): ... here.
11459         (parse_int_secure): New function.
11460         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11461         * secure_getenv.h: Factor out of ...
11462         * plugin/plugin-hsa.c: ... here.
11463         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11465 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
11467         PR c++/81130
11468         * testsuite/libgomp.c++/pr81130.C: New test.
11470 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11472         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11473         default args.
11474         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11475         dg-xfail-run-if default args.
11477 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11479         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11480         * testsuite/libgomp.c/pr39591-3.c: Likewise.
11482 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
11484         PR libgomp/80822
11485         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11486         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
11487         sibling lists, depending on level just pick up what CPUs to put
11488         together into a place vs. whether add multiple ordered places.
11490 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
11492         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11493         * libgomp.map (OACC_2.0.1): Add these.
11494         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11495         for "acc_wait", and "acc_wait_all", respectively.
11496         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11497         for "acc_wait", and "acc_wait_all", respectively.
11498         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11499         * libgomp.texi (acc_wait, acc_wait_all): Update.
11500         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11501         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11502         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11504         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11505         acc_present_or_copyin and acc_present_or_create procedures,
11506         respectively.
11507         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11508         generally different variants of OpenACC Runtime Library functions.
11509         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11511         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11512         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11514         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11515         of preprocessor definitions.
11516         * libgomp.h (strong_alias): Guard by "#ifdef
11517         HAVE_ATTRIBUTE_ALIAS".
11518         * oacc-mem.c: Provide "acc_pcreate" as alias for
11519         "acc_present_or_create", and "acc_pcopyin" as alias for
11520         "acc_present_or_copyin".
11521         * libgomp.map: New version "OACC_2.0.1".
11522         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11523         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11524         its content into...
11525         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11526         Extend testing.
11528         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11529         when disabling nvptx offloading.
11531 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11533         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11534         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11535         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11537         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11538         * testsuite/lib/libgomp.exp
11539         (check_effective_target_openacc_nvidia_accel_configured): New
11540         proc.
11541         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11542         (check_effective_target_c++): New procs.
11543         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11544         (check_effective_target_c++): Likewise.
11546 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11548         PR middle-end/80809
11549         * testsuite/libgomp.c/pr80809-2.c: New test.
11550         * testsuite/libgomp.c/pr80809-3.c: New test.
11552         PR middle-end/80809
11553         * testsuite/libgomp.c/pr80809-1.c: New test.
11555         PR middle-end/80853
11556         * testsuite/libgomp.c/pr80853.c: New test.
11558 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11560         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11561         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11562         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11563         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11564         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11566         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11567         Debug output for failure.
11569 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11571         * testsuite/lib/libgomp.exp: Load scanlang.exp.
11573 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
11575         PR bootstrap/80531
11576         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11577         bootstrap compare failures.
11579 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11581         * testsuite/libgomp.c/target-36.c: New testcase.
11583 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11585         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11586         instead of char.
11588 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11590         PR libgomp/80394
11591         * testsuite/libgomp.c/pr80394.c: New test.
11593 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
11595         PR libgomp/79876
11596         * config/posix/thread-stacksize.h: New file.
11597         * config/darwin/thread-stacksize.h: New file.
11598         * config/nvptx/thread-stacksize.h: New file.
11599         * env.c: Include thread-stacksize.h.
11600         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11601         instead of 0.  Call pthread_attr_setstacksize even if
11602         GOMP_DEFAULT_STACKSIZE is non-zero.
11604 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
11606         * env.c (initialize_env): Initialize stacksize to 0.
11608 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
11610         PR c++/80029
11611         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11613 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11615         PR c/79940
11616         * testsuite/libgomp.c/pr79940.c: New test.
11618 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11620         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11621         targets.
11622         Add __float128 options.
11624 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
11626         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11627         hppa*-*-* dg-skip-if directive.
11629 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11631         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11632         dg-skip-if directive into a comment.
11634 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11635             Chung-Lin Tang  <cltang@codesourcery.com>
11637         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11638         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11639         add additional case.
11640         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11641         "openacc_nvidia_accel_selected".
11642         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11643         Add num_workers(8) clause.
11645 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
11647         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11648         hppa*-*-*.
11649         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11650         include complex.h on hppa*-*-hpux*.
11651         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11653 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11655         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
11657         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
11658         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
11659         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
11660         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
11661         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
11662         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
11663         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
11664         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
11665         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
11666         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
11668 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
11670         * libgomp-plugin.h: #include <stdbool.h>.
11671         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
11672         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
11673         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
11674         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
11675         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
11676         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
11677         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
11678         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
11679         (GOMP_OFFLOAD_openacc_register_async_cleanup)
11680         (GOMP_OFFLOAD_openacc_async_test)
11681         (GOMP_OFFLOAD_openacc_async_test_all)
11682         (GOMP_OFFLOAD_openacc_async_wait)
11683         (GOMP_OFFLOAD_openacc_async_wait_async)
11684         (GOMP_OFFLOAD_openacc_async_wait_all)
11685         (GOMP_OFFLOAD_openacc_async_wait_all_async)
11686         (GOMP_OFFLOAD_openacc_async_set_async)
11687         (GOMP_OFFLOAD_openacc_create_thread_data)
11688         (GOMP_OFFLOAD_openacc_destroy_thread_data)
11689         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
11690         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
11691         (GOMP_OFFLOAD_openacc_get_cuda_stream)
11692         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
11693         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
11694         these.
11695         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
11696         (GOMP_OFFLOAD_unload_image): Fix argument types.
11698 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
11700         * testsuite/lib/libgomp.exp
11701         (check_effective_target_hsa_offloading_selected_nocache): Fix up
11702         check_compile invocation.  Fix up removal of executable.  Drop
11703         bogus "2>&1" argument.
11705         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
11706         directive.
11708 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
11709             Martin Jambor  <mjambor@suse.cz>
11711         * plugin/hsa.h: Moved to top level include.
11712         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
11714 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
11716         PR other/79046
11717         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
11718         of cat to get version from BASE-VER file.
11719         * testsuite/Makefile.in: Regenerated.
11721 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
11723         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
11724         for _WIN64.
11726 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
11728         * plugin/hsa.h: Add GCC runtime library exception.
11729         * plugin/hsa_ext_finalize.h: Likewise.
11731         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
11732         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
11733         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
11734         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
11735         plugin/include/cuda as include dir and -ldl instead of -lcuda as
11736         library to link ptx plugin against.
11737         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
11738         (CUDA_CALLS): Define.
11739         (cuda_lib, cuda_lib_inited): New variables.
11740         (init_cuda_lib): New function.
11741         (CUDA_CALL_PREFIX): Define.
11742         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
11743         (CUDA_CALL): Use FN instead of (FN).
11744         (CUDA_CALL_NOCHECK): Define.
11745         (cuda_error, fini_streams_for_device, select_stream_for_async,
11746         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
11747         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
11748         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
11749         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
11750         CUDA_CALL_NOCHECK.
11751         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
11752         CUDA_CALL_NOCHECK.
11753         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
11754         Use CUDA_CALL_NOCHECK.
11755         * plugin/cuda/cuda.h: New file.
11756         * config.h.in: Regenerated.
11757         * configure: Regenerated.
11759         PR other/79046
11760         * configure.ac: Add GCC_BASE_VER.
11761         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
11762         get version from BASE-VER file.
11763         * testsuite/Makefile.in: Regenerated.
11764         * configure: Regenerated.
11765         * Makefile.in: Regenerated.
11767 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11769         PR libgomp/60670
11770         * Makefile.am: Make fincludedir multilib-aware.
11771         * Makefile.in: Regenerate.
11773 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
11775         Update copyright years.
11777         * libgomp.texi: Bump @copying's copyright year.
11779 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11781         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
11782         pthread_spinlock_t instead of gomp_mutex_t lock.
11783         (gomp_get_thread_pool): Likewise.
11784         (gomp_release_thread_pool): Likewise.
11785         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
11786         Likewise.
11788 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11790         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
11791         thread pool in case nthreads == 1.
11793 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11795         * config/nvptx/env.c: Delete.
11796         * icv.c: Move definitions of ICV variables back ...
11797         * env.c: ...here.  Do not compile environment-related functionality if
11798         LIBGOMP_OFFLOADED_ONLY is set.
11800 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11802         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
11803         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
11804         * configure: Regenerate.
11805         * config.h.in: Likewise.
11807 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
11809         * Makefile.in: Regenerate with automake-1.11.6.
11810         * aclocal.m4: Likewise.
11811         * configure: Likewise.
11812         * testsuite/Makefile.in: Likewise.
11814 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
11816         * config/nvptx/critical.c: Delete to use generic implementation.
11818 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
11820         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
11821         ../../affinity.c as fallback.
11822         * config/nvptx/affinity.c: Delete to use fallback implementation.
11824 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
11825             Jakub Jelinek  <jakub@redhat.com>
11826             Dmitry Melnik  <dm@ispras.ru>
11828         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
11829         * Makefile.in. Regenerate.
11830         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
11831         (LIBGOMP_USE_PTHREADS): ...here; new define.
11832         * configure: Regenerate.
11833         * config.h.in: Likewise.
11834         * config/posix/affinity.c: Move to...
11835         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
11836         interface by LIBGOMP_USE_PTHREADS. 
11837         * critical.c: Split out GOMP_atomic_{start,end} into...
11838         * atomic.c: ...here (new file).
11839         * env.c: Split out ICV definitions into...
11840         * icv.c: ...here (new file) and...
11841         * icv-device.c: ...here. New file.
11842         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
11843         (gomp_destroy_lock_30): Ditto.
11844         (gomp_set_lock_30): Ditto.
11845         (gomp_unset_lock_30): Ditto.
11846         (gomp_test_lock_30): Ditto.
11847         (gomp_init_nest_lock_30): Ditto.
11848         (gomp_destroy_nest_lock_30): Ditto.
11849         (gomp_set_nest_lock_30): Ditto.
11850         (gomp_unset_nest_lock_30): Ditto.
11851         (gomp_test_nest_lock_30): Ditto.
11852         * lock.c: New.
11853         * config/nvptx/lock.c: New.
11854         * config/nvptx/bar.c: New.
11855         * config/nvptx/bar.h: New.
11856         * config/nvptx/doacross.h: New.
11857         * config/nvptx/error.c: New.
11858         * config/nvptx/icv-device.c: New.
11859         * config/nvptx/mutex.h: New.
11860         * config/nvptx/pool.h: New.
11861         * config/nvptx/proc.c: New.
11862         * config/nvptx/ptrlock.h: New.
11863         * config/nvptx/sem.h: New.
11864         * config/nvptx/simple-bar.h: New.
11865         * config/nvptx/target.c: New.
11866         * config/nvptx/task.c: New.
11867         * config/nvptx/team.c: New.
11868         * config/nvptx/time.c: New.
11869         * config/posix/simple-bar.h: New.
11870         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
11871         (gomp_num_teams_var): Declare.
11872         (struct gomp_thread_pool): Change threads_dock member to
11873         gomp_simple_barrier_t.
11874         [__nvptx__] (gomp_thread): New implementation.
11875         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
11876         (gomp_thread_destructor): Ditto.
11877         (gomp_init_thread_affinity): Ditto.
11878         * team.c: Guard uses of Pthreads-specific interfaces by
11879         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
11880         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
11881         * config/nvptx/alloc.c: Delete.
11882         * config/nvptx/barrier.c: Ditto.
11883         * config/nvptx/fortran.c: Ditto.
11884         * config/nvptx/iter.c: Ditto.
11885         * config/nvptx/iter_ull.c: Ditto.
11886         * config/nvptx/loop.c: Ditto.
11887         * config/nvptx/loop_ull.c: Ditto.
11888         * config/nvptx/ordered.c: Ditto.
11889         * config/nvptx/parallel.c: Ditto.
11890         * config/nvptx/priority_queue.c: Ditto.
11891         * config/nvptx/sections.c: Ditto.
11892         * config/nvptx/single.c: Ditto.
11893         * config/nvptx/splay-tree.c: Ditto.
11894         * config/nvptx/work.c: Ditto.
11895         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
11896         -foffload=-lgfortran in addition to -lgfortran.
11897         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
11898         * plugin/plugin-nvptx.c: Include <limits.h>.
11899         (struct targ_fn_descriptor): Add new fields.
11900         (struct ptx_device): Ditto.  Set them...
11901         (nvptx_open_device): ...here.
11902         (nvptx_adjust_launch_bounds): New.
11903         (nvptx_host2dev): Allow NULL 'nvthd'.
11904         (nvptx_dev2host): Ditto.
11905         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
11906         (link_ptx): Adjust log sizes.
11907         (nvptx_host2dev): Allow NULL 'nvthd'.
11908         (nvptx_dev2host): Ditto.
11909         (nvptx_set_clocktick): New.  Use it...
11910         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
11911         fields.
11912         (GOMP_OFFLOAD_dev2dev): New.
11913         (nvptx_adjust_launch_bounds): New.
11914         (nvptx_stacks_size): New.
11915         (nvptx_stacks_alloc): New.
11916         (nvptx_stacks_free): New.
11917         (GOMP_OFFLOAD_run): New.
11918         (GOMP_OFFLOAD_async_run): New (stub).
11920 2016-11-23  Martin Jambor  <mjambor@suse.cz>
11922         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
11923         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
11924         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
11926 2016-11-23  Martin Liska  <mliska@suse.cz>
11927             Martin Jambor  <mjambor@suse.cz>
11929         * plugin/hsa.h: New file.
11930         * plugin/hsa_ext_finalize.h: New file.
11931         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
11932         header file unistd.h, and functions secure_getenv, __secure_getenv,
11933         getuid, geteuid, getgid and getegid.
11934         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
11935         -D_GNU_SOURCE.
11936         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
11937         Handle various cases of secure_getenv presence, add an implementation
11938         when we can test effective UID and GID.
11939         (struct hsa_runtime_fn_info): New structure.
11940         (hsa_runtime_fn_info hsa_fns): New variable.
11941         (hsa_runtime_lib): Likewise.
11942         (support_cpu_devices): Likewise.
11943         (init_enviroment_variables): Load newly introduced ENV
11944         variables.
11945         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
11946         (hsa_fatal): Likewise.
11947         (DLSYM_FN): New macro.
11948         (init_hsa_runtime_functions): New function.
11949         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
11950         structure.  Depending on environment, also allow CPU devices.
11951         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
11952         (get_kernarg_memory_region): Likewise.
11953         (GOMP_OFFLOAD_init_device): Likewise.
11954         (destroy_hsa_program): Likewise.
11955         (init_basic_kernel_info): New function.
11956         (GOMP_OFFLOAD_load_image): Use it.
11957         (create_and_finalize_hsa_program): Call hsa run-time functions via
11958         hsa_fns structure.
11959         (create_single_kernel_dispatch): Likewise.
11960         (release_kernel_dispatch): Likewise.
11961         (init_single_kernel): Likewise.
11962         (parse_target_attributes): Allow up multiple HSA grid dimensions.
11963         (get_group_size): New function.
11964         (run_kernel): Likewise.
11965         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
11966         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
11967         structure.
11968         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
11969         * testsuite/libgomp-test-support.exp.in: Likewise.
11970         * Makefile.in: Regenerated.
11971         * aclocal.m4: Likewise.
11972         * config.h.in: Likewise.
11973         * configure: Likewise.
11974         * testsuite/Makefile.in: Likewise.
11976 2016-11-15  Martin Jambor  <mjambor@suse.cz>
11977             Alexander Monakov  <amonakov@ispras.ru>
11979         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
11980         mapping clauses to target constructs.
11981         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
11983 2016-11-15  Matthias Klose  <doko@ubuntu.com>
11985         * configure: Regenerate.
11987 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
11989         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
11990         * omp_lib.h.in (openmp_version): Likewise.
11991         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
11992         of 201307.
11993         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11995         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
11996         (fib_wrapper): Add map(from: x) clause.
11997         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
11998         (e_53_2): Likewise.
11999         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12000         (accum): Add map(tmp) clause.
12001         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12002         (accum): Add map(tofrom: tmp) clause.
12003         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12004         (gramSchmidt): Likewise.
12005         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12006         map(tofrom: sum) clause.
12007         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12008         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12009         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12010         only allowed on the loop iterator.
12011         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12012         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12013         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12014         * testsuite/libgomp.fortran/doacross1.f90: New test.
12015         * testsuite/libgomp.fortran/doacross3.f90: New test.
12016         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12017         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12018         * testsuite/libgomp.fortran/doacross2.f90: New test.
12019         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12020         #pragma omp atomic read.
12021         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12022         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12024 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12025             Nathan Sidwell  <nathan@acm.org>
12027         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12028         to determine default geometry.
12029         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12030         dimension.
12032 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12034         * hashtab.h: Use standard GPLv3 with runtime exception
12035         boilerplate.
12037 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12039         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12040         size when allocating new thread.
12042 2016-09-14  Marek Polacek  <polacek@redhat.com>
12044         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12046 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12048         PR fortran/71014
12049         * testsuite/libgomp.fortran/pr71014.f90: New test.
12051 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12053         PR middle-end/70895
12054         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12055         firstprivate clauses.
12056         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12057         copy clauses.
12058         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12059         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12060         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12061         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12062         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12063         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12064         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12065         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12066         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12067         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12068         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12069         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12071 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12073         PR fortran/70598
12074         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12076 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12078         PR c++/58706
12079         * testsuite/libgomp.c++/pr58706.C: New test.
12081 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12083         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12084         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12085         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12086         Likewise.
12087         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12088         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12089         Likewise.
12090         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12092         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12093         test, and don't hardcode -O0.
12095 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12097         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12099 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12101         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12102         test.
12104 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12106         PR middle-end/71734
12107         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12108         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12110 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12112         PR fortran/71717
12113         * testsuite/libgomp.fortran/associate3.f90: New test.
12115 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12117         * testsuite/libgomp.c++/target-21.C: New test.
12119 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12121         * testsuite/libgomp.c++/target-20.C: New test.
12123 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12124             Cesar Philippidis  <cesar@codesourcery.com>
12126         PR middle-end/71373
12127         * libgomp.oacc-c/nested-function-1.c: New file.
12128         * libgomp.oacc-c/nested-function-2.c: Likewise.
12129         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12130         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12131         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12133 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12135         PR c/71381
12136         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12137         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12138         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12140 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
12142         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12143         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12145 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
12147         PR c/70688
12148         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12150 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12152         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12153         instead of invalid schedule(static, 0).
12154         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12156 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12158         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12159         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12160         parameter, use to set async stream around call to gomp_unmap_vars,
12161         call gomp_unmap_vars() with 'do_copyfrom' set to true.
12162         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12163         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12164         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12165         (event_add): Add int parameter, initialize 'val' field when
12166         adding new ptx_event struct.
12167         (nvptx_evec): Adjust event_add() call arguments.
12168         (nvptx_host2dev): Likewise.
12169         (nvptx_dev2host): Likewise.
12170         (nvptx_wait_async): Likewise.
12171         (nvptx_wait_all_async): Likewise.
12172         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12173         pass to event_add() call.
12174         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12175         parameter.
12176         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12177         call openacc.register_async_cleanup_func() hook.
12178         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12179         * target.c (gomp_copy_from_async): Delete function.
12180         (gomp_map_vars): Remove async_refcount.
12181         (gomp_unmap_vars): Likewise.
12182         (gomp_load_image_to_device): Likewise.
12183         (omp_target_associate_ptr): Likewise.
12184         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12185         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12186         (gomp_copy_from_async): Remove.
12188 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12190         * target.c (gomp_device_copy): New function.
12191         (gomp_copy_host2dev): Likewise.
12192         (gomp_copy_dev2host): Likewise.
12193         (gomp_free_device_memory): Likewise.
12194         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12195         (gomp_map_pointer): Likewise.
12196         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12197         NULL value from alloc_func plugin hook.
12198         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12199         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12200         (gomp_unmap_vars): Likewise.
12201         (gomp_update): Adjust to call gomp_copy_dev2host and
12202         gomp_copy_host2dev functions.
12203         (gomp_unload_image_from_device): Handle false value from
12204         unload_image_func plugin hook.
12205         (gomp_init_device): Handle false value from init_device_func
12206         plugin hook.
12207         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12208         (omp_target_free): Adjust to call gomp_free_device_memory.
12209         (omp_target_memcpy): Handle return values from host2dev_func,
12210         dev2host_func, and dev2dev_func plugin hooks.
12211         (omp_target_memcpy_rect_worker): Likewise.
12212         (gomp_target_fini): Handle false value from fini_device_func
12213         plugin hook.
12214         * libgomp.h (struct gomp_device_descr): Adjust return type of
12215         init_device_func, fini_device_func, unload_image_func, free_func,
12216         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12217         * oacc-init.c (acc_shutdown_1): Handle false value from
12218         fini_device_func plugin hook.
12219         * oacc-host.c (host_init_device): Change return type to bool.
12220         (host_fini_device): Likewise.
12221         (host_unload_image): Likewise.
12222         (host_free): Likewise.
12223         (host_dev2host): Likewise.
12224         (host_host2dev): Likewise.
12225         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12226         (acc_memcpy_to_device): Likewise.
12227         (acc_memcpy_from_device): Likewise.
12228         (delete_copyout): Add libfnname parameter, handle free_func
12229         hook fatal error case.
12230         (acc_delete): Adjust delete_copyout call.
12231         (acc_copyout): Likewise.
12232         (update_dev_host): Move gomp_mutex_unlock to after
12233         host2dev/dev2host hook calls.
12235         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12236         to 'hsa_error_msg', for clarity.
12237         (hsa_fatal): Likewise.
12238         (hsa_error): New function.
12239         (init_hsa_context): Change return type to bool, adjust to return
12240         false on error.
12241         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12242         return value.
12243         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12244         return false on error.
12245         (get_agent_info): Adjust to return NULL on error.
12246         (destroy_hsa_program): Change return type to bool, adjust to
12247         return false on error.
12248         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12249         (destroy_module): Change return type to bool, adjust to
12250         return false on error.
12251         (GOMP_OFFLOAD_unload_image): Likewise.
12252         (GOMP_OFFLOAD_fini_device): Likewise.
12253         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12254         (GOMP_OFFLOAD_free): Change to return false when called.
12255         (GOMP_OFFLOAD_dev2host): Likewise.
12256         (GOMP_OFFLOAD_host2dev): Likewise.
12257         (GOMP_OFFLOAD_dev2dev): Likewise.
12259         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12260         (CUDA_CALL): Likewise.
12261         (CUDA_CALL_ASSERT): Likewise.
12262         (map_init): Change return type to bool, use CUDA_CALL* macros.
12263         (map_fini): Likewise.
12264         (init_streams_for_device): Change return type to bool, adjust
12265         call to map_init.
12266         (fini_streams_for_device): Change return type to bool, adjust
12267         call to map_fini.
12268         (select_stream_for_async): Release stream_lock before calls to
12269         GOMP_PLUGIN_fatal, adjust call to map_init.
12270         (nvptx_init): Use CUDA_CALL* macros.
12271         (nvptx_attach_host_thread_to_device): Change return type to bool,
12272         use CUDA_CALL* macros.
12273         (nvptx_open_device): Use CUDA_CALL* macros.
12274         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12275         macros.
12276         (nvptx_get_num_devices): Use CUDA_CALL* macros.
12277         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12278         (nvptx_exec): Use CUDA_CALL* macros.
12279         (nvptx_alloc): Use CUDA_CALL* macros.
12280         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12281         (nvptx_host2dev): Likewise.
12282         (nvptx_dev2host): Likewise.
12283         (nvptx_wait): Use CUDA_CALL* macros.
12284         (nvptx_wait_async): Likewise.
12285         (nvptx_wait_all): Likewise.
12286         (nvptx_wait_all_async): Likewise.
12287         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12288         use CUDA_CALL* macros, adjust call to map_fini.
12289         (GOMP_OFFLOAD_init_device): Change return type to bool,
12290         adjust code accordingly.
12291         (GOMP_OFFLOAD_fini_device): Likewise.
12292         (GOMP_OFFLOAD_load_image): Adjust calls to
12293         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12294         use CUDA_CALL* macros.
12295         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12296         return code.
12297         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12298         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12299         handle error return.
12300         (GOMP_OFFLOAD_dev2host): Likewise.
12301         (GOMP_OFFLOAD_host2dev): Likewise.
12302         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12303         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12305 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12307         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12308         (acc_free): Likewise.
12309         (acc_memcpy_to_device): Likewise.
12310         (acc_memcpy_from_device): Likewise.
12311         (acc_deviceptr): Likewise.
12312         (acc_hostptr): Likewise.
12313         (acc_is_present): Likewise.
12314         (acc_map_data): Likewise.
12315         (acc_unmap_data): Likewise.
12316         (present_create_copy): Likewise.
12317         (delete_copyout): Likewise.
12318         (update_dev_host): Likewise.
12319         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12320         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12321         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12322         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12323         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12324         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12325         it only runs on nvptx targets.
12326         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12327         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12328         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12329         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12330         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12331         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12332         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12333         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12334         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12335         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12336         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12337         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12338         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12339         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12340         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12341         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12342         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12343         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12344         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12345         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12346         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12347         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12348         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12350 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12352         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12354 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
12356         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12357         to gomp_init_targets_once.
12358         (acc_set_device_type): Remove !cached_base_dev condition on call to
12359         gomp_init_targets_once, move call to before acc_device_lock acquire,
12360         to avoid deadlock.
12361         (acc_get_device_num): Remove !cached_base_dev condition on call to
12362         gomp_init_targets_once.
12363         (acc_set_device_num): Likewise.
12365 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12367         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12369 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12371         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12372         expected partitioning.
12374 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
12376         PR middle-end/70626
12377         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12378         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12379         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12381 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
12383         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12384         non-fatal.
12386 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12388         PR middle-end/70680
12389         * testsuite/libgomp.c/pr70680-1.c: New test.
12390         * testsuite/libgomp.c/pr70680-2.c: New test.
12392 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12394         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12395         pass parameter variables to subroutines.
12397 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12399         PR middle-end/70643
12400         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12402 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
12404         PR testsuite/68242
12405         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12406         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12408 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
12410         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12411         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12412         GOACC_declare prototype.
12414         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12415         Merge this file, and...
12416         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12417         ... this file, and...
12418         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12419         ... this file, and...
12420         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12421         ... this file, and...
12422         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12423         ... this file, and...
12424         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12425         ... this file, and...
12426         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12427         ... this file, and...
12428         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12429         ... this file, and...
12430         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12431         ... this file, and...
12432         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12433         ... this file, and...
12434         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12435         ... this file, and...
12436         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12437         ... this file, and...
12438         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12439         ... this file into...
12440         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12441         file.
12443         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12444         Make failure observable.
12446 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12448         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12449         field.
12450         * target.c (gomp_target_fallback_firstprivate,
12451         gomp_target_unshare_firstprivate): Removed.
12452         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12453         before waiting for dependencies.
12454         (gomp_target_task_fn): Don't copy firstprivate vars here.
12455         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12456         firstprivate_copies here.
12457         (gomp_create_target_task): Don't initialize firstprivate_copies field.
12458         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12459         explicit/implicit firstprivate.
12461 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12463         PR lto/70289
12464         PR ipa/70348
12465         PR tree-optimization/70373
12466         PR middle-end/70533
12467         PR middle-end/70534
12468         PR middle-end/70535
12469         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12470         test.
12471         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12472         test.
12473         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12474         test.
12475         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12476         test.
12477         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12478         test.
12479         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12480         test.
12481         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12482         test.
12483         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12484         test.
12485         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12486         test.
12487         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12488         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12489         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12490         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12491         test.
12492         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12493         test.
12494         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12495         test.
12496         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12497         test.
12498         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12499         coverage.
12500         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12501         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12502         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12503         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12504         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12505         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12506         coverage.
12507         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12508         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12509         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12510         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12511         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12512         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12513         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12514         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12515         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12516         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12517         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12518         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12519         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12520         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12521         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12523 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
12524             James Norris  <jnorris@codesourcery.com>
12525             Nathan Sidwell  <nathan@codesourcery.com>
12526             Julian Brown  <julian@codesourcery.com>
12527             Cesar Philippidis  <cesar@codesourcery.com>
12528             Chung-Lin Tang  <cltang@codesourcery.com>
12529             Tom de Vries  <tom@codesourcery.com>
12531         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12532         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12533         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12534         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12535         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12536         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12537         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12538         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12539         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12540         XFAIL.
12541         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12542         Incorporate...
12543         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12544         file.
12545         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12546         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12547         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12548         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12549         Likewise.
12550         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12551         Likewise.
12552         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12553         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12554         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12555         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12556         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12557         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12558         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12559         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12560         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12561         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12562         Likewise.
12563         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12564         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12565         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12566         file...
12567         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12568         file into...
12569         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12570         file.  Update.
12571         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12572         file.
12573         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12574         Likewise.
12575         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12576         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12577         ... this new file.  Update.
12578         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12579         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12580         ... this new file.  Update.
12581         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12582         file.  Incorporate...
12583         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12584         file, and...
12585         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12586         file, and...
12587         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12588         file.
12589         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12591 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12593         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12594         set-torture-options.
12596 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
12598         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12599         gcc-dg-runtest.
12600         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12601         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12602         -fno-builtin-acc_on_device instead of -O0.
12603         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12604         -O0.
12605         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12606         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12607         Likewise.
12608         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12609         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12610         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12611         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12612         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12613         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12614         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12615         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12616         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12617         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12618         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12619         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12620         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12621         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12622         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12623         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12624         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12625         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12626         Don't specify -O2.
12627         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12628         Likewise.
12629         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12630         Likewise.
12632 2016-03-24  Martin Liska  <mliska@suse.cz>
12634         * plugin/plugin-hsa.c (packet_store_release): New function
12635         that is taken from the HSA runtime manual.
12636         (GOMP_OFFLOAD_run): Use the function.
12638 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12640         PR c++/70376
12641         * testsuite/libgomp.c++/pr70376.C: New test.
12643 2016-03-23  Tom de Vries  <tom@codesourcery.com>
12645         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12646         initialization of lresult and lvresult.
12647         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12649 2016-03-23  James Norris  <jnorris@codesourcery.com>
12650             Daichi Fukuoka <dc-fukuoka@sgi.com>
12652         PR libgomp/69414
12653         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12654         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12655         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
12656         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
12658 2016-03-23  Martin Liska  <mliska@suse.cz>
12660         PR hsa/70337
12661         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
12662         argument just in case a dispatched kernel uses that argument.
12664 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
12666         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
12667         -ftree-parallelize-loops/-fopenacc changes.
12668         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
12669         Likewise.
12670         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12671         Likewise.
12672         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
12673         Likewise.
12674         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
12675         Likewise.
12676         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12677         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12679 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
12681         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
12682         always_ld_library_path the path to libgcc_s.
12684 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
12686         PR testsuite/70009
12687         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
12689 2016-03-09  Tom de Vries  <tom@codesourcery.com>
12691         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
12692         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
12693         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
12694         Same.
12695         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
12696         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
12697         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
12698         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
12700 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12702         * testsuite/lib/libgomp.exp
12703         (check_effective_target_hsa_offloading_selected_nocache): New.
12704         (check_effective_target_hsa_offloading_selected): Likewise.
12705         * testsuite/libgomp.hsa.c/c.exp: Likewise.
12706         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
12707         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
12708         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
12709         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
12710         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
12711         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
12712         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
12713         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
12714         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
12715         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
12716         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
12717         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
12718         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
12719         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
12720         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
12721         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
12723 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12725         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
12726         non-shared memory accelerators.
12727         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
12728         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
12729         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
12730         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
12731         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
12732         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
12733         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
12734         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
12735         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
12737 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12739         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
12740         ALWAYS_CFLAGS.
12742 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12744         PR libgomp/69555
12745         * testsuite/libgomp.c++/pr69555-1.C: New test.
12746         * testsuite/libgomp.c++/pr69555-2.C: New test.
12748 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
12749             Martin Jambor  <mjambor@suse.cz>
12751         * testsuite/lib/libgomp.exp
12752         (check_effective_target_offload_device_shared_as): New proc.
12753         * testsuite/libgomp.c++/declare_target-1.C: New test.
12755 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
12757         PR driver/68463
12758         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
12760 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
12762         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
12763         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
12764         dims.
12765         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
12766         -ftree-parallelize-loops/-fopenacc changes.
12767         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
12768         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
12769         Likewise.
12770         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
12771         Likewise.
12772         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
12773         Likewise.
12774         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
12775         Likewise.
12776         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
12777         Likewise.
12778         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
12779         Likewise.
12780         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
12781         Likewise.
12782         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
12783         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
12784         Likewise.
12785         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
12786         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
12787         Likewise.
12788         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
12789         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
12790         Likewise.
12792 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
12794         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
12796 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12798         PR driver/69805
12799         * testsuite/libgomp.c/pr69805.c: New test.
12801 2016-02-16  Tom de Vries  <tom@codesourcery.com>
12803         PR lto/67709
12804         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
12806 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12808         PR tree-optimization/69599
12809         * testsuite/libgomp.c/omp-nested-3.c: New test.
12810         * testsuite/libgomp.c/pr46032-2.c: New test.
12811         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
12812         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
12814 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12816         PR lto/69707
12817         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
12819 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12821         * testsuite/libgomp.c/target-31.c: Fix testcase.
12823 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12825         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
12826         clause.
12827         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
12828         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
12829         reduction and map clauses.
12830         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
12832 2016-02-02  James Norris  <jnorris@codesourcery.com>
12834         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
12836 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12838         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
12839         * oacc-parallel.c (GOACC_host_data): Remove function definition.
12841         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
12842         cases.
12844         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
12845         variables.
12846         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
12847         (hsa_kmt_lib): Set variables.
12848         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
12849         always_ld_library_path.
12850         * Makefile.in: Regenerate.
12851         * configure: Likewise.
12852         * testsuite/Makefile.in: Likewise.
12854         * plugin/configfrag.ac (offload_additional_options)
12855         (offload_additional_lib_paths): Don't amend for hsa offloading.
12856         * configure: Regenerate.
12858         * plugin/configfrag.ac: Don't configure for offloading target if
12859         we don't build the corresponding plugin.
12860         * configure: Regenerate.
12862 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
12864         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
12865         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
12867 2016-01-26  Tom de Vries  <tom@codesourcery.com>
12869         PR tree-optimization/69110
12870         * testsuite/libgomp.c/pr69110.c: New test.
12872 2016-01-25  Richard Biener  <rguenther@suse.de>
12874         PR lto/69393
12875         * testsuite/libgomp.c++/pr69393.C: New testcase.
12877 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
12879         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
12880         function wasn't mapped to the device with non-shared memory.
12882 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
12884         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
12886 2016-01-19  Martin Jambor  <mjambor@suse.cz>
12887             Martin Liska  <mliska@suse.cz>
12889         * plugin/Makefrag.am: Add HSA plugin requirements.
12890         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
12891         (HSA_RUNTIME_LIB): Likewise.
12892         (HSA_RUNTIME_CPPFLAGS): Likewise.
12893         (HSA_RUNTIME_INCLUDE): New substitution.
12894         (HSA_RUNTIME_LIB): Likewise.
12895         (HSA_RUNTIME_LDFLAGS): Likewise.
12896         (hsa-runtime): New configure option.
12897         (hsa-runtime-include): Likewise.
12898         (hsa-runtime-lib): Likewise.
12899         (PLUGIN_HSA): New substitution variable.
12900         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
12901         configure options.
12902         (PLUGIN_HSA_CPPFLAGS): Likewise.
12903         (PLUGIN_HSA_LDFLAGS): Likewise.
12904         (PLUGIN_HSA_LIBS): Likewise.
12905         Check that we have access to HSA run-time.
12906         * libgomp-plugin.h (offload_target_type): New element
12907         OFFLOAD_TARGET_TYPE_HSA.
12908         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
12909         args.
12910         (bool gomp_create_target_task): Updated.
12911         (gomp_device_descr): Extra parameter of run_func and async_run_func,
12912         new field can_run_func.
12913         * libgomp_g.h (GOMP_target_ext): Update prototype.
12914         * oacc-host.c (host_run): Added a new parameter args.
12915         * target.c (calculate_firstprivate_requirements): New function.
12916         (copy_firstprivate_data): Likewise.
12917         (gomp_target_fallback_firstprivate): Use them.
12918         (gomp_target_unshare_firstprivate): New function.
12919         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
12920         devices.
12921         (GOMP_target): Do host fallback for all shared memory devices.  Do not
12922         pass any args to plugins.
12923         (GOMP_target_ext): Introduce device-specific argument parameter args.
12924         Allow host fallback if device shares memory.  Do not remap data if
12925         device has shared memory.
12926         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
12927         like host fallback for mappings.
12928         (GOMP_target_data): Treat shared memory devices like host fallback.
12929         (GOMP_target_data_ext): Likewise.
12930         (GOMP_target_update): Likewise.
12931         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
12932         gomp_create_target_task.
12933         (GOMP_target_enter_exit_data): Likewise.
12934         (omp_target_alloc): Treat shared memory devices like host fallback.
12935         (omp_target_free): Likewise.
12936         (omp_target_is_present): Likewise.
12937         (omp_target_memcpy): Likewise.
12938         (omp_target_memcpy_rect): Likewise.
12939         (omp_target_associate_ptr): Likewise.
12940         (gomp_load_plugin_for_device): Also load can_run.
12941         * task.c (GOMP_PLUGIN_target_task_completion): Free
12942         firstprivate_copies.
12943         (gomp_create_target_task): Accept new argument args and store it to
12944         ttask.
12945         * plugin/plugin-hsa.c: New file.
12947 2016-01-18  Tom de Vries  <tom@codesourcery.com>
12949         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
12950         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
12951         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
12952         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
12953         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
12954         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
12955         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
12956         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
12957         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
12958         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
12959         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
12960         Same.
12961         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
12962         Same.
12963         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
12964         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
12965         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
12966         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
12967         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
12968         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
12969         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
12970         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
12971         Same.
12972         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
12974 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
12976         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
12978 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
12980         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
12982 2016-01-12  James Norris  <jnorris@codesourcery.com>
12984         * libgomp.texi: Updates for OpenACC.
12986 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
12988         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
12990 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
12992         PR fortran/66680
12993         * testsuite/libgomp.fortran/pr66680.f90: New test.
12995 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
12997         PR middle-end/68960
12998         * testsuite/libgomp.c/pr68960.c: New test.
13000 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13002         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13003         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13005 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13007         Update copyright years.
13009         * libgomp.texi: Bump @copying's copyright year.
13011 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13013         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13014         dg-additional-options syntax.
13015         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13016         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13017         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13018         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13019         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13020         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13021         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13022         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13023         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13024         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13025         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13026         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13027         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13028         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13029         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13030         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13031         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13032         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13034 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13036         * libgomp.h (REFCOUNT_LINK): Define.
13037         (struct splay_tree_key_s): Add link_key.
13038         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13039         Replace target address of the pointer with target address of newly
13040         mapped object in the splay tree.  Set link pointer on target to the
13041         device address of the mapped object.
13042         (gomp_unmap_vars): Restore target address of the pointer in the splay
13043         tree for REFCOUNT_LINK objects after unmapping.
13044         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13045         declare target link" objects.
13046         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13047         "omp declare target link" objects, which were mapped for the image.
13048         (gomp_exit_data): Restore target address of the pointer in the splay
13049         tree for REFCOUNT_LINK objects after unmapping.
13050         * testsuite/libgomp.c/target-link-1.c: New file.
13052 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13054         * libgomp.h (gomp_device_state): New enum.
13055         (struct gomp_device_descr): Replace is_initialized with state.
13056         (gomp_fini_device): Remove declaration.
13057         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13058         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13059         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13060         (acc_set_device_type): Use state instead of is_initialized.
13061         (acc_set_device_num): Likewise.
13062         * target.c (resolve_device): Use state instead of is_initialized.
13063         Do not initialize finalized device.
13064         (gomp_map_vars): Do nothing if device is finalized.
13065         (gomp_unmap_vars): Likewise.
13066         (gomp_update): Likewise.
13067         (GOMP_offload_register_ver): Use state instead of is_initialized.
13068         (GOMP_offload_unregister_ver): Likewise.
13069         (gomp_init_device): Likewise.
13070         (gomp_unload_device): Likewise.
13071         (gomp_fini_device): Remove.
13072         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13073         (GOMP_target): Go to host fallback if device is finalized.
13074         (GOMP_target_ext): Likewise.
13075         (gomp_exit_data): Do nothing if device is finalized.
13076         (gomp_target_task_fn): Go to host fallback if device is finalized.
13077         (gomp_target_fini): New static function.
13078         (gomp_target_init): Use state instead of is_initialized.
13079         Call gomp_target_fini at exit.
13081 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13083         PR tree-optimization/68716
13084         * testsuite/libgomp.c/omp-nested-2.c: New test.
13086 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13088         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13089         target openacc_nvidia_accel_selected.
13090         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13091         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13092         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13093         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13095 2015-12-01  Julian Brown  <julian@codesourcery.com>
13096             James Norris  <James_Norris@mentor.com>
13098         * oacc-parallel.c (GOACC_host_data): New function.
13099         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13100         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13101         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13102         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13103         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13104         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13105         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13107 2015-11-30  James Norris  <jnorris@codesourcery.com>
13108             Cesar Philippidis  <cesar@codesourcery.com>
13110         libgomp/
13111         * libgomp.oacc-fortran/routine-5.f90: New test.
13112         * libgomp.oacc-fortran/routine-7.f90: New test.
13113         * libgomp.oacc-fortran/routine-9.f90: New test.
13115 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13117         PR tree-optimization/46032
13118         * testsuite/libgomp.c/pr46032.c: New test.
13120 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13122         PR libgomp/68579
13123         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13124         (gomp_create_target_task): Call it before freeing
13125         GOMP_TARGET_TASK_DATA tasks.
13127         PR c/63326
13128         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13129         in between case label and OpenMP standalone directives.
13130         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13132 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
13134         * configure: Regenerate.
13136 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
13138         * testsuite/libgomp.c/target-35.c: New test.
13140 2015-11-22  James Norris  <jnorris@codesourcery.com>
13141             Cesar Philippidis  <cesar@codesourcery.com>
13143         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13144         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13145         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13146         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13147         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13149 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
13151         PR middle-end/68221
13152         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13153         * testsuite/libgomp.c/reduction-12.c: Likewise.
13154         * testsuite/libgomp.c++/reduction-11.C: Likewise.
13155         * testsuite/libgomp.c++/reduction-12.C: Likewise.
13157 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
13159         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13160         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13161         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13162         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13163         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13164         and fix.
13165         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13166         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13168 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
13170         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13171         worker & gang cases.
13172         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13174 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
13176         * config/nvptx/priority_queue.c: New file.
13178 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13180         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13181         sections.
13183 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13184             Aldy Hernandez  <aldyh@redhat.com>
13185             Ilya Verbin  <ilya.verbin@intel.com>
13187         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13188         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13189         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13190         iterators or IV by chunk size.
13191         * parallel.c (gomp_resolve_num_threads): Don't assume that
13192         if thr->ts.team is non-NULL, then pool must be non-NULL.
13193         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13194         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13195         GOMP_PLUGIN_target_task_completion.
13196         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13197         * Makefile.in: Regenerate.
13198         * libgomp.h: Shuffle prototypes and forward definitions around so
13199         priority queues can be defined.
13200         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13201         (enum gomp_target_task_state): New enum.
13202         (struct gomp_target_task): Add state, tgt, task and team fields.
13203         (gomp_create_target_task): Change return type to bool, add
13204         state argument.
13205         (gomp_target_task_fn): Change return type to bool.
13206         (struct gomp_device_descr): Add async_run_func.
13207         (struct gomp_task): Remove children, next_child, prev_child,
13208         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13209         Add pnode field.
13210         (struct gomp_taskgroup): Remove children.
13211         Add taskgroup_queue.
13212         (struct gomp_team): Change task_queue type to a priority queue.
13213         (splay_compare): Define inline.
13214         (priority_queue_offset): New.
13215         (priority_node_to_task): New.
13216         (task_to_priority_node): New.
13217         * oacc-mem.c: Do not include splay-tree.h.
13218         * priority_queue.c: New file.
13219         * priority_queue.h: New file.
13220         * splay-tree.c: Do not include splay-tree.h.
13221         (splay_tree_foreach_internal): New.
13222         (splay_tree_foreach): New.
13223         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13224         (splay_tree_callback): Define typedef.
13225         * target.c (splay_compare): Move to libgomp.h.
13226         (GOMP_target): Don't adjust *thr in any way around running offloaded
13227         task.
13228         (GOMP_target_ext): Likewise.  Handle target nowait.
13229         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13230         return value from gomp_create_target_task, if false, fallthrough
13231         as if no dependencies exist.
13232         (gomp_target_task_fn): Change return type to bool, return true
13233         if the task should have another part scheduled later.  Handle
13234         target nowait.
13235         (gomp_load_plugin_for_device): Initialize async_run.
13236         * task.c (gomp_init_task): Initialize children_queue.
13237         (gomp_clear_parent_in_list): New.
13238         (gomp_clear_parent_in_tree): New.
13239         (gomp_clear_parent): Handle priorities.
13240         (GOMP_task): Likewise.
13241         (priority_queue_move_task_first,
13242         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13243         New functions.
13244         (gomp_create_target_task): Use priority queues.  Change return type
13245         to bool, add state argument, return false if for async
13246         {{enter,exit} data,update} constructs no dependencies need to be
13247         waited for, handle target nowait.  Set task->fn to NULL instead of
13248         gomp_target_task_fn.
13249         (verify_children_queue): Remove.
13250         (priority_list_upgrade_task): New.
13251         (priority_queue_upgrade_task): New.
13252         (verify_task_queue): Remove.
13253         (priority_list_downgrade_task): New.
13254         (priority_queue_downgrade_task): New.
13255         (gomp_task_run_pre): Use priority queues.
13256         Abstract code out to priority_queue_downgrade_task.
13257         (gomp_task_run_post_handle_dependers): Use priority queues.
13258         (gomp_task_run_post_remove_parent): Likewise.
13259         (gomp_task_run_post_remove_taskgroup): Likewise.
13260         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
13261         tasks specially.
13262         (GOMP_taskwait): Likewise.
13263         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
13264         priority-queue_upgrade_task.
13265         (GOMP_taskgroup_start): Use priority queues.
13266         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
13267         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
13268         barrier.
13269         * taskloop.c (GOMP_taskloop): Handle priorities.
13270         * team.c (gomp_new_team): Call priority_queue_init.
13271         (free_team): Call priority_queue_free.
13272         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13273         team created for target nowait in implicit parallel region.
13274         (gomp_team_start): For nested check, test thr->ts.level instead of
13275         thr->ts.team != NULL.
13276         * testsuite/libgomp.c/doacross-3.c: New test.
13277         * testsuite/libgomp.c/ordered-5.c: New test.
13278         * testsuite/libgomp.c/priority.c: New test.
13279         * testsuite/libgomp.c/target-31.c: New test.
13280         * testsuite/libgomp.c/target-32.c: New test.
13281         * testsuite/libgomp.c/target-33.c: New test.
13282         * testsuite/libgomp.c/target-34.c: New test.
13284 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13286         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13288         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13289         loop is sequential.
13291 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13293         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13294         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13296 2015-11-12  James Norris  <jnorris@codesourcery.com>
13297             Joseph Myers  <joseph@codesourcery.com>
13299         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13300         * oacc-parallel.c (GOACC_declare): New function.
13301         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13302         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13303         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13304         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13305         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13307 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
13309         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13311 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
13313         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13314         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13316 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13318         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13319         inadvertent commit.
13321 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13323         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13324         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13325         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13326         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13327         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13329 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
13331         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13332         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13334 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
13335             Ilya Verbin  <ilya.verbin@intel.com>
13337         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13338         GOMP_loop_nonmonotonic_dynamic_start,
13339         GOMP_loop_nonmonotonic_guided_next,
13340         GOMP_loop_nonmonotonic_guided_start,
13341         GOMP_loop_ull_nonmonotonic_dynamic_next,
13342         GOMP_loop_ull_nonmonotonic_dynamic_start,
13343         GOMP_loop_ull_nonmonotonic_guided_next,
13344         GOMP_loop_ull_nonmonotonic_guided_start,
13345         GOMP_parallel_loop_nonmonotonic_dynamic,
13346         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13347         (GOMP_target_41): Renamed to ...
13348         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13349         arguments.
13350         (GOMP_target_data_41): Renamed to ...
13351         (GOMP_target_data_ext): ... this.
13352         (GOMP_target_update_41): Renamed to ...
13353         (GOMP_target_update_ext): ... this.
13354         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13355         GOMP_target_data_ext and GOMP_target_update_ext instead of
13356         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13357         Export GOMP_loop_nonmonotonic_dynamic_next,
13358         GOMP_loop_nonmonotonic_dynamic_start,
13359         GOMP_loop_nonmonotonic_guided_next,
13360         GOMP_loop_nonmonotonic_guided_start,
13361         GOMP_loop_ull_nonmonotonic_dynamic_next,
13362         GOMP_loop_ull_nonmonotonic_dynamic_start,
13363         GOMP_loop_ull_nonmonotonic_guided_next,
13364         GOMP_loop_ull_nonmonotonic_guided_start,
13365         GOMP_parallel_loop_nonmonotonic_dynamic and
13366         GOMP_parallel_loop_nonmonotonic_guided.
13367         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13368         GOMP_parallel_loop_nonmonotonic_guided,
13369         GOMP_loop_nonmonotonic_dynamic_start,
13370         GOMP_loop_nonmonotonic_guided_start,
13371         GOMP_loop_nonmonotonic_dynamic_next,
13372         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13373         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13374         GOMP_loop_ull_nonmonotonic_guided_start,
13375         GOMP_loop_ull_nonmonotonic_dynamic_next,
13376         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13377         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13378         functions.
13379         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
13380         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13381         Use gomp_map_val function.
13382         (gomp_target_fallback_firstprivate): New static function.
13383         (GOMP_target_41): Renamed to ...
13384         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13385         arguments.  Move firstprivate fallback handling into a new
13386         function.
13387         (GOMP_target_data_41): Renamed to ...
13388         (GOMP_target_data_ext): ... this.
13389         (GOMP_target_update_41): Renamed to ...
13390         (GOMP_target_update_ext): ... this.
13391         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13392         gomp_map_0len_lookup instead of gomp_map_lookup.
13393         (omp_target_is_present): Use gomp_map_0len_lookup instead of
13394         gomp_map_lookup.
13395         * testsuite/libgomp.c/target-28.c: Likewise.
13396         * testsuite/libgomp.c/monotonic-1.c: New test.
13397         * testsuite/libgomp.c/monotonic-2.c: New test.
13398         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13399         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13400         * testsuite/libgomp.c/pr66199-5.c: New test.
13401         * testsuite/libgomp.c/pr66199-6.c: New test.
13402         * testsuite/libgomp.c/pr66199-7.c: New test.
13403         * testsuite/libgomp.c/pr66199-8.c: New test.
13404         * testsuite/libgomp.c/pr66199-9.c: New test.
13405         * testsuite/libgomp.c/reduction-11.c: New test.
13406         * testsuite/libgomp.c/reduction-12.c: New test.
13407         * testsuite/libgomp.c/reduction-13.c: New test.
13408         * testsuite/libgomp.c/reduction-14.c: New test.
13409         * testsuite/libgomp.c/reduction-15.c: New test.
13410         * testsuite/libgomp.c/target-12.c (main): Adjust for
13411         omp_target_is_present change for one-past-last element.
13412         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13413         the same var is both mapped and privatized.
13414         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13415         handling of zero-length array sections.
13416         * testsuite/libgomp.c/target-28.c: New test.
13417         * testsuite/libgomp.c/target-29.c: New test.
13418         * testsuite/libgomp.c/target-30.c: New test.
13419         * testsuite/libgomp.c/target-teams-1.c: New test.
13420         * testsuite/libgomp.c++/member-6.C: New test.
13421         * testsuite/libgomp.c++/member-7.C: New test.
13422         * testsuite/libgomp.c++/monotonic-1.C: New test.
13423         * testsuite/libgomp.c++/monotonic-2.C: New test.
13424         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13425         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13426         * testsuite/libgomp.c++/pr66199-3.C: New test.
13427         * testsuite/libgomp.c++/pr66199-4.C: New test.
13428         * testsuite/libgomp.c++/pr66199-5.C: New test.
13429         * testsuite/libgomp.c++/pr66199-6.C: New test.
13430         * testsuite/libgomp.c++/pr66199-7.C: New test.
13431         * testsuite/libgomp.c++/pr66199-8.C: New test.
13432         * testsuite/libgomp.c++/pr66199-9.C: New test.
13433         * testsuite/libgomp.c++/reduction-11.C: New test.
13434         * testsuite/libgomp.c++/reduction-12.C: New test.
13435         * testsuite/libgomp.c++/target-13.C: New test.
13436         * testsuite/libgomp.c++/target-14.C: New test.
13437         * testsuite/libgomp.c++/target-15.C: New test.
13438         * testsuite/libgomp.c++/target-16.C: New test.
13439         * testsuite/libgomp.c++/target-17.C: New test.
13440         * testsuite/libgomp.c++/target-18.C: New test.
13441         * testsuite/libgomp.c++/target-19.C: New test.
13443 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13445         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13446         and reduction copy.
13447         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13448         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13449         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13450         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13451         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13452         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13453         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13454         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13455         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13456         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13457         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13458         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13459         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13460         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13462 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13464         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13465         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13466         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13467         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13468         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13469         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13470         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13471         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13473 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
13475         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13476         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13477         (GOMP_OFFLOAD_openacc_parallel): Likewise.
13478         * oacc-host.c (host_openacc_exec): Likewise.
13479         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13481 2015-11-03  Julian Brown  <julian@codesourcery.com>
13482             Thomas Schwinge  <thomas@codesourcery.com>
13484         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13485         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13486         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13487         Likewise.
13488         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13489         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13491 2015-11-03  James Norris  <jnorris@codesourcery.com>
13493         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13494         file.
13495         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13496         Likewise.
13497         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13498         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13499         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13500         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13501         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13503 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
13505         * openacc.h (enum acc_device_t): Reformat. Ensure layout
13506         compatibility.
13507         (enum acc_async_t): Reformat.
13508         (acc_on_device): Declare compatible with builtin and provide C++
13509         wrapper.
13510         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13512 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
13513             Cesar Philippidis  <cesar@codesourcery.com>
13515         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13516         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13517         ... this.  Add a description of the test at the top of the file.
13518         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13519         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13520         ... this.  Add a description of the test at the top of the file.
13522 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
13524         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13525         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13526         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13527         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13528         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13529         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13531 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
13533         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13534         dimensions.
13536 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
13538         PR testsuite/68063
13539         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13541 2015-10-27  James Norris  <jnorris@codesourcery.com>
13543         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13544         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13546 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
13548         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13549         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13551         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13552         acc_device_nvidia usage.
13553         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13554         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13555         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13557         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13558         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13560         PR libgomp/66518
13561         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13563         PR libgomp/65437
13564         PR libgomp/66518
13565         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13566         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13568 2015-10-23  Tom de Vries  <tom@codesourcery.com>
13570         PR testsuite/68063
13571         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13573 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
13575         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13576         vector_length.
13577         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13579 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
13580             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
13582         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13583         to 0 when mapnum is 0.
13585 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13587         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13588         Cast to int from int32_t.
13590 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
13591             Aldy Hernandez  <aldyh@redhat.com>
13592             Ilya Verbin  <ilya.verbin@intel.com>
13594         * config/linux/affinity.c (omp_get_place_num_procs,
13595         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13596         * config/linux/doacross.h: New file.
13597         * config/posix/affinity.c (omp_get_place_num_procs,
13598         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13599         * config/posix/doacross.h: New file.
13600         * env.c: Include gomp-constants.h.
13601         (struct gomp_task_icv): Rename run_sched_modifier to
13602         run_sched_chunk_size.
13603         (gomp_max_task_priority_var): New variable.
13604         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13605         (handle_omp_display_env): Change _OPENMP value from 201307 to
13606         201511.  Print OMP_MAX_TASK_PRIORITY.
13607         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13608         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13609         chunk_size and run_sched_modifier to run_sched_chunk_size.
13610         (omp_get_max_task_priority, omp_get_initial_device,
13611         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13612         omp_get_partition_place_nums): New functions.
13613         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13614         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13615         to chunk_size.
13616         (omp_get_num_places_, omp_get_place_num_procs_,
13617         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13618         omp_get_place_proc_ids_8_, omp_get_place_num_,
13619         omp_get_partition_num_places_, omp_get_partition_place_nums_,
13620         omp_get_partition_place_nums_8_, omp_get_initial_device_,
13621         omp_get_max_task_priority_): New functions.
13622         * libgomp_g.h (GOMP_loop_doacross_static_start,
13623         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13624         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13625         GOMP_loop_ull_doacross_dynamic_start,
13626         GOMP_loop_ull_doacross_guided_start,
13627         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13628         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13629         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13630         GOMP_target_data_41, GOMP_target_update_41,
13631         GOMP_target_enter_exit_data): New prototypes.
13632         (GOMP_task): Add prototype argument.
13633         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13634         (struct gomp_doacross_work_share): New type.
13635         (struct gomp_work_share): Add doacross field.
13636         (struct gomp_task_icv): Rename run_sched_modifier to
13637         run_sched_chunk_size.
13638         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13639         GOMP_TASK_UNDEFERRED.  Add comments.
13640         (struct gomp_task_depend_entry): Add comments.
13641         (struct gomp_task): Likewise.
13642         (struct gomp_taskgroup): Likewise.
13643         (struct gomp_target_task): New type.
13644         (struct gomp_team): Add comment.
13645         (gomp_get_place_proc_ids_8, gomp_doacross_init,
13646         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13647         gomp_create_target_task, gomp_target_task_fn): New prototypes.
13648         (struct target_var_desc): New type.
13649         (struct target_mem_desc): Adjust comment.  Use struct
13650         target_var_desc instead of splay_tree_key for list.
13651         (REFCOUNT_INFINITY): Define.
13652         (struct splay_tree_key_s): Remove copy_from field.
13653         (struct gomp_device_descr): Add dev2dev_func field.
13654         (enum gomp_map_vars_kind): New enum.
13655         (gomp_map_vars): Add one argument.
13656         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
13657         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
13658         omp_get_place_num_procs, omp_get_place_num_procs_,
13659         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
13660         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
13661         omp_get_place_num_, omp_get_partition_num_places,
13662         omp_get_partition_num_places_, omp_get_partition_place_nums,
13663         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
13664         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
13665         omp_target_free, omp_target_is_present, omp_target_memcpy,
13666         omp_target_memcpy_rect, omp_target_associate_ptr and
13667         omp_target_disassociate_ptr.
13668         (GOMP_4.0.2): Renamed to ...
13669         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
13670         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
13671         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
13672         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13673         GOMP_loop_doacross_static_start, GOMP_doacross_post,
13674         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
13675         GOMP_loop_ull_doacross_guided_start,
13676         GOMP_loop_ull_doacross_runtime_start,
13677         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
13678         GOMP_doacross_ull_wait.
13679         * libgomp.texi: Document omp_get_max_task_priority.
13680         Rename modifier argument to chunk_size for omp_set_schedule and
13681         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
13682         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
13683         to run_sched_chunk_size renaming.
13684         (GOMP_loop_ordered_runtime_start): Likewise.
13685         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
13686         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
13687         GOMP_parallel_loop_runtime_start): New functions.
13688         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
13689         to run_sched_chunk_size renaming.
13690         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
13691         GOMP_loop_doacross_guided_start): New functions or aliases.
13692         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
13693         run_sched_modifier to run_sched_chunk_size renaming.
13694         (GOMP_loop_ull_ordered_runtime_start): Likewise.
13695         (gomp_loop_ull_doacross_static_start,
13696         gomp_loop_ull_doacross_dynamic_start,
13697         gomp_loop_ull_doacross_guided_start,
13698         GOMP_loop_ull_doacross_runtime_start): New functions.
13699         (GOMP_loop_ull_doacross_static_start,
13700         GOMP_loop_ull_doacross_dynamic_start,
13701         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
13702         * oacc-mem.c (acc_map_data, present_create_copy,
13703         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
13704         to gomp_map_vars.
13705         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
13706         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
13707         instead of false to gomp_map_vars.
13708         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
13709         * omp.h.in (omp_lock_hint_t): New type.
13710         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13711         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13712         omp_get_place_num, omp_get_partition_num_places,
13713         omp_get_partition_place_nums, omp_get_initial_device,
13714         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
13715         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
13716         omp_target_associate_ptr, omp_target_disassociate_ptr): New
13717         prototypes.
13718         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
13719         (omp_lock_hint_none, omp_lock_hint_uncontended,
13720         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13721         omp_lock_hint_speculative): New parameters.
13722         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13723         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13724         omp_get_place_num, omp_get_partition_num_places,
13725         omp_get_partition_place_nums, omp_get_initial_device,
13726         omp_get_max_task_priority): New interfaces.
13727         (omp_set_schedule, omp_get_schedule): Rename modifier argument
13728         to chunk_size.
13729         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
13730         (omp_lock_hint_none, omp_lock_hint_uncontended,
13731         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
13732         omp_lock_hint_speculative): New parameters.
13733         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
13734         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
13735         omp_get_place_num, omp_get_partition_num_places,
13736         omp_get_partition_place_nums, omp_get_initial_device,
13737         omp_get_max_task_priority): New functions and subroutines.
13738         * ordered.c: Include stdarg.h and string.h.
13739         (MAX_COLLAPSED_BITS): Define.
13740         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
13741         gomp_doacross_ull_init, GOMP_doacross_ull_post,
13742         GOMP_doacross_ull_wait): New functions.
13743         * target.c: Include errno.h.
13744         (resolve_device): If device is not initialized, call
13745         gomp_init_device on it.
13746         (gomp_map_lookup): New function.
13747         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
13748         Don't bump refcount if REFCOUNT_INFINITY.  Handle
13749         GOMP_MAP_ALWAYS_TO_P.
13750         (get_kind): Rename is_openacc argument to short_mapkind.
13751         (gomp_map_pointer): Use gomp_map_lookup.
13752         (gomp_map_fields_existing): New function.
13753         (gomp_map_vars): Rename is_openacc argument to short_mapkind
13754         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
13755         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
13756         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
13757         Adjust for tgt->list changed type and copy_from living in there.
13758         (gomp_copy_from_async): Adjust for tgt->list changed type and
13759         copy_from living in there.
13760         (gomp_unmap_vars): Likewise.
13761         (gomp_update): Likewise.  Rename is_openacc argument to
13762         short_mapkind.  Don't fail if object is not mapped.
13763         (gomp_load_image_to_device): Initialize refcount to
13764         REFCOUNT_INFINITY.
13765         (gomp_target_fallback): New function.
13766         (gomp_get_target_fn_addr): Likewise.
13767         (GOMP_target): Adjust gomp_map_vars caller, use
13768         gomp_get_target_fn_addr and gomp_target_fallback.
13769         (GOMP_target_41): New function.
13770         (gomp_target_data_fallback): New function.
13771         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
13772         (GOMP_target_data_41): New function.
13773         (GOMP_target_update): Adjust gomp_update caller.
13774         (GOMP_target_update_41): New function.
13775         (gomp_exit_data, GOMP_target_enter_exit_data,
13776         gomp_target_task_fn, omp_target_alloc, omp_target_free,
13777         omp_target_is_present, omp_target_memcpy,
13778         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
13779         omp_target_associate_ptr, omp_target_disassociate_ptr,
13780         gomp_load_plugin_for_device): New functions.
13781         * task.c: Include gomp-constants.h.  Include taskloop.c
13782         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
13783         (gomp_task_handle_depend): New function.
13784         (GOMP_task): Use it.  Add priority argument.  Use
13785         gomp-constant.h constants instead of hardcoded numbers.
13786         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
13787         (gomp_create_target_task): New function.
13788         (verify_children_queue, verify_taskgroup_queue,
13789         verify_task_queue): New functions.
13790         (gomp_task_run_pre): Call verify_*_queue functions.
13791         If an upcoming tied task is about to leave the sibling or
13792         taskgroup queues in an invalid state, adjust appropriately.
13793         Remove taskgroup argument.  Add comments.
13794         (gomp_task_run_post_handle_dependers): Add comments.
13795         (gomp_task_run_post_remove_parent): Likewise.
13796         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
13797         (GOMP_taskwait): Likewise.  Add comments.
13798         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
13799         problem such that the first non parent_depends_on task does not
13800         end up at the end of the children queue.
13801         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
13802         GOMP_TASK_UNDEFERRED.
13803         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
13804         * taskloop.c: New file.
13805         * testsuite/lib/libgomp.exp
13806         (check_effective_target_offload_device_nonshared_as): New proc.
13807         * testsuite/libgomp.c/affinity-2.c: New test.
13808         * testsuite/libgomp.c/doacross-1.c: New test.
13809         * testsuite/libgomp.c/doacross-2.c: New test.
13810         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
13811         Add map clause to target.
13812         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
13813         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
13814         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
13815         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
13816         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
13817         Likewise.
13818         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
13819         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
13820         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
13821         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
13822         not defined.  Use those where needed.
13823         * testsuite/libgomp.c/for-4.c: New test.
13824         * testsuite/libgomp.c/for-5.c: New test.
13825         * testsuite/libgomp.c/for-6.c: New test.
13826         * testsuite/libgomp.c/linear-1.c: New test.
13827         * testsuite/libgomp.c/ordered-4.c: New test.
13828         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
13829         only allowed on the loop iterator.
13830         * testsuite/libgomp.c/pr66199-3.c: New test.
13831         * testsuite/libgomp.c/pr66199-4.c: New test.
13832         * testsuite/libgomp.c/reduction-7.c: New test.
13833         * testsuite/libgomp.c/reduction-8.c: New test.
13834         * testsuite/libgomp.c/reduction-9.c: New test.
13835         * testsuite/libgomp.c/reduction-10.c: New test.
13836         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
13837         map(tofrom:s).
13838         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
13839         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
13840         * testsuite/libgomp.c/target-11.c: New test.
13841         * testsuite/libgomp.c/target-12.c: New test.
13842         * testsuite/libgomp.c/target-13.c: New test.
13843         * testsuite/libgomp.c/target-14.c: New test.
13844         * testsuite/libgomp.c/target-15.c: New test.
13845         * testsuite/libgomp.c/target-16.c: New test.
13846         * testsuite/libgomp.c/target-17.c: New test.
13847         * testsuite/libgomp.c/target-18.c: New test.
13848         * testsuite/libgomp.c/target-19.c: New test.
13849         * testsuite/libgomp.c/target-20.c: New test.
13850         * testsuite/libgomp.c/target-21.c: New test.
13851         * testsuite/libgomp.c/target-22.c: New test.
13852         * testsuite/libgomp.c/target-23.c: New test.
13853         * testsuite/libgomp.c/target-24.c: New test.
13854         * testsuite/libgomp.c/target-25.c: New test.
13855         * testsuite/libgomp.c/target-26.c: New test.
13856         * testsuite/libgomp.c/target-27.c: New test.
13857         * testsuite/libgomp.c/taskloop-1.c: New test.
13858         * testsuite/libgomp.c/taskloop-2.c: New test.
13859         * testsuite/libgomp.c/taskloop-3.c: New test.
13860         * testsuite/libgomp.c/taskloop-4.c: New test.
13861         * testsuite/libgomp.c++/ctor-13.C: New test.
13862         * testsuite/libgomp.c++/doacross-1.C: New test.
13863         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
13864         Replace offload_device with offload_device_nonshared_as.
13865         * testsuite/libgomp.c++/for-12.C: New test.
13866         * testsuite/libgomp.c++/for-13.C: New test.
13867         * testsuite/libgomp.c++/for-14.C: New test.
13868         * testsuite/libgomp.c++/linear-1.C: New test.
13869         * testsuite/libgomp.c++/member-1.C: New test.
13870         * testsuite/libgomp.c++/member-2.C: New test.
13871         * testsuite/libgomp.c++/member-3.C: New test.
13872         * testsuite/libgomp.c++/member-4.C: New test.
13873         * testsuite/libgomp.c++/member-5.C: New test.
13874         * testsuite/libgomp.c++/ordered-1.C: New test.
13875         * testsuite/libgomp.c++/reduction-5.C: New test.
13876         * testsuite/libgomp.c++/reduction-6.C: New test.
13877         * testsuite/libgomp.c++/reduction-7.C: New test.
13878         * testsuite/libgomp.c++/reduction-8.C: New test.
13879         * testsuite/libgomp.c++/reduction-9.C: New test.
13880         * testsuite/libgomp.c++/reduction-10.C: New test.
13881         * testsuite/libgomp.c++/reference-1.C: New test.
13882         * testsuite/libgomp.c++/simd14.C: New test.
13883         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
13884         * testsuite/libgomp.c++/target-5.C: New test.
13885         * testsuite/libgomp.c++/target-6.C: New test.
13886         * testsuite/libgomp.c++/target-7.C: New test.
13887         * testsuite/libgomp.c++/target-8.C: New test.
13888         * testsuite/libgomp.c++/target-9.C: New test.
13889         * testsuite/libgomp.c++/target-10.C: New test.
13890         * testsuite/libgomp.c++/target-11.C: New test.
13891         * testsuite/libgomp.c++/target-12.C: New test.
13892         * testsuite/libgomp.c++/taskloop-1.C: New test.
13893         * testsuite/libgomp.c++/taskloop-2.C: New test.
13894         * testsuite/libgomp.c++/taskloop-3.C: New test.
13895         * testsuite/libgomp.c++/taskloop-4.C: New test.
13896         * testsuite/libgomp.c++/taskloop-5.C: New test.
13897         * testsuite/libgomp.c++/taskloop-6.C: New test.
13898         * testsuite/libgomp.c++/taskloop-7.C: New test.
13899         * testsuite/libgomp.c++/taskloop-8.C: New test.
13900         * testsuite/libgomp.c++/taskloop-9.C: New test.
13901         * testsuite/libgomp.fortran/affinity1.f90: New test.
13902         * testsuite/libgomp.fortran/affinity2.f90: New test.
13904 2015-10-13  Tom de Vries  <tom@codesourcery.com>
13906         PR tree-optimization/67476
13907         * testsuite/libgomp.c/autopar-3.c: New test.
13908         * testsuite/libgomp.c/autopar-4.c: New test.
13909         * testsuite/libgomp.c/autopar-5.c: New test.
13910         * testsuite/libgomp.c/autopar-6.c: New test.
13911         * testsuite/libgomp.c/autopar-7.c: New test.
13912         * testsuite/libgomp.c/autopar-8.c: New test.
13914 2015-10-12  James Norris  <jnorris@codesourcery.com>
13916         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
13917         initializer.
13919 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
13921         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
13922         using load_gcc_lib.
13924 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13926         * oacc-ptx.h: Remove file, moving its content into...
13927         * config/nvptx/fortran.c: ... here...
13928         * config/nvptx/oacc-init.c: ..., here...
13929         * config/nvptx/oacc-parallel.c: ..., and here.
13930         * config/nvptx/openacc.f90: New file.
13931         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
13932         (link_ptx): Don't link in predefined bits of PTX code.
13934 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13935             Bernd Schmidt <bernds@codesourcery.com>
13937         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
13938         (struct targ_ptx_obj): New.
13939         (nvptx_tdata): Move earlier, change data format.
13940         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
13941         objects.
13942         (GOMP_OFFLOAD_load_image): Adjust.
13944 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13946         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
13947         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13948         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
13949         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
13950         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
13951         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
13952         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
13953         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
13954         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
13955         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
13956         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
13957         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
13958         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
13959         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13960         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13961         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13962         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13963         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13964         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13965         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13966         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13967         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13968         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
13969         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
13970         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13971         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13972         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
13973         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13974         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13975         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
13976         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
13977         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
13978         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
13979         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
13980         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13981         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13982         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13983         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13984         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13985         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13986         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13987         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13988         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
13989         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
13990         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
13991         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
13992         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
13993         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
13994         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
13995         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
13996         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
13997         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
13998         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
13999         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14000         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14001         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14002         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14003         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14004         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14005         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14006         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14007         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14008         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14010 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14012         * oacc-init.c (acc_on_device): Force optimization level.
14014 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14016         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14017         (cuda_errlist): Delete.
14018         (cuda_error): Reimplement.
14020 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14022         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14023         array.
14024         * libgomp.map (GOACC_parallel_keyed): New.
14025         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14026         all callers.
14027         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14028         and take keyed varargs list.  Adjust call to exec_func.
14029         (GOACC_parallel): Force host fallback.
14030         * libgomp_g.h (GOACC_parallel): Remove.
14031         (GOACC_parallel_keyed): Declare.
14032         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14033         (struct targ_gn_descriptor): Replace name field with launch field.
14034         (nvptx_exec): Lose separate geometry args, take array.  Process
14035         dynamic dimensions and adjust.
14036         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14037         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14038         data.
14039         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14040         passing.
14041         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14042         passing.
14044 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14046         PR libgomp/67141
14047         * oacc-int.h (goacc_host_init): Add declaration.
14048         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14049         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14051 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14052             Sebastian Pop  <s.pop@samsung.com>
14054         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14055         match o/p.
14056         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14057         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14058         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14059         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14060         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14062 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14064         * configure.tgt: Add missing ;; in between nvptx and rtems
14065         snippets.
14067 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14069         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14070         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14071         (gomp_thread_pool_reservoir): Add priority member.
14072         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14073         priority.
14074         (parse_thread_pools): Likewise.
14075         * team.c (gomp_team_start): Call configuration provided
14076         gomp_adjust_thread_attr(). Destroy thread attributes if
14077         necessary.
14078         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14080 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14082         * config/posix/pool.h: New.
14083         * config/rtems/pool.h: Likewise.
14084         * config/rtems/proc.c: Likewise.
14085         * libgomp.h (gomp_thread_destructor): Declare.
14086         * team.c: Include configuration provided "pool.h".
14087         (gomp_get_thread_pool): Define in configuration.
14088         (gomp_team_end): Call configuration defined
14089         gomp_release_thread_pool().
14091 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14093         * config/rtems/bar.c: New.
14094         * config/rtems/bar.h: Likewise.
14095         * config/rtems/mutex.c: Likewise.
14096         * config/rtems/mutex.h: Likewise.
14097         * config/rtems/sem.c: Likewise.
14098         * config/rtems/sem.h: Likewise.
14099         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14100         <sys/lock.h> header file.
14101         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14102         supported by Newlib.
14103         * configure: Regenerate.
14105 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14107         * team.c (gomp_new_thread_pool): Delete and move content to ...
14108         (gomp_get_thread_pool): ... new function.  Allocate and
14109         initialize thread pool on demand.
14110         (get_last_team): Use gomp_get_thread_pool().
14111         (gomp_team_start): Delete thread pool initialization.
14113 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14115         PR tree-optimization/65637
14116         * testsuite/libgomp.c/autopar-2.c: New test.
14118 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14120         PR tree-optimization/46193
14121         * testsuite/libgomp.c/pr46193.c: New test.
14123 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14125         libgomp/
14126         * libgomp.map: Add 4.0.2 version.
14127         * target.c (offload_image_descr): Add version field.
14128         (gomp_load_image_to_device): Add version argument.  Adjust plugin
14129         call.  Improve load mismatch diagnostic.
14130         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
14131         call.
14132         (GOMP_offload_regster): Make stub function, move bulk to ...
14133         (GOMP_offload_register_ver): ... here.  Process version argument.
14134         (GOMP_offload_unregister): Make stub function, move bulk to ...
14135         (GOMP_offload_unregister_ver): ... here.  Process version argument.
14136         (gomp_init_device): Process version field.
14137         (gomp_unload_device): Process version field.
14138         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14139         macros.  Check plugin version.
14140         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
14141         loader and unloader types.
14142         * oacc-host.c: Include gomp-constants.h.
14143         (host_version): New.
14144         (host_load_image, host_unload_image): Adjust.
14145         (host_dispatch): Add host_version.
14146         * plugin/plugin-nvptx.c: Include gomp-constants.h.
14147         (GOMP_OFFLOAD_version): New.
14148         (GOMP_OFFLOAD_load_image): Add version arg and check it.
14149         (GOMP_OFFLOAD_unload_image): Likewise.
14150         * plugin/plugin-host.c: Include gomp-constants.h.
14151         (GOMP_OFFLOAD_version): New.
14152         (GOMP_OFFLOAD_load_image): Add version arg.
14153         (GOMP_OFFLOAD_unload_image): Likewise.
14155 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14157         PR tree-optimization/65468
14158         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14160 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14162         PR tree-optimization/65468
14163         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14165 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
14167         PR libgomp/66761
14168         PR libgomp/67303
14169         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14170         (gomp_iter_guided_next): Idem.
14171         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14172         (gomp_iter_ull_guided_next): Idem.
14173         * config/linux/wait.h (do_spin): Idem.
14175 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14177         * libgomp-plugin.h (enum offload_target_type): Remove
14178         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14179         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14180         * openacc.h (enum acc_device_t): Likewise.
14181         * openacc_lib.h: Likewise.
14182         * oacc-init.c (name_of_acc_device_t): Don't handle it.
14183         (acc_on_device): Just use __builtin_acc_on_device.
14184         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14185         of acc_on_device builtin.
14186         * plugin/plugin-host.h: Remove file.
14187         * plugin/plugin-host.c: Likewise, but salvage some content into...
14188         * oacc-host.c: ... this file.
14189         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14190         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14191         * Makefile.in: Regenerate.
14192         * configure: Likewise.
14193         * testsuite/lib/libgomp.exp
14194         (check_effective_target_openacc_host_nonshm_selected): Remove.
14195         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14196         ACC_DEVICE_TYPE=host_nonshm.
14197         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14198         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14199         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14200         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14201         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14202         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14204 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14205             Jakub Jelinek  <jakub@redhat.com>
14207         * config/nvptx/affinity.c: New file.
14208         * config/nvptx/alloc.c: Likewise.
14209         * config/nvptx/bar.c: Likewise.
14210         * config/nvptx/barrier.c: Likewise.
14211         * config/nvptx/critical.c: Likewise.
14212         * config/nvptx/env.c: Likewise.
14213         * config/nvptx/error.c: Likewise.
14214         * config/nvptx/fortran.c: Likewise.
14215         * config/nvptx/iter.c: Likewise.
14216         * config/nvptx/iter_ull.c: Likewise.
14217         * config/nvptx/libgomp-plugin.c: Likewise.
14218         * config/nvptx/lock.c: Likewise.
14219         * config/nvptx/loop.c: Likewise.
14220         * config/nvptx/loop_ull.c: Likewise.
14221         * config/nvptx/mutex.c: Likewise.
14222         * config/nvptx/oacc-async.c: Likewise.
14223         * config/nvptx/oacc-cuda.c: Likewise.
14224         * config/nvptx/oacc-host.c: Likewise.
14225         * config/nvptx/oacc-init.c: Likewise.
14226         * config/nvptx/oacc-mem.c: Likewise.
14227         * config/nvptx/oacc-parallel.c: Likewise.
14228         * config/nvptx/oacc-plugin.c: Likewise.
14229         * config/nvptx/omp-lock.h: Likewise.
14230         * config/nvptx/ordered.c: Likewise.
14231         * config/nvptx/parallel.c: Likewise.
14232         * config/nvptx/proc.c: Likewise.
14233         * config/nvptx/ptrlock.c: Likewise.
14234         * config/nvptx/sections.c: Likewise.
14235         * config/nvptx/sem.c: Likewise.
14236         * config/nvptx/single.c: Likewise.
14237         * config/nvptx/splay-tree.c: Likewise.
14238         * config/nvptx/target.c: Likewise.
14239         * config/nvptx/task.c: Likewise.
14240         * config/nvptx/team.c: Likewise.
14241         * config/nvptx/time.c: Likewise.
14242         * config/nvptx/work.c: Likewise.
14243         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14244         * configure: Regenerate.
14245         * configure.tgt (config_path): Set to "nvptx" for target
14246         nvptx*-*-*.
14248 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14250         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14252 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14254         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14255         (cuda_errlist): Constify.
14256         (errmsg):  Move into ...
14257         (cuda_error): ... here.  Make smaller.
14258         (_XSTR, _STR): Delete.
14259         (cuda_synames): Delete.
14260         (verify_device_library): Delete.
14261         (nvptx_init): Don't call it.
14263 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14265         * testsuite/libgomp.c/uns-outer-4.c: New test.
14267 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14269         * testsuite/libgomp.c/pr66714.c: New test.
14271 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14273         PR libgomp/66950
14274         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14275         (fib_ref): New function.
14276         (fib): Correct corner cases in the recursion.
14277         (main): Replace the non-simd loop with fib_ref call.
14278         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14279         subroutine.
14280         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
14281         for the last array element value.  Replace the non-simd loop with
14282         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
14283         of the last array element with according Fibonacci sequence element.
14284         (fib): Correct corner cases in the recursion.
14286 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14288         * target.c (gomp_offload_image_to_device): Rename to ...
14289         (gomp_load_image_to_device): ... here.
14290         (GOMP_offload_register): Adjust call.
14291         (gomp_init_device): Likewise.
14292         (gomp_unload_image_from_device): New.  Broken out of ...
14293         (GOMP_offload_unregister): ... here.  Call it.
14294         (gomp_unload_device): New.
14295         * libgomp.h (gomp_unload_device): Declare.
14296         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14297         mem maps.
14299 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14301         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14302         wait=-specific if.
14303         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14304         !=0 condition.
14305         (goacc_waits): Move !num_waits handling to ...
14306         (GOACC_wait): ... here, the only caller that might have zero waits.
14308         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14309         (struct ptx_image_data): Move earlier, add fns field.
14310         (struct ptx_device): Add images and image_lock fields.
14311         (ptx_images, ptx_image_lock): Delete.
14312         (nvptx_open_device): Initialize images and image_lock fields.
14313         (nvptx_close_device): Destroy image_lock.
14314         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14315         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14316         fields.
14318 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14320         * target.c (GOMP_offload_register): Use int for device type arg.
14321         (GOMP_offload_unregister): Likewise.
14323         * target.c (struct_offload_image_descr): Constify host_table.
14324         (gomp_offload_image_to_device): Likewise.
14325         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14327         * libgomp.h (gomp_device_descr): Constify target data arguments.
14328         * target.c (struct offload_image_descr): Constify target_data.
14329         (gomp_offload_image_to_device): Likewise.
14330         (GOMP_offload_register): Likewise.
14331         (GOMP_offload_unregister): Likewise.
14332         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14333         GOMP_OFFLOAD_unload_image): Constify target data.
14334         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14335         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14337 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14339         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14340         Workaround driver library const error.
14341         (struct nvptx_tdata, nvptx_tdata_t): New.
14342         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14343         type.
14345 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14347         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14348         of EPS parameter from integer to real.
14349         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14350         type of EPS parameter from integer to real.
14352 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14354         * team.c (get_last_team): New.
14355         (gomp_new_team): Recycle last non-nested team if possible.
14356         (gomp_team_end): Move team work share list free lock destruction
14357         to ...
14358         (free_team): ... here.
14360 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14362         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14363         and ref from int to double.  Replaced their comparison with
14364         an inequality of their difference and EPS.
14365         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14366         comparison of pri and a reference number with an inequality of their
14367         difference and EPS.
14368         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14369         the comparison of sum and sum_ref with an inequality of their
14370         difference and EPS.
14371         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14372         the comparison of pri and a reference number with an inequality of
14373         their difference and EPS.
14375 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14377         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14378         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14379         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14380         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14381         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14382         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14383         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14384         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14385         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14386         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14387         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14388         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14389         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14390         variables.
14391         (vec_mult): Likewise.  Add #pragma omp taskwait.
14392         (main): Adjust caller.
14393         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14394         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14395         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14396         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14397         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14398         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14399         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14400         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14401         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14402         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14403         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14404         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14405         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14406         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14407         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14408         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14409         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14410         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14411         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14412         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14413         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14414         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14415         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14416         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14417         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14418         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14419         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14420         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14421         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14422         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14423         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14424         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14425         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14426         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14427         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14428         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14429         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14430         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14431         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14432         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14433         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14434         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14435         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14436         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14437         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14438         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14439         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14440         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14441         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14442         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14443         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14444         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14445         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14446         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14447         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14448         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14449         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14450         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14451         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14452         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14453         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14454         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14455         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14456         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14457         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14458         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14459         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14460         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14461         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14462         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14463         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14464         (vec_mult): Add !$omp taskwait.
14465         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14466         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14467         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14468         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14469         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14470         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14471         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14472         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14473         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14474         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14475         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14476         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14477         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14478         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14479         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14480         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14481         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14482         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14483         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14484         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14485         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14486         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14487         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14488         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14489         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14490         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14491         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14492         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14493         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14494         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14495         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14496         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14497         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14498         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14499         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14500         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14501         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14502         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14503         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14504         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14505         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14506         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14507         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14508         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14509         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14510         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14511         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14512         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14513         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14514         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14515         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14516         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14517         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14518         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14519         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14520         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14521         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14522         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14523         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14524         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14525         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14526         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14527         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14528         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14529         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14530         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14531         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14533 2015-07-10  Tom de Vries  <tom@codesourcery.com>
14535         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14536         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14538 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
14540         PR libgomp/65099
14541         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14542         in a 64-bit configuration.
14543         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14544         offloading testing if no such device is available.
14545         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14546         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14548 2015-07-08  Tom de Vries  <tom@codesourcery.com>
14550         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14551         second call to f.
14552         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14554 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14556         PR tree-optimization/66642
14557         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14558         iteration count case.
14559         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14560         function, factor out of ...
14561         (main): ... here.  Test low iteration count case.
14563 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14565         * libgomp.h (gomp_thread_pool): Comment last_team field.
14567 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
14569         * testsuite/libgomp.c++/pr66702-1.C: Require
14570         vect_simd_clones effective target.
14571         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14573 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14575         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14576         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14577         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14578         "-O2".
14580 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14582         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14583         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14584         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14585         * testsuite/libgomp.c++/pr64824.C: Same.
14586         * testsuite/libgomp.c++/pr64868.C: Same.
14587         * testsuite/libgomp.c++/pr66199-1.C: Same.
14588         * testsuite/libgomp.c++/pr66199-2.C: Same.
14589         * testsuite/libgomp.c++/target-2.C: Same.
14590         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14591         -std=<standard> option.
14592         * testsuite/libgomp.c++/udr-11.C: Same.
14593         * testsuite/libgomp.c++/udr-12.C: Same.
14594         * testsuite/libgomp.c++/udr-13.C: Same.
14595         * testsuite/libgomp.c++/udr-14.C: Same.
14596         * testsuite/libgomp.c++/udr-15.C: Same.
14597         * testsuite/libgomp.c++/udr-16.C: Same.
14598         * testsuite/libgomp.c++/udr-17.C: Same.
14599         * testsuite/libgomp.c++/udr-18.C: Same.
14600         * testsuite/libgomp.c++/udr-19.C: Same.
14601         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14602         * testsuite/libgomp.c++/simd-1.C: Same.
14603         * testsuite/libgomp.c++/simd-2.C: Same.
14604         * testsuite/libgomp.c++/simd-3.C: Same.
14605         * testsuite/libgomp.c++/simd-4.C: Same.
14606         * testsuite/libgomp.c++/simd-5.C: Same.
14607         * testsuite/libgomp.c++/simd-6.C: Same.
14608         * testsuite/libgomp.c++/simd-7.C: Same.
14609         * testsuite/libgomp.c++/simd-8.C: Same.
14610         * testsuite/libgomp.c++/simd-9.C: Same.
14611         * testsuite/libgomp.c++/simd10.C: Same.
14612         * testsuite/libgomp.c++/simd11.C: Same.
14613         * testsuite/libgomp.c++/simd12.C: Same.
14614         * testsuite/libgomp.c++/simd13.C: Same.
14616 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14618         PR middle-end/66702
14619         * testsuite/libgomp.c++/pr66702-1.C: New test.
14620         * testsuite/libgomp.c++/pr66702-2.C: New test.
14622 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14624         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14625         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14626         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14627         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14629 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14631         PR tree-optimization/66652
14632         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14633         using restrict pointers.
14634         (main): Add arguments to calls to f.
14635         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14637 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
14639         * configure.ac: Fix check for header <sys/sysctl.h>.
14640         * configure: Regenerate.
14641         * config.h.in: Likewise.
14643 2015-06-23  Tom de Vries  <tom@codesourcery.com>
14645         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14646         abort.
14647         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14649 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
14651         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14652         acc_device_nvidia.
14654         PR libgomp/66518
14655         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
14656         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14658 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14660         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
14661         dg-additional-options for any remaining options.
14662         * testsuite/libgomp.c/atomic-2.c: Same.
14663         * testsuite/libgomp.c/atomic-4.c: Same.
14664         * testsuite/libgomp.c/atomic-5.c: Same.
14665         * testsuite/libgomp.c/atomic-6.c: Same.
14666         * testsuite/libgomp.c/autopar-1.c: Same.
14667         * testsuite/libgomp.c/copyin-1.c: Same.
14668         * testsuite/libgomp.c/copyin-2.c: Same.
14669         * testsuite/libgomp.c/copyin-3.c: Same.
14670         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
14671         * testsuite/libgomp.c/nestedfn-5.c: Same.
14672         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
14673         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
14674         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
14675         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14676         * testsuite/libgomp.c/pr32362-1.c: Same.
14677         * testsuite/libgomp.c/pr32362-2.c: Same.
14678         * testsuite/libgomp.c/pr32362-3.c: Same.
14679         * testsuite/libgomp.c/pr39591-1.c: Same.
14680         * testsuite/libgomp.c/pr39591-2.c: Same.
14681         * testsuite/libgomp.c/pr39591-3.c: Same.
14682         * testsuite/libgomp.c/pr58392.c: Same.
14683         * testsuite/libgomp.c/pr58756.c: Same.
14684         * testsuite/libgomp.c/simd-1.c: Same.
14685         * testsuite/libgomp.c/simd-10.c: Same.
14686         * testsuite/libgomp.c/simd-11.c: Same.
14687         * testsuite/libgomp.c/simd-12.c: Same.
14688         * testsuite/libgomp.c/simd-13.c: Same.
14689         * testsuite/libgomp.c/simd-14.c: Same.
14690         * testsuite/libgomp.c/simd-15.c: Same.
14691         * testsuite/libgomp.c/simd-2.c: Same.
14692         * testsuite/libgomp.c/simd-3.c: Same.
14693         * testsuite/libgomp.c/simd-4.c: Same.
14694         * testsuite/libgomp.c/simd-5.c: Same.
14695         * testsuite/libgomp.c/simd-6.c: Same.
14696         * testsuite/libgomp.c/simd-7.c: Same.
14697         * testsuite/libgomp.c/simd-8.c: Same.
14698         * testsuite/libgomp.c/simd-9.c: Same.
14700 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14702         * testsuite/libgomp.c/pr35625.c: Fix typo.
14704 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14706         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
14707         in dg-options.
14708         * testsuite/libgomp.c/atomic-3.c: Same.
14709         * testsuite/libgomp.c/debug-1.c: Same.
14710         * testsuite/libgomp.c/nqueens-1.c: Same.
14711         * testsuite/libgomp.c/pr26171.c: Same.
14712         * testsuite/libgomp.c/pr48591.c: Same.
14713         * testsuite/libgomp.c/pr64824.c: Same.
14714         * testsuite/libgomp.c/pr64868.c: Same.
14715         * testsuite/libgomp.c/pr66133.c: Same.
14716         * testsuite/libgomp.c/pr66199-1.c: Same.
14717         * testsuite/libgomp.c/pr66199-2.c: Same.
14718         * testsuite/libgomp.c/target-8.c: Same.
14720 2015-06-15  Tom de Vries  <tom@codesourcery.com>
14722         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
14723         -std={gnu99,c99}.
14724         * testsuite/libgomp.c/for-1.c: Same.
14725         * testsuite/libgomp.c/for-2.c: Same.
14726         * testsuite/libgomp.c/for-3.c: Same.
14727         * testsuite/libgomp.c/pr35625.c: Same.
14728         * testsuite/libgomp.c/pr39154.c: Same.
14729         * testsuite/libgomp.c/simd-16.c: Same.
14730         * testsuite/libgomp.c/simd-17.c: Same.
14732 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14734         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
14736 2015-06-13  Tom de Vries  <tom@codesourcery.com>
14738         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
14739         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14740         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
14741         (N): Define.
14742         (main): Use N instead of hardcoded constants.
14744 2015-06-05  Tom de Vries  <tom@codesourcery.com>
14746         merge from gomp4 branch:
14747         2015-05-28  Tom de Vries  <tom@codesourcery.com>
14749         PR tree-optimization/65443
14750         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
14751         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
14752         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
14754 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14756         * testsuite/libgomp.graphite/bounds.c: Adjust for
14757         cleanup-tree-dump removal.
14758         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
14759         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
14760         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
14761         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
14762         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
14763         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
14764         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
14765         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
14766         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
14767         * testsuite/libgomp.graphite/pr41118.c: Likewise.
14769 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
14771         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
14772         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
14773         (futex_wake) [!__x86_64__]: Ditto.
14775 2015-05-28  Julian Brown  <julian@codesourcery.com>
14777         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
14778         function comment. Only call gomp_fatal if new argument is true.
14779         (acc_dev_num_out_of_range): New function.
14780         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
14781         acc_dev_num_out_of_range as appropriate.
14782         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14783         (acc_get_device_num, acc_set_device_num): Update calls to
14784         resolve_device.
14785         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
14786         output.
14788 2015-05-28  Julian Brown  <julian@codesourcery.com>
14790         PR libgomp/65742
14791         * oacc-init.c (plugin/plugin-host.h): Include.
14792         (acc_on_device): Check whether we're in an offloaded region for
14793         host_nonshm
14794         plugin. Don't use __builtin_acc_on_device.
14795         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
14796         nonshm_exec flag in thread-local data.
14797         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
14798         data for host_nonshm plugin.
14799         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
14800         for host_nonshm plugin.
14801         * plugin/plugin-host.h: New.
14803 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14805         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
14807 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14809         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
14810         Declare as int.
14811         (FUTEX_PRIVATE_FLAG): Remove L suffix.
14812         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
14813         Declare as int.
14815 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
14817         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
14819 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
14821         * target.c (gomp_map_pointer): New function abstracting out
14822         GOMP_MAP_POINTER handling.
14823         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
14824         gomp_map_pointer().
14826 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
14828         PR middle-end/66199
14829         * testsuite/libgomp.c/pr66199-1.c: New test.
14830         * testsuite/libgomp.c/pr66199-2.c: New test.
14831         * testsuite/libgomp.c++/pr66199-1.C: New test.
14832         * testsuite/libgomp.c++/pr66199-2.C: New test.
14833         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
14834         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
14836 2015-05-19  Julian Brown  <julian@codesourcery.com>
14838         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
14839         on cuInit failure.
14841 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
14843         PR middle-end/66133
14844         * testsuite/libgomp.c/pr66133.c: New test.
14846 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14848         * Makefile.in: Regenerated with automake-1.11.6.
14849         * aclocal.m4: Likewise.
14850         * config.h.in: Likewise.
14851         * configure: Likewise.
14852         * testsuite/Makefile.in: Likewise.
14854 2015-05-08  Jason Merrill  <jason@redhat.com>
14856         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
14857         _Complex.
14859         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
14861 2015-05-06  Julian Brown  <julian@codesourcery.com>
14863         * oacc-init.c (acc_device_lock): Add explanatory comment.
14864         (resolve_device): Add comment about locking requirement.
14865         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
14866         gomp_init_device and gomp_fini_device calls.
14867         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
14868         (acc_get_device_num, acc_set_device_num): Add locking around
14869         resolve_device and gomp_init_device calls.
14871 2015-05-06  Julian Brown  <julian@codesourcery.com>
14873         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
14874         goacc_thread_lock on error paths.
14875         * oacc-mem.c (lookup_host): Remove locking from function. Note
14876         locking requirement for caller in function comment.
14877         (lookup_dev): Likewise.
14878         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
14879         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
14880         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
14881         Add locking.
14883 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
14885         PR testsuite/65205
14886         PR libgomp/65993
14887         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
14888         don't expect "0x" prefix for "%p" format specifier, don't expect
14889         "(nil)" for NULL pointer.
14890         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14891         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14892         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14893         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14894         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14895         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14896         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14897         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14898         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14899         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14900         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14901         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14902         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14903         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14904         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14905         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14906         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14907         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14908         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14909         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14910         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14911         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14912         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14913         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14914         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14915         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14916         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14917         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14918         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
14919         accurately specify what we're looking for.
14920         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14921         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14922         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14923         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14924         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14926 2015-04-30  James Norris  <jnorris@codesourcery.com>
14928         PR testsuite/65205
14929         * testsuite/lib/libgomp.exp
14930         (check_effective_target_openacc_host_selected)
14931         (check_effective_target_openacc_host_nonshm_selected): New
14932         procedures.
14933         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
14934         dg-shouldfail.
14935         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14936         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14937         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14938         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14939         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14940         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14941         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14942         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14943         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14944         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14945         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14946         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14947         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14948         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14949         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14950         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14951         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14952         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14953         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14954         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14955         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14956         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14957         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14958         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14959         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14960         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14961         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14962         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14963         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14964         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14965         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14966         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14967         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14968         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14969         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14970         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14971         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14972         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14973         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14974         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14975         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14976         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14977         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14979 2015-04-08  Julian Brown  <julian@codesourcery.com>
14981         * libgomp.h (target_mem_desc: Remove mem_map field.
14982         (acc_dispatch_t): Remove open_device_func, close_device_func,
14983         get_device_num_func, set_device_num_func, target_data members.
14984         Change create_thread_data_func argument to device number instead of
14985         generic pointer.
14986         * oacc-async.c (assert.h): Include.
14987         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
14988         (acc_wait_all, acc_wait_all_async): Use current host thread's
14989         active device, not base_dev.
14990         * oacc-cuda.c (acc_get_current_cuda_device)
14991         (acc_get_current_cuda_context, acc_get_cuda_stream)
14992         (acc_set_cuda_stream): Likewise.
14993         * oacc-host.c (host_dispatch): Don't set open_device_func,
14994         close_device_func, get_device_num_func or set_device_num_func.
14995         * oacc-init.c (base_dev, init_key): Remove.
14996         (cached_base_dev): New.
14997         (name_of_acc_device_t): New.
14998         (acc_init_1): Initialise default-numbered device, not zeroth.
14999         (acc_shutdown_1): Close all devices of a given type.
15000         (goacc_destroy_thread): Don't use base_dev.
15001         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15002         (goacc_attach_host_thread_to_device): New.
15003         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15004         (acc_get_num_devices): Don't use base_dev.
15005         (acc_set_device_type): Reimplement.
15006         (acc_get_device_type): Don't use base_dev.
15007         (acc_get_device_num): Tweak logic.
15008         (acc_set_device_num): Likewise.
15009         (acc_on_device): Use acc_get_device_type.
15010         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15011         (goacc_lazy_initialize): Reimplement with acc_init and
15012         goacc_attach_host_thread_to_device.
15013         * oacc-int.h (goacc_thread): Add base_dev field.
15014         (base_dev): Remove extern declaration.
15015         (goacc_attach_host_thread_to_device): Add prototype.
15016         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15017         base_dev.
15018         (acc_free): Likewise.
15019         (acc_memcpy_to_device): Likewise.
15020         (acc_memcpy_from_device): Likewise.
15021         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15022         goacc_lazy_initialize (throughout).
15023         (GOACC_parallel): Use tgt_offset to locate target functions.
15024         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15025         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15026         (gomp_load_plugin_for_device): Remove open_device, close_device,
15027         get_device_num, set_device_num openacc hook initialisation. Don't set
15028         openacc.target_data.
15029         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15030         (GOMP_OFFLOAD_openacc_close_device)
15031         (GOMP_OFFLOAD_openacc_get_device_num)
15032         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15033         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15034         to int.
15035         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15036         (instantiated_devices, ptx_dev_lock): New.
15037         (struct ptx_image_data): New.
15038         (ptx_devices, ptx_images, ptx_image_lock): New.
15039         (fini_streams_for_device): Reorder cuStreamDestroy call.
15040         (nvptx_get_num_devices): Remove forward declaration.
15041         (nvptx_init): Change return type to bool.
15042         (nvptx_fini): Remove.
15043         (nvptx_attach_host_thread_to_device): New.
15044         (nvptx_open_device): Return struct ptx_device* instead of void*.
15045         (nvptx_close_device): Change argument type to struct ptx_device*,
15046         return type to void.
15047         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15048         (kernel_target_data, kernel_host_table): Remove static globals.
15049         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15050         (GOMP_OFFLOAD_init_device): Reimplement.
15051         (GOMP_OFFLOAD_fini_device): Likewise.
15052         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15053         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15054         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15055         (GOMP_OFFLOAD_openacc_open_device)
15056         (GOMP_OFFLOAD_openacc_close_device)
15057         (GOMP_OFFLOAD_openacc_set_device_num)
15058         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15059         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15060         (device number).
15062         testsuite/
15063         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15065 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15067         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15068         * libgomp.h (struct gomp_memory_mapping): Remove.
15069         (struct target_mem_desc): Change type of mem_map from
15070         gomp_memory_mapping * to splay_tree_s *.
15071         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15072         Add load_image_func, unload_image_func.
15073         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15074         Remove offload_regions_registered.
15075         (gomp_init_tables): Remove.
15076         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15077         to splay_tree_s *.
15078         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15079         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15080         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15081         offload_regions_registered.
15082         Initialize load_image_func, unload_image_func, mem_map.root.
15083         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15084         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15085         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15086         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15087         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15088         (lookup_dev): Use dev's lock.
15089         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15090         (acc_is_present): Likewise.
15091         (acc_map_data): Likewise.
15092         (acc_unmap_data): Likewise.  Use dev's lock.
15093         (present_create_copy): Likewise.
15094         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15095         (update_dev_host): Likewise.
15096         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15097         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15098         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15099         (GOMP_OFFLOAD_get_table): Remove
15100         (GOMP_OFFLOAD_load_image): New function.
15101         (GOMP_OFFLOAD_unload_image): New function.
15102         * target.c (register_lock): New mutex for offload image registration.
15103         (num_devices): Do not guard with PLUGIN_SUPPORT.
15104         (gomp_realloc_unlock): New static function.
15105         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15106         before gomp_fatal.
15107         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15108         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15109         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15110         mem_map's.
15111         (gomp_unmap_vars): Likewise.
15112         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15113         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15114         (gomp_offload_image_to_device): New static function.
15115         (GOMP_offload_register): Add mutex lock.
15116         Call gomp_offload_image_to_device for all initialized devices.
15117         Replace gomp_realloc with gomp_realloc_unlock.
15118         (GOMP_offload_unregister): New function.
15119         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15120         get_table_func from the plugin with calls to init_device_func and
15121         gomp_offload_image_to_device.
15122         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15123         to splay_tree_s *.
15124         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15125         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15126         (GOMP_target_data): Do not call gomp_init_tables.
15127         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
15128         (gomp_load_plugin_for_device): Replace register_image and get_table
15129         with load_image and unload_image in DLSYM ().
15130         (gomp_register_images_for_device): Remove function.
15131         (gomp_target_init): Do not initialize current_device.mem_map.*,
15132         current_device.offload_regions_registered.
15133         Remove call to gomp_register_images_for_device.
15134         Do not free offload_images and num_offload_images.
15136 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15138         PR fortran/65597
15139         * testsuite/libgomp.fortran/pr65597.f90: New test.
15141 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15143         PR testsuite/65594
15144         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15145         (init, check): New function.
15146         (foo): Change return type to void.
15147         (main): Call init and check.
15149 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15151         PR testsuite/65594
15152         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15153         (foo): Use M for non-inner loops to scale down test-case.
15155 2015-03-25  Kai Tietz  <ktietz@redhat.com>
15157         PR libgomp/64972
15158         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15159         (GOACC_data_start): Likewise.
15160         * target.c (gomp_map_vars): Likewise.
15162 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
15164         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15165         hppa*-*-hpux*.
15167 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15169         * testsuite/libgomp.c/target-10.c: New test.
15170         * testsuite/libgomp.c++/target-4.C: New test.
15172 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15174         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15175         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15177 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15179         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15180         * configure.ac (*-*-rtems*): Assume Pthread is supported.
15181         (pthread.h): Check for this header file.
15182         * configure: Regenerate.
15184 2015-02-25  Tom de Vries  <tom@codesourcery.com>
15186         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15187         (check_reduction_op, check_reduction_macro, max, min):
15188         Declare.
15189         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15190         function.
15191         (main): Use new functions.
15193 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
15195         * target.c (gomp_load_plugin_for_device): Use const char * instead of
15196         char * for variables holding dlerror return values.
15197         (DLSYM_OPT): Ditto.
15199 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15201         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15203 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15204             Cesar Philippidis  <cesar@codesourcery.com>
15206         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15207         GOACC_ctaid, and GOACC_nctaid routines.
15209 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15211         PR c/64824
15212         * testsuite/libgomp.c/atomic-18.c: New test.
15213         * testsuite/libgomp.c++/atomic-16.C: New test.
15215 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15217         PR c/64824
15218         PR c/64868
15219         * testsuite/libgomp.c/pr64824.c: New test.
15220         * testsuite/libgomp.c/pr64868.c: New test.
15221         * testsuite/libgomp.c++/pr64824.C: New test.
15222         * testsuite/libgomp.c++/pr64868.C: New test.
15224 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15226         PR libgomp/64635
15227         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15228         Link with -lpthread.
15229         * config/aix/plugin-suffix.h: Delete.
15231 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
15233         PR libgomp/64635
15234         * configure.tgt (*-*-aix*): Use config_path "aix posix".
15235         (*-*-darwin*): Use config_path "bsd darwin posix".
15236         (*-*-hpux*): Use config_path "hpux posix".
15237         * target.c: Add include of plugin-suffix.h and use
15238         SONAME_SUFFIX macro.
15239         * config/aix/plugin-suffix.h: New file.
15240         * config/darwin/plugin-suffix.h: New file.
15241         * config/hpux/plugin-suffix.h: New file.
15242         * config/posix/plugin-suffix.h: New file.
15244 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15246         PR middle-end/64734
15247         * libgomp.c/pr64734.c: New test.
15249 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15251         PR libgomp/64672
15252         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15254 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15256         PR libgomp/64707
15257         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15258         dg-options.
15260 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15262         PR libgomp/64625
15263         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15264         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15265         formal parameter.  Update all users.
15266         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15267         Document unused formal parameter.
15269 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
15271         * oacc-parallel.c: Don't include <alloca.h>.
15272         (GOACC_parallel): Use gomp_alloca instead of alloca.
15274 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
15276         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15278 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15279             James Norris  <jnorris@codesourcery.com>
15280             Tom de Vries  <tom@codesourcery.com>
15281             Julian Brown  <julian@codesourcery.com>
15282             Cesar Philippidis  <cesar@codesourcery.com>
15283             Nathan Sidwell  <nathan@codesourcery.com>
15284             Tobias Burnus  <burnus@net-b.de>
15286         * Makefile.am (search_path): Add $(top_srcdir)/../include.
15287         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15288         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15289         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15290         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15291         Include $(top_srcdir)/plugin/Makefrag.am.
15292         (nodist_libsubinclude_HEADERS): Add openacc.h.
15293         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15294         openacc.f90, openacc.mod, openacc_kinds.mod.
15295         (omp_lib.mod): Generalize into...
15296         (%.mod): ... this new rule.
15297         (openacc_kinds.mod, openacc.mod): New rules.
15298         * plugin/configfrag.ac: New file.
15299         * configure.ac: Move plugin/offloading support into it.  Include
15300         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
15301         * plugin/Makefrag.am: New file.
15302         * testsuite/Makefile.am (OFFLOAD_TARGETS)
15303         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15304         export.
15305         (libgomp-test-support.exp): New rule.
15306         (all-local): Depend on it.
15307         * Makefile.in: Regenerate.
15308         * testsuite/Makefile.in: Regenerate.
15309         * config.h.in: Likewise.
15310         * configure: Likewise.
15311         * configure.tgt: Harden shell syntax.
15312         * env.c: Include "oacc-int.h".
15313         (parse_acc_device_type): New function.
15314         (gomp_debug_var, goacc_device_type, goacc_device_num): New
15315         variables.
15316         (initialize_env): Initialize those.  Call
15317         goacc_runtime_initialize.
15318         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15319         (gomp_fatal): Call gomp_vfatal.
15320         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15321         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15322         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15323         (splay_tree_node, splay_tree, splay_tree_key)
15324         (struct target_mem_desc, struct splay_tree_key_s)
15325         (struct gomp_memory_mapping, struct acc_dispatch_t)
15326         (struct gomp_device_descr, gomp_acc_insert_pointer)
15327         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15328         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15329         (gomp_free_memmap, gomp_fini_device): New declarations.
15330         (gomp_vdebug, gomp_debug): New macros.
15331         Include "splay-tree.h".
15332         * libgomp.map (OACC_2.0): New symbol version.  Use for
15333         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15334         acc_set_device_type_h_, acc_get_device_type,
15335         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15336         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15337         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15338         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15339         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15340         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15341         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15342         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15343         acc_copyin_array_h_, acc_present_or_copyin,
15344         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15345         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15346         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15347         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15348         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15349         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15350         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15351         acc_update_device, acc_update_device_32_h_,
15352         acc_update_device_64_h_, acc_update_device_array_h_,
15353         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15354         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15355         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15356         acc_is_present_64_h_, acc_is_present_array_h_,
15357         acc_memcpy_to_device, acc_memcpy_from_device,
15358         acc_get_current_cuda_device, acc_get_current_cuda_context,
15359         acc_get_cuda_stream, acc_set_cuda_stream.
15360         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
15361         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15362         GOACC_update, GOACC_wait, GOACC_get_thread_num,
15363         GOACC_get_num_threads.
15364         (GOMP_PLUGIN_1.0): New symbol version.  Use for
15365         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15366         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15367         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15368         GOMP_PLUGIN_acc_thread.
15369         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15370         environment variable.
15371         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15372         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15373         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15374         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15375         (splay_tree_remove): New declarations.
15376         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15377         (splay_tree_remove, splay_tree_lookup): Move into...
15378         * splay-tree.c: ... this new file.
15379         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15380         (splay_tree_node, splay_tree, splay_tree_key)
15381         (struct target_mem_desc, struct splay_tree_key_s)
15382         (struct gomp_device_descr): Don't declare.
15383         (num_devices_openmp): New variable.
15384         (gomp_get_num_devices ): Use it.
15385         (gomp_init_targets_once): New function.
15386         (gomp_get_num_devices ): Use it.
15387         (get_kind, gomp_copy_from_async, gomp_free_memmap)
15388         (gomp_fini_device, gomp_register_image_for_device): New functions.
15389         (gomp_map_vars): Add devaddrs parameter.
15390         (gomp_update): Add mm parameter.
15391         (gomp_init_device): Move most of it into...
15392         (gomp_init_tables): ... this new function.
15393         (gomp_register_images_for_device): Remove function.
15394         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15395         Make them hidden instead of static.
15396         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15397         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15398         (GOMP_target_end_data, GOMP_target_update)
15399         (gomp_load_plugin_for_device, gomp_target_init): Update for
15400         OpenACC changes.
15401         * oacc-async.c: New file.
15402         * oacc-cuda.c: Likewise.
15403         * oacc-host.c: Likewise.
15404         * oacc-init.c: Likewise.
15405         * oacc-int.h: Likewise.
15406         * oacc-mem.c: Likewise.
15407         * oacc-parallel.c: Likewise.
15408         * oacc-plugin.c: Likewise.
15409         * oacc-plugin.h: Likewise.
15410         * oacc-ptx.h: Likewise.
15411         * openacc.f90: Likewise.
15412         * openacc.h: Likewise.
15413         * openacc_lib.h: Likewise.
15414         * plugin/plugin-host.c: Likewise.
15415         * plugin/plugin-nvptx.c: Likewise.
15416         * libgomp-plugin.c: Likewise.
15417         * libgomp-plugin.h: Likewise.
15418         * libgomp_target.h: Remove file after merging content into the
15419         former file.  Update all users.
15420         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15421         (offload_targets_s, offload_targets_s_openacc): New variables.
15422         (check_effective_target_openacc_nvidia_accel_present)
15423         (check_effective_target_openacc_nvidia_accel_selected): New
15424         procedures.
15425         (libgomp_init): Update for OpenACC changes.
15426         * testsuite/libgomp-test-support.exp.in: New file.
15427         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15428         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15429         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15430         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15431         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15432         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15433         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15434         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15435         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15436         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15437         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15438         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15439         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15440         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15441         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15442         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15443         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15444         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15445         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15446         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15447         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15448         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15449         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15450         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15451         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15452         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15453         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15454         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15455         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15456         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15457         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15458         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15459         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15460         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15461         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15462         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15463         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15464         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15465         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15466         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15467         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15468         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15469         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15470         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15471         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15472         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15473         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15474         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15475         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15476         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15477         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15478         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15479         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15480         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15481         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15482         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15483         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15484         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15485         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15486         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15487         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15488         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15489         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15490         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15491         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15492         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15493         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15494         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15495         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15496         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15497         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15498         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15499         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15500         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15501         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15502         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15503         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15504         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15505         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15506         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15507         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15508         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15509         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15510         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15511         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15512         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15513         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15514         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15515         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15516         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15517         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15518         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15519         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15520         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15521         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15522         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15523         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15524         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15525         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15526         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15527         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15528         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15529         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15530         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15531         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15532         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15533         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15534         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15535         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15536         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15537         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15538         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15539         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15540         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15541         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15542         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15543         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15544         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15545         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15546         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15547         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15548         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15549         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15550         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15551         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15552         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15553         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15554         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15555         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15556         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15557         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15558         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15559         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15560         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15561         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15562         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15563         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15564         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15565         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15566         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15567         Likewise.
15568         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15569         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15570         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15571         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15572         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15573         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15574         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15575         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15576         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15577         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15578         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15579         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15580         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15581         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15582         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15583         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15584         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15585         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15586         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15587         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15588         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15589         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15590         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15591         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15592         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15593         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15594         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15595         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15596         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15597         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15598         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15599         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15600         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15601         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15602         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15603         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15604         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15605         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15606         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15607         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15608         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15609         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15610         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15611         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15612         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15613         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15614         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15615         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15616         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15617         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15618         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15619         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15620         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15621         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15622         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15623         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15624         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15625         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15626         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15627         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15629 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15630             Julian Brown  <julian@codesourcery.com>
15631             David Malcolm  <dmalcolm@redhat.com>
15633         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15634         to "GNU Offloading and Multi Processing Runtime Library".  Change
15635         all users.
15636         * configure: Regenerate.
15637         * libgomp.texi: Update.
15639 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15641         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15642         "$tgt_dir/lib32".
15643         * configure: Regenerate.
15645         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15646         "intelmic" in $offload_targets.
15648 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15650         Update copyright years.
15652         * libgomp.texi: Bump @copying's copyright year.
15654 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15656         * testsuite/lib/libgomp.exp: Load target-utils.exp.
15657         Move load of target-supports.exp earlier.
15659 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
15661         * testsuite/libgomp.c/target-9.c: New test.
15663 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
15665         * config.h.in: Regenerate.
15666         * configure: Regenerate.
15667         * configure.ac: Add GCC_CHECK_EMUTLS.
15668         * libgomp.h: Add check for USE_EMUTLS: this case
15669         is equal to HAVE_TLS.
15670         * team.c: Likewise.
15672 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
15674         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
15676 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15677             Ilya Verbin  <ilya.verbin@intel.com>
15679         * testsuite/libgomp.c/target-critical-1.c: New test.
15681 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
15683         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
15684         to dg-options unless expensive testing is on.
15685         (TESTITERS): Define to N if not defined.
15686         (main): Use TESTITERS instead of N.
15687         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
15688         dg-additional-options depending on whether expensive testing is on.
15689         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
15690         Decrease N to 100000 and CHUNKSZ to 10000.
15692 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
15694         PR fortran/63938
15695         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
15696         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
15698 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
15700         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
15702 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
15704         PR bootstrap/63784
15705         * configure: Regenerated.
15707 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
15709         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
15710         vect_simd_clones effective target.
15711         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15713 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
15715         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
15716         of 32 as block_size.
15717         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
15718         instead of 32 as block_size.
15720 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15721             Ilya Verbin  <ilya.verbin@intel.com>
15723         * Makefile.in: Regenerate.
15724         * configure: Regenerate.
15725         * configure.ac: Set up offload_additional_options,
15726         offload_additional_lib_paths and offload_targets.
15727         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
15728         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
15729         * testsuite/Makefile.in: Regenerate.
15730         * testsuite/lib/libgomp.exp (libgomp_init): Append
15731         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
15732         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
15733         build directory to LD_LIBRARY_PATH for intelmic offload targets.
15735 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15736             Ilya Verbin  <ilya.verbin@intel.com>
15737             Kirill Yukhin  <kirill.yukhin@intel.com>
15738             Ilya Tocar  <ilya.tocar@intel.com>
15740         * testsuite/lib/libgomp.exp
15741         (check_effective_target_offload_device): New.
15742         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
15743         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
15744         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
15745         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
15746         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
15747         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
15748         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
15749         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
15750         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
15751         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
15752         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
15753         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
15754         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
15755         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
15756         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
15757         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
15758         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
15759         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
15760         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
15761         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
15762         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
15763         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
15764         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
15765         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
15766         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
15767         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
15768         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
15769         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
15770         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
15771         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
15772         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
15773         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
15774         * testsuite/libgomp.c/target-7.c: Fix test.
15775         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
15776         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
15777         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
15778         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
15779         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
15780         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
15781         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
15782         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
15783         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
15784         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
15785         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
15786         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
15787         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
15788         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
15789         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
15790         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
15791         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
15792         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
15793         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
15794         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
15795         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
15796         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
15797         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
15798         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
15799         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
15800         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
15801         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
15802         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
15803         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
15804         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
15805         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
15807 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
15808             Ilya Verbin  <ilya.verbin@intel.com>
15809             Thomas Schwinge  <thomas@codesourcery.com>
15810             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15812         * libgomp.map (GOMP_4.0.1): New symbol version.
15813         Add GOMP_offload_register.
15814         * libgomp_target.h: New file.
15815         * splay-tree.h: New file.
15816         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
15817         (gomp_target_init): New forward declaration.
15818         (gomp_is_initialized): New static variable.
15819         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
15820         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
15821         New structures.
15822         (offload_images, num_offload_images, devices, num_devices): New static
15823         variables.
15824         (splay_compare): New static function.
15825         (struct gomp_device_descr): New structure.
15826         (gomp_get_num_devices): Call gomp_target_init.
15827         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
15828         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
15829         (GOMP_offload_register): New function.
15830         (GOMP_target): Arrange for host callback to be performed in a separate
15831         initial thread and contention group, inheriting ICVs from
15832         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
15833         Add device initialization and lookup for target function in splay tree.
15834         (GOMP_target_data): Add device initialization and call gomp_map_vars.
15835         (GOMP_target_end_data): Call gomp_unmap_vars.
15836         (GOMP_target_update): Add device initialization and call gomp_update.
15837         (gomp_load_plugin_for_device, gomp_register_images_for_device)
15838         (gomp_target_init): New static functions.
15840 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
15841             Thomas Schwinge  <thomas@codesourcery.com>
15842             Ilya Verbin  <ilya.verbin@intel.com>
15843             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15845         * config.h.in: Regenerate.
15846         * configure: Regenerate.
15847         * configure.ac: Check for libdl, required for plugin support.
15848         (PLUGIN_SUPPORT): Define if plugins are supported.
15849         (enable_offload_targets): Support Intel MIC targets.
15850         (OFFLOAD_TARGETS): List of target names suitable for offloading.
15852 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15854         PR target/63610
15855         * configure: Regenerate.
15857 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15859         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
15861 2014-10-06  Marek Polacek  <polacek@redhat.com>
15863         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
15864         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
15865         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
15866         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15868 2014-10-06  Marek Polacek  <polacek@redhat.com>
15870         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
15871         * testsuite/libgomp.c/nqueens-1.c: Likewise.
15872         * testsuite/libgomp.c/pr26943-3.c: Likewise.
15873         * testsuite/libgomp.c/pr26943-4.c: Likewise.
15874         * testsuite/libgomp.c/pr36802-2.c: Likewise.
15875         * testsuite/libgomp.c/pr36802-3.c: Likewise.
15876         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
15877         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
15878         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
15879         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
15880         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
15881         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
15882         * testsuite/libgomp.c/omp-single-1.c: Likewise.
15883         * testsuite/libgomp.c/omp-single-2.c: Likewise.
15884         * testsuite/libgomp.c/omp_matvec.c: Likewise.
15885         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
15886         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
15887         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
15888         declarations.
15890 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
15892         PR libgomp/61200
15893         * testsuite/libgomp.c/pr61200.c: New test.
15895 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
15897         PR c++/63248
15898         * testsuite/libgomp.c++/pr63248.C: New test.
15900 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
15902         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
15903         is not zero, but taskgroup->children is NULL and there are
15904         any task->children, schedule those instead of waiting.
15905         * testsuite/libgomp.c/depend-6.c: New test.
15906         * testsuite/libgomp.c/depend-7.c: New test.
15907         * testsuite/libgomp.c/depend-8.c: New test.
15908         * testsuite/libgomp.c/depend-9.c: New test.
15909         * testsuite/libgomp.c/depend-10.c: New test.
15911 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
15913         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
15914         (struct gomp_taskwait): New type.
15915         (struct gomp_task): Add taskwait and parent_depends_on, remove
15916         in_taskwait and taskwait_sem fields.
15917         (gomp_finish_task): Don't destroy taskwait_sem.
15918         * task.c (gomp_init_task): Don't init in_taskwait, instead init
15919         taskwait and parent_depends_on.
15920         (GOMP_task): For if (0) tasks with depend clause that depend on
15921         earlier tasks don't defer them, instead call
15922         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
15923         Initialize redundant_out field, for redundant out entries just
15924         move them at the end of linked list instead of removing them
15925         completely, and set redundant_out flag instead of redundant.
15926         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
15927         that task.
15928         (gomp_task_run_post_handle_dependers): If parent is in
15929         gomp_task_maybe_wait_for_dependencies and newly runnable task
15930         is not parent_depends_on, queue it in parent->children linked
15931         list after all runnable tasks with parent_depends_on set.
15932         Adjust for addition of taskwait indirection.
15933         (gomp_task_run_post_remove_parent): If parent is in
15934         gomp_task_maybe_wait_for_dependencies and task to be removed
15935         is parent_depends_on, decrement n_depend and if needed awake
15936         parent.  Adjust for addition of taskwait indirection.
15937         (GOMP_taskwait): Adjust for addition of taskwait indirection.
15938         (gomp_task_maybe_wait_for_dependencies): New function.
15939         * testsuite/libgomp.c/depend-5.c: New test.
15941 2014-07-13  Tobias Burnus  <burnus@net-b.de>
15943         * testsuite/libgomp.fortran/pr34020.f90: Make compile
15944         with TS 18508/Fortran 2015.
15946 2014-07-06  Marek Polacek  <polacek@redhat.com>
15948         PR c/6940
15949         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
15951 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
15953         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
15954         matches regex $lang_source_re, add $lang_include_flags to options.
15955         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
15956         * testsuite/libgomp.c++/c++.exp: Likewise.
15957         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
15958         and lang_include_flags instead of adding -fintrinsic-modules-path= to
15959         ALWAYS_CFLAGS.
15960         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
15962 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
15964         * testsuite/libgomp.fortran/fortran.exp: Explain
15965         gfortran-dg-runtest usage.
15967 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
15969         * testsuite/libgomp.fortran/simd5.f90: New test.
15970         * testsuite/libgomp.fortran/simd6.f90: New test.
15971         * testsuite/libgomp.fortran/simd7.f90: New test.
15973 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
15975         * testsuite/libgomp.c/for-2.c: Define SC to static for
15976         #pragma omp for simd testing.
15977         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
15978         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
15979         SC macro.
15980         * testsuite/libgomp.c/simd-14.c: New test.
15981         * testsuite/libgomp.c/simd-15.c: New test.
15982         * testsuite/libgomp.c/simd-16.c: New test.
15983         * testsuite/libgomp.c/simd-17.c: New test.
15984         * testsuite/libgomp.c++/for-10.C: Define SC to static for
15985         #pragma omp for simd testing.
15986         * testsuite/libgomp.c++/simd10.C: New test.
15987         * testsuite/libgomp.c++/simd11.C: New test.
15988         * testsuite/libgomp.c++/simd12.C: New test.
15989         * testsuite/libgomp.c++/simd13.C: New test.
15991         * testsuite/libgomp.fortran/aligned1.f03: New test.
15992         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
15993         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
15994         tasks with !$omp parallel !$omp single.
15995         * testsuite/libgomp.fortran/target8.f90: New test.
15996         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
15997         not to use trim in the combiner, instead call elemental function.
15998         (fn): New elemental function.
15999         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16000         Make elemental.
16001         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16002         omp_in): Likewise.
16003         * testsuite/libgomp.fortran/udr12.f90: New test.
16004         * testsuite/libgomp.fortran/udr13.f90: New test.
16005         * testsuite/libgomp.fortran/udr14.f90: New test.
16006         * testsuite/libgomp.fortran/udr15.f90: New test.
16008 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16010         * omp_lib.f90.in (openmp_version): Set to 201307.
16011         * omp_lib.h.in (openmp_version): Likewise.
16012         * testsuite/libgomp.c/target-8.c: New test.
16013         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16014         and inbranch clauses.
16015         * testsuite/libgomp.fortran/depend-3.f90: New test.
16016         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16017         openmp_version.
16018         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16019         * testsuite/libgomp.fortran/target1.f90: New test.
16020         * testsuite/libgomp.fortran/target2.f90: New test.
16021         * testsuite/libgomp.fortran/target3.f90: New test.
16022         * testsuite/libgomp.fortran/target4.f90: New test.
16023         * testsuite/libgomp.fortran/target5.f90: New test.
16024         * testsuite/libgomp.fortran/target6.f90: New test.
16025         * testsuite/libgomp.fortran/target7.f90: New test.
16027 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16029         PR fortran/60928
16030         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16031         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16032         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16033         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16034         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16035         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16036         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16037         * testsuite/libgomp.fortran/associate1.f90: New test.
16038         * testsuite/libgomp.fortran/associate2.f90: New test.
16039         * testsuite/libgomp.fortran/procptr1.f90: New test.
16041 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16043         * testsuite/libgomp.fortran/simd1.f90: New test.
16044         * testsuite/libgomp.fortran/udr1.f90: New test.
16045         * testsuite/libgomp.fortran/udr2.f90: New test.
16046         * testsuite/libgomp.fortran/udr3.f90: New test.
16047         * testsuite/libgomp.fortran/udr4.f90: New test.
16048         * testsuite/libgomp.fortran/udr5.f90: New test.
16049         * testsuite/libgomp.fortran/udr6.f90: New test.
16050         * testsuite/libgomp.fortran/udr7.f90: New test.
16051         * testsuite/libgomp.fortran/udr8.f90: New test.
16052         * testsuite/libgomp.fortran/udr9.f90: New test.
16053         * testsuite/libgomp.fortran/udr10.f90: New test.
16054         * testsuite/libgomp.fortran/udr11.f90: New test.
16056 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16058         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16059         vect_simd_clones effective target.
16060         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16062 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16064         PR middle-end/61252
16065         * testsuite/libgomp.c++/simd-9.C: New test.
16067 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16069         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16070         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16071         texts according to their @menu entry positions.
16073 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16075         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16076         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16077         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16078         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16079         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16080         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16081         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16082         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16083         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16084         * testsuite/libgomp.fortran/depend-1.f90: New test.
16085         * testsuite/libgomp.fortran/depend-2.f90: New test.
16086         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16087         * testsuite/libgomp.fortran/simd1.f90: New test.
16088         * testsuite/libgomp.fortran/simd2.f90: New test.
16089         * testsuite/libgomp.fortran/simd3.f90: New test.
16090         * testsuite/libgomp.fortran/simd4.f90: New test.
16091         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16093 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16095         * testsuite/libgomp.c/simd-10.c: New test.
16096         * testsuite/libgomp.c/simd-11.c: New test.
16097         * testsuite/libgomp.c/simd-12.c: New test.
16098         * testsuite/libgomp.c/simd-13.c: New test.
16100 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16102         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16103         atomic type clauses in any order and optional comma in between.
16104         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16105         * testsuite/libgomp.c/atomic-17.c: Likewise.
16107         * testsuite/libgomp.c/simd-7.c: New test.
16108         * testsuite/libgomp.c/simd-8.c: New test.
16109         * testsuite/libgomp.c/simd-9.c: New test.
16110         * testsuite/libgomp.c/loop-16.c: New test.
16112 2014-04-02  Richard Henderson  <rth@redhat.com>
16114         * config/linux/futex.h (futex_wait): Get error value from errno.
16115         (futex_wake): Likewise.
16117 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16119         PR c++/60331
16120         * testsuite/libgomp.c++/udr-11.C: New test.
16121         * testsuite/libgomp.c++/udr-12.C: New test.
16122         * testsuite/libgomp.c++/udr-13.C: New test.
16123         * testsuite/libgomp.c++/udr-14.C: New test.
16124         * testsuite/libgomp.c++/udr-15.C: New test.
16125         * testsuite/libgomp.c++/udr-16.C: New test.
16126         * testsuite/libgomp.c++/udr-17.C: New test.
16127         * testsuite/libgomp.c++/udr-18.C: New test.
16128         * testsuite/libgomp.c++/udr-19.C: New test.
16130 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16132         Update copyright years
16134 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16136         * hashtab.h: Use the standard form for the copyright notice.
16138 2014-01-02  Tobias Burnus  <burnus@net-b.de>
16140         * libgomp.texi: Bump @copying's copyright year.
16142 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
16144         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16145         alloca () with __builtin_alloca ().
16146         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16147         * testsuite/libgomp.c/lock-3.c: Likewise.
16148         * testsuite/libgomp.c/pr48591.c: Likewise.
16150 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
16152         PR testsuite/59534
16153         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16154         comparisons.
16156 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
16158         PR libgomp/58756
16159         * testsuite/libgomp.c/pr58756.c: New test.
16161 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
16163         PR libgomp/59467
16164         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16165         !$omp parallel.
16167 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
16169         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16170         ALWAYS_CFLAGS.
16171         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16172         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16173         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16174         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16175         Likewise.
16177         * libgomp_g.h: Include <stddef.h> for size_t.
16179         * libgomp.spec.in: Update comment about libgomp's dependencies.
16180         * configure.ac: Likewise.
16181         * configure: Regenerate.
16183 2013-10-16  Tobias Burnus  <burnus@net-b.de>
16185         * libgomp.texi: (Runtime Library Routines): Update references for
16186         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16187         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16188         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16189         (Environment Variables): Update references for OpenMP 4.0. Add
16190         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16191         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16192         order.
16194 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
16196         * env.c (parse_bind_var): Initialize value to avoid
16197         (false positive) warning.
16199 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
16201         PR libgomp/58691
16202         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16203         to check variable.
16204         (gomp_init_num_threads): Move i variable declaration into
16205         #ifdef CPU_ALLOC_SIZE block.
16206         * config/linux/affinity.c (gomp_affinity_init_level): Test
16207         gomp_places_list_len == 0 rather than gomp_places_list == 0
16208         when checking for topology reading error.
16209         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16210         * env.c (parse_affinity): Add ignore argument, if true, don't populate
16211         gomp_places_list, only parse env var and always return false.
16212         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
16213         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16214         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16215         and either of these variables were parsed correctly into a places
16216         list.
16218 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16219             Jakub Jelinek  <jakub@redhat.com>
16221         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16222         of 5 loopfn matches.
16223         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16224         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16225         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16226         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16227         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16228         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16229         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16230         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16232 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16234         * Makefile.am (omp_lib.mod): Streamline rule.
16235         * Makefile.in: Regenerate.
16237         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16238         exceptions.
16240         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16241         * testsuite/libgomp.fortran/lib1.f90: Likewise.
16242         * testsuite/libgomp.fortran/lib2.f: Likewise.
16243         * testsuite/libgomp.fortran/lib3.f: Likewise.
16245         * configure.ac: Typo fix.
16246         * configure: Regenerate.
16248         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16249         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16251         * omp.h.in: Don't touch the user's namespace.
16253 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
16254             Tobias Burnus  <burnus@net-b.de>
16255             Richard Henderson  <rth@redhat.com>
16257         * target.c: New file.
16258         * Makefile.am (libgomp_la_SOURCES): Add target.c.
16259         * Makefile.in: Regenerated.
16260         * libgomp_g.h (GOMP_task): Add depend argument.
16261         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16262         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16263         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16264         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16265         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16266         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16267         GOMP_taskgroup_start, GOMP_taskgroup_end,
16268         GOMP_parallel_sections): New prototypes.
16269         * fortran.c (omp_is_initial_device): Add ialias_redirect.
16270         (omp_is_initial_device_): New function.
16271         (ULP, STR1, STR2, ialias_redirect): Removed.
16272         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16273         omp_set_default_device_8_, omp_get_default_device_,
16274         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16275         functions.
16276         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16277         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16278         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16279         @@GOMP_4.0.
16280         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16281         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16282         omp_set_default_device, omp_set_default_device_,
16283         omp_set_default_device_8_, omp_get_default_device,
16284         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16285         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16286         omp_get_team_num_): Export @@OMP_4.0.
16287         * team.c (struct gomp_thread_start_data): Add place field.
16288         (gomp_thread_start): Clear thr->thread_pool and
16289         thr->task before returning.  Use gomp_team_barrier_wait_final
16290         instead of gomp_team_barrier_wait.  Initialize thr->place.
16291         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16292         team_cancelled and task_queued_count fields.
16293         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16294         before calling pthread_exit.
16295         (gomp_free_thread): No longer static.  Use
16296         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16297         (gomp_team_start): Add flags argument.  Set
16298         thr->thread_pool->threads_busy to nthreads immediately after creating
16299         new pool.  Use gomp_managed_threads_lock instead of
16300         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
16301         (gomp_team_end): Use gomp_managed_threads_lock instead of
16302         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
16303         of gomp_team_barrier_wait.  If team->team_cancelled, call
16304         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16305         rather than thr->ts.work_share.
16306         (initialize_team): Don't call gomp_sem_init here.
16307         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16308         caller.
16309         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16310         * env.c (gomp_global_icv): Add default_device_var, target_data and
16311         bind_var initializers.
16312         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16313         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16314         gomp_places_list_len): New variables.
16315         (parse_bind_var, parse_one_place, parse_places_var): New functions.
16316         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16317         sized places.
16318         (gomp_cancel_var): New global variable.
16319         (parse_int): New function.
16320         (handle_omp_display_env): New function.
16321         (initialize_env): Use it.  Initialize default_device_var.
16322         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
16323         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
16324         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
16325         been successfully parsed (and call gomp_init_affinity in that case).
16326         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16327         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16328         omp_get_team_num, omp_is_initial_device): New functions.
16329         * libgomp.h: Include stdlib.h.
16330         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16331         Define.
16332         (struct target_mem_desc): Forward declare.
16333         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16334         and thread_limit_var fields.
16335         (gomp_get_num_devices): New prototype.
16336         (gomp_cancel_var): New extern decl.
16337         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16338         team_cancelled and task_queued_count fields.  Add comments about
16339         task_{,queued_,running_}count.
16340         (gomp_cancel_kind): New enum.
16341         (gomp_work_share_end_cancel): New prototype.
16342         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16343         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16344         and depend fields.
16345         (struct gomp_taskgroup): New type.
16346         (struct gomp_task_depend_entry,
16347         struct gomp_dependers_vec): New types.
16348         (gomp_finish_task): Free depend_hash if non-NULL.
16349         (struct gomp_team_state): Add place_partition_off
16350         and place_partition_len fields.
16351         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16352         gomp_places_list_len): New extern decls.
16353         (struct gomp_thread): Add place field.
16354         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16355         (gomp_init_thread_affinity): Add place argument.
16356         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16357         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16358         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16359         gomp_affinity_init_level, gomp_affinity_print_place): New
16360         prototypes.
16361         (gomp_team_start): Add flags argument.
16362         (gomp_thread_limit_var, gomp_remaining_threads_count,
16363         gomp_remaining_threads_lock): Remove.
16364         (gomp_managed_threads_lock): New variable.
16365         (struct gomp_thread_pool): Add threads_busy field.
16366         (gomp_free_thread): New prototype.
16367         * task.c: Include hashtab.h.
16368         (hash_entry_type): New typedef.
16369         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16370         (gomp_init_task): Clear dependers, depend_hash, depend_count,
16371         copy_ctors_done and taskgroup fields.
16372         (GOMP_task): Add depend argument, handle depend clauses.  If
16373         gomp_team_barrier_cancelled or if it's taskgroup has been
16374         cancelled, don't queue or start new tasks.  Set copy_ctors_done
16375         field if needed.  Initialize taskgroup field.  If copy_ctors_done
16376         and already cancelled, don't discard the task.  If taskgroup is
16377         non-NULL, enqueue the task into taskgroup queue.  Increment
16378         num_children field in taskgroup.  Increment task_queued_count.
16379         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16380         gomp_task_run_post_remove_taskgroup): New inline functions.
16381         (gomp_task_run_post_handle_depend_hash,
16382         gomp_task_run_post_handle_dependers,
16383         gomp_task_run_post_handle_depend): New functions.
16384         (GOMP_taskwait): Use them.  If more than one new tasks
16385         have been queued, wake other threads if needed.
16386         (gomp_barrier_handle_tasks): Likewise.  If
16387         gomp_team_barrier_cancelled, don't start any new tasks, just free
16388         all tasks.
16389         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16390         * omp_lib.f90.in
16391         (omp_proc_bind_kind, omp_proc_bind_false,
16392         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16393         omp_proc_bind_spread): New params.
16394         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16395         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16396         omp_get_team_num, omp_is_initial_device): New interfaces.
16397         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16398         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16399         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16400         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16401         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16402         useless use omp_lib_kinds.
16403         * omp.h.in (omp_proc_bind_t): New typedef.
16404         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16405         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16406         omp_get_team_num, omp_is_initial_device): New prototypes.
16407         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16408         through to gomp_team_start.
16409         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16410         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16411         Adjust gomp_parallel_loop_start callers.
16412         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16413         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16414         GOMP_loop_end_cancel): New functions.
16415         (GOMP_parallel_end): Add ialias_redirect.
16416         * hashtab.h: New file.
16417         * libgomp.texi (Environment Variables): Minor cleanup,
16418         update section refs to OpenMP 4.0rc2.
16419         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16420         environment variables.
16421         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16422         team->work_shares_to_free to thr->ts.work_share before calling
16423         free_work_share.
16424         (gomp_work_share_end_cancel): New function.
16425         * config/linux/proc.c: Include errno.h.
16426         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16427         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16428         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
16429         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
16430         gomp_cpuset_size is sizeof (cpu_set_t).
16431         (gomp_init_num_threads): Initialize gomp_cpuset_size,
16432         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16433         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16434         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
16435         contain any logical CPUs.
16436         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16437         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
16438         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16439         pthread_getaffinity_np.  Check gomp_places_list instead of
16440         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
16441         * config/linux/bar.c (gomp_barrier_wait_end,
16442         gomp_barrier_wait_last): Use BAR_* defines.
16443         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
16444         from state where needed.  Set work_share_cancelled to 0 on last
16445         thread.
16446         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16447         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16448         functions.
16449         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16450         Add cpusetsize argument.
16451         (gomp_cpuset_size, gomp_cpusetp): Declare.
16452         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16453         (affinity_counter): Remove.
16454         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16455         if CPU_ALLOC_SIZE isn't defined.
16456         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16457         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16458         bind current thread to the first place.
16459         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
16460         pthread_setaffinity_np to gomp_places_list[place].
16461         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16462         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16463         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16464         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16465         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16466         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16467         (gomp_barrier_t): Add awaited_final field.
16468         (gomp_barrier_init): Initialize awaited_final field.
16469         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16470         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16471         prototypes.
16472         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
16473         defines.
16474         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16475         gomp_team_barrier_cancelled): New inline functions.
16476         (gomp_barrier_last_thread,
16477         gomp_team_barrier_set_task_pending,
16478         gomp_team_barrier_clear_task_pending,
16479         gomp_team_barrier_set_waiting_for_tasks,
16480         gomp_team_barrier_waiting_for_tasks,
16481         gomp_team_barrier_done): Use BAR_* defines.
16482         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16483         (gomp_barrier_wait_end): Use BAR_* defines.
16484         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16485         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16486         Use BAR_* defines.
16487         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16488         gomp_team_barrier_cancel): New functions.
16489         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16490         argument.
16491         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16492         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16493         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16494         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16495         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16496         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16497         (gomp_barrier_t): Add cancellable field.
16498         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16499         gomp_team_barrier_cancel): New prototypes.
16500         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16501         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16502         gomp_team_barrier_cancelled): New inline functions.
16503         (gomp_barrier_wait_start, gomp_barrier_last_thread,
16504         gomp_team_barrier_set_task_pending,
16505         gomp_team_barrier_clear_task_pending,
16506         gomp_team_barrier_set_waiting_for_tasks,
16507         gomp_team_barrier_waiting_for_tasks,
16508         gomp_team_barrier_done): Use BAR_* defines.
16509         * barrier.c (GOMP_barrier_cancel): New function.
16510         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16511         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16512         omp_proc_bind_spread): New params.
16513         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16514         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16515         omp_get_team_num, omp_is_initial_device): New externals.
16516         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16517         New functions.
16518         (gomp_resolve_num_threads): Adjust for thread_limit now being in
16519         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16520         infinity.  If not nested, just return minimum of max_num_threads
16521         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16522         to the returned value.  Otherwise, don't update atomically
16523         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16524         (GOMP_parallel_end): Adjust for thread_limit now being in
16525         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16526         infinity.  Adjust threads_busy in the pool rather than
16527         gomp_remaining_threads_count.  Remember team->nthreads and call
16528         gomp_team_end before adjusting threads_busy, if not nested
16529         afterwards, just set it to 1 non-atomically.  Add ialias.
16530         (GOMP_parallel_start): Adjust gomp_team_start caller.
16531         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16532         * testsuite/libgomp.c/affinity-1.c: New test.
16533         * testsuite/libgomp.c/atomic-15.c: New test.
16534         * testsuite/libgomp.c/atomic-16.c: New test.
16535         * testsuite/libgomp.c/atomic-17.c: New test.
16536         * testsuite/libgomp.c/cancel-for-1.c: New test.
16537         * testsuite/libgomp.c/cancel-for-2.c: New test.
16538         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16539         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16540         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16541         * testsuite/libgomp.c/cancel-sections-1.c: New test.
16542         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16543         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16544         * testsuite/libgomp.c/depend-1.c: New test.
16545         * testsuite/libgomp.c/depend-2.c: New test.
16546         * testsuite/libgomp.c/depend-3.c: New test.
16547         * testsuite/libgomp.c/depend-4.c: New test.
16548         * testsuite/libgomp.c/for-1.c: New test.
16549         * testsuite/libgomp.c/for-1.h: New file.
16550         * testsuite/libgomp.c/for-2.c: New test.
16551         * testsuite/libgomp.c/for-2.h: New file.
16552         * testsuite/libgomp.c/for-3.c: New test.
16553         * testsuite/libgomp.c/pr58392.c: New test.
16554         * testsuite/libgomp.c/simd-1.c: New test.
16555         * testsuite/libgomp.c/simd-2.c: New test.
16556         * testsuite/libgomp.c/simd-3.c: New test.
16557         * testsuite/libgomp.c/simd-4.c: New test.
16558         * testsuite/libgomp.c/simd-5.c: New test.
16559         * testsuite/libgomp.c/simd-6.c: New test.
16560         * testsuite/libgomp.c/target-1.c: New test.
16561         * testsuite/libgomp.c/target-2.c: New test.
16562         * testsuite/libgomp.c/target-3.c: New test.
16563         * testsuite/libgomp.c/target-4.c: New test.
16564         * testsuite/libgomp.c/target-5.c: New test.
16565         * testsuite/libgomp.c/target-6.c: New test.
16566         * testsuite/libgomp.c/target-7.c: New test.
16567         * testsuite/libgomp.c/taskgroup-1.c: New test.
16568         * testsuite/libgomp.c/thread-limit-1.c: New test.
16569         * testsuite/libgomp.c/thread-limit-2.c: New test.
16570         * testsuite/libgomp.c/thread-limit-3.c: New test.
16571         * testsuite/libgomp.c/udr-1.c: New test.
16572         * testsuite/libgomp.c/udr-2.c: New test.
16573         * testsuite/libgomp.c/udr-3.c: New test.
16574         * testsuite/libgomp.c++/affinity-1.C: New test.
16575         * testsuite/libgomp.c++/atomic-10.C: New test.
16576         * testsuite/libgomp.c++/atomic-11.C: New test.
16577         * testsuite/libgomp.c++/atomic-12.C: New test.
16578         * testsuite/libgomp.c++/atomic-13.C: New test.
16579         * testsuite/libgomp.c++/atomic-14.C: New test.
16580         * testsuite/libgomp.c++/atomic-15.C: New test.
16581         * testsuite/libgomp.c++/cancel-for-1.C: New test.
16582         * testsuite/libgomp.c++/cancel-for-2.C: New test.
16583         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16584         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16585         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16586         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16587         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16588         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16589         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16590         * testsuite/libgomp.c++/cancel-test.h: New file.
16591         * testsuite/libgomp.c++/for-9.C: New test.
16592         * testsuite/libgomp.c++/for-10.C: New test.
16593         * testsuite/libgomp.c++/for-11.C: New test.
16594         * testsuite/libgomp.c++/simd-1.C: New test.
16595         * testsuite/libgomp.c++/simd-2.C: New test.
16596         * testsuite/libgomp.c++/simd-3.C: New test.
16597         * testsuite/libgomp.c++/simd-4.C: New test.
16598         * testsuite/libgomp.c++/simd-5.C: New test.
16599         * testsuite/libgomp.c++/simd-6.C: New test.
16600         * testsuite/libgomp.c++/simd-7.C: New test.
16601         * testsuite/libgomp.c++/simd-8.C: New test.
16602         * testsuite/libgomp.c++/target-1.C: New test.
16603         * testsuite/libgomp.c++/target-2.C: New test.
16604         * testsuite/libgomp.c++/target-2-aux.cc: New file.
16605         * testsuite/libgomp.c++/target-3.C: New test.
16606         * testsuite/libgomp.c++/taskgroup-1.C: New test.
16607         * testsuite/libgomp.c++/udr-1.C: New test.
16608         * testsuite/libgomp.c++/udr-2.C: New test.
16609         * testsuite/libgomp.c++/udr-3.C: New test.
16610         * testsuite/libgomp.c++/udr-4.C: New test.
16611         * testsuite/libgomp.c++/udr-5.C: New test.
16612         * testsuite/libgomp.c++/udr-6.C: New test.
16613         * testsuite/libgomp.c++/udr-7.C: New test.
16614         * testsuite/libgomp.c++/udr-8.C: New test.
16615         * testsuite/libgomp.c++/udr-9.C: New test.
16617 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
16619         PR testsuite/57605
16620         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16621         ALWAYS_CFLAGS.
16623 2013-09-20  Alan Modra  <amodra@gmail.com>
16625         * configure: Regenerate.
16627 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
16629         * testsuite/libgomp.c/sections-2.c: New test.
16631 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16633         * testsuite/libgomp.fortran/strassen.f90:
16634         Add dg-skip-if aarch64_tiny.
16636 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
16637             Cesar Philippidis  <cesar@codesourcery.com>
16639         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16640         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16641         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16642         * testsuite/libgomp.fortran/fortran.exp: Likewise.
16643         * testsuite/libgomp.graphite/graphite.exp: Likewise.
16644         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16645         Use dg-runtest rather than gfortran-dg-runtest.
16647 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16649         * testsuite/libgomp.c/icv-2.c: Extend current handling of
16650         Linux-based x86 systems to cover all GNU systems.
16651         * testsuite/libgomp.c/lock-3.c: Likewise.
16652         * testsuite/libgomp.c/pr48591.c: Likewise.
16654 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
16656         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
16657         GNU/Hurd, as done for Linux-based systems.
16659         * config/posix/ptrlock.h: Fix comment.
16661 2013-05-27  Tobias Burnus  <burnus@net-b.de>
16663         PR fortran/57423
16664         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
16665         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
16666         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
16667         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
16668         omp_destroy_nest_lock): Correct arguments to match the one in
16669         the OpenMP spec.
16670         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
16671         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
16672         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
16673         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
16675 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
16677         * testsuite/libgomp.c/loop-13.c: New test.
16678         * testsuite/libgomp.c/loop-14.c: New test.
16679         * testsuite/libgomp.c/loop-15.c: New test.
16680         * testsuite/libgomp.c++/loop-13.C: New test.
16681         * testsuite/libgomp.c++/loop-14.C: New test.
16682         * testsuite/libgomp.c++/loop-15.C: New test.
16684 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
16686         PR middle-end/56217
16687         * testsuite/libgomp.c++/pr56217.C: New test.
16689 2013-02-01  Alan Modra  <amodra@gmail.com>
16691         * task.c (GOMP_task, GOMP_taskwait): Comment.
16693 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
16694             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
16696         PR libgomp/55561
16697         * config/linux/wait.h (do_spin): Use atomic load for addr.
16698         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
16699         for intptr and ptrlock.
16700         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
16701         for ptrlock.
16703 2013-01-22  Alan Modra  <amodra@gmail.com>
16705         PR libgomp/51376
16706         PR libgomp/56073
16707         * task.c (GOMP_task): Revert 2011-12-09 change.
16708         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
16709         barrier to read task->children..
16710         (gomp_barrier_handle_tasks): ..and matching atomic store with
16711         release barrier here when setting parent->children to NULL.
16713 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
16714             Tobias Burnus  <burnus@net-b.de>
16716         PR driver/55884
16717         * testsuite/libgomp.fortran/fortran.exp: Use
16718         -fintrinsic-modules-path= instead of
16719         -fintrinsic-modules-path.
16721 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
16723         Update copyright years.
16725 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16727         * testsuite/libgomp.fortran/fortran.exp: Set
16728         -fintrinsic-modules-path.
16730 2012-12-19  Tobias Burnus  <burnus@net-b.de>
16732         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
16733         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
16735 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
16737         PR libgomp/55411
16738         * team.c (gomp_free_thread): Decrease gomp_managed_threads
16739         if pool had any threads_used.
16741 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
16743         * testsuite/libgomp.c++/pr24455.C: Use
16744         -Wl,-undefined,dynamic_lookup on darwin.
16746 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
16748         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
16750 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
16752         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
16754 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
16755             Jim MacArthur  <jim.macarthur@arm.com>
16756             Marcus Shawcroft  <marcus.shawcroft@arm.com>
16757             Nigel Stephens  <nigel.stephens@arm.com>
16758             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16759             Richard Earnshaw  <rearnsha@arm.com>
16760             Sofiane Naci  <sofiane.naci@arm.com>
16761             Stephen Thomas  <stephen.thomas@arm.com>
16762             Tejas Belagod  <tejas.belagod@arm.com>
16763             Yufeng Zhang  <yufeng.zhang@arm.com>
16765         * configure.tgt: Add AArch64.
16767 2012-10-04  Jason Merrill  <jason@redhat.com>
16769         * testsuite/libgomp.c++/tls-init1.C: New.
16771 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
16773         * configure: Regenerated.
16775 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
16777         * config/linux/mips/futex.h (sys_futex0): Change to static
16778         function with noinline, nomips16 attributes under MIPS16. Adjust
16779         asm statement to place 'li v0,SYS_futex' immediately before
16780         syscall insn.
16782 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
16784         * libgomp.texi (Library Index): Renamed from "Index" to prevent
16785         conflict with index.html on case-insensitive file systems.
16787 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
16789         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
16790         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
16792 2012-07-02  Richard Guenther  <rguenther@suse.de>
16793             Michael Matz  <matz@suse.de>
16794             Tobias Grosser <tobias@grosser.es>
16795             Sebastian Pop <sebpop@gmail.com>
16797         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
16798         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16799         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16800         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16802 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
16804         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
16806 2012-06-22  Richard Guenther  <rguenther@suse.de>
16808         Merge from graphite branch
16809         2012-01-13  Tobias Grosser  <tobias@grosser.es>
16811         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
16812         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16814 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
16816         PR middle-end/53580
16817         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
16818         use GOMP_barrier () call instead.
16819         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16820         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16821         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
16822         call GOMP_barrier instead.
16823         * testsuite/libgomp.fortran/vla5.f90: Likewise.
16825 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
16827         PR libgomp/52993
16828         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
16829         argument to memset call.
16831 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16833         * configure: Regenerated.
16835 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16837         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
16839 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
16841         PR bootstrap/52812
16842         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
16844 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
16846         PR middle-end/52547
16847         * testsuite/libgomp.c/pr52547.c: New test.
16849 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16851         * testsuite/lib/libgomp.exp: load fortran-modules.exp
16853 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16855         * configure.tgt (mips-sgi-irix6*): Remove.
16857 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16859         * configure.tgt (alpha*-dec-osf*): Remove.
16861         * config/osf/sem.h: Remove.
16862         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
16864 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
16866         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
16868 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16870         PR libstdc++/52188
16871         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
16872         Remove ENABLE_SYMVERS_SOL2.
16873         * configure: Regenerate.
16874         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
16875         (PREPROCESS): New variable.
16876         (libgomp.ver): New target.
16877         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
16878         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
16879         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
16880         Use libgomp.ver.
16881         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
16882         * Makefile.in: Regenerate.
16884 2012-02-14  Walter Lee  <walt@tilera.com>
16886         * configure.tgt: Handle tilegx and tilepro.
16887         * config/linux/tile/futex.h: New file.
16889 2012-02-08  Richard Guenther  <rguenther@suse.de>
16891         PR tree-optimization/46886
16892         * testsuite/libgomp.c/pr46886.c: New testcase.
16894 2012-01-25  Matthias Klose  <doko@ubuntu.com>
16896         * config/linux/arm: Remove empty directory.
16897         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
16899 2011-12-09  Alan Modra  <amodra@gmail.com>
16901         PR libgomp/51376
16902         * task.c (GOMP_taskwait): Don't access task->children outside of
16903         task_lock mutex region.
16904         (GOMP_task): Likewise.
16906 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
16908         PR libgomp/51132
16909         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
16910         to file scope.
16911         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16912         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16913         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16914         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16915         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16917 2011-12-02  Alan Modra  <amodra@gmail.com>
16919         * config/linux/affinity.c: Use atomic rather than sync builtin.
16920         * config/linux/lock.c: Likewise.
16921         * config/linux/ptrlock.h: Likewise.
16922         * config/linux/ptrlock.c: Likewise.
16923         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
16924         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
16925         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
16926         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
16927         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
16928         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
16929         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
16930         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
16931         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
16932         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
16934 2011-11-30  Alan Modra  <amodra@gmail.com>
16936         PR libgomp/51298
16937         * config/linux/bar.h: Use atomic rather than sync builtins.
16938         * config/linux/bar.c: Likewise.  Add missing acquire
16939         synchronisation on generation field.
16940         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
16941         double unlock.
16943 2011-11-30  Alan Modra  <amodra@gmail.com>
16945         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
16946         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
16947         * config/linux/mutex.h: Use atomic rather than sync builtins.
16948         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
16949         * config/linux/omp-lock.h: Comment fix.
16950         * config/linux/arm/mutex.h: Delete.
16951         * config/linux/powerpc/mutex.h: Delete.
16952         * config/linux/ia64/mutex.h: Delete.
16953         * config/linux/mips/mutex.h: Delete.
16955 2011-11-30  Alan Modra  <amodra@gmail.com>
16957         PR libgomp/51249
16958         * config/linux/sem.h: Rewrite.
16959         * config/linux/sem.c: Rewrite.
16961 2011-11-28  Richard Henderson  <rth@redhat.com>
16963         * libgomp.h (enum memmodel): New.
16965 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
16967         * configure: Regenerate.
16969 2011-10-10  Matthias Klose  <doko@ubuntu.com>
16971         * config/posix95: Remove empty directory.
16973 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
16975         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
16977 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
16979         PR fortran/49792
16980         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
16981         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
16983 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16985         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
16987 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16989         PR libgomp/49965
16990         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
16992 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
16994         * config/linux/proc.h: New.
16995         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
16996         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
16997         (gomp_init_num_threads): Update call to cpuset_popcount.
16998         (get_num_procs): Ditto.
16999         * config/linux/affinity.c (gomp_init_affinity): Call
17000         gomp_cpuset_popcount.
17002 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17004         PR fortran/42041
17005         PR fortran/46752
17006         * omp.h.in (omp_in_final): New prototype.
17007         * omp_lib.f90.in (omp_in_final): New interface.
17008         (omp_integer_kind, omp_logical_kind): Remove
17009         and replace all its uses in the module with 4.
17010         (openmp_version): Change to 201107.
17011         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17012         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17013         kind for the parameters.
17014         (omp_in_final): New external.
17015         (openmp_version): Change to 201107.
17016         * task.c (omp_in_final): New function.
17017         (gomp_init_task): Initialize final_task.
17018         (GOMP_task): Remove unused attribute from flags.  Handle final
17019         tasks.
17020         (GOMP_taskyield): New function.
17021         (omp_in_final): Return true if if (false) or final (true) task
17022         or descendant of final (true).
17023         * fortran.c (omp_in_final_): New function.
17024         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17025         (GOMP_3.0): Export GOMP_taskyield.
17026         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17027         variables.
17028         (parse_unsigned_long_list): New function.
17029         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17030         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17031         even if parse_affinity returned false.
17032         * config/linux/affinity.c (gomp_init_affinity): Handle
17033         gomp_cpu_affinity_len == 0.
17034         * libgomp_g.h (GOMP_taskyield): New prototype.
17035         * libgomp.h (struct gomp_task): Add final_task field.
17036         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17037         * team.c (gomp_team_start): Override new task's nthreads_var icv
17038         if list form OMP_NUM_THREADS has been used and it has value for
17039         the new nesting level.
17041         * testsuite/libgomp.c/atomic-11.c: New test.
17042         * testsuite/libgomp.c/atomic-12.c: New test.
17043         * testsuite/libgomp.c/atomic-13.c: New test.
17044         * testsuite/libgomp.c/atomic-14.c: New test.
17045         * testsuite/libgomp.c/reduction-6.c: New test.
17046         * testsuite/libgomp.c/task-5.c: New test.
17047         * testsuite/libgomp.c++/atomic-2.C: New test.
17048         * testsuite/libgomp.c++/atomic-3.C: New test.
17049         * testsuite/libgomp.c++/atomic-4.C: New test.
17050         * testsuite/libgomp.c++/atomic-5.C: New test.
17051         * testsuite/libgomp.c++/atomic-6.C: New test.
17052         * testsuite/libgomp.c++/atomic-7.C: New test.
17053         * testsuite/libgomp.c++/atomic-8.C: New test.
17054         * testsuite/libgomp.c++/atomic-9.C: New test.
17055         * testsuite/libgomp.c++/task-8.C: New test.
17056         * testsuite/libgomp.c++/reduction-4.C: New test.
17057         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17058         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17059         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17060         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17061         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17062         * testsuite/libgomp.fortran/pointer1.f90: New test.
17063         * testsuite/libgomp.fortran/pointer2.f90: New test.
17064         * testsuite/libgomp.fortran/task4.f90: New test.
17066 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17068         * libgomp.texi: Update OpenMP spec references to 3.1.
17069         (omp_in_final,OMP_PROC_BIND): New sections.
17070         (OMP_NUM_THREADS): Document that the value can be now a list.
17071         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17073 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17075         * config/linux/x86/futex.h: Check __x86_64__ instead of
17076         __LP64__.
17078 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17080         PR middle-end/49897
17081         PR middle-end/49898
17082         * testsuite/libgomp.c/pr49897-1.c: New test.
17083         * testsuite/libgomp.c/pr49897-2.c: New test.
17084         * testsuite/libgomp.c/pr49898-1.c: New test.
17085         * testsuite/libgomp.c/pr49898-2.c: New test.
17087 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17089         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17090         for ia32 instead of ilp32.
17092         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17093         * testsuite/libgomp.c/atomic-6.c: Likewise.
17095 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17097         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17098         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17100 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17102         PR libgomp/45351
17103         * config/osf/sem.h: New file.
17104         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17106 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17108         PR target/49541
17109         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17110         ldflags.
17112 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17114         * config/linux/wait.h (do_spin): New inline, largely copied
17115         from do_wait, just don't do futex_wait here, instead return true if
17116         it should be done.
17117         (do_wait): Implement using do_spin.
17118         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17119         to prototype.
17120         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17121         __sync_bool_compare_and_swap, pass the oldval to
17122         gomp_mutex_lock_slow.
17123         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17124         If all mutex contenders are just spinning and not sleeping, don't
17125         change state to 2 unnecessarily.  Optimize the loop when state has
17126         already become 2 to use just one atomic operation per loop instead
17127         of two.
17128         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17129         to prototype.
17130         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17131         __sync_bool_compare_and_swap, pass the oldval to
17132         gomp_mutex_lock_slow.
17134 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17136         PR libgomp/49490
17137         * iter.c (gomp_iter_static_next): For chunk size 0
17138         only use n ceil/ nthreads size for the first
17139         n % nthreads threads in the team instead of
17140         all threads except for the last few ones which
17141         get less work or none at all.
17142         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17143         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17144         chunk argument, set run_sched_modifier to 0 for static
17145         resp. 1 for other kinds.  If chunk argument is 0
17146         and not static, set value to 1.
17148 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17150         PR c++/49043
17151         * testsuite/libgomp.c++/pr49043.C: New test.
17153         PR c++/48869
17154         * testsuite/libgomp.c++/pr48869.C: New test.
17156 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17158         PR fortran/48894
17159         * fortran.c: Include limits.h.
17160         (TO_INT): Define.
17161         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17162         *set.
17163         (omp_set_num_threads_8_, omp_set_schedule_8_,
17164         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17165         omp_get_team_size_8_): Use TO_INT macro.
17166         * testsuite/libgomp.fortran/pr48894.f90: New test.
17168 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17170         PR middle-end/48591
17171         * testsuite/libgomp.c/pr48591.c: New test.
17173 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17175         PR bootstrap/48135
17176         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17177         * configure: Regenerate.
17179 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
17181         PR fortran/47886
17182         * testsuite/libgomp.fortran/task3.f90: New test.
17184 2011-02-24  Tobias Burnus  <burnus@net-b.de>
17186         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17188 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
17190         PR libgomp/47854
17191         * libgomp.texi (omp_get_wtime): Don't say time in the past
17192         must be Unix Epoch.
17194 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17196         PR libgomp/47804
17197         * testsuite/libgomp.fortran/fortran.exp: Check for both
17198         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
17199         but $blddir != "", still append ${blddir}/${lang_library_path}
17200         to ld_library_path.
17202 2011-02-16  Tobias Burnus  <burnus@net-b.de>
17204         PR libgomp/47758
17205         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17206         of libquadmath.a before adding its libpath to ldflags.
17208 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17210         PR libgomp/47731
17211         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17212         to FUTEX_WAIT futex syscall.
17213         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17215 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17217         * configure: Regenerate.
17219 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
17221         PR libstdc++/36104
17222         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17224 2011-01-16  Gerald Pfeifer
17226         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17228 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
17230         PR fortran/46874
17231         * libgomp.fortran/allocatable6.f90: New test.
17233 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17235         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17236         * configure: Regenerate.
17238 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17240         PR target/40125
17241         PR lto/46695
17242         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17243         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17244         * aclocal.m4: Regenerate.
17245         * configure: Regenerate.
17246         * Makefile.in: Regenerate.
17247         * testsuite/Makefile.in: Regenerate.
17249 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
17251         PR fortran/46753
17252         * libgomp.fortran/pr46753.f90: New test.
17254         PR libgomp/43706
17255         * env.c (initialize_env): Default to spin count 300000
17256         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17257         is specified.
17259         PR libgomp/45240
17260         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17261         at the end if sync builtins aren't supported.
17263 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17265         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17267 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17269         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17271 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
17273         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17275 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17276             Tobias Burnus  <burnus@net-b.de>
17278         PR fortran/32049
17279         * configure.ac:
17280         * configure: Regenerate.
17282 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17284         * config/linux/futex.h: New.
17285         * config/linux/arm/mutex.h: New.
17286         * configure.tgt (arm*-*-linux*): Add config path.
17288 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
17290         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17292 2010-09-23  Tobias Burnus  <burnus@net-b.de>
17294         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17295         Change Fortran datatype to LOGICAL.
17296         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17297         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17299 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17301         * configure: Regenerate.
17303 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
17305         * libgomp.texi: Add function keyword to a couple of Fortran
17306         interfaces, use integer instead of int for Fortran.
17308 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
17310         * libgomp.texi: Fix spelling and pasto problems throughout.
17311         Adjust prototypes to match code.
17313 2010-07-24  Tobias Burnus  <burnus@net-b.de>
17315         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17316         silence -fwhole-file warning.
17318 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17320         * configure.tgt (*-*-solaris2.[56]*): Removed.
17322 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17324         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17325         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17326         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17327         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17328         targetting solaris2*.
17329         * configure: Regenerate.
17330         * config.h.in: Regenerate.
17332         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17333         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17334         Add libgomp_version_dep.
17335         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17336         versioning.
17337         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17338         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17339         * Makefile.in: Regenerate.
17341         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17342         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17343         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17344         to common block, protected by
17345         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17347 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17349         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
17351 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
17353         PR bootstrap/43170
17354         * configure: Regenerate.
17356 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17358         PR other/43620
17359         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17360         * configure: Regenerate.
17361         * Makefile.in: Regenerate.
17362         * testsuite/Makefile.in: Regenerate.
17364 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17366         PR c/43893
17367         * testsuite/libgomp.c/pr43893.c: New test.
17368         * testsuite/libgomp.c++/pr43893.C: New test.
17370 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17372         PR middle-end/43570
17373         * testsuite/libgomp.fortran/vla8.f90: New test.
17375 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17377         PR libgomp/43706
17378         * config/linux/affinity.c (gomp_init_affinity): Decrease
17379         gomp_available_cpus if affinity mask confines the process to fewer
17380         CPUs.
17381         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17382         non-NULL, just return gomp_available_cpus.
17384         PR libgomp/43569
17385         * sections.c (gomp_sections_init): Initialize ws->mode.
17387 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17389         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17390         not unused bar variable.
17391         * configure: Regenerate.
17393 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17395         * Makefile.in: Regenerate.
17396         * aclocal.m4: Regenerate.
17397         * testsuite/Makefile.in: Regenerate.
17399 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17401         PR libgomp/42942
17402         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17403         (initialize_env): Adjust callers.
17404         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17405         when the argument is 0.
17407         * testsuite/libgomp.c/pr42942.c: New test.
17409 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17411         PR middle-end/42644
17412         PR middle-end/42130
17413         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17414         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17416 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17418         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17419         * testsuite/libgomp.c++/task-6.C: Likewise.
17421 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
17423         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17425 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
17427         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17428         * configure: Regenerate.
17430 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17432         PR fortran/42866
17433         * testsuite/libgomp.fortran/allocatable5.f90: New test.
17435 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
17437         * configure.ac: Test for executability of GFORTRAN.
17438         * configure: Regenerate.
17440 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17442         * configure: Regenerate.
17444 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17446         PR libgomp/42602
17447         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17449 2010-01-03  Richard Guenther  <rguenther@suse.de>
17451         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17453 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
17455         * testsuite/libgomp.graphite/pr4118.c: New.
17457 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17459         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17460         for darwin, protect the test with require-effective-target tls_runtime.
17461         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17463 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17465         PR target/41605
17466         * testsuite/lib/libgomp.exp: Provide -B options to allow for
17467         link spec %s substitutions for static libraries.
17469 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
17471         PR testsuite/42135
17472         * libgomp.graphite/force-parallel-2.c: Reduce array size.
17474 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17476         * Makefile.in: Regenerate.
17477         * configure: Regenerate.
17478         * testsuite/Makefile.in: Regenerate.
17480 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17482         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17483         settings for LC_ALL and LANG.
17485 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
17487         PR fortran/42162
17488         * testsuite/libgomp.fortran/pr42162.f90: New test.
17490 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
17492         PR middle-end/42029
17493         * testsuite/libgomp.c/pr42029.c: New test.
17495 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
17497         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17498         *s.  Accept ld version without text in ()s.
17499         * configure: Regenerated.
17501 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
17503         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17505 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17507         PR libgomp/41418
17508         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17509         or a hyphen (happens with fortran language disabled).
17510         * configure: Regenerate.
17512 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17514         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17515         use sed script portable to Solaris /bin/sed for extracting ld
17516         version.
17517         * configure: Regenerate.
17519 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
17521         * testsuite/libgomp.graphite/bounds.c: New test.
17523 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17525         * Makefile.am (libgomp_la_LINK): New.
17526         * Makefile.in: Regenerate.
17528 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17530         * configure.ac (AC_PREREQ): Bump to 2.64.
17532 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17534         * Makefile.am (install-html, install-pdf): Remove.
17535         * Makefile.in: Regenerate.
17537         * Makefile.in: Regenerate.
17538         * aclocal.m4: Regenerate.
17539         * config.h.in: Regenerate.
17540         * configure: Regenerate.
17541         * testsuite/Makefile.in: Regenerate.
17543 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17545         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17546         * Makefile.in: Regenerate.
17548 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
17550         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17551         * Makefile.in: Regenerate.
17553 2009-08-19  Tobias Burnus  <burnus@net-b.de>
17555         PR fortran/41102
17556         omp_lib.h.in: Fix -std=f95 errors.
17558 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
17560         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17561         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17562         * testsuite/libgomp.graphite/graphite.exp: New.
17564 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
17566         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17567         only build.
17569 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
17571         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17572         needed memory barrier semantics.
17573         * config/linux/mips/mutex.h: New file.
17575 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17577         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17579 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
17581         * configure: Regenerate.
17583 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
17585         PR testsuite/40699
17586         PR testsuite/40707
17587         PR testsuite/40709
17588         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17589         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17590         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17592 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17594         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17595         options when choosing a multilib.
17597 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
17599         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17600         ld_library_path.  Use add_path.  Add just find_libgcc_s to
17601         ld_library_path, not every libgcc multilib directory.
17602         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17603         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17604         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17605         Use add_path.
17606         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17608 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
17610         * Makefile.am (LTLDFLAGS): Define.
17611         (LINK): Define.
17612         * Makefile.in: Regenerate.
17614 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
17616         PR fortran/39718
17617         * testsuite/libgomp.fortran/fortran.exp: Don't link with
17618         libgfortranbegin, check existence of libgfortran.a instead of
17619         libgfortranbegin.a.
17621 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
17623         PR libgomp/40174
17624         * team.c (gomp_thread_start): Destroy thr->release semaphore.
17625         (gomp_free_pool_helper): Likewise.
17627 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
17628             Jakub Jelinek  <jakub@redhat.com>
17630         PR fortran/35423
17631         * testsuite/libgomp.fortran/workshare2.f90: New test.
17633 2009-04-09  Nick Clifton  <nickc@redhat.com>
17635         * iter.c: Change copyright header to refer to version 3 of the
17636         GNU General Public License with version 3.1 of the GCC Runtime
17637         Library Exception and to point readers at the COPYING3 and
17638         COPYING3.RUNTIME files and the FSF's license web page.
17639         * alloc.c: Likewise.
17640         * barrier.c: Likewise.
17641         * config/bsd/proc.c: Likewise.
17642         * config/linux/affinity.c: Likewise.
17643         * config/linux/alpha/futex.h: Likewise.
17644         * config/linux/bar.c: Likewise.
17645         * config/linux/bar.h: Likewise.
17646         * config/linux/ia64/futex.h: Likewise.
17647         * config/linux/ia64/mutex.h: Likewise.
17648         * config/linux/lock.c: Likewise.
17649         * config/linux/mips/futex.h: Likewise.
17650         * config/linux/mutex.c: Likewise.
17651         * config/linux/mutex.h: Likewise.
17652         * config/linux/powerpc/futex.h: Likewise.
17653         * config/linux/proc.c: Likewise.
17654         * config/linux/ptrlock.c: Likewise.
17655         * config/linux/ptrlock.h: Likewise.
17656         * config/linux/s390/futex.h: Likewise.
17657         * config/linux/sem.c: Likewise.
17658         * config/linux/sem.h: Likewise.
17659         * config/linux/sparc/futex.h: Likewise.
17660         * config/linux/wait.h: Likewise.
17661         * config/linux/x86/futex.h: Likewise.
17662         * config/mingw32/proc.c: Likewise.
17663         * config/mingw32/time.c: Likewise.
17664         * config/posix/affinity.c: Likewise.
17665         * config/posix/bar.c: Likewise.
17666         * config/posix/bar.h: Likewise.
17667         * config/posix/lock.c: Likewise.
17668         * config/posix/mutex.h: Likewise.
17669         * config/posix/proc.c: Likewise.
17670         * config/posix/ptrlock.h: Likewise.
17671         * config/posix/sem.c: Likewise.
17672         * config/posix/sem.h: Likewise.
17673         * config/posix/time.c: Likewise.
17674         * config/posix95/lock.c: Likewise.
17675         * critical.c: Likewise.
17676         * env.c: Likewise.
17677         * error.c: Likewise.
17678         * fortran.c: Likewise.
17679         * iter_ull.c: Likewise.
17680         * libgomp.h: Likewise.
17681         * libgomp_f.h.in: Likewise.
17682         * libgomp_g.h: Likewise.
17683         * loop.c: Likewise.
17684         * loop_ull.c: Likewise.
17685         * omp.h.in: Likewise.
17686         * omp_lib.f90.in: Likewise.
17687         * omp_lib.h.in: Likewise.
17688         * ordered.c: Likewise.
17689         * parallel.c: Likewise.
17690         * sections.c: Likewise.
17691         * single.c: Likewise.
17692         * task.c: Likewise.
17693         * team.c: Likewise.
17694         * work.c: Likewise.
17696 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
17698         * testsuite/config/default.exp: Change copyright header to refer to
17699         version 3 of the GNU General Public License and to point readers
17700         at the COPYING3 file and the FSF's license web page.
17702 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
17704         PR middle-end/39573
17705         * libgomp.c++/pr39573.C: New test.
17707 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
17709         PR other/39591
17710         * testsuite/libgomp.c/pr39591-1.c: New test.
17711         * testsuite/libgomp.c/pr39591-2.c: New test.
17712         * testsuite/libgomp.c/pr39591-3.c: New test.
17714 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
17716         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
17717         * testsuite/libgomp.c/atomic-6.c: Ditto.
17719 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17721         PR c/39495
17722         * testsuite/libgomp.c/loop-12.c: New test.
17723         * testsuite/libgomp.c/loop-11.c: New test.
17724         * testsuite/libgomp.c++/loop-11.C: New test.
17725         * testsuite/libgomp.c++/loop-12.C: New test.
17726         * testsuite/libgomp.c++/for-8.C: New test.
17728 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17730         * configure: Regenerate.
17732 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
17734         PR middle-end/39154
17735         * testsuite/libgomp.c/pr39154.c: New test.
17737 2009-01-30  Ian Lance Taylor  <iant@google.com>
17739         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
17740         libgomp_ld_is_gold.  Get gold version number.
17741         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
17742         * configure: Rebuild.
17744 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17746         * testsuite/lib/libgomp.exp: Add -B option for targets that
17747         use libgfortran.a%s in their specs.
17749 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
17751         PR libgomp/38086
17752         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
17753         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
17754         HAVE_AS_SYMVER_DIRECTIVE is not defined.
17755         * configure: Regenerated.
17756         * config.h.in: Likewise.
17758 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
17760         PR c++/38650
17761         * testsuite/libgomp.c/pr38650.c: New test.
17762         * testsuite/libgomp.c++/pr38650.C: New test.
17764 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
17766         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
17768 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
17770         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
17772 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17774         * configure: Regenerate.
17776 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
17778         PR middle-end/36802
17779         * testsuite/libgomp.c/pr36802-1.c: New test.
17780         * testsuite/libgomp.c/pr36802-2.c: New test.
17781         * testsuite/libgomp.c/pr36802-3.c: New test.
17783 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
17785         PR libgomp/38270
17786         * config/linux/powerpc/mutex.h: New.
17788 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
17790         PR c++/38257
17791         * testsuite/libgomp.c++/for-7.C: New test.
17793         PR c++/38348
17794         * testsuite/libgomp.c++/for-6.C: New test.
17796 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
17798         PR testsuite/28870
17799         * testsuite/lib/libgomp.exp: Include new timeout library files.
17800         (libgomp_target_compile): Set timeout value from new proc.
17802 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
17804         PR libgomp/37938
17805         * config/linux/ia64/mutex.h: New.
17807 2008-11-04  Tobias Burnus  <burnus@net-b.de>
17809         PR libgomp/37935
17810         * libgomp.texi (Runtime library routines, environment variables):
17811         Update for OpenMP version 3.0.
17813 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
17814             Steve Ellcey  <sje@cup.hp.com>
17816         * configure: Regenerate for new libtool.
17817         * Makefile.in: Ditto.
17818         * testsuite/Makefile.in: Ditto.
17820 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
17821             Andreas Tobler  <a.tobler@schweiz.org>
17823         * config/bsd/proc.c: New file.
17824         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
17825         * configure.ac: Check for header <sys/sysctl.h>
17826         * configure: Regenerate.
17827         * config.h.in: Likewise.
17829 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
17831         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
17833 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
17835         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
17836         * Makefile.in: Regenerated.
17837         * testsuite/Makefile.in: Regenerated.
17839 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
17841         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
17842         depend on blddir if blddir exists.
17843         (libgomp_target_compile): Likewise.
17844         * testsuite/libgomp.c++/c++.exp: Likewise.
17845         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17847 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17849         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
17850         Do not list GPL as Invariant Section.
17852 2008-07-28  Ilie Garbacea  <ilie@mips.com>
17853             Chao-ying Fu  <fu@mips.com>
17855         * configure.tgt: Enable futex for MIPS.
17856         * config/linux/mips/futex.h: New file.
17858 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
17860         * team.c (gomp_team_end): Free team immediately if it has
17861         just one thread.
17863 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
17865         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
17866         * testsuite/libgomp.fortran/fortran.exp: Same.
17867         * testsuite/libgomp.c/c.exp: Same.
17868         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
17869         directory to library path first.
17871 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
17873         * env.c (parse_stacksize): Add cast to avoid warning.
17874         (parse_spincount): Likewise.
17876 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
17878         * testsuite/libgomp.c/loop-10.c: New test.
17879         * libgomp.c/loop-3.c (main): Add lastprivate clause.
17880         * libgomp.c++/loop-6.C (main): Likewise.
17882         PR debug/36617
17883         * testsuite/libgomp.c/debug-1.c: New test.
17885 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
17887         * testsuite/libgomp.c/nqueens-1.c: New test.
17889         PR c++/36523
17890         * testsuite/libgomp.c++/task-7.C: New function.
17892 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17894         * configure: Regenerate.
17896 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17898         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
17899         mutex when HAVE_SYNC_BUILTINS isn't defined.
17901 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17903         * libgomp.texi (omp_test_lock): Fix typo.
17905 2008-06-12  Tobias Burnus  <burnus@net-b.de>
17907         * omp_lib.f90.in: Add "implicit none".
17909 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
17911         PR middle-end/36506
17912         * testsuite/libgomp.c/reduction-5.c: New test.
17914 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
17916         * libgomp.h (struct gomp_task): Add in_tied_task field.
17917         * task.c (gomp_init_task): Initialize it.
17918         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
17919         unconditionally.  Don't call gomp_team_barrier_wake if
17920         current task is implicit or if(0) from implicit and number of
17921         running tasks is equal to nthreads - 1.
17923         PR libgomp/36471
17924         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
17925         omp_get_team_size_8): Fix pastos.
17927         PR libgomp/36469
17928         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
17929         * configure: Regenerated.
17930         * config.h.in: Regenerated.
17931         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
17932         defined.
17934 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
17936         PR bootstrap/36452
17937         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
17938         (GOMP_loop_ull_dynamic_start): Likewise.
17939         (GOMP_loop_ull_guided_start): Likewise.
17940         (GOMP_loop_ull_ordered_static_start): Likewise.
17941         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
17942         (GOMP_loop_ull_ordered_guided_start): Likewise.
17944 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
17945             Richard Henderson  <rth@redhat.com>
17946             Ulrich Drepper  <drepper@redhat.com>
17947             Jakob Blomer  <jakob.blomer@ira.uka.de>
17949         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
17950         Substitute also OMP_*LOCK_25*.
17951         * configure: Regenerated.
17952         * config.h.in: Regenerated.
17953         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
17954         ptrlock.c and task.c.
17955         * Makefile.in: Regenerated.
17956         * testsuite/Makefile.in: Regenerated.
17957         * task.c: New file.
17958         * loop_ull.c: New file.
17959         * iter_ull.c: New file.
17960         * libgomp.h: Include ptrlock.h.
17961         (enum gomp_task_kind): New type.
17962         (struct gomp_team): Add task_lock, task_queue, task_count,
17963         task_running_count, single_count fields.  Add
17964         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
17965         Remove work_share_lock, generation_mask,
17966         oldest_live_gen, num_live_gen and init_work_shares fields, add
17967         work work_share_list_alloc, work_share_list_free and work_share_chunk
17968         fields.  Change work_shares from pointer to pointers into an array.
17969         Change ordered_release field into gomp_sem_t ** from flexible array
17970         member.  Add implicit_task and initial_work_shares fields.
17971         Move close to the end of the struct.
17972         (struct gomp_team_state): Add single_count, last_work_share,
17973         active_level and level fields, remove work_share_generation.
17974         (gomp_barrier_handle_tasks): New prototype.
17975         (gomp_finish_task): New inline function.
17976         (struct gomp_work_share): Move chunk_size, end, incr into
17977         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
17978         next_ll fields.  Reshuffle fields.  Add next_alloc,
17979         next_ws, next_free and inline_ordered_team_ids fields, change
17980         ordered_team_ids into pointer from flexible array member.
17981         Add mode field.  Put lock and next into a different cache line
17982         from most of the write-once fields.
17983         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
17984         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
17985         gomp_iter_ull_guided_next): New prototypes.
17986         (gomp_new_icv): New prototype.
17987         (struct gomp_thread): Add thread_pool and task fields.
17988         (struct gomp_thread_pool): New type.
17989         (gomp_new_team): New prototype.
17990         (gomp_team_start): Change type of last argument.
17991         (gomp_new_work_share): Removed.
17992         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
17993         (gomp_work_share_init_done): New static inline.
17994         (gomp_throttled_spin_count_var, gomp_available_cpus,
17995         gomp_managed_threads): New extern decls.
17996         (gomp_init_task): New prototype.
17997         (gomp_spin_count_var): New extern var decl.
17998         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
17999         or no alias support, or if not PIC.
18000         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18001         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18002         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18003         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18004         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18005         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18006         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18007         gomp_test_nest_lock_25): New prototypes.
18008         (omp_lock_symver, strong_alias): Define.
18009         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18010         decls.
18011         (gomp_end_task): New.
18012         (struct gomp_task_icv, gomp_global_icv): New.
18013         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18014         (struct gomp_task): New.
18015         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18016         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18017         (gomp_icv): New.
18018         (gomp_schedule_type): Reorder enum to match
18019         omp_sched_t.
18020         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18021         fields.
18022         (gomp_thread_start): Add gomp_team_barrier_wait call.
18023         For non-nested case remove clearing of docked thread thr fields.
18024         Use pool fields instead of global gomp_* variables.  Use
18025         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18026         Create tasks for each member thread.
18027         (free_team): Only destroy team barrier, task_lock here and free it.
18028         (gomp_free_thread): Free last_team if non-NULL.
18029         (gomp_team_end): Call gomp_team_barrier_wait instead of
18030         gomp_barrier_wait.  For nested case call one extra
18031         gomp_barrier_wait.  Move here some destruction from free_team.
18032         Call free_team on pool->last_team if any, rather than freeing
18033         current team.  Destroy work_share_list_free_lock ifndef
18034         HAVE_SYNC_BUILTINS.
18035         (gomp_new_icv): New function.
18036         (gomp_threads, gomp_threads_size, gomp_threads_used,
18037         gomp_threads_dock): Removed.
18038         (gomp_thread_destructor): New variable.
18039         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18040         functions.
18041         (gomp_team_start): Create new pool if current thread doesn't have
18042         one.  Use pool fields instead of global gomp_* variables.
18043         Initialize thread_pool field for new threads.  Clear single_count.
18044         Change last argument from ws to team, don't create
18045         new team, set ts.work_share to &team->work_shares[0] and clear
18046         ts.last_work_share.  Don't clear ts.work_share_generation.
18047         If number of threads changed, adjust atomically gomp_managed_threads.
18048         Use gomp_init_task instead of gomp_new_task,
18049         set thr->task to the corresponding implicit_task array entry.
18050         Create tasks for each member thread.  Initialize ts.level.
18051         (initialize_team): Call pthread_key_create on
18052         gomp_thread_destructor.
18053         (team_destructor): New function.
18054         (new_team): Removed.
18055         (gomp_new_team): New function.
18056         (free_team): Free gomp_work_share blocks chained through next_alloc,
18057         instead of freeing work_shares and destroying work_share_lock.
18058         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18059         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18060         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18061         of gomp_barrier_wait.
18062         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18063         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18064         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18065         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18066         of gomp_barrier_wait.
18067         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18068         gomp_work_share_init_done if gomp_work_share_start returned true.
18069         Don't unlock ws->lock.
18070         * work.c: Include stddef.h.
18071         (free_work_share): Use work_share_list_free_lock instead
18072         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18073         Call gomp_fini_work_share and then either free ws if orphaned, or
18074         put it into work_share_list_free list of the current team.
18075         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18076         functions.
18077         (gomp_work_share_start, gomp_work_share_end,
18078         gomp_work_share_end_nowait): Rewritten.
18079         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18080         (openmp_version): Set to 200805.
18081         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18082         omp_sched_guided, omp_sched_auto): New parameters.
18083         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18084         omp_set_max_active_levels, omp_get_max_active_levels,
18085         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18086         omp_get_active_level): New interfaces.
18087         * omp_lib.h.in (openmp_version): Set to 200805.
18088         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18089         omp_sched_guided, omp_sched_auto): New parameters.
18090         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18091         omp_set_max_active_levels, omp_get_max_active_levels,
18092         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18093         omp_get_active_level): New externals.
18094         * loop.c: Include limits.h.
18095         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18096         GFS_AUTO.
18097         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18098         Likewise.  Use gomp_icv.
18099         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18100         ts.static_trip here.
18101         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18102         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18103         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18104         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18105         don't unlock ws->lock, otherwise lock it.
18106         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18107         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18108         (gomp_parallel_loop_start): Call gomp_new_team instead of
18109         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18110         Adjust gomp_team_start caller.  Pass 0 as second argument to
18111         gomp_resolve_num_threads.
18112         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18113         If adding ws->chunk_size nthreads + 1 times after end won't
18114         overflow, set ws->mode to 1.
18115         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18116         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18117         GOMP_loop_ull_ordered_static_start,
18118         GOMP_loop_ull_ordered_dynamic_start,
18119         GOMP_loop_ull_ordered_guided_start,
18120         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18121         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18122         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18123         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18124         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18125         prototypes.
18126         * libgomp.map: Export lock routines also @@OMP_2.0.
18127         (GOMP_loop_ordered_dynamic_first,
18128         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18129         GOMP_loop_ordered_static_first): Remove.
18130         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18131         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18132         GOMP_loop_ull_ordered_dynamic_next,
18133         GOMP_loop_ull_ordered_dynamic_start,
18134         GOMP_loop_ull_ordered_guided_next,
18135         GOMP_loop_ull_ordered_guided_start,
18136         GOMP_loop_ull_ordered_runtime_next,
18137         GOMP_loop_ull_ordered_runtime_start,
18138         GOMP_loop_ull_ordered_static_next,
18139         GOMP_loop_ull_ordered_static_start,
18140         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18141         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18142         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18143         (omp_set_schedule, omp_get_schedule,
18144         omp_get_thread_limit, omp_set_max_active_levels,
18145         omp_get_max_active_levels, omp_get_level,
18146         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18147         omp_set_schedule_, omp_set_schedule_8_,
18148         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18149         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18150         omp_get_max_active_levels_, omp_get_level_,
18151         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18152         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18153         New exports @@OMP_3.0.
18154         * omp.h.in (omp_sched_t): New type.
18155         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18156         omp_set_max_active_levels, omp_get_max_active_levels,
18157         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18158         omp_get_active_level): New prototypes.
18159         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18160         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18161         gomp_thread_limit_var, gomp_remaining_threads_count,
18162         gomp_remaining_threads_lock): New variables.
18163         (parse_spincount): New function.
18164         (initialize_env): Call gomp_init_num_threads unconditionally.
18165         Initialize gomp_available_cpus.  Call parse_spincount,
18166         initialize gomp_{,throttled_}spin_count_var
18167         depending on presence and value of OMP_WAIT_POLICY and
18168         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
18169         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18170         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
18171         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
18172         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
18173         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18174         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18175         (gomp_global_icv): New.
18176         (parse_schedule): Use it.  Parse "auto".
18177         (omp_set_num_threads): Use gomp_icv.
18178         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18179         Likewise.
18180         (omp_get_max_threads): Move from parallel.c.
18181         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18182         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18183         add ialias.
18184         (parse_stacksize, parse_wait_policy): New functions.
18185         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18186         both wrappers for compatibility and new locks.
18187         (omp_set_schedule, omp_get_schedule,
18188         omp_get_thread_limit, omp_set_max_active_levels,
18189         omp_get_max_active_levels, omp_get_level,
18190         omp_get_ancestor_thread_num, omp_get_team_size,
18191         omp_get_active_level): New ialias_redirect.
18192         (omp_set_schedule_, omp_set_schedule_8_,
18193         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18194         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18195         omp_get_max_active_levels_, omp_get_level_,
18196         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18197         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18198         New functions.
18199         * parallel.c: Include limits.h.
18200         (gomp_resolve_num_threads): Add count argument.  Rewritten.
18201         (GOMP_parallel_start): Call gomp_new_team and pass that as last
18202         argument to gomp_team_start.  Pass 0 as second argument to
18203         gomp_resolve_num_threads.
18204         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18205         if gomp_thread_limit_var != ULONG_MAX.
18206         (omp_in_parallel): Implement using ts.active_level.
18207         (omp_get_max_threads): Move to env.c.
18208         (omp_get_level, omp_get_ancestor_thread_num,
18209         omp_get_team_size, omp_get_active_level): New functions,
18210         add ialias.
18211         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18212         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
18213         gomp_iter_dynamic_next instead of the _locked variant and don't take
18214         lock around it, otherwise acquire it before calling
18215         gomp_iter_dynamic_next_locked.
18216         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18217         gomp_iter_dynamic_next instead of the _locked variant and don't take
18218         lock around it.
18219         (GOMP_parallel_sections_start): Call gomp_new_team instead of
18220         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
18221         Adjust gomp_team_start caller.  Pass count as second argument to
18222         gomp_resolve_num_threads, don't adjust num_threads after the call.
18223         Use gomp_icv.
18224         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18225         ws->chunk_size by incr.
18226         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
18227         code.
18228         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18229         types.
18230         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18231         (omp_check_defines): Check even the compat defines.
18232         * config/linux/ptrlock.c: New file.
18233         * config/linux/ptrlock.h: New file.
18234         * config/linux/wait.h: New file.
18235         * config/posix/ptrlock.c: New file.
18236         * config/posix/ptrlock.h: New file.
18237         * config/linux/bar.h (gomp_team_barrier_wait,
18238         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18239         (gomp_team_barrier_set_task_pending,
18240         gomp_team_barrier_clear_task_pending,
18241         gomp_team_barrier_set_waiting_for_tasks,
18242         gomp_team_barrier_waiting_for_tasks,
18243         gomp_team_barrier_done): New inlines.
18244         (gomp_barrier_t): Rewritten.
18245         (gomp_barrier_state_t): New typedef.
18246         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18247         gomp_barrier_wait_start): Rewritten.
18248         (gomp_barrier_wait_end): Change second argument to
18249         gomp_barrier_state_t.
18250         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18251         inlines.
18252         * config/linux/bar.c: Include wait.h instead of libgomp.h and
18253         futex.h.
18254         (gomp_barrier_wait_end): Rewritten.
18255         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18256         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18257         * config/posix/bar.h (gomp_barrier_t): Add generation field.
18258         (gomp_barrier_state_t): New typedef.
18259         (gomp_team_barrier_wait,
18260         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18261         (gomp_barrier_wait_start): Or all but low 2 bits from generation
18262         into the return value.  Return gomp_barrier_state_t.
18263         (gomp_team_barrier_set_task_pending,
18264         gomp_team_barrier_clear_task_pending,
18265         gomp_team_barrier_set_waiting_for_tasks,
18266         gomp_team_barrier_waiting_for_tasks,
18267         gomp_team_barrier_done): New inlines.
18268         (gomp_barrier_wait_end): Change second argument to
18269         gomp_barrier_state_t.
18270         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18271         inlines.
18272         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18273         (gomp_barrier_wait_end): Change second argument to
18274         gomp_barrier_state_t.
18275         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18276         gomp_team_barrier_wake): New functions.
18277         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18278         futex.h.
18279         (gomp_futex_wake, gomp_futex_wait): New variables.
18280         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18281         * config/linux/lock.c: Rewrite to make locks task owned,
18282         for backwards compatibility provide the old entrypoints
18283         if symbol versioning.  Include wait.h instead of libgomp.h and
18284         futex.h.
18285         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18286         * config/posix95/lock.c: Rewrite to make locks task owned,
18287         for backwards compatibility provide the old entrypoints
18288         if symbol versioning.
18289         * config/posix/lock.c: Rewrite to make locks task owned,
18290         for backwards compatibility provide the old entrypoints
18291         if symbol versioning.
18292         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18293         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18294         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18295         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18296         (sys_futex0): Return error code.
18297         (futex_wake, futex_wait): If ENOSYS was returned, clear
18298         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18299         (cpu_relax, atomic_write_barrier): New static inlines.
18300         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18301         (futex_wake, futex_wait): If ENOSYS was returned, clear
18302         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18303         (cpu_relax, atomic_write_barrier): New static inlines.
18304         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18305         (sys_futex0): Return error code.
18306         (futex_wake, futex_wait): If ENOSYS was returned, clear
18307         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18308         (cpu_relax, atomic_write_barrier): New static inlines.
18309         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18310         (sys_futex0): Return error code.
18311         (futex_wake, futex_wait): If ENOSYS was returned, clear
18312         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18313         (cpu_relax, atomic_write_barrier): New static inlines.
18314         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18315         (sys_futex0): Return error code.
18316         (futex_wake, futex_wait): If ENOSYS was returned, clear
18317         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18318         (cpu_relax, atomic_write_barrier): New static inlines.
18319         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18320         (sys_futex0): Return error code.
18321         (futex_wake, futex_wait): If ENOSYS was returned, clear
18322         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18323         (cpu_relax, atomic_write_barrier): New static inlines.
18324         * config/linux/sem.c: Include wait.h instead of libgomp.h and
18325         futex.h.
18326         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18327         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18328         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18329         types.
18330         (omp_nest_lock_t): Change owner into void *, add lock field.
18331         * config/posix95/omp-lock.h: Include semaphore.h.
18332         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18333         (omp_lock_t): Use sem_t instead of mutex if semaphores
18334         aren't broken.
18335         (omp_nest_lock_t): Likewise.  Change owner to void *.
18336         * config/posix/omp-lock.h: Include semaphore.h.
18337         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18338         (omp_lock_t): Use sem_t instead of mutex if semaphores
18339         aren't broken.
18340         (omp_nest_lock_t): Likewise.  Add owner field.
18342 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18344         * testsuite/libgomp.c/collapse-1.c: New test.
18345         * testsuite/libgomp.c/collapse-2.c: New test.
18346         * testsuite/libgomp.c/collapse-3.c: New test.
18347         * testsuite/libgomp.c/icv-1.c: New test.
18348         * testsuite/libgomp.c/icv-2.c: New test.
18349         * testsuite/libgomp.c/lib-2.c: New test.
18350         * testsuite/libgomp.c/lock-1.c: New test.
18351         * testsuite/libgomp.c/lock-2.c: New test.
18352         * testsuite/libgomp.c/lock-3.c: New test.
18353         * testsuite/libgomp.c/loop-4.c: New test.
18354         * testsuite/libgomp.c/loop-5.c: New test.
18355         * testsuite/libgomp.c/loop-6.c: New test.
18356         * testsuite/libgomp.c/loop-7.c: New test.
18357         * testsuite/libgomp.c/loop-8.c: New test.
18358         * testsuite/libgomp.c/loop-9.c: New test.
18359         * testsuite/libgomp.c/nested-3.c: New test.
18360         * testsuite/libgomp.c/nestedfn-6.c: New test.
18361         * testsuite/libgomp.c/sort-1.c: New test.
18362         * testsuite/libgomp.c/task-1.c: New test.
18363         * testsuite/libgomp.c/task-2.c: New test.
18364         * testsuite/libgomp.c/task-3.c: New test.
18365         * testsuite/libgomp.c/task-4.c: New test.
18366         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18367         to C++ testsuite default compiler options.
18368         * testsuite/libgomp.c++/collapse-1.C: New test.
18369         * testsuite/libgomp.c++/collapse-2.C: New test.
18370         * testsuite/libgomp.c++/ctor-10.C: New test.
18371         * testsuite/libgomp.c++/for-1.C: New test.
18372         * testsuite/libgomp.c++/for-2.C: New test.
18373         * testsuite/libgomp.c++/for-3.C: New test.
18374         * testsuite/libgomp.c++/for-4.C: New test.
18375         * testsuite/libgomp.c++/for-5.C: New test.
18376         * testsuite/libgomp.c++/loop-8.C: New test.
18377         * testsuite/libgomp.c++/loop-9.C: New test.
18378         * testsuite/libgomp.c++/loop-10.C: New test.
18379         * testsuite/libgomp.c++/task-1.C: New test.
18380         * testsuite/libgomp.c++/task-2.C: New test.
18381         * testsuite/libgomp.c++/task-3.C: New test.
18382         * testsuite/libgomp.c++/task-4.C: New test.
18383         * testsuite/libgomp.c++/task-5.C: New test.
18384         * testsuite/libgomp.c++/task-6.C: New test.
18385         * testsuite/libgomp.fortran/allocatable1.f90: New test.
18386         * testsuite/libgomp.fortran/allocatable2.f90: New test.
18387         * testsuite/libgomp.fortran/allocatable3.f90: New test.
18388         * testsuite/libgomp.fortran/allocatable4.f90: New test.
18389         * testsuite/libgomp.fortran/collapse1.f90: New test.
18390         * testsuite/libgomp.fortran/collapse2.f90: New test.
18391         * testsuite/libgomp.fortran/collapse3.f90: New test.
18392         * testsuite/libgomp.fortran/collapse4.f90: New test.
18393         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18394         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18395         * testsuite/libgomp.fortran/lib4.f90: New test.
18396         * testsuite/libgomp.fortran/lock-1.f90: New test.
18397         * testsuite/libgomp.fortran/lock-2.f90: New test.
18398         * testsuite/libgomp.fortran/nested1.f90: New test.
18399         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18400         * testsuite/libgomp.fortran/strassen.f90: New test.
18401         * testsuite/libgomp.fortran/tabs1.f90: New test.
18402         * testsuite/libgomp.fortran/tabs2.f: New test.
18403         * testsuite/libgomp.fortran/task1.f90: New test.
18404         * testsuite/libgomp.fortran/task2.f90: New test.
18405         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18406         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18407         * testsuite/libgomp.c/pr26943-2.c: Likewise.
18408         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18409         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18411 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
18413         PR c++/36308
18414         * testsuite/libgomp.c++/ctor-11.C: New test.
18415         * testsuite/libgomp.c++/ctor-12.C: New test.
18417 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18419         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18421 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
18423         PR middle-end/36106
18424         * testsuite/libgomp.c/atomic-5.c: New test.
18425         * testsuite/libgomp.c/atomic-6.c: New test.
18426         * testsuite/libgomp.c/autopar-1.c: New test.
18428 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18430         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18431         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18432         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18433         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18434         * configure: Regenerate.
18435         * Makefile.in, testsuite/Makefile.in: Likewise.
18437 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18439         PR bootstrap/35457
18440         * aclocal.m4: Regenerate.
18441         * configure: Regenerate.
18443 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18445         PR middle-end/35611
18446         * testsuite/libgomp.c/atomic-4.c: New test.
18448         PR libgomp/35625
18449         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18450         (gomp_iter_guided_next): Likewise.
18451         * testsuite/libgomp.c/pr35625.c: New test.
18453 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18455         * aclocal.m4: Regenerate.
18456         * configure: Likewise.
18457         * Makefile.in: Likewise.
18458         * testsuite/Makefile.in: Likewise.
18460 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18462         PR middle-end/35185
18463         * testsuite/libgomp.c++/pr35185.C: New test.
18465 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18467         PR middle-end/35549
18468         * testsuite/libgomp.c/pr35549.c: New test.
18470 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18472         * testsuite/libgomp.c/atomic-3.c: New test.
18474 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18476         PR fortran/33197
18477         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18478         .F08 file suffixes.
18480 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
18482         PR libgomp/33131
18483         * configure.ac: Add ACX_HEADER_STRING.
18484         * env.c: Include strings.h.
18485         * aclocal.m4: Regenerate.
18486         * config.h.in: Regenerate.
18487         * configure: Regenerate.
18488         * Makefile.in: Regenerate.
18489         * testsuite/Makefile.in: Regenerate.
18491 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
18493         PR middle-end/35196
18494         * testsuite/libgomp.c/pr35196.c: New test.
18496         PR middle-end/35130
18497         * testsuite/libgomp.fortran/pr35130.f90: New test.
18498         * testsuite/libgomp.c/pr35130.c: New test.
18500 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18502         PR middle-end/33880
18503         * testsuite/libgomp.c/pr33880.c: New test.
18504         * testsuite/libgomp.fortran/pr33880.f90: New test.
18506 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
18508         * configure: Regenerate.
18510 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18512         * configure.ac: Move futex checking into ../config/futex.m4.
18513         * configure: Rebuilt.
18514         * aclocal.m4: Rebuilt.
18515         * Makefile.in: Rebuilt.
18517         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18518         2007-10-15 ../config/tls.m4 change.
18520 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
18522         PR c++/34513
18523         * testsuite/libgomp.c/pr34513.c: New test.
18524         * testsuite/libgomp.c++/pr34513.C: New test.
18526 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
18528         PR target/32765
18529         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18531 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
18533         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
18535 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
18537         * testsuite/libgomp.c/private-1.c: New test.
18539 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
18540             Paolo Bonzini  <bonzini@gnu.org>
18542         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
18543         instead of 'VPATH ='.
18544         * Makefile.in: Regenerate.
18546 2007-11-23  Matthias Klose  <doko@ubuntu.com>
18548         * configure.ac: Adjust makeinfo version check.
18549         * configure: Regenerate.
18551 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
18553         PR fortran/34020
18554         * testsuite/libgomp.fortran/pr34020.f90: New test.
18556 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
18558         PR c++/33894
18559         * testsuite/libgomp.c++/atomic-1.C: New test.
18561 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
18563         PR libgomp/33275
18564         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18565         Make x and y integers rather than (implicit) reals.  Add private (j)
18566         clause to the last omp parallel.
18568 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
18570         * configure: Regenerate following changes to ../config/tls.m4.
18572 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
18574         * testsuite/libgomp.fortran/stack.f90: New test.
18576 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
18578         * config/mingw32/proc.c: New file.
18580 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
18582         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18583         (main): Use __get_cpuid to get i386 target fetaures.
18584         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18585         (main): Use __get_cpuid to get x86_64 target fetaures.
18587 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
18589         PR target/32765
18590         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18591         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18593 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
18595         PR fortran/32550
18596         * testsuite/libgomp.fortran/pr32550.f90: New test.
18597         * testsuite/libgomp.fortran/crayptr2.f90: New test.
18599 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
18601         * aclocal.m4: Regenerated.
18603 2007-07-05  Tobias Burnus  <burnus@net-b.de>
18605         PR fortran/32359
18606         * testsuite/libgomp.fortran/pr32359.f90: New.
18608 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
18610         PR libgomp/32468
18611         * sections.c (GOMP_parallel_sections_start): Only decrease
18612         number of threads to COUNT if dyn_var is true.
18613         * testsuite/libgomp.c/pr32468.c: New test.
18615 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18617         PR libgomp/26308
18618         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18620 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
18622         PR middle-end/32362
18623         * testsuite/libgomp.c/pr32362-1.c: New test.
18624         * testsuite/libgomp.c/pr32362-2.c: New test.
18625         * testsuite/libgomp.c/pr32362-3.c: New test.
18627 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
18629         * team.c (gomp_team_start): Fix setting up thread_attr
18630         stack size.
18632 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
18634         * configure: Regenerate.
18636 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
18638         * Makefile.in: Regenerate.
18639         * configure: Regenerate.
18640         * aclocal.m4: Regenerate.
18641         * testsuite/Makefile.in: Regenerate.
18643 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
18645         * config/linux/proc.c: New file.
18647         PR libgomp/28482
18648         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18650 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
18652         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18654 2007-04-16  Matthias Klose  <doko@debian.org>
18656         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
18657         flags if not building with -m64.
18658         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
18659         flag for i?86-*-* targets, if current target matches -m64.
18661 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
18663         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
18664         * Makefile.in: Regenerate.
18666 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18668         PR testsuite/31369
18669         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
18670         ld_library_path.
18671         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18673 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
18675         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
18676         decls.
18677         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
18678         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
18679         (parse_affinity): New function.
18680         (initialize_env): Call it and gomp_init_affinity.
18681         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
18682         create new pthread_attr_t and call gomp_init_thread_affinity
18683         on it for each thread before passing the attribute to pthread_create.
18684         * config/linux/affinity.c: New file.
18685         * config/posix/affinity.c: New file.
18686         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
18687         * configure: Rebuilt.
18688         * config.h.in: Rebuilt.
18689         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
18690         * Makefile.in: Rebuilt.
18692 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
18694         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
18695         *-*-darwin*.
18696         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
18697         and use it if found.
18699 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
18701         * testsuite/config/default.exp: New file.
18702         * testsuite/lib/libgomp.exp: New file.
18703         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
18704         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
18705         load_lib *, load_gcc_lib *): Move to libgomp.exp.
18706         (libgomp_load): Remove.
18707         * testsuite/lib/libgomp.exp (libgomp_init): Compute
18708         always_ld_library_path, not ld_library_path.  Set additional_flags
18709         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
18710         (target_compile): Do not call libgomp_init.  Append lang_library_path
18711         and lang_link_flags to options.
18712         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
18713         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
18714         here.
18715         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
18716         always_ld_library_path.  Set LD_LIBRARY_PATH here.
18717         * testsuite/libgomp.fortran/fortran.exp: Ditto.
18718         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
18719         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
18720         CX8 flag.
18721         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
18722         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
18723         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
18724         * testsuite/libgomp.c/pr29947-1.c: Ditto.
18725         * testsuite/libgomp.c/atomic-10.c: Ditto.
18727 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
18729         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
18730         dg-final cleanup-modules line.
18731         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
18732         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
18733         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
18734         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
18735         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
18736         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
18737         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
18739 2007-03-18  Andreas Schwab  <schwab@suse.de>
18741         * acinclude.m4: Adjust regular expression for ld version
18742         extraction.
18743         * configure: Regenerate.
18745 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
18747         * Makefile.am: Add install-pdf target as copied from
18748         automake v1.10 rules.
18749         * Makefile.in: Regenerate
18751 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
18753         PR libgomp/28486
18754         * configure: Regenerate.
18756         PR c++/30703
18757         * testsuite/libgomp.c++/pr30703.C: New test.
18759 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
18761         Revert:
18762         2006-07-05  Eric Christopher  <echristo@apple.com>
18763         * configure.ac: Depend addition of -pthread on host OS.
18764         * configure: Regenerate.
18766 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18768         * libgomp.texi: Fix spacing after abbreviations.
18770 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
18772         PR libgomp/30546
18773         * configure.ac: Add check for makeinfo
18774         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
18775         if an appropriate version of makeinfo is found.
18776         * aclocal.m4: Regenerated.
18777         * configure: Regenerated.
18778         * Makefile.in: Regenerated.
18779         * testsuite/Makefile.in: Regenerated.
18781 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
18783         PR libgomp/30540
18784         * libgomp.texi: More about implementation-dependent settings.
18786 2007-01-26  Tobias Burnus  <burnus@net-b.de>
18788         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
18790 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
18792         PR middle-end/30494
18793         * testsuite/libgomp.c/pr30494.c: New test.
18795 2007-01-15  Tom Tromey  <tromey@redhat.com>
18797         * configure: Rebuilt.
18798         * configure.ac: Fixed comment.
18800 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
18802         * libgomp.texi: Document implementation specific default values of
18803         environment variables.
18805 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
18807         PR libgomp/28209
18808         * libgomp.texi: New file.
18809         * configure.ac: Add --enable-generated-files-in-srcdir option.
18810         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
18811         files to srcdir.
18812         * Makefile.in: Regenerated.
18813         * config.h.in: Regenerated.
18814         * testsuite/Makefile.in: Regenerated.
18815         * NOTES: Removed.
18817 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
18819         PR libgomp/29949
18820         * env.c (omp_set_num_threads): Set illegal thread count to 1.
18822 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
18824         * configure: Regenerate.
18826 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
18828         PR libgomp/29947
18829         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
18830         start if there shouldn't be any loop iterations.
18831         (gomp_loop_ordered_static_start): Remove start == end test.
18832         * testsuite/libgomp.c/pr29947-1.c: New test.
18833         * testsuite/libgomp.c/pr29947-2.c: New test.
18835 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
18837         * configure.tgt: Force initial-exec TLS model on Linux only.
18839 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
18841         * configure: Regenerated.
18843 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
18845         * env.c (parse_schedule): Reject out of range values.
18846         (parse_unsigned_long): Reject out of range, negative or zero values.
18848 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
18850         PR fortran/29629
18851         * testsuite/libgomp.fortran/pr29629.f90: New test.
18853 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
18855         PR libgomp/29494
18856         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
18857         * config/posix95: New directory.
18858         * config/posix95/omp-lock.h: New file.
18859         * config/posix95/lock.c: Likewise.
18861 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
18863         * aclocal.m4: Regenerate.
18864         * configure: Regenerate.
18866 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18868         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
18869         '<' to '<='.
18871 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
18873         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
18874         test.
18875         * configure: Regenerate.
18876         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
18878 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
18880         PR middle-end/25261
18881         PR middle-end/28790
18882         * testsuite/libgomp.c/nestedfn-4.c: New test.
18883         * testsuite/libgomp.c/nestedfn-5.c: New test.
18884         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
18886         PR fortran/29097
18887         * testsuite/libgomp.fortran/condinc1.f: New test.
18888         * testsuite/libgomp.fortran/condinc2.f: New test.
18889         * testsuite/libgomp.fortran/condinc3.f90: New test.
18890         * testsuite/libgomp.fortran/condinc4.f90: New test.
18891         * testsuite/libgomp.fortran/condinc1.inc: New file.
18893 2006-09-18  Tom Tromey  <tromey@redhat.com>
18895         * configure: Rebuilt.
18897 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
18899         PR c/28768
18900         PR preprocessor/14634
18901         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
18902         to AC_DEFINE.
18903         * configure: Regenerate.
18905 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18907         * testsuite/libgomp.fortran/reduction3.f90: Change
18908         -2147483648 to -huge(i)-1 to avoid overflow.
18909         * testsuite/libgomp.fortran/reduction4.f90: Change
18910         Z'ffffffff' to not(0) to avoid overflow.
18912 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
18914         PR libgomp/25938
18915         * Makefile.am (libsubincludedir): New.
18916         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
18917         * Makefile.in: Regenerate.
18919 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
18921         PR libgomp/28725
18922         * env.c: Include ctype.h.
18923         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
18924         leading and/or trailing whitespace and compare strings case
18925         insensitively.
18927 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
18929         PR fortran/28390
18930         * testsuite/libgomp.fortran/pr28390.f: New test.
18932 2006-07-05  Eric Christopher  <echristo@apple.com>
18934         * configure.ac: Depend addition of -pthread on host OS.
18935         * configure: Regenerate.
18937 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
18939         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
18940         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
18941         defined.
18943 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
18945         PR libgomp/26175
18946         PR libgomp/26477
18947         * configure.ac: If neither --enable-linux-futex nor
18948         --disable-linux-futex is passed, determine the default by checking
18949         for compiling and/or running against NPTL.  With --enable-linux-futex,
18950         check if SYS_gettid and SYS_futex are defined.
18951         * configure: Rebuilt.
18953 2006-06-14  Richard Henderson  <rth@redhat.com>
18955         PR libgomp/28008
18956         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
18957         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
18959 2006-06-09  Richard Henderson  <rth@redhat.com>
18961         * env.c (gomp_nthreads_var): Change to unsigned long.
18962         (gomp_run_sched_chunk): Likewise.
18963         (parse_unsigned_long): Rename from parse_num_threads and generalize.
18964         (initialize_env): Initialize gomp_thread_attr.
18965         * libgomp.h (gomp_nthreads_var): Update decl.
18966         (gomp_run_sched_chunk): Likewise.
18967         (gomp_thread_attr): Declare.
18968         * team.c (gomp_thread_attr): Export.
18969         (initialize_team): Don't initialize it.
18971 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
18973         PR fortran/27916
18974         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
18975         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
18977 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18979         * config/mingw32/time.c: New file.
18980         * configure.tgt: Use it.
18982 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
18984         * Makefile.am: Add install-html target. Add install-html to .PHONY
18985         * Makefile.in: Regenerate.
18987 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18989         PR libgomp/27612
18990         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
18991         * testsuite/libgomp.c/critical-1.c: Likewise.
18992         * testsuite/libgomp.c/loop-1.c: Likewise.
18993         * testsuite/libgomp.c/loop-2.c: Likewise.
18994         * testsuite/libgomp.c/single-1.c: Likewise.
18995         * testsuite/libgomp.c/ordered-1.c: Likewise.
18996         * testsuite/libgomp.c/ordered-2.c: Likewise.
18998 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19000         PR middle-end/27416
19001         * libgomp.fortran/pr27416-1.f90: New test.
19003 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19005         PR fortran/27395
19006         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19007         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19009 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19011         PR c++/26943
19012         * testsuite/libgomp.c/pr26943-1.c: New test.
19013         * testsuite/libgomp.c/pr26943-2.c: New test.
19014         * testsuite/libgomp.c/pr26943-3.c: New test.
19015         * testsuite/libgomp.c/pr26943-4.c: New test.
19016         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19017         * testsuite/libgomp.c++/pr26943.C: New test.
19019 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19021         PR middle-end/27337
19022         * testsuite/libgomp.c++/pr27337.C: New test.
19024 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19026         PR c/26171
19027         * testsuite/libgomp.c/pr26171.c: New test.
19029 2006-04-25  Richard Henderson  <rth@redhat.com>
19031         PR libgomp/25865
19032         * configure.ac: Use GCC_CHECK_TLS.
19033         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19034         * Makefile.in, aclocal.m4, configure: Regenerate.
19036 2006-04-10  Matthias Klose  <doko@debian.org>
19038         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19039         directory names containing underscores.
19041 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19043         PR c++/26691
19044         * testsuite/libgomp.c++/pr26691.C: New test.
19046 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19048         * testsuite/libgomp.fortran/retval2.f90: New test.
19050 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19052         * testsuite/libgomp.c++: New directory.
19054 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19056         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19057         * config/posix/sem.c: Implement the above.
19059 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19061         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19062         define HAVE_BROKEN_POSIX_SEMAPHORES.
19063         * configure: Rebuilt.
19064         * config.h.in: Rebuilt.
19066 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19068         PR bootstrap/26161
19069         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19070         for the other pthread check.
19071         * configure: Regenerate.
19072         * config.h.in: Regenerate.
19074 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19076         PR libgomp/25938
19077         PR libgomp/25984
19078         * Makefile.am (fincludedir): New variable.
19079         (nodist_include_HEADERS): Remove Fortran files.
19080         (nodist_finclude_HEADERS): New variable.
19081         * Makefile.in: Regenerated.
19083 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19085         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19086         Remove tests for returning assumed character length arrays.
19088 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19089             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19091         PR libgomp/25936
19092         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19094 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19096         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19098 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19100         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19101         part of LD_LIBRARY_PATH manually.
19103 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19105         PR libgomp/25852
19106         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19107         libgomp_init.
19109 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19111         PR libgomp/25884
19112         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19113         * configure.ac (PERL): Don't set.
19114         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19115         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19116         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19117         * omp.h.in: Wrap the new configure substitutions with @ characters.
19118         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19119         * aclocal.m4, configure, Makefile.in: Regenerate.
19120         * mkomp_h.pl: Delete.
19122 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19124         PR libgomp/25259
19125         * configure.ac: Use GCC_HEADER_STDINT.
19126         * libgomp.h: Include gstdint.h.
19127         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19128         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19130 2006-01-24  Richard Henderson  <rth@redhat.com>
19132         PR libgomp/25942
19133         * configure.ac: Add AM_MAINTAINER_MODE.
19134         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19136 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
19138         * Makefile.in: Regenerate.
19139         * testsuite/Makefile.in: Regenerate.
19140         * aclocal.m4: Regenerate.
19142 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
19144         * config/posix/proc.c: Conditional include of sys/loadavg.h for
19145         Solaris.
19146         * configure.ac: Add check for loadavg.h.
19147         (link_gomp): Adjust comment.
19148         * configure: Regenerate.
19149         * config.h.in: Regenerate.
19151 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
19153         PR libgomp/25877
19154         * configure.ac: Remove check for alloca.h.
19155         * configure: Regenerate.
19156         * config.h.in: Regenerate.
19157         * libgomp.h: define gomp_alloca to be __builtin_alloca.
19158         * team.c: Remove use of alloca.h.
19159         Call gomp_alloca instead of alloca.
19161 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
19163         PR libgomp/25877
19164         * team.c: Add include of alloca.h.
19165         * configure.ac: Add check for alloca.h.
19166         * configure: Regenerate.
19167         * config.h.in: Regenerate.
19169 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
19171         PR fortran/25219
19172         * testsuite/libgomp.fortran/pr25219.f90: New test.
19174 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
19176         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19177         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19178         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19179         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19180         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19181         testsuite/libgomp.fortran/threadprivate1.f90,
19182         testsuite/libgomp.fortran/threadprivate2.f90,
19183         testsuite/libgomp.fortran/threadprivate3.f90,
19184         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19185         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19186         testsuite/libgomp.fortran/omp_parse3.f90: Change required
19187         effective-target to TLS runtime.
19189         * testsuite/libgomp.fortran/pr25162.f: Require
19190         effective-target TLS runtime.
19192 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
19194         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19195         * testsuite/libgomp.c/nestedfn-3.c: New test.
19197 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
19199         PR fortran/25162
19200         * testsuite/libgomp.fortran/pr25162.f: New test.
19202 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
19204         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19205         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19207 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
19209         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19210         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19211         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19212         single.c, team.c, work.c, config/linux/alpha/futex.h,
19213         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19214         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19215         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19216         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19217         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19218         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19219         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19220         FSF address.
19222 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19224         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19225         to nodist_noinst_HEADERS.
19226         * Makefile.in: Rebuilt.
19228         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19229         add integer count field.
19230         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19231         omp_nest_lock_t type change.
19232         (omp_init_nest_lock): Likewise.  Initialize count to 0.
19233         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19234         Increment count.
19235         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19236         Decrement count.
19237         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19238         Increment count if successful and return the new nesting level.
19239         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19240         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19241         * testsuite/libgomp.c/lib-1.c: New test.
19242         * testsuite/libgomp.fortran/lib1.f90: New test.
19243         * testsuite/libgomp.fortran/lib2.f: New test.
19244         * testsuite/libgomp.fortran/lib3.f: New test.
19246 2005-11-17  Richard Henderson  <rth@redhat.com>
19248         PR 24845
19249         * Makefile.am (nodist_toolexeclib_HEADERS): New.
19250         * configure.ac (link_gomp): New.  Substitute it.
19251         (AC_CONFIG_FILES): Add libgomp.spec.
19252         * libgomp.spec.in: New file.
19253         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19254         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19256 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19258         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19259         reduction(-:var) behaving the same as reduction(+:var).
19260         * testsuite/libgomp.c/reduction-4.c: New test.
19262 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
19264         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19265         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19266         testsuite/libgomp.c/copyin-3.c,
19267         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19268         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19269         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19270         testsuite/libgomp.c++/pr24455.C,
19271         testsuite/libgomp.fortran/threadprivate1.f90,
19272         testsuite/libgomp.fortran/threadprivate2.f90,
19273         testsuite/libgomp.fortran/threadprivate3.f90,
19274         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19275         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19276         testsuite/libgomp.fortran/omp_parse3.f90: Require
19277         effective-target TLS.
19279 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
19281         * HEADER: Remove.
19283 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
19285         PR libgomp/24797
19286         * team.c (initialize_team): Pass NULL rather than free as
19287         pthread_key_create destructor.  Initialize thread specific data
19288         pointer in initial thread to a static local variable rather than
19289         malloced memory.
19291 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
19293         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19294         its location to ld_library_path.
19296 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19298         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19300 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19302         * testsuite/libgomp.c: Rename from libgomp.dg.
19304 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
19306         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19307         threadprivate variable 'i'.
19309 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
19311         * config/linux/s390/futex.h: New file.
19312         * configure.tgt: Use it.
19314         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19315         before the parallel.
19317 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
19319         PR c++/24734
19320         * testsuite/libgomp.c++/master-1.C: New test.
19322 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19324         * testsuite/libgomp.dg/copyin-3.c: New test.
19326 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19328         * testsuite/libgomp.fortran/retval1.f90: New test.
19329         * testsuite/libgomp.fortran/vla7.f90: New test.
19331 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
19333         * testsuite/libgomp.fortran/vla2.f90: New test.
19334         * testsuite/libgomp.fortran/vla3.f90: New test.
19335         * testsuite/libgomp.fortran/vla4.f90: New test.
19336         * testsuite/libgomp.fortran/vla5.f90: New test.
19337         * testsuite/libgomp.fortran/vla6.f90: New test.
19339 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
19341         * config/linux/sparc/futex.h: New file.
19342         * configure.tgt: Use it.
19343         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19345         * critical.c: Include stdlib.h.
19346         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19347         ignoring return value.
19348         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19349         LIBGOMP_CHECK_SYNC_BUILTINS check.
19350         * configure: Rebuilt.
19352 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19354         * testsuite/libgomp.fortran/vla1.f90: New test.
19356 2005-10-31  Richard Henderson  <rth@redhat.com>
19358         * testsuite/libgomp.fortran/character2.f90: Fix race condition
19359         setting 's' in different threads.
19361 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19363         * libgomp.h (attribute_hidden, ialias): Define.
19364         * config/posix/proc.c (omp_get_num_procs): Add ialias.
19365         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19366         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19367         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19368         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19369         omp_test_lock, omp_test_nest_lock): Likewise.
19370         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19371         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19372         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19373         omp_test_lock, omp_test_nest_lock): Likewise.
19374         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19375         omp_get_dynamic, omp_get_nested): Likewise.
19376         * parallel.c (omp_get_num_threads, omp_get_max_threads,
19377         omp_get_thread_num, omp_in_parallel): Likewise.
19378         * fortran.c (ialias_redirect): Define.
19379         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19380         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19381         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19382         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19383         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19384         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19385         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19386         omp_get_wtime): Add ialias_redirect.
19388 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
19390         * fortran.c: Include stdlib.h.
19392 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
19394         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19395         * Makefile.in: Regenerated.
19397 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
19399         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19400         * libgomp_f.h.in (omp_check_defines): New function.
19401         * env.c: Include libgomp_f.h.
19402         (initialize_env): Call omp_check_defines.
19404         * testsuite/libgomp.dg/copyin-2.c: New test.
19405         * testsuite/libgomp.c++/copyin-2.C: New test.
19406         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19408         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19409         * testsuite/libgomp.fortran/sharing2.f90: New test.
19411         * testsuite/libgomp.dg/copyin-1.c: New test.
19412         * testsuite/libgomp.c++/copyin-1.C: New test.
19414 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
19416         * testsuite/libgomp.fortran/crayptr1.f90: New test.
19418         * testsuite/libgomp.fortran/workshare1.f90: New test.
19420         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19421         only test.
19422         * libgomp.fortran/sharing1.f90: New test.
19424 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
19426         PR c++/24502
19427         * testsuite/libgomp.c++/loop-7.C: New test.
19429         * testsuite/libgomp.dg/nestedfn-2.c: New test.
19431         * testsuite/libgomp.dg/nestedfn-1.c: New test.
19432         * testsuite/libgomp.fortran/reduction6.f90: New test.
19433         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19435 2005-10-23  Richard Henderson  <rth@redhat.com>
19437         * testsuite/libgomp.c++/ctor-1.C: New.
19438         * testsuite/libgomp.c++/ctor-2.C: New.
19439         * testsuite/libgomp.c++/ctor-3.C: New.
19440         * testsuite/libgomp.c++/ctor-4.C: New.
19441         * testsuite/libgomp.c++/ctor-5.C: New.
19442         * testsuite/libgomp.c++/ctor-6.C: New.
19443         * testsuite/libgomp.c++/ctor-7.C: New.
19444         * testsuite/libgomp.c++/ctor-8.C: New.
19445         * testsuite/libgomp.c++/ctor-9.C: New.
19447 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
19449         PR 24455
19450         * testsuite/libgomp.c++/pr24455-1.C: New test.
19451         * testsuite/libgomp.c++/pr24455.C: New test.
19452         * testsuite/libgomp.dg/pr24455-1.c: New test.
19453         * testsuite/libgomp.dg/pr24455.c: New test.
19455 2005-10-20  Richard Henderson  <rth@redhat.com>
19457         * testsuite/libgomp.c++/loop-6.C: New.
19458         * testsuite/libgomp.dg/loop-3.c: New.
19460 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
19462         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19463         explicitly private.
19464         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19465         explicitly shared.
19467 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
19469         * testsuite/libgomp.fortran/jacobi.f: New test.
19471 2005-10-19  Richard Henderson  <rth@redhat.com>
19473         * configure.tgt (i?86-linux): Default to with_arch instead of
19474         CFLAGS.  Add -mtune to match target_cpu.
19475         (x86_64-linux): Tune to i686.
19477         * fortran.c (omp_test_nest_lock_): Fix typo.
19479 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
19481         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19482         gomp_ordered_sync): Do nothing if team->nthreads == 1.
19483         * testsuite/libgomp.dg/ordered-3.c: New test.
19485         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19486         Remove volatile keyword.
19488         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19489         in COMMON block to avoid warnings on 64-bit targets.
19491 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
19493         * testsuite/libgomp.dg/shared-3.c: New test.
19495 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19497         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19498         * testsuite/libgomp.fortran/reduction5.f90: New test.
19500 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19502         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19503         dg-options.
19504         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
19505         flush loop now that __sync_synchronize has proper memory barrier.
19506         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19507         Add -ffixed-form to dg-options.
19509 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19511         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19512         from subdirectories.
19513         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19514         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19515         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19516         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19517         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19518         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19519         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19520         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19521         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19522         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19523         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19524         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19525         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19526         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19527         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19528         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19529         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19530         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19531         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19532         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19533         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19534         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19535         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19536         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19537         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19539 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
19541         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19542         lang_library_path exists.  Use find instead of glob to gather tests.
19543         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19545 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19547         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19548         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19549         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19550         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19551         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19552         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19553         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19554         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19555         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19556         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19557         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19558         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19559         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19561 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
19563         * testsuite/libgomp.dg/vla-1.c: New test.
19565         * testsuite/libgomp.fortran/reference2.f90: New test.
19567         * testsuite/libgomp.fortran/character2.f90: Remove explicit
19568         declaration of omp_get_thread_num.
19569         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
19570         use omp_lib.
19572         * testsuite/libgomp.fortran/reduction1.f90: New test.
19573         * testsuite/libgomp.fortran/reduction2.f90: New test.
19574         * testsuite/libgomp.fortran/reduction3.f90: New test.
19575         * testsuite/libgomp.fortran/reduction4.f90: New test.
19577 2005-10-13  Richard Henderson  <rth@redhat.com>
19579         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19580         * Makefile.in: Regenerate.
19581         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19582         * libgomp.h: Include bar.h.
19583         (struct gomp_barrier): Remove.
19584         (struct gomp_team): Add barrier.  Replace master_barrier with
19585         master_release.  Replace threads with ordered_release.
19586         (struct gomp_thread): Replace barrier with release.
19587         * ordered.c (gomp_ordered_first): Update for ordered_release change.
19588         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19589         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19590         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19591         (GOMP_single_copy_end): Likewise.
19592         * team.c (gomp_threads_dock): New.
19593         (gomp_barrier_init, gomp_barrier_destroy): Remove.
19594         (gomp_thread_start): Use gomp_barrier_wait.
19595         (new_team, free_team): Update for gomp_team changes.
19596         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19597         (gomp_team_end): Use gomp_barrier_wait.
19598         (initialize_team): Update for gomp_thread changes.
19599         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19600         (gomp_work_share_end_nowait): Use atomic ops when available.
19601         * config/linux/bar.c, config/linux/bar.h: New files.
19602         * config/posix/bar.c, config/posix/bar.h: New files.
19604 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
19606         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19607         * testsuite/libgomp.dg/single-2.c: New test.
19609         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19610         lang_link_flags): Unset, so that they aren't inherited from previously
19611         sourced *.exp.
19613         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19615 2005-10-12  Richard Henderson  <rth@redhat.com>
19617         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19618         (libgomp_init): Use lang_test_file, lang_library_path, and
19619         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
19621         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19622         (lang_test_file, lang_link_flags): New.
19623         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19625         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19626         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19627         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19628         testsuite/libgomp.c++/parallel-1.C,
19629         testsuite/libgomp.c++/reduction-1.C,
19630         testsuite/libgomp.c++/reduction-2.C,
19631         testsuite/libgomp.c++/reduction-3.C,
19632         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19633         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19634         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19635         New files, largely cribbed from the C testsuite.
19637 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
19639         * testsuite/libgomp.fortran/character1.f90: New test.
19640         * testsuite/libgomp.fortran/character2.f90: New test.
19642         * testsuite/libgomp.dg/nested-1.c: New test.
19643         * testsuite/libgomp.dg/nested-2.c: New test.
19644         * testsuite/libgomp.fortran/do1.f90: New test.
19645         * testsuite/libgomp.fortran/do2.f90: New test.
19647         * testsuite/libgomp.fortran/reference1.f90: New test.
19649 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
19651         * testsuite/libgomp.dg/reduction-1.c: New test.
19652         * testsuite/libgomp.dg/reduction-2.c: New test.
19653         * testsuite/libgomp.dg/reduction-3.c: New test.
19655 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
19657         * testsuite/libgomp.dg/atomic-1.c: New test.
19658         * testsuite/libgomp.dg/atomic-2.c: New test.
19660 2005-10-09  Richard Henderson  <rth@redhat.com>
19662         * critical.c (atomic_lock): New.
19663         (initialize_critical): Initialize it.
19664         (GOMP_atomic_start, GOMP_atomic_end): New.
19665         * libgomp.map: Export them.
19666         * libgomp_g.h: Declare them.
19668         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
19670 2005-10-02  Richard Henderson  <rth@redhat.com>
19672         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
19673         to XCFLAGS instead of CFLAGS.
19675 2005-09-30  Richard Henderson  <rth@redhat.com>
19677         * configure.ac: Determine whether -pthread or -lpthread is needed.
19678         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
19679         * Makefile.in, configure: Rebuild.
19681 2005-09-28  Richard Henderson  <rth@redhat.com>
19683         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
19684         * testsuite/libgomp.dg/omp-single-3.c: New test.
19686 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
19688         * testsuite/libgomp.dg/omp-single-2.c: New test.
19689         * testsuite/libgomp.dg/shared-2.c: Fix return code.
19691 2005-09-27  Richard Henderson  <rth@redhat.com>
19693         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
19694         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
19696 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
19698         * testsuite/libgomp.dg/omp-loop03.c: New test.
19700 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19702         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
19704 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
19706         * testsuite/libgomp.dg/omp-single-1.c: New test.
19707         * testsuite/libgomp.dg/shared-1.c: Return 0.
19708         Add prototype for abort.
19709         * testsuite/libgomp.dg/shared-2.c: Likewise.
19711 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
19713         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
19714         constructs.
19716 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
19718         * testsuite/libgomp.dg/shared-1.c: New test.
19719         * testsuite/libgomp.dg/shared-2.c: New test.
19721 2005-09-24  Richard Henderson  <rth@redhat.com>
19723         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
19725 2005-09-24  Richard Henderson  <rth@redhat.com>
19727         * iter.c (gomp_iter_static_next): Round up when computing number
19728         of iterations.  Don't bother distributing a remainder equally.
19730         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
19731         Don't call srand.  Zero b before testing.
19732         (main): New.
19734 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
19736         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
19737         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
19739 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
19741         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
19742         without !$omp end do, followed immediately by subroutine end.
19744 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
19746         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
19748 2005-09-22  Richard Henderson  <rth@redhat.com>
19750         * critical.c (GOMP_critical_name_start): Change argument to void**.
19751         Reuse the pointer space if the mutex fits.
19752         (GOMP_critical_name_end): Likewise.
19753         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
19754         * libgomp_g.h (GOMP_critical_name_start): Update decl.
19755         (GOMP_critical_name_end): Likewise.
19756         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
19757         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
19759 2005-09-20  Richard Henderson  <rth@redhat.com>
19761         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
19762         (create_lock_lock): New.
19763         (initialize_critical): Initialize it.
19764         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
19765         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
19767 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19769         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
19771 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
19773         * testsuite/libgomp.dg/omp-loop01.c: New test.
19774         * testsuite/libgomp.dg/omp-loop02.c: New test.
19776 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
19778         * configure.ac (AC_PROG_FC): Add.
19779         (USE_FORTRAN): New automake conditional.
19780         * configure: Rebuilt.
19781         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
19782         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
19783         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
19784         Add rules to build them.
19785         * Makefile.in: Rebuilt.
19786         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
19787         OMP_NEST_LOCK_KIND.
19788         * libgomp.map: Add Fortran wrappers.
19789         * libgomp_f.h.in: New file.
19790         * omp_lib.h.in: New file.
19791         * omp_lib.f90.in: New file.
19792         * fortran.c: New file.
19793         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
19794         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
19795         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
19796         libgfortran has been built.
19797         * testsuite/libgomp.fortran/fortran.exp: New file.
19798         * testsuite/libgomp.fortran/omp_cond1.f: New test.
19799         * testsuite/libgomp.fortran/omp_cond2.f: New test.
19800         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
19801         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
19802         * testsuite/libgomp.fortran/omp_hello.f: New test.
19803         * testsuite/libgomp.fortran/omp_orphan.f: New test.
19804         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
19805         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
19806         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
19807         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
19808         * testsuite/libgomp.fortran/omp_reduction.f: New test.
19809         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
19810         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
19812 2005-08-30  Richard Henderson  <rth@redhat.com>
19814         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
19815         function for when aliases are not usable.
19816         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
19817         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
19818         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
19819         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
19820         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
19821         GOMP_loop_ordered_guided_next): Likewise.
19822         * ordered.c (GOMP_ordered_start): Likewise.
19824 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
19826         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
19827         * testsuite/libgomp.dg/omp_hello.c: Fix return code
19828         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
19829         * testsuite/libgomp.dg/omp_orphan.c: Likewise
19830         * testsuite/libgomp.dg/omp_reduction.c: Likewise
19831         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
19832         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
19833         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
19834         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
19836 2005-07-07  Eric Christopher  <echristo@redhat.com>
19837             Diego Novillo  <dnovillo@redhat.com>
19839         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
19840         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
19841         up code.
19842         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
19843         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
19844         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
19845         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
19846         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
19847         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
19848         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
19850 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
19852         * TOPLEVEL.patch: Remove.
19854 2005-05-16  Richard Henderson  <rth@redhat.com>
19856         * configure.ac: Test for clock_gettime.
19857         * config.h.in, configure: Rebuild.
19858         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
19859         (omp_get_wtime): Use clock_gettime if available.
19860         (omp_get_wtick): Use clock_getres if available.
19862 2005-05-11  Richard Henderson  <rth@redhat.com>
19864         * config/linux/ia64/futex.h: New file.
19865         * configure.tgt: Use it.
19867         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
19869 2005-05-07  Richard Henderson  <rth@redhat.com>
19871         * config/linux/powerpc/futex.h: New file.
19872         * configure.tgt: Use it.
19874         * config/linux/i486/futex.h: Merge ...
19875         * config/linux/x86_64/futex.h: ... into ...
19876         * config/linux/x86/futex.h: ... here.
19877         * configure.tgt: Update to match.
19879 2005-05-06  Richard Henderson  <rth@redhat.com>
19881         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
19882         * config/linux/i486/futex.h: Likewise.
19883         * config/linux/x86_64/futex.h: Likewise.
19885         * config/linux/lock.c: New file.
19886         * config/linux/omp-lock.h: New file.
19888         * critical.c, env.h: Don't include omp.h
19889         * config/posix/lock.c: Include libgomp.h instead of omp.h.
19890         * config/posix/time.c: Likewise.
19891         * config/posix/omp-lock.h: New file.
19892         * libgomp.h: Include omp-lock.h and omp.h.
19893         * Makefile.am (nodist_include_HEADERS): New.
19894         (omp.h): New rule.
19895         * configure.ac (PERL): New.
19896         * mkomp_h.pl: New file.
19897         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
19898         with templates.
19899         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
19901         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
19902         build directory.  Re-add -march=i486 hack.
19904         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
19905         (libgomp_link_flags): Remove.
19906         (libgomp_initialized): Remove.
19907         (libgomp_init): Don't protect from reinitialization.  Copy code
19908         from libstdc++ for getting the multilib set correctly.
19910 2005-05-05  Richard Henderson  <rth@redhat.com>
19912         * config/linux/alpha/futex.h: New file.
19913         * configure.tgt (alpha*-*-linux*): Use it.
19915         * config/posix/mutex.c: New file.
19916         * config/posix/sem.c: Use libgomp.h.
19918         * configure.tgt (x86_64-linux): Also test CC for -m32.
19919         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
19921         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
19922         after $gccpath.
19924         * Makefile.am (SUBDIRS): New.
19925         (libgomp_la_LDFLAGS): Add -lpthread.
19926         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
19927         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
19929         * libgomp_g.h: New file.
19930         * libgomp.h: Split out all public declarations to libgomp_g.h.
19931         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
19932         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
19933         * config/linux/sem.h: Likewise.
19934         * config/posix/sem.h: Likewise.
19936         * Makefile.am (AM_LDFLAGS): New.
19937         (libgomp_version_script): Split out from ...
19938         (libgomp_la_LDFLAGS): ... here.
19939         (libgomp_version_info): New.
19940         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
19941         (LIBGOMP_ENABLE): New.
19942         (LIBGOMP_CHECK_LINKER_FEATURES): New.
19943         (LIBGOMP_ENABLE_SYMVERS): New.
19944         * configure.ac (AC_INIT): Version 1.0.
19945         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
19946         (enable-linux-futex): Likewise.  Rename from enable-futex.
19947         (libtool_VERSION): New.
19948         (LIBGOMP_ENABLE_SYMVERS): Use it.
19949         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
19950         * Makefile.in, aclocal.m4, configure: Rebuild.
19952         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
19953         (gomp_mutex_unlock_slow): Fix typo.
19954         * config/linux/sem.c: Similarly.
19955         (gomp_sem_post_slow): Fix typo.
19956         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
19957         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
19958         [__PIC__] (sys_futex0): Don't use tmp output in asm.
19960         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
19961         (libgomp_la_LDFLAGS): Add top_srcdir to path.
19962         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
19963         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
19964         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
19965         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
19966         LDFLAGS.  Pull enable_futex check to top-level.
19967         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
19968         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
19970         First attempt at real configury.
19971         * Makefile, config.h: Remove file.
19972         * Makefile.am, Makefile.in: New file.
19973         * acinclude.m4 aclocal.m4: New file.
19974         * configure.ac, configure.tgt, configure: New file.
19976         * config/posix/lock.c: Rename from sys-lock.c.
19977         * config/posix/mutex.h: Rename from sys-mutex.h.
19978         * config/posix/sem.c: Rename from sys-sem.c.
19979         * config/posix/sem.h: Rename from sys-sem.h.
19980         * config/posix/proc.c: Rename from sys-proc.c.
19981         * config/posix/time.c: Rename from sys-proc.c.
19983         * config/linux/mutex.c: New file.
19984         * config/linux/mutex.h: New file.
19985         * config/linux/sem.c: New file.
19986         * config/linux/sem.h: New file.
19987         * config/linux/i486/futex.h: New file.
19988         * config/linux/x86_64/futex.h: New file.
19990 2005-05-04  Richard Henderson  <rth@redhat.com>
19992         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
19993         * libgomp.h: Declare them.
19994         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
19995         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
19997 2005-05-04  Richard Henderson  <rth@redhat.com>
19999         * libgomp-1 code drop
20001 2005-05-04  Richard Henderson  <rth@redhat.com>
20003         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20004         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20005         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20006         (gomp_iter_static_next): Update.
20007         (gomp_ordered_static_next): Update.
20008         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20009         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20010         totally empty range.
20011         (gomp_loop_ordered_static_next): Refine test for calling
20012         gomp_ordered_static_next.
20013         * testsuite/ordered-1.c: Add case for more threads than iterations.
20015         * iter.c (gomp_iter_runtime_next_locked): Remove.
20016         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20017         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20018         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20019         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20020         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20021         gomp_loop_ordered_guided_next): Downcase name, make static, add
20022         an external alias with the old name.
20023         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20024         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20025         switch and call one of the above static functions.
20026         * libgomp.h: Update.
20028         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20029         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20030         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20031         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20032         GOMP_loop_ordered_guided_start): Update to match.
20033         * sections.c (GOMP_sections_start): Likewise.
20034         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20036         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20037         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20038         Use bounds check instead of modulus.
20039         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20040         (gomp_ordered_last): Don't sync with ordered_owner here.
20041         (gomp_ordered_next): Likewise.
20042         (gomp_ordered_static_loop_next): Likewise.
20043         * loop.c, libgomp.h: Update to match.
20045         * libgomp.h (GOMP_barrier): Declare.
20047         * testsuite/barrier-1.c: New file.
20048         * testsuite/critical-1.c: New file.
20049         * testsuite/ordered-2.c: New file.
20050         * testsuite/ordered-1.c: New file.
20051         * testsuite/sections-1.c: New file.
20052         * testsuite/single-1.c: New file.
20053         * testsuite/Makefile (TESTS): Add them.
20055 2005-05-04  Richard Henderson  <rth@redhat.com>
20057         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20058         * loop.c (GOMP_loop_static_start): If not the startup thread,
20059         acquire the mutex to wait for initialization complete.
20060         (GOMP_loop_ordered_static_start): Likewise.
20061         (GOMP_loop_ordered_runtime_start): Likewise.
20062         (GOMP_loop_ordered_static_first): Remove.
20063         (GOMP_loop_ordered_dynamic_first): Remove.
20064         (GOMP_loop_ordered_guided_first): Remove.
20065         (GOMP_loop_ordered_runtime_first): Remove.
20066         * ordered.c (gomp_ordered_loop_first): Post to own release when
20067         we're the first thread.
20068         (gomp_ordered_loop_last): Wait on release if not owner.
20069         (gomp_ordered_loop_next): Likewise.
20070         (gomp_ordered_static_loop_init): New.
20071         (gomp_ordered_static_loop_next): Use ordered_owner.
20072         (GOMP_ordered_start): Likewise.
20073         * work.c (gomp_new_work_share): Initialize ordered_owner.
20075 2005-05-03  Richard Henderson  <rth@redhat.com>
20077         * Makefile (OPT): New.
20078         (CFLAGS): Use it.
20080         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20081         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20082         * libgomp.h, libgomp.map, NOTES: Update to match.
20084         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20085         Add initialized and thr members.
20086         (gomp_thread_start): Pause when initially spawned to wait for
20087         the whole team to be created.
20088         (gomp_team_start): Release team members at the end.
20090         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20091         (f_foo_1): Use GOMP_loop_end.
20092         (f_foo_2): Use GOMP_loop_end_nowait.
20094         * testsuite/loop-2.c: New file.
20095         * testsuite/Makefile (TESTS): Add it.
20097 2005-05-03  Richard Henderson  <rth@redhat.com>
20099         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20100         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20101         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20102         initial work_share.
20104         * testsuite/Makefile: New file.
20105         * testsuite/loop-1.c: New file.
20107 2005-05-03  Richard Henderson  <rth@redhat.com>
20109         Initial implementation and checkin.
20111 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20113 Copying and distribution of this file, with or without modification,
20114 are permitted in any medium without royalty provided the copyright
20115 notice and this notice are preserved.